From 806f382a73328decac7391a811cc1d64cbca194d Mon Sep 17 00:00:00 2001 From: biancalui-emarsys Date: Tue, 8 Oct 2024 13:10:09 +0800 Subject: [PATCH] chore: dependencies-update --- build.gradle | 6 +++--- emarsys-mobile-inbox/build.gradle | 12 +++++++----- gradle/wrapper/gradle-wrapper.properties | 2 +- sample/build.gradle | 13 ++++++++++++- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 59c9c8b..6805208 100644 --- a/build.gradle +++ b/build.gradle @@ -1,16 +1,16 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { - kotlin_version = '1.8.10' + kotlin_version = '1.9.25' } repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:8.7.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7' + classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.8.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/emarsys-mobile-inbox/build.gradle b/emarsys-mobile-inbox/build.gradle index a73a842..3fcf723 100644 --- a/emarsys-mobile-inbox/build.gradle +++ b/emarsys-mobile-inbox/build.gradle @@ -23,6 +23,7 @@ android { compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 + coreLibraryDesugaringEnabled true } kotlinOptions { @@ -41,17 +42,18 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'androidx.recyclerview:recyclerview:1.3.2' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' - implementation 'androidx.fragment:fragment-ktx:1.6.0' + implementation 'androidx.fragment:fragment-ktx:1.8.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' - implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1' - implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7' - implementation 'androidx.navigation:navigation-ui-ktx:2.7.7' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6' + implementation 'androidx.navigation:navigation-fragment-ktx:2.8.2' + implementation 'androidx.navigation:navigation-ui-ktx:2.8.2' implementation 'com.google.android.material:material:1.12.0' implementation "com.emarsys:emarsys-sdk:$emarsys_sdk_version" implementation 'com.squareup.picasso:picasso:2.71828' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.2' } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 605debc..1cd6884 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue Mar 28 15:06:26 CEST 2023 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/sample/build.gradle b/sample/build.gradle index 30e1c31..9c5fb5f 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -22,6 +22,16 @@ android { versionName emarsys_sdk_version } + compileOptions { + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + coreLibraryDesugaringEnabled true + } + + kotlinOptions { + jvmTarget = '11' + } + buildTypes { release { minifyEnabled false @@ -34,8 +44,9 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.13.1' - implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation "com.emarsys:emarsys-sdk:$emarsys_sdk_version" implementation project(':emarsys-mobile-inbox') + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.2' } \ No newline at end of file