Skip to content

Commit

Permalink
Clean up the bumped SDK/Java versions (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
mblcdr authored Jan 11, 2024
1 parent f74c690 commit 770a7c0
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 34 deletions.
15 changes: 11 additions & 4 deletions bank/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ android {
test.java.srcDirs += ["${project(':core').projectDir}/src/test/java"]
}
defaultConfig {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
gradle.startParameter.taskNames.each {
if (it.contains("AndroidTest")) {
//io.mockk has a bug that does not allow use a version of minSdk less than 26
minSdkVersion buildConfig.androidTestMinSdk
} else {
minSdkVersion buildConfig.minSdk
}
}

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -45,12 +52,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down
5 changes: 4 additions & 1 deletion buildsystem/config.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
ext {
buildConfig = [
compileSdk: 34,
minSdk: 26,
minSdk: 23,
androidTestMinSdk: 26,
targetSdk: 33,
jvmTarget: '17',
javaVersion: JavaVersion.VERSION_17
]
libConfig = [
resourcePrefix: 'identhub_'
Expand Down
6 changes: 3 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down
22 changes: 14 additions & 8 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,29 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = buildConfig.jvmTarget
}
}

dependencies {
implementation project(path: ':bank')
implementation project(path: ':fourthline')
implementation project(path: ':qes')
implementation project(path: ':startup')
implementation project(path: ':session')
implementation project(path: ':mockro')

implementation timber
implementation kotlinCore
implementation support
implementation activity
implementation fragment
implementation lifecycle.libs
implementation koin
implementation project(path: ':bank')
implementation project(path: ':fourthline')
implementation project(path: ':qes')
implementation project(path: ':startup')
implementation project(path: ':session')
implementation project(path: ':mockro')

}
6 changes: 3 additions & 3 deletions fourthline/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down
14 changes: 8 additions & 6 deletions mockro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {

android {
namespace 'de.solarisbank.identhub.mockro'
compileSdk 33
compileSdk buildConfig.compileSdk

defaultConfig {
minSdk 26
targetSdk 33
minSdk buildConfig.minSdk
targetSdk buildConfig.targetSdk

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand All @@ -21,12 +21,14 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}
}

Expand Down
6 changes: 3 additions & 3 deletions qes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down
6 changes: 3 additions & 3 deletions session/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down
6 changes: 3 additions & 3 deletions startup/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility buildConfig.javaVersion
targetCompatibility buildConfig.javaVersion
}

kotlinOptions {
jvmTarget = '17'
jvmTarget = buildConfig.jvmTarget
}

testOptions {
Expand Down

0 comments on commit 770a7c0

Please sign in to comment.