Skip to content

Commit

Permalink
Updated gradle configuration for kotlin 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-saia-datadog committed Aug 26, 2024
1 parent 51df5e6 commit e6adb9b
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 41 deletions.
2 changes: 1 addition & 1 deletion example-new-architecture/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
kotlinVersion = "1.9.0"
}
repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.0"
kotlinVersion = "1.9.0"
}
repositories {
google()
Expand Down
17 changes: 8 additions & 9 deletions packages/core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.android.tools.build:gradle:8.0.0'
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.5.1"
Expand Down Expand Up @@ -107,14 +107,13 @@ android {
buildConfig = true
}
}
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.majorVersion
}

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DdSdkReactNative_kotlinVersion=1.7.21
DdSdkReactNative_kotlinVersion=1.9.0
DdSdkReactNative_compileSdkVersion=33
DdSdkReactNative_buildToolsVersion=33.0.0
DdSdkReactNative_targetSdkVersion=33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
22 changes: 9 additions & 13 deletions packages/internal-testing-tools/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.android.tools.build:gradle:8.0.0'
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.5.1"
Expand Down Expand Up @@ -102,14 +102,14 @@ android {
buildConfig = true
}
}
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.majorVersion
}

defaultConfig {
Expand Down Expand Up @@ -147,10 +147,6 @@ android {
lintOptions {
disable 'GradleCompatible'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion packages/internal-testing-tools/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DatadogInternalTesting_kotlinVersion=1.7.21
DatadogInternalTesting_kotlinVersion=1.9.0
DatadogInternalTesting_compileSdkVersion=33
DatadogInternalTesting_buildToolsVersion=33.0.0
DatadogInternalTesting_targetSdkVersion=33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
22 changes: 11 additions & 11 deletions packages/react-native-session-replay/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.android.tools.build:gradle:8.0.0'
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.5.1"
Expand Down Expand Up @@ -105,14 +105,14 @@ android {
buildConfig = true
}
}
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.majorVersion
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.majorVersion
}

defaultConfig {
Expand Down Expand Up @@ -151,8 +151,8 @@ android {
disable 'GradleCompatible'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DatadogSDKReactNativeSessionReplay_kotlinVersion=1.7.21
DatadogSDKReactNativeSessionReplay_kotlinVersion=1.9.0
DatadogSDKReactNativeSessionReplay_compileSdkVersion=33
DatadogSDKReactNativeSessionReplay_buildToolsVersion=33.0.0
DatadogSDKReactNativeSessionReplay_targetSdkVersion=33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip

0 comments on commit e6adb9b

Please sign in to comment.