From 383ec778ae11884f90d04da7e2f3b3ce7fe2e428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kelven=20Galv=C3=A3o?= <32758755+irvine5k@users.noreply.github.com> Date: Thu, 7 Jul 2022 23:32:40 +0200 Subject: [PATCH] Fixing android build problem on Flutter 2.10 (#174) * Bumped compileSdkVersion and Kotlin version * Updated pubspec and CHANGELOG --- wakelock/CHANGELOG.md | 4 ++++ wakelock/android/build.gradle | 4 ++-- wakelock/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wakelock/CHANGELOG.md b/wakelock/CHANGELOG.md index 4a3d7808..755228d7 100644 --- a/wakelock/CHANGELOG.md +++ b/wakelock/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.2 + +* Fixed Android build issues. + ## 0.6.1+2 * Documented the recommendation of not calling `Wakelock.enable()` directly inside of `main()`. diff --git a/wakelock/android/build.gradle b/wakelock/android/build.gradle index be08f193..81bb9f55 100644 --- a/wakelock/android/build.gradle +++ b/wakelock/android/build.gradle @@ -2,7 +2,7 @@ group 'creativemaybeno.wakelock' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.5.31' + ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() @@ -25,7 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 29 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/wakelock/pubspec.yaml b/wakelock/pubspec.yaml index 6a6576bd..47e804a8 100644 --- a/wakelock/pubspec.yaml +++ b/wakelock/pubspec.yaml @@ -2,7 +2,7 @@ name: wakelock description: >-2 Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on Android, iOS, macOS, Windows, and web. -version: 0.6.1+2 +version: 0.6.2 repository: https://github.com/creativecreatorormaybenot/wakelock/tree/main/wakelock environment: