Skip to content

Commit 4a838a3

Browse files
committed
Simplify building
1 parent 9b0b3db commit 4a838a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
You can check whether the latest commit builds under UNIX environment by checking CI status.
2222

23-
* Set environment variable `ANDROID_HOME` to `/path/to/android-sdk`
24-
* (optional) Set environment variable `ANDROID_NDK_HOME` to `/path/to/android-ndk` (default: `$ANDROID_HOME/ndk-bundle`)
2523
* Clone the repo using `git clone --recurse-submodules <repo>` or update submodules using `git submodule update --init --recursive`
2624
* Build it using Android Studio or gradle script
2725

app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ task goBuild(type: Exec) {
5050
} else {
5151
executable "sh"
5252
args "-c", "src/make.bash " + minSdkVersion
53+
environment "ANDROID_HOME", android.sdkDirectory
54+
environment "ANDROID_NDK_HOME", android.ndkDirectory
5355
}
5456
}
5557

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

0 commit comments

Comments
 (0)