Skip to content

Commit

Permalink
Add 'slim' and 'full' configurations for Android SDK
Browse files Browse the repository at this point in the history
Also add debug flags for demo app debug configuration
  • Loading branch information
matteblair committed Dec 22, 2016
1 parent e2625e1 commit 54f4b13
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
10 changes: 9 additions & 1 deletion android/demo/build.gradle
Expand Up @@ -14,8 +14,16 @@ android {
}

aaptOptions.ignoreAssetsPattern "!*.ttf"

buildTypes {
debug {
debuggable true
jniDebuggable true
}
}
}

dependencies {
compile project(":tangram")
debugCompile project(path: ':tangram', configuration: 'slimDebug')
releaseCompile project(path: ':tangram', configuration: 'slimRelease')
}
16 changes: 9 additions & 7 deletions android/tangram/build.gradle
Expand Up @@ -8,13 +8,6 @@ apply from: 'versioning.gradle'

android {
compileSdkVersion 25

/*
* Ubuntu can't run the aapt on 64 bit before installing this packages
* sudo apt-get install lib32stdc++6
* sudo apt-get install lib32z1
*/

buildToolsVersion '25.0.0'

defaultConfig {
Expand Down Expand Up @@ -44,6 +37,15 @@ android {
}
}

productFlavors {
slim {
// Default configuration
}
full {
externalNativeBuild.cmake.abiFilters 'armeabi', 'arm64-v8a', 'x86'
}
}
publishNonDefault true
}

dependencies {
Expand Down

0 comments on commit 54f4b13

Please sign in to comment.