Skip to content

Unify android sdk version configuration. #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fiamui-app/fiamui-app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
apply plugin: "com.android.application"

android {
compileSdkVersion 27
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId "com.example.firebase.fiamui"
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
8 changes: 3 additions & 5 deletions firebase-common/firebase-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@

apply plugin: 'com.android.library'

def androidVersion = 28

android {
adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
minSdkVersion 14
targetSdkVersion androidVersion
minSdkVersion project.minSdkVersion
targetSdkVersion project.targetSdkVersion
versionName version
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@

apply plugin: 'com.android.library'

def androidVersion = 28

android {
compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
minSdkVersion 9
}
Expand Down
9 changes: 3 additions & 6 deletions firebase-database/firebase-database.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

apply plugin: 'com.android.library'

def androidVersion = 28


tasks.withType(org.gradle.api.tasks.testing.Test) {
testLogging {
exceptionFormat = 'full'
Expand All @@ -32,10 +29,10 @@ android {
timeOutInMs 60 * 1000
}

compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
targetSdkVersion androidVersion
minSdkVersion 14
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
versionName version
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
8 changes: 3 additions & 5 deletions firebase-firestore/firebase-firestore.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
apply plugin: 'com.android.library'
apply plugin: 'com.google.protobuf'

def androidVersion = 28

protobuf {
// Configure the protoc executable
protoc {
Expand Down Expand Up @@ -53,10 +51,10 @@ android {
timeOutInMs 60 * 1000
}

compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
targetSdkVersion androidVersion
minSdkVersion 14
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
versionName version
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
8 changes: 3 additions & 5 deletions firebase-functions/firebase-functions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@

apply plugin: 'com.android.library'

def androidVersion = 28

android {
adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
targetSdkVersion androidVersion
minSdkVersion 14
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
versionName version
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
apply plugin: "com.android.library"

android {
compileSdkVersion 28

compileSdkVersion project.targetSdkVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
8 changes: 3 additions & 5 deletions firebase-storage/firebase-storage.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

apply plugin: 'com.android.library'

def androidVersion = 28


tasks.withType(org.gradle.api.tasks.testing.Test) {
testLogging {
Expand All @@ -32,10 +30,10 @@ android {
timeOutInMs 60 * 1000
}

compileSdkVersion androidVersion
compileSdkVersion project.targetSdkVersion
defaultConfig {
targetSdkVersion androidVersion
minSdkVersion 14
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
multiDexEnabled true
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
7 changes: 3 additions & 4 deletions protolite-well-known-types/protolite-well-known-types.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ protobuf {
}
}
android {
compileSdkVersion 28

compileSdkVersion project.targetSdkVersion
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
minSdkVersion project.minSdkVersion
versionCode 1
versionName '1.0'
}
Expand Down
2 changes: 2 additions & 0 deletions root-project.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ buildscript {
}
}

apply from: 'sdkProperties.gradle'

ext {
playServicesVersion = '16.0.1'
supportAnnotationsVersion = '28.0.0'
Expand Down
18 changes: 18 additions & 0 deletions sdkProperties.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

ext {
targetSdkVersion = 28
minSdkVersion = 14
}
2 changes: 2 additions & 0 deletions test-apps/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ plugins {
id 'com.github.ben-manes.versions' version '0.20.0'
}

apply from: '../sdkProperties.gradle'

allprojects {
ext.testBuildType = project.getProperties().get("testBuildType", "debug")

Expand Down
4 changes: 2 additions & 2 deletions test-apps/database-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
testBuildType = project.testBuildType
compileSdkVersion 28
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId "com.google.firebase.testapps.database"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
4 changes: 2 additions & 2 deletions test-apps/firestore-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
testBuildType = project.testBuildType
compileSdkVersion 28
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId "com.google.firebase.testapps.firestore"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
4 changes: 2 additions & 2 deletions test-apps/functions-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
testBuildType = project.testBuildType
compileSdkVersion 28
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId "com.google.firebase.testapps.functions"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
Expand Down
4 changes: 2 additions & 2 deletions test-apps/storage-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
testBuildType = project.testBuildType
compileSdkVersion 28
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId "com.google.firebase.testapps.storage"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
8 changes: 4 additions & 4 deletions tools/apksize/default.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ android {
abortOnError false
checkReleaseBuilds false
}
compileSdkVersion 26
compileSdkVersion project.targetSdkVersion

defaultConfig {
applicationId 'com.google.apksize'
minSdkVersion 26
multiDexEnabled true
targetSdkVersion 26
minSdkVersion project.targetSdkVersion
multiDexEnabled true
targetSdkVersion project.targetSdkVersion
versionCode 1
versionName '1.0'
}
Expand Down