From d9b8b3baf8237059bca7f8b8cc2d876808b33e19 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 16 Mar 2022 07:31:08 +0100 Subject: [PATCH] Add NDK to buildDev Signed-off-by: tobiasKaminsky --- scripts/buildDev | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/buildDev b/scripts/buildDev index 3bba06e639..3f62e4facb 100755 --- a/scripts/buildDev +++ b/scripts/buildDev @@ -11,6 +11,17 @@ sed -i "/versionDev/,/\}/ s/versionName .*/versionName \"$date\"/" build.gradle sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion =\"$libraryCommit\"#" build.gradle # build signed apk +source ndk.env +yes | sdkmanager --licenses + +if [ ! -e ~/android-sdk/ndk/${NDK_VERSION} ]; then + sdkmanager "ndk;${NDK_VERSION}" +fi + +if [ ! -e ~/android-sdk/cmake/${CMAKE_VERSION} ]; then + sdkmanager "cmake;${CMAKE_VERSION}" +fi + ./gradlew assembleVersionDevRelease >> /tmp/dev.log 2>&1 if [ $? != 0 ] ; then