Skip to content

Commit

Permalink
Build: Extract all sdk version to a separate ext block
Browse files Browse the repository at this point in the history
  • Loading branch information
ParaskP7 committed Jul 4, 2023
1 parent f29c615 commit 92ecfe2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

ext {
minSdkVersion = 15
compileSdkVersion = 29
targetSdkVersion = 29
}

ext {
wellSqlAnnotationsProjectDependency = project.hasProperty("wellSqlAnnotationsVersion") ? "org.wordpress.wellsql:wellsql-annotations:${project.getProperty("wellSqlAnnotationsVersion")}" : project(":well-annotations")
}
6 changes: 3 additions & 3 deletions well-sample-addon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ plugins {
}

android {
compileSdkVersion 29
compileSdkVersion rootProject.compileSdkVersion

defaultConfig {
minSdkVersion 15
targetSdkVersion 29
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode 1
versionName "1.0"
}
Expand Down
6 changes: 3 additions & 3 deletions well-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ plugins {
}

android {
compileSdkVersion 29
compileSdkVersion rootProject.compileSdkVersion

defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
applicationId "com.yarolegovich.wellsample"
minSdkVersion 15
targetSdkVersion 29
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode 1
versionName "1.0"
}
Expand Down
6 changes: 3 additions & 3 deletions wellsql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

android {
compileSdkVersion 29
compileSdkVersion rootProject.compileSdkVersion

defaultConfig {
minSdkVersion 15
targetSdkVersion 29
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
}
buildTypes {
release {
Expand Down

0 comments on commit 92ecfe2

Please sign in to comment.