Skip to content

Commit

Permalink
Merge pull request android#101 from proppy/bump-gradle-3
Browse files Browse the repository at this point in the history
bump gradle android plugin to 0.4.0
  • Loading branch information
proppy committed Nov 13, 2015
2 parents 1daf421 + 521eaa1 commit c6d9ebc
Show file tree
Hide file tree
Showing 49 changed files with 146 additions and 150 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: android
sudo: false
android:
components:
- platform-tools
- build-tools-23.0.0
- android-23
- extra-google-m2repository
Expand Down
20 changes: 9 additions & 11 deletions MoreTeapots/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ model {
}

android.ndk {
moduleName ="MoreTeapotsNativeActivity"
cppFlags += "-I${file("src/main/jni/cpufeatures")}".toString()
cppFlags += "-I${file("src/main/jni/native_app_glue")}".toString()
cppFlags += "-I${file("src/main/jni/ndk_helper")}".toString()

moduleName = "MoreTeapotsNativeActivity"
cppFlags.addAll(["-I${file("src/main/jni/cpufeatures")}".toString(),
"-I${file("src/main/jni/native_app_glue")}".toString(),
"-I${file("src/main/jni/ndk_helper")}".toString()])
// CFlags is configured in similiar way as cppFlags
// CFlags += "-I${file("src/main/jni/native_app_glue")}".toString()

ldLibs += ["android", "EGL", "GLESv2","log"]
// CFlags.add("-I${file("src/main/jni/native_app_glue")}".toString())
ldLibs.addAll(["android", "EGL", "GLESv2","log"])
stl = "stlport_static"
}

Expand All @@ -42,13 +40,13 @@ model {

android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion MoreTeapots/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion MoreTeapots/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
19 changes: 9 additions & 10 deletions Teapot/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ model {

android.ndk {
moduleName = "TeapotNativeActivity"
cppFlags += "-I${file("src/main/jni/native_app_glue")}".toString()
cppFlags += "-I${file("src/main/jni/cpufeatures")}".toString()
cppFlags += "-I${file("src/main/jni/ndk_helper")}".toString()

cppFlags.addAll(["-I${file("src/main/jni/native_app_glue")}".toString(),
"-I${file("src/main/jni/cpufeatures")}".toString(),
"-I${file("src/main/jni/ndk_helper")}".toString()])
// CFlags is configured in similar way as cppFlags
// CFlags += "-I${file("src/main/jni/native_app_glue")}".toString()
ldLibs += ["android", "EGL", "GLESv2", "dl", "log"]
// CFlags.add("-I${file("src/main/jni/native_app_glue")}".toString())
ldLibs.addAll(["android", "EGL", "GLESv2", "dl", "log"])
stl = "stlport_static"
}
// jni is the default dir; config this if yours is in different directory
Expand All @@ -42,18 +41,18 @@ model {
android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.txt')
proguardFiles.add(file('proguard-rules.txt'))
}
}
android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion Teapot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion Teapot/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
9 changes: 3 additions & 6 deletions audio-echo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ model {

android.ndk {
moduleName = "echo"
cppFlags += ["-std=c++11"]
ldLibs += ['android', 'log', 'OpenSLES']
cppFlags.add("-std=c++11")
ldLibs.addAll(['android', 'log', 'OpenSLES'])
stl = "gnustl_static"
}
android.buildTypes {
release {
minifyEnabled=false
proguardFiles+=file('proguard-android.txt')
}
debug {
debuggable = true
proguardFiles.add(file('proguard-android.txt'))
}
}
android.productFlavors {
Expand Down
2 changes: 1 addition & 1 deletion audio-echo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion audio-echo/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
12 changes: 5 additions & 7 deletions bitmap-plasma/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,24 @@ model {

android.ndk {
moduleName = "plasma"
ldLibs += ["m","log","jnigraphics"]
ldLibs.addAll(["m","log","jnigraphics"])
}

android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.txt')

println(proguardFiles)
proguardFiles.add(file('proguard-rules.txt'))
}
}
android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion bitmap-plasma/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion bitmap-plasma/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
14 changes: 7 additions & 7 deletions endless-tunnel/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ model {

android.ndk {
moduleName = "game"
cppFlags += "-I${file("src/main/jni/native_app_glue")}".toString()
cppFlags += "-I${file("src/main/jni")}".toString()
cppFlags += "-I${file("src/main/jni/data")}".toString()
ldLibs += ["android", "EGL", "GLESv2", "OpenSLES", "log"]
cppFlags.addAll(["-I${file("src/main/jni/native_app_glue")}".toString(),
"-I${file("src/main/jni")}".toString(),
"-I${file("src/main/jni/data")}".toString()])
ldLibs.addAll(["android", "EGL", "GLESv2", "OpenSLES", "log"])
stl = "stlport_static"
}
android.lintOptions {
Expand All @@ -54,13 +54,13 @@ model {

android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion endless-tunnel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion endless-tunnel/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
16 changes: 7 additions & 9 deletions gles3jni/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,27 @@ model {
}
android.ndk {
moduleName = "gles3jni"
cppFlags += "-Werror"
cppFlags += "-fno-rtti"
cppFlags += "-fno-exceptions"
CFlags += ["-Werror"]
ldLibs += ["log","GLESv3", "EGL"]
cppFlags.addAll(["-Werror", "-fno-rtti", "-fno-exceptions"])
CFlags.add("-Werror")
ldLibs.addAll(["log","GLESv3", "EGL"])
stl = "stlport_static"
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.txt')
proguardFiles.add(file('proguard-rules.txt'))
}
}

android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion gles3jni/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion gles3jni/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
12 changes: 6 additions & 6 deletions hello-gl2/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ model {

android.ndk {
moduleName = "gl2jni"
cppFlags += "-Werror"
ldLibs += ["log", "GLESv2"]
cppFlags.add("-Werror")
ldLibs.addAll(["log", "GLESv2"])
}

android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.txt')
proguardFiles.add(file('proguard-rules.txt'))
}
}

android.productFlavors {
create ("arm7") {
ndk.abiFilters += "armeabi-v7a"
ndk.abiFilters.add("armeabi-v7a")
}
create ("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.abiFilters.add("arm64-v8a")
}
create ("x86-32") {
ndk.abiFilters += "x86"
ndk.abiFilters.add("x86")
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
Expand Down
2 changes: 1 addition & 1 deletion hello-gl2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.0'
classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}
}

Expand Down
2 changes: 1 addition & 1 deletion hello-gl2/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
Loading

0 comments on commit c6d9ebc

Please sign in to comment.