Skip to content

Commit

Permalink
chore: Update Core2 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 27, 2024
1 parent 7bbb14c commit 86176e2
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 34 deletions.
14 changes: 9 additions & 5 deletions Core2/Matomo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ plugins {
alias(libs.plugins.kotlin.android)
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.matomo"
compileSdk = 34
compileSdk = sharedCompileSdk

defaultConfig {
minSdk = 24
minSdk = sharedMinSdk

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -24,16 +28,16 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}

buildFeatures {
buildConfig = true
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = sharedJavaVersion.toString()
}
}

Expand Down
14 changes: 9 additions & 5 deletions Core2/Network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ plugins {
alias(libs.plugins.kotlin.android)
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.network"
compileSdk = 34
compileSdk = sharedCompileSdk

defaultConfig {
minSdk = 24
minSdk = sharedMinSdk

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -21,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = sharedJavaVersion.toString()
}
}

Expand Down
14 changes: 9 additions & 5 deletions Core2/Sentry/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ plugins {
alias(libs.plugins.kotlin.android)
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.sentry"
compileSdk = 34
compileSdk = sharedCompileSdk

defaultConfig {
minSdk = 24
minSdk = sharedMinSdk

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -21,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = sharedJavaVersion.toString()
}
}

Expand Down
14 changes: 9 additions & 5 deletions Core2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ plugins {
alias(libs.plugins.kotlin.android)
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.core2"
compileSdk = 34
compileSdk = sharedCompileSdk

defaultConfig {
minSdk = 24
minSdk = sharedMinSdk

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -21,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = sharedJavaVersion.toString()
}
}

Expand Down
14 changes: 9 additions & 5 deletions FileTypes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ plugins {
alias(libs.plugins.compose.compiler)
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.library.filetypes"
compileSdk = 34
compileSdk = sharedCompileSdk

defaultConfig {
minSdk = 24
minSdk = sharedMinSdk

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand All @@ -22,11 +26,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = sharedJavaVersion.toString()
}
buildFeatures {
compose = true
Expand Down
14 changes: 7 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ plugins {
kotlin("plugin.serialization") version libs.versions.kotlin
}

val sharedCompileSdk: Int by rootProject.extra
val sharedMinSdk: Int by rootProject.extra
val sharedTargetSdk: Int by rootProject.extra
val javaVersion: JavaVersion by rootProject.extra
val sharedJavaVersion: JavaVersion by rootProject.extra

android {
namespace = "com.infomaniak.swisstransfer"
compileSdk = sharedTargetSdk
compileSdk = sharedCompileSdk

defaultConfig {
applicationId = "com.infomaniak.swisstransfer"
minSdk = sharedMinSdk
targetSdk = sharedTargetSdk
targetSdk = sharedCompileSdk
versionCode = 1 // 0_00_000_01 TODO: Update when released in prod
versionName = "0.0.1-Alpha1"

Expand All @@ -45,11 +45,11 @@ android {
}

compileOptions {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
sourceCompatibility = sharedJavaVersion
targetCompatibility = sharedJavaVersion
}
kotlinOptions {
jvmTarget = javaVersion.toString()
jvmTarget = sharedJavaVersion.toString()
}
buildFeatures {
compose = true
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
extra.apply {
set("sharedTargetSdk", 35)
set("sharedCompileSdk", 35)
set("sharedMinSdk", 24)
set("javaVersion", JavaVersion.VERSION_17)
set("sharedJavaVersion", JavaVersion.VERSION_17)
}
}

Expand Down

0 comments on commit 86176e2

Please sign in to comment.