summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-02 01:18:03 +0100
committercyBerta <cyberta@riseup.net>2018-02-02 01:18:03 +0100
commit55abdcc6ec0773864ac16a74880c40c929e12c1d (patch)
treeb4ab16ab95a8d4a6e67f2f110d5cb74d8b19566a
parent6c354ccbe8640e3959d97610ebc33e08de863821 (diff)
#8832 add gradle task for license issue
-rw-r--r--app/build.gradle5
-rw-r--r--docker/android-ndk/Dockerfile3
2 files changed, 7 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 9eca4753..edfa9439 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -326,6 +326,11 @@ task cleanNative( type: Delete ) {
}
}
+task updateSdkLicences ( type: Exec ) {
+ println "say yes to licenses"
+ commandLine 'sh', 'yes', '|', 'sdkmanager', '--licenses'
+}
+
def getCurrentFlavorForBetaOrRelease() {
Gradle gradle = getGradle()
String tskReqStr = gradle.getStartParameter().getTaskRequests().toString()
diff --git a/docker/android-ndk/Dockerfile b/docker/android-ndk/Dockerfile
index ffae4de4..21b7dec0 100644
--- a/docker/android-ndk/Dockerfile
+++ b/docker/android-ndk/Dockerfile
@@ -35,4 +35,5 @@ RUN curl -L $ANDROID_NDK_URL -o ndk.zip \
ENV PATH ${PATH}:${ANDROID_NDK_HOME}
# Accept all licenses
-RUN yes | sdkmanager --licenses \ No newline at end of file
+RUN yes | sdkmanager --licenses
+RUN sdkmanager --list \ No newline at end of file