From d643d98593aeae0f7bbc8b1c8d59b4cdf60fbe18 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Fri, 5 May 2017 11:36:02 +0200 Subject: [A] add building instructions --- AndroidNative/HOWTOBUILD | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 AndroidNative/HOWTOBUILD (limited to 'AndroidNative') 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 -- cgit v1.2.3