[android] - Configure Gradle properties as part of the instalation process. (#6729)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# allows gradle to use more memory
|
||||
org.gradle.jvmargs=-Xmx2048M
|
||||
@@ -30,6 +30,7 @@ android {
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
|
||||
Reference in New Issue
Block a user