diff --git a/just_audio_background/CHANGELOG.md b/just_audio_background/CHANGELOG.md index 9370c9863..5ae15568b 100644 --- a/just_audio_background/CHANGELOG.md +++ b/just_audio_background/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.1-beta.3 + +* Fix build when targeting Android 12. + ## 0.0.1-beta.2 * Remove Android notification on stop. diff --git a/just_audio_background/example/android/app/build.gradle b/just_audio_background/example/android/app/build.gradle index 31b771066..b59d20728 100644 --- a/just_audio_background/example/android/app/build.gradle +++ b/just_audio_background/example/android/app/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 lintOptions { disable 'InvalidPackage' @@ -35,7 +35,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.ryanheise.just_audio_example" minSdkVersion 19 - targetSdkVersion 28 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/just_audio_background/example/android/app/src/main/AndroidManifest.xml b/just_audio_background/example/android/app/src/main/AndroidManifest.xml index f2a6e91c8..b949ef987 100644 --- a/just_audio_background/example/android/app/src/main/AndroidManifest.xml +++ b/just_audio_background/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools" + package="com.ryanheise.just_audio_example" + tools:ignore="Instantiatable"> @@ -21,20 +23,21 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" - android:windowSoftInputMode="adjustResize"> + android:windowSoftInputMode="adjustResize" + android:exported="true"> - + - + diff --git a/just_audio_background/example/android/build.gradle b/just_audio_background/example/android/build.gradle index 0b4cf534e..997109444 100644 --- a/just_audio_background/example/android/build.gradle +++ b/just_audio_background/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:7.0.2' } } diff --git a/just_audio_background/example/android/gradle/wrapper/gradle-wrapper.properties b/just_audio_background/example/android/gradle/wrapper/gradle-wrapper.properties index 14e30f741..29e413457 100644 --- a/just_audio_background/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/just_audio_background/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/just_audio_background/pubspec.yaml b/just_audio_background/pubspec.yaml index 4734bd581..2aee44c12 100644 --- a/just_audio_background/pubspec.yaml +++ b/just_audio_background/pubspec.yaml @@ -1,13 +1,13 @@ name: just_audio_background description: An add-on for just_audio that supports background playback and media notifications. homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio_background -version: 0.0.1-beta.2 +version: 0.0.1-beta.3 dependencies: just_audio_platform_interface: ^4.0.0 # just_audio_platform_interface: # path: ../just_audio_platform_interface - audio_service: ^0.18.2 + audio_service: ^0.18.3 audio_session: ^0.1.6+1 flutter: sdk: flutter