diff options
-rw-r--r-- | app/build.gradle | 5 | ||||
-rw-r--r-- | docker/android-ndk/Dockerfile | 3 |
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 |