Skip to content

Commit

Permalink
Issue fluttercommunity#37. Downgraded the Android plugin's minimum Ko…
Browse files Browse the repository at this point in the history
…tlin version to 1.7, which should make it widely compatible with current Flutter Android integrations. Updated example app to this effect.
  • Loading branch information
diegotori committed Apr 2, 2024
1 parent a7cd961 commit 847f317
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
16 changes: 14 additions & 2 deletions wakelock_plus/android/build.gradle
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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'
}
Expand Down
4 changes: 2 additions & 2 deletions wakelock_plus/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions wakelock_plus/example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 847f317

Please sign in to comment.