Add NDK to buildDev

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-03-16 07:31:08 +01:00
parent ec98c5db52
commit d9b8b3baf8
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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