[android] - Configure Gradle properties as part of the instalation process. (#6729)

This commit is contained in:
Tobrun
2016-10-20 10:21:15 +02:00
committed by GitHub
parent 9a7139b65c
commit 6d50435880
4 changed files with 10 additions and 5 deletions

View File

@@ -46,6 +46,15 @@ export ANDROID_HOME=/<installation location>/android-sdk-macosx
This environment variable configuration should go into a file that's read on
your shell's startup, like `~/.profile`.
## Speeding up gradle builds
To optimise you development machine for faster gradle builds create the following `/Users/name/.gradle/gradle.properties` file:
```
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx3072M
```
## Running The TestApp
In order to run the TestApp on an emulator or device the Core GL portion needs to built first. Core GL is the common C++ based OpenGL engine that powers the maps for iOS, Android, and Qt in the project. To build it, open Terminal and run the following commands from the root of the `mapbox-gl-native` source code

View File

@@ -20,6 +20,3 @@ ANDROID_BUILD_SDK_VERSION=23
POM_NAME=Mapbox Android SDK
POM_ARTIFACT_ID=mapbox-android-sdk
POM_PACKAGING=aar
# allows gradle to use more memory
org.gradle.jvmargs=-Xmx2048M

View File

@@ -1,2 +0,0 @@
# allows gradle to use more memory
org.gradle.jvmargs=-Xmx2048M

View File

@@ -30,6 +30,7 @@ android {
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false