Skip to content

Commit

Permalink
Update the android ndk version to 21. (#6318)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisou authored and arturoc committed Jul 1, 2019
1 parent 37ea29f commit 97b291e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/openFrameworksCompiled/project/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ model {
}

ndk {
platformVersion = "19"
platformVersion = "21"
moduleName "openFrameworksLib"
toolchain = buildToolchain()
stl = compilerStl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def getFlavorName(abi) {
}

def getAbis(){
return ["armeabi-v7a", "x86"]
return ["arm64-v8a", "armeabi-v7a", "x86"]
}

def ofAppModuleName(){
Expand Down
3 changes: 2 additions & 1 deletion scripts/dev/download_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cat << EOF
vs2015: 32 or 64
vs2017: 32 or 64
msys2: 32
android: armv7 or x86 (if not specified will download both)
android: armv7, arm64, and x86 (if not specified will download all)
linux: 64gcc4, 64gcc5, 64gcc6 / 64, armv6l or armv7l
-n, --no-overwrite Merge new libraries with exisiting ones, use only to download same version for different platforms
If not set deletes any existing libraries
Expand Down Expand Up @@ -172,6 +172,7 @@ elif [ "$ARCH" == "" ] && [[ "$PLATFORM" == "osx" || "$PLATFORM" == "ios" || "$P
openFrameworksLibs_${VER}_${PLATFORM}4.tar.bz2"
elif [ "$ARCH" == "" ] && [ "$PLATFORM" == "android" ]; then
PKGS="openFrameworksLibs_${VER}_${PLATFORM}armv7.tar.bz2 \
openFrameworksLibs_${VER}_${PLATFORM}arm64.tar.bz2 \
openFrameworksLibs_${VER}_${PLATFORM}x86.tar.bz2"
else # Linux
PKGS="openFrameworksLibs_${VER}_${PLATFORM}${ARCH}.tar.bz2"
Expand Down
4 changes: 2 additions & 2 deletions scripts/templates/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.model.application'

model {
android {
// openFrameworks currently only supports compiling against SDK 19
// openFrameworks currently only supports compiling against SDK 19 or nweer
compileSdkVersion = 25
buildToolsVersion = "25.0.3"

Expand All @@ -41,7 +41,7 @@ model {
moduleName = ofAppModuleName()
toolchain = buildToolchain()
stl = compilerStl()
platformVersion = "19"
platformVersion = "21"
}

android.sources {
Expand Down

0 comments on commit 97b291e

Please sign in to comment.