diff --git a/android/build.gradle b/android/build.gradle index b58601c..2975a7a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -3,7 +3,7 @@ version '2.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.9.0' - ext.raxel_tracking = '2.2.257' + ext.raxel_tracking = '2.2.259' repositories { google() jcenter() @@ -11,7 +11,7 @@ buildscript { dependencies { //noinspection GradleDependency - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:8.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -30,8 +30,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 33 - + compileSdkVersion 34 + namespace "com.telematicssdk" sourceSets { main.java.srcDirs += 'src/main/kotlin' } @@ -42,6 +42,11 @@ android { lintOptions { disable 'InvalidPackage' } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } } dependencies { diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index e1ca574..b5fc5a7 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index a811bba..ec52e85 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 909d0e1..5fbd203 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,8 +26,8 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 33 - + compileSdkVersion 34 + namespace "com.telematicssdk.example" sourceSets { main.java.srcDirs += 'src/main/kotlin' } @@ -40,11 +40,16 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.telematicssdk.example" minSdkVersion 24 - targetSdkVersion 30 + targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + buildTypes { release { // TODO: Add your own signing config for the release build. @@ -63,5 +68,5 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation "com.telematicssdk:tracking:2.2.257" + implementation "com.telematicssdk:tracking:2.2.259" } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index d5ce095..9265f54 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ + xmlns:tools="http://schemas.android.com/tools">