From 23823fb3576f9a532067c931cd9fc3f1c0cab770 Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Thu, 4 May 2017 12:37:47 -0600 Subject: Attempting to get command-line buildable FormsViewGroup --- AndroidNative/AndroidNative.iml | 19 +++ AndroidNative/FormsViewGroup/.classpath | 9 -- AndroidNative/FormsViewGroup/.project | 33 ----- .../.settings/org.eclipse.jdt.core.prefs | 4 - AndroidNative/FormsViewGroup/AndroidManifest.xml | 17 --- AndroidNative/FormsViewGroup/FormsViewGroup.iml | 98 +++++++++++++ AndroidNative/FormsViewGroup/build.gradle | 25 ++++ .../FormsViewGroup/libs/android-support-v4.jar | Bin 758727 -> 0 bytes AndroidNative/FormsViewGroup/proguard-project.txt | 20 --- AndroidNative/FormsViewGroup/project.properties | 15 -- .../res/drawable-hdpi/ic_launcher.png | Bin 9397 -> 0 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 5237 -> 0 bytes .../res/drawable-xhdpi/ic_launcher.png | Bin 14383 -> 0 bytes .../FormsViewGroup/res/values-v11/styles.xml | 11 -- .../FormsViewGroup/res/values-v14/styles.xml | 12 -- .../FormsViewGroup/res/values/strings.xml | 5 - AndroidNative/FormsViewGroup/res/values/styles.xml | 20 --- .../forms/platform/android/FormsViewGroup.java | 136 ------------------ .../FormsViewGroup/src/main/AndroidManifest.xml | 17 +++ .../forms/platform/android/FormsViewGroup.java | 136 ++++++++++++++++++ .../src/main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 9397 bytes .../src/main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 5237 bytes .../src/main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 14383 bytes .../src/main/res/values-v11/styles.xml | 11 ++ .../src/main/res/values-v14/styles.xml | 12 ++ .../FormsViewGroup/src/main/res/values/strings.xml | 5 + .../FormsViewGroup/src/main/res/values/styles.xml | 20 +++ AndroidNative/build.gradle | 27 ++++ AndroidNative/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 53636 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + AndroidNative/gradlew | 160 +++++++++++++++++++++ AndroidNative/gradlew.bat | 90 ++++++++++++ AndroidNative/settings.gradle | 1 + 33 files changed, 627 insertions(+), 282 deletions(-) create mode 100644 AndroidNative/AndroidNative.iml delete mode 100644 AndroidNative/FormsViewGroup/.classpath delete mode 100644 AndroidNative/FormsViewGroup/.project delete mode 100644 AndroidNative/FormsViewGroup/.settings/org.eclipse.jdt.core.prefs delete mode 100644 AndroidNative/FormsViewGroup/AndroidManifest.xml create mode 100644 AndroidNative/FormsViewGroup/FormsViewGroup.iml create mode 100644 AndroidNative/FormsViewGroup/build.gradle delete mode 100644 AndroidNative/FormsViewGroup/libs/android-support-v4.jar delete mode 100644 AndroidNative/FormsViewGroup/proguard-project.txt delete mode 100644 AndroidNative/FormsViewGroup/project.properties delete mode 100644 AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png delete mode 100644 AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png delete mode 100644 AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png delete mode 100644 AndroidNative/FormsViewGroup/res/values-v11/styles.xml delete mode 100644 AndroidNative/FormsViewGroup/res/values-v14/styles.xml delete mode 100644 AndroidNative/FormsViewGroup/res/values/strings.xml delete mode 100644 AndroidNative/FormsViewGroup/res/values/styles.xml delete mode 100644 AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java create mode 100644 AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml create mode 100644 AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java create mode 100644 AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml create mode 100644 AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml create mode 100644 AndroidNative/FormsViewGroup/src/main/res/values/strings.xml create mode 100644 AndroidNative/FormsViewGroup/src/main/res/values/styles.xml create mode 100644 AndroidNative/build.gradle create mode 100644 AndroidNative/gradle/wrapper/gradle-wrapper.jar create mode 100644 AndroidNative/gradle/wrapper/gradle-wrapper.properties create mode 100644 AndroidNative/gradlew create mode 100644 AndroidNative/gradlew.bat create mode 100644 AndroidNative/settings.gradle (limited to 'AndroidNative') diff --git a/AndroidNative/AndroidNative.iml b/AndroidNative/AndroidNative.iml new file mode 100644 index 00000000..f03f5c6d --- /dev/null +++ b/AndroidNative/AndroidNative.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AndroidNative/FormsViewGroup/.classpath b/AndroidNative/FormsViewGroup/.classpath deleted file mode 100644 index 7bc01d9a..00000000 --- a/AndroidNative/FormsViewGroup/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/AndroidNative/FormsViewGroup/.project b/AndroidNative/FormsViewGroup/.project deleted file mode 100644 index 752a5a15..00000000 --- a/AndroidNative/FormsViewGroup/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - FormsViewGroup - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/AndroidNative/FormsViewGroup/.settings/org.eclipse.jdt.core.prefs b/AndroidNative/FormsViewGroup/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index b080d2dd..00000000 --- a/AndroidNative/FormsViewGroup/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/AndroidNative/FormsViewGroup/AndroidManifest.xml b/AndroidNative/FormsViewGroup/AndroidManifest.xml deleted file mode 100644 index bc4108dc..00000000 --- a/AndroidNative/FormsViewGroup/AndroidManifest.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - diff --git a/AndroidNative/FormsViewGroup/FormsViewGroup.iml b/AndroidNative/FormsViewGroup/FormsViewGroup.iml new file mode 100644 index 00000000..22eeb84d --- /dev/null +++ b/AndroidNative/FormsViewGroup/FormsViewGroup.iml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AndroidNative/FormsViewGroup/build.gradle b/AndroidNative/FormsViewGroup/build.gradle new file mode 100644 index 00000000..9d8635c7 --- /dev/null +++ b/AndroidNative/FormsViewGroup/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 20 + buildToolsVersion "25.0.2" + + defaultConfig { + minSdkVersion 15 + targetSdkVersion 15 + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + compile 'com.android.support:support-v4:20.0.0' +} + + + diff --git a/AndroidNative/FormsViewGroup/libs/android-support-v4.jar b/AndroidNative/FormsViewGroup/libs/android-support-v4.jar deleted file mode 100644 index c31cede4..00000000 Binary files a/AndroidNative/FormsViewGroup/libs/android-support-v4.jar and /dev/null differ diff --git a/AndroidNative/FormsViewGroup/proguard-project.txt b/AndroidNative/FormsViewGroup/proguard-project.txt deleted file mode 100644 index f2fe1559..00000000 --- a/AndroidNative/FormsViewGroup/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/AndroidNative/FormsViewGroup/project.properties b/AndroidNative/FormsViewGroup/project.properties deleted file mode 100644 index 7e2ca64f..00000000 --- a/AndroidNative/FormsViewGroup/project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-20 -android.library=true diff --git a/AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 96a442e5..00000000 Binary files a/AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 359047df..00000000 Binary files a/AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 71c6d760..00000000 Binary files a/AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/AndroidNative/FormsViewGroup/res/values-v11/styles.xml b/AndroidNative/FormsViewGroup/res/values-v11/styles.xml deleted file mode 100644 index 3c02242a..00000000 --- a/AndroidNative/FormsViewGroup/res/values-v11/styles.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - diff --git a/AndroidNative/FormsViewGroup/res/values-v14/styles.xml b/AndroidNative/FormsViewGroup/res/values-v14/styles.xml deleted file mode 100644 index a91fd037..00000000 --- a/AndroidNative/FormsViewGroup/res/values-v14/styles.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - diff --git a/AndroidNative/FormsViewGroup/res/values/strings.xml b/AndroidNative/FormsViewGroup/res/values/strings.xml deleted file mode 100644 index 605dd46e..00000000 --- a/AndroidNative/FormsViewGroup/res/values/strings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - FormsViewGroup - - diff --git a/AndroidNative/FormsViewGroup/res/values/styles.xml b/AndroidNative/FormsViewGroup/res/values/styles.xml deleted file mode 100644 index 6ce89c7b..00000000 --- a/AndroidNative/FormsViewGroup/res/values/styles.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - diff --git a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java b/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java deleted file mode 100644 index 6f7cd93a..00000000 --- a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java +++ /dev/null @@ -1,136 +0,0 @@ -package com.xamarin.forms.platform.android; - -import android.content.Context; -import android.content.res.ColorStateList; -import android.graphics.Color; -import android.graphics.Typeface; -import android.os.Build; -import android.text.TextUtils; -import android.util.AttributeSet; -import android.util.TypedValue; -import android.view.ViewGroup; -import android.view.*; -import android.widget.TextView; - -import static android.R.attr.pivotX; - -public class FormsViewGroup extends ViewGroup { - - public FormsViewGroup(Context context) { - super(context); - // TODO Auto-generated constructor stub - } - - public FormsViewGroup(Context context, AttributeSet attrs) { - super(context, attrs); - // TODO Auto-generated constructor stub - } - - public FormsViewGroup(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - // TODO Auto-generated constructor stub - } - - public void measureAndLayout (int widthMeasureSpec, int heightMeasureSpec, int l, int t, int r, int b) - { - measure (widthMeasureSpec, heightMeasureSpec); - layout (l, t, r, b); - } - - @Override - protected void onLayout(boolean changed, int l, int t, int r, int b) { - } - - boolean inputTransparent; - - protected void setInputTransparent (boolean value) - { - inputTransparent = value; - } - - protected boolean getInputTransparent () - { - return inputTransparent; - } - - @Override - public boolean onInterceptTouchEvent (MotionEvent ev) - { - if (inputTransparent) - return false; - - return super.onInterceptTouchEvent(ev); - } - - @Override - public boolean onTouchEvent (MotionEvent ev) - { - if (inputTransparent) - return false; - - return super.onTouchEvent(ev); - } - - public void sendBatchUpdate ( - float pivotX, - float pivotY, - int visibility, - boolean enabled, - float opacity, - float rotation, - float rotationX, - float rotationY, - float scale, - float translationX, - float translationY){ - setPivotX (pivotX); - setPivotY (pivotY); - - if (getVisibility () != visibility) - setVisibility (visibility); - - if (isEnabled () != enabled) - setEnabled (enabled); - - setAlpha (opacity); - setRotation (rotation); - setRotationX (rotationX); - setRotationY (rotationY); - setScaleX (scale); - setScaleY (scale); - setTranslationX (translationX); - setTranslationY (translationY); - } - - public static void sendViewBatchUpdate ( - View view, - float pivotX, - float pivotY, - int visibility, - boolean enabled, - float opacity, - float rotation, - float rotationX, - float rotationY, - float scale, - float translationX, - float translationY){ - view.setPivotX (pivotX); - view.setPivotY (pivotY); - - if (view.getVisibility () != visibility) - view.setVisibility (visibility); - - if (view.isEnabled () != enabled) - view.setEnabled (enabled); - - view.setAlpha (opacity); - view.setRotation (rotation); - view.setRotationX (rotationX); - view.setRotationY (rotationY); - view.setScaleX (scale); - view.setScaleY (scale); - view.setTranslationX (translationX); - view.setTranslationY (translationY); - } -} diff --git a/AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml b/AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml new file mode 100644 index 00000000..bc4108dc --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java b/AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java new file mode 100644 index 00000000..6f7cd93a --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java @@ -0,0 +1,136 @@ +package com.xamarin.forms.platform.android; + +import android.content.Context; +import android.content.res.ColorStateList; +import android.graphics.Color; +import android.graphics.Typeface; +import android.os.Build; +import android.text.TextUtils; +import android.util.AttributeSet; +import android.util.TypedValue; +import android.view.ViewGroup; +import android.view.*; +import android.widget.TextView; + +import static android.R.attr.pivotX; + +public class FormsViewGroup extends ViewGroup { + + public FormsViewGroup(Context context) { + super(context); + // TODO Auto-generated constructor stub + } + + public FormsViewGroup(Context context, AttributeSet attrs) { + super(context, attrs); + // TODO Auto-generated constructor stub + } + + public FormsViewGroup(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + // TODO Auto-generated constructor stub + } + + public void measureAndLayout (int widthMeasureSpec, int heightMeasureSpec, int l, int t, int r, int b) + { + measure (widthMeasureSpec, heightMeasureSpec); + layout (l, t, r, b); + } + + @Override + protected void onLayout(boolean changed, int l, int t, int r, int b) { + } + + boolean inputTransparent; + + protected void setInputTransparent (boolean value) + { + inputTransparent = value; + } + + protected boolean getInputTransparent () + { + return inputTransparent; + } + + @Override + public boolean onInterceptTouchEvent (MotionEvent ev) + { + if (inputTransparent) + return false; + + return super.onInterceptTouchEvent(ev); + } + + @Override + public boolean onTouchEvent (MotionEvent ev) + { + if (inputTransparent) + return false; + + return super.onTouchEvent(ev); + } + + public void sendBatchUpdate ( + float pivotX, + float pivotY, + int visibility, + boolean enabled, + float opacity, + float rotation, + float rotationX, + float rotationY, + float scale, + float translationX, + float translationY){ + setPivotX (pivotX); + setPivotY (pivotY); + + if (getVisibility () != visibility) + setVisibility (visibility); + + if (isEnabled () != enabled) + setEnabled (enabled); + + setAlpha (opacity); + setRotation (rotation); + setRotationX (rotationX); + setRotationY (rotationY); + setScaleX (scale); + setScaleY (scale); + setTranslationX (translationX); + setTranslationY (translationY); + } + + public static void sendViewBatchUpdate ( + View view, + float pivotX, + float pivotY, + int visibility, + boolean enabled, + float opacity, + float rotation, + float rotationX, + float rotationY, + float scale, + float translationX, + float translationY){ + view.setPivotX (pivotX); + view.setPivotY (pivotY); + + if (view.getVisibility () != visibility) + view.setVisibility (visibility); + + if (view.isEnabled () != enabled) + view.setEnabled (enabled); + + view.setAlpha (opacity); + view.setRotation (rotation); + view.setRotationX (rotationX); + view.setRotationY (rotationY); + view.setScaleX (scale); + view.setScaleY (scale); + view.setTranslationX (translationX); + view.setTranslationY (translationY); + } +} diff --git a/AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 00000000..96a442e5 Binary files /dev/null and b/AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png differ diff --git a/AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 00000000..359047df Binary files /dev/null and b/AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png differ diff --git a/AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 00000000..71c6d760 Binary files /dev/null and b/AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png differ diff --git a/AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml new file mode 100644 index 00000000..3c02242a --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml new file mode 100644 index 00000000..a91fd037 --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/AndroidNative/FormsViewGroup/src/main/res/values/strings.xml b/AndroidNative/FormsViewGroup/src/main/res/values/strings.xml new file mode 100644 index 00000000..605dd46e --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + FormsViewGroup + + diff --git a/AndroidNative/FormsViewGroup/src/main/res/values/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values/styles.xml new file mode 100644 index 00000000..6ce89c7b --- /dev/null +++ b/AndroidNative/FormsViewGroup/src/main/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/AndroidNative/build.gradle b/AndroidNative/build.gradle new file mode 100644 index 00000000..bd1bab33 --- /dev/null +++ b/AndroidNative/build.gradle @@ -0,0 +1,27 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.2.0' + } +} + +allprojects { + repositories { + jcenter() + } +} + +task createJar(type: Copy){ + dependsOn ':FormsViewGroup:clean' + dependsOn ':FormsViewGroup:bundleRelease' + + tasks.getByPath(':FormsViewGroup:bundleRelease').mustRunAfter(tasks.getByPath(':FormsViewGroup:clean')) + + from('FormsViewGroup/build/intermediates/bundles/release/') + into('../Xamarin.Forms.Platform.Android.FormsViewGroup/Jars/') + include('classes.jar') + rename('classes.jar', 'formsviewgroup.jar') +} \ No newline at end of file diff --git a/AndroidNative/gradle/wrapper/gradle-wrapper.jar b/AndroidNative/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..13372aef Binary files /dev/null and b/AndroidNative/gradle/wrapper/gradle-wrapper.jar differ diff --git a/AndroidNative/gradle/wrapper/gradle-wrapper.properties b/AndroidNative/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..04e285f3 --- /dev/null +++ b/AndroidNative/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Mon Dec 28 10:00:20 PST 2015 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip diff --git a/AndroidNative/gradlew b/AndroidNative/gradlew new file mode 100644 index 00000000..9d82f789 --- /dev/null +++ b/AndroidNative/gradlew @@ -0,0 +1,160 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/AndroidNative/gradlew.bat b/AndroidNative/gradlew.bat new file mode 100644 index 00000000..8a0b282a --- /dev/null +++ b/AndroidNative/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/AndroidNative/settings.gradle b/AndroidNative/settings.gradle new file mode 100644 index 00000000..7bfc7562 --- /dev/null +++ b/AndroidNative/settings.gradle @@ -0,0 +1 @@ +include ':FormsViewGroup' \ No newline at end of file -- cgit v1.2.3