summaryrefslogtreecommitdiff
path: root/AndroidNative/HOWTOBUILD
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-05-05 11:36:02 +0200
committerStephane Delcroix <stephane@delcroix.org>2017-05-05 11:37:28 +0200
commitd643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18 (patch)
tree403e7d528f9cb30fa7934a456310a5bcc3883002 /AndroidNative/HOWTOBUILD
parente7aaae985768ff951c87e6f457ebb8ace242a2ca (diff)
downloadxamarin-forms-d643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18.tar.gz
xamarin-forms-d643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18.tar.bz2
xamarin-forms-d643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18.zip
[A] add building instructions
Diffstat (limited to 'AndroidNative/HOWTOBUILD')
-rw-r--r--AndroidNative/HOWTOBUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/AndroidNative/HOWTOBUILD b/AndroidNative/HOWTOBUILD
new file mode 100644
index 00000000..33ad4686
--- /dev/null
+++ b/AndroidNative/HOWTOBUILD
@@ -0,0 +1,15 @@
+To build the FormsViewGroup.jar from the command line; no need to install Android Studio or Eclipse. It works on Windows and macOS. To build a new .jar just navigate to the AndroidNative folder and run:
+ - Windows PowerShell: .\gradlew createJar --rerun-tasks
+ - macOS Terminal: ./gradlew createJar --rerun-tasks
+
+The resulting formsviewgroup.jar will be put in Xamarin.Forms.Platform.Android.FormsViewGroup\Jars.
+
+Before the first time you run it, you'll need to create a local.properties file in the AndroidNative folder so Gradle can find your Android SDK. It needs one line to set the sdk.dir property. For example:
+ - Windows: sdk.dir=C\:\\Users\\cfinley\\AppData\\Local\\Android\\Sdk
+ - macOS: sdk.dir=/Users/cfinley/Library/Developer/Xamarin/android-sdk-macosx
+
+It may download a bunch of stuff the first time it runs; after that it'll be much faster.
+
+If you don't already have Gradle installed:
+- Windows: choco install gradle
+- macOS: brew install gradle