Skip to content

Commit

Permalink
Merge branch 'feature/agp_compatibility' into feature/custom_actions_…
Browse files Browse the repository at this point in the history
…android13
  • Loading branch information
ryanheise committed May 31, 2023
2 parents cb171bb + 2a4f5d5 commit c3d6260
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 8 deletions.
3 changes: 3 additions & 0 deletions audio_service/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

* Support custom media controls (@defsub)
* Support fast forward, rewind and stop when targeting Android 13 (@defsub)
* Add support for AGP 8 (@theskyblockman).
* Update AGP to 7.3.0.
* Update minimum flutter version to 3.0.

## 0.18.9

Expand Down
6 changes: 5 additions & 1 deletion audio_service/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath 'com.android.tools.build:gradle:7.3.0'
}
}

Expand All @@ -27,6 +27,10 @@ project.getTasks().withType(JavaCompile) {
apply plugin: 'com.android.library'

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'com.ryanheise.audioservice'
}
compileSdkVersion 33

compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.0.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
1 change: 1 addition & 0 deletions audio_service/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
namespace 'com.ryanheise.audioserviceexample'
compileSdkVersion 33

lintOptions {
Expand Down
9 changes: 8 additions & 1 deletion audio_service/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath 'com.android.tools.build:gradle:7.3.0'
}
}

Expand All @@ -14,6 +14,13 @@ allprojects {
google()
mavenCentral()
}

gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
options.compilerArgs << "-Xlint:unchecked"
}
}
}

rootProject.buildDir = '../build'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
3 changes: 2 additions & 1 deletion audio_service/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ description: Demonstrates how to use the audio_service plugin.
publish_to: 'none'

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=2.14.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
flutter:
Expand Down
6 changes: 3 additions & 3 deletions audio_service/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: audio_service
description: Flutter plugin to play audio in the background while the screen is off.
version: 0.18.9
version: 0.18.10
homepage: https://github.com/ryanheise/audio_service/tree/master/audio_service

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
sdk: ">=2.14.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
# Use these deps for local development
Expand Down

0 comments on commit c3d6260

Please sign in to comment.