diff options
25 files changed, 430 insertions, 82 deletions
@@ -46,4 +46,7 @@ Xamarin.Forms.Controls/secrets.txt Xamarin.Forms.Controls/controlgallery.config Xamarin.Forms.ControlGallery.Android/Properties/MapsKey.cs *.tss -*.bak
\ No newline at end of file +*.bak +AndroidNative/local.properties +AndroidNative/FormsViewGroup/build/ +AndroidNative/build/
\ No newline at end of file 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module external.linked.project.id="AndroidNative" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4"> + <component name="FacetManager"> + <facet type="java-gradle" name="Java-Gradle"> + <configuration> + <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" /> + <option name="BUILDABLE" value="false" /> + </configuration> + </facet> + </component> + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <excludeFolder url="file://$MODULE_DIR$/.gradle" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module>
\ 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="src" path="gen"/> - <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> - <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> - <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> - <classpathentry kind="output" path="bin/classes"/> -</classpath> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>FormsViewGroup</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.ApkBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>com.android.ide.eclipse.adt.AndroidNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> 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/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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module external.linked.project.id=":FormsViewGroup" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4"> + <component name="FacetManager"> + <facet type="android-gradle" name="Android-Gradle"> + <configuration> + <option name="GRADLE_PROJECT_PATH" value=":FormsViewGroup" /> + </configuration> + </facet> + <facet type="android" name="Android"> + <configuration> + <option name="SELECTED_BUILD_VARIANT" value="release" /> + <option name="ASSEMBLE_TASK_NAME" value="assembleRelease" /> + <option name="COMPILE_JAVA_TASK_NAME" value="compileReleaseSources" /> + <afterSyncTasks> + <task>generateReleaseSources</task> + </afterSyncTasks> + <option name="ALLOW_USER_CONFIGURATION" value="false" /> + <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" /> + <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" /> + <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" /> + <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> + <option name="PROJECT_TYPE" value="1" /> + </configuration> + </facet> + </component> + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false"> + <output url="file://$MODULE_DIR$/build/intermediates/classes/release" /> + <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/release" /> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/release" isTestSource="false" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/release" isTestSource="false" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/release" isTestSource="false" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/release" isTestSource="false" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/release" isTestSource="false" generated="true" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/release" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/release" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/res" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/assets" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/aidl" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/java" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/rs" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/release/shaders" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/res" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/resources" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/assets" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/aidl" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/java" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/rs" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/testRelease/shaders" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/20.0.0/jars" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" /> + <excludeFolder url="file://$MODULE_DIR$/build/intermediates/typedefs.txt" /> + <excludeFolder url="file://$MODULE_DIR$/build/outputs" /> + <excludeFolder url="file://$MODULE_DIR$/build/tmp" /> + </content> + <orderEntry type="jdk" jdkName="Android API 20 Platform" jdkType="Android SDK" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="library" exported="" name="support-v4-20.0.0" level="project" /> + <orderEntry type="library" exported="" name="support-annotations-20.0.0" level="project" /> + <orderEntry type="library" exported="" name="android-android-20" level="project" /> + </component> +</module>
\ 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 Binary files differdeleted file mode 100644 index c31cede4..00000000 --- a/AndroidNative/FormsViewGroup/libs/android-support-v4.jar +++ /dev/null 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/AndroidManifest.xml b/AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml index bc4108dc..bc4108dc 100644 --- a/AndroidNative/FormsViewGroup/AndroidManifest.xml +++ b/AndroidNative/FormsViewGroup/src/main/AndroidManifest.xml diff --git a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java b/AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java index 6f7cd93a..6f7cd93a 100644 --- a/AndroidNative/FormsViewGroup/src/com/xamarin/forms/platform/android/FormsViewGroup.java +++ b/AndroidNative/FormsViewGroup/src/main/java/com/xamarin/forms/platform/android/FormsViewGroup.java diff --git a/AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png Binary files differindex 96a442e5..96a442e5 100644 --- a/AndroidNative/FormsViewGroup/res/drawable-hdpi/ic_launcher.png +++ b/AndroidNative/FormsViewGroup/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png Binary files differindex 359047df..359047df 100644 --- a/AndroidNative/FormsViewGroup/res/drawable-mdpi/ic_launcher.png +++ b/AndroidNative/FormsViewGroup/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png b/AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png Binary files differindex 71c6d760..71c6d760 100644 --- a/AndroidNative/FormsViewGroup/res/drawable-xhdpi/ic_launcher.png +++ b/AndroidNative/FormsViewGroup/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/AndroidNative/FormsViewGroup/res/values-v11/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml index 3c02242a..3c02242a 100644 --- a/AndroidNative/FormsViewGroup/res/values-v11/styles.xml +++ b/AndroidNative/FormsViewGroup/src/main/res/values-v11/styles.xml diff --git a/AndroidNative/FormsViewGroup/res/values-v14/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml index a91fd037..a91fd037 100644 --- a/AndroidNative/FormsViewGroup/res/values-v14/styles.xml +++ b/AndroidNative/FormsViewGroup/src/main/res/values-v14/styles.xml diff --git a/AndroidNative/FormsViewGroup/res/values/strings.xml b/AndroidNative/FormsViewGroup/src/main/res/values/strings.xml index 605dd46e..605dd46e 100644 --- a/AndroidNative/FormsViewGroup/res/values/strings.xml +++ b/AndroidNative/FormsViewGroup/src/main/res/values/strings.xml diff --git a/AndroidNative/FormsViewGroup/res/values/styles.xml b/AndroidNative/FormsViewGroup/src/main/res/values/styles.xml index 6ce89c7b..6ce89c7b 100644 --- a/AndroidNative/FormsViewGroup/res/values/styles.xml +++ b/AndroidNative/FormsViewGroup/src/main/res/values/styles.xml 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 Binary files differnew file mode 100644 index 00000000..13372aef --- /dev/null +++ b/AndroidNative/gradle/wrapper/gradle-wrapper.jar 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 |