diff --git a/wakelock_plus/android/build.gradle b/wakelock_plus/android/build.gradle index cb99370..c5448e6 100644 --- a/wakelock_plus/android/build.gradle +++ b/wakelock_plus/android/build.gradle @@ -1,7 +1,19 @@ group 'dev.fluttercommunity.plus.wakelock' version '1.0-SNAPSHOT' -allprojects { +buildscript { + ext.kotlin_version = '1.7.22' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:8.3.1' + } +} + +rootProject.allprojects { repositories { google() mavenCentral() @@ -38,7 +50,7 @@ android { } dependencies { - implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.23' + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testImplementation 'org.jetbrains.kotlin:kotlin-test' testImplementation 'org.mockito:mockito-core:5.0.0' } diff --git a/wakelock_plus/example/android/app/build.gradle b/wakelock_plus/example/android/app/build.gradle index 46c7c69..678448f 100644 --- a/wakelock_plus/example/android/app/build.gradle +++ b/wakelock_plus/example/android/app/build.gradle @@ -22,9 +22,9 @@ if (flutterVersionName == null) { } android { - namespace 'dev.fluttercommunity.plus.wakelock_example' compileSdk 34 - ndkVersion '25.1.8937393' + ndkVersion "25.1.8937393" + namespace 'dev.fluttercommunity.plus.wakelock_example' compileOptions { sourceCompatibility JavaVersion.VERSION_17 diff --git a/wakelock_plus/example/android/settings.gradle b/wakelock_plus/example/android/settings.gradle index 6b7d88e..d78c69d 100644 --- a/wakelock_plus/example/android/settings.gradle +++ b/wakelock_plus/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id 'dev.flutter.flutter-plugin-loader' version '1.0.0' - id 'com.android.application' version '8.3.0' apply false - id 'org.jetbrains.kotlin.android' version '1.9.22' apply false + id 'com.android.application' version '8.3.1' apply false + id 'org.jetbrains.kotlin.android' version '1.8.22' apply false } include ':app'