Commit 80f9010c authored by Yusuke Iwaki's avatar Yusuke Iwaki

improve minSdkVersion definition.

parent 9905de3a
...@@ -9,7 +9,6 @@ before_script: ...@@ -9,7 +9,6 @@ before_script:
- echo y | android update sdk --no-ui --all --filter extra-google-m2repository,extra-google-google_play_services - echo y | android update sdk --no-ui --all --filter extra-google-m2repository,extra-google-google_play_services
- echo y | android update sdk --no-ui --all --filter build-tools-25.0.1 - echo y | android update sdk --no-ui --all --filter build-tools-25.0.1
- ./gradlew dependencies - ./gradlew dependencies
- sed -i -e 's/minSdkVersion = 21/minSdkVersion = 17/g' dependencies.gradle
script: script:
- ./gradlew checkstyle findbugs pmd - ./gradlew checkstyle findbugs pmd
...@@ -27,6 +27,11 @@ android { ...@@ -27,6 +27,11 @@ android {
versionName "0.0.8" versionName "0.0.8"
} }
buildTypes { buildTypes {
debug {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersionDebug
}
}
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
......
...@@ -48,6 +48,11 @@ android { ...@@ -48,6 +48,11 @@ android {
} }
} }
buildTypes { buildTypes {
debug {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersionDebug
}
}
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
......
...@@ -5,7 +5,8 @@ ext { ...@@ -5,7 +5,8 @@ ext {
retroLambdaPatch = 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2' retroLambdaPatch = 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
compileSdkVersion = 25 compileSdkVersion = 25
buildToolsVersion = '25.0.1' buildToolsVersion = '25.0.1'
minSdkVersion = 21 //for accelerating multi-dex build. OVERRIDEN BY Circle CI to 17 minSdkVersionDebug = 21
minSdkVersion = 17
supportVersion = '25.0.1' supportVersion = '25.0.1'
supportAnnotations = "com.android.support:support-annotations:$supportVersion" supportAnnotations = "com.android.support:support-annotations:$supportVersion"
......
...@@ -29,6 +29,11 @@ android { ...@@ -29,6 +29,11 @@ android {
versionName "1" versionName "1"
} }
buildTypes { buildTypes {
debug {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersionDebug
}
}
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
......
...@@ -22,6 +22,11 @@ android { ...@@ -22,6 +22,11 @@ android {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
} }
buildTypes { buildTypes {
debug {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersionDebug
}
}
release { release {
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment