mirror of
https://github.com/nextcloud/android.git
synced 2024-11-21 20:55:31 +03:00
Add NDK to buildDev
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
ec98c5db52
commit
d9b8b3baf8
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue