Skip to content

Commit

Permalink
Fix JDK 21 compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Jul 17, 2024
1 parent ad64972 commit c62d77d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions audio_service/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.18.15

* Add deep link support for FlutterFragmentActivity (@jan-milovanovic).
* Fix JDK 21 compile error.

## 0.18.14

Expand Down
2 changes: 1 addition & 1 deletion audio_service/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group 'com.ryanheise.audioservice'
version '1.0-SNAPSHOT'
def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"]
def args = ["-Xlint:deprecation","-Xlint:unchecked"]

buildscript {
repositories {
Expand Down
15 changes: 8 additions & 7 deletions audio_service/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ allprojects {
google()
mavenCentral()
}

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

rootProject.buildDir = '../build'
Expand All @@ -34,3 +27,11 @@ subprojects {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

gradle.projectsEvaluated {
project(":audio_service") {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Werror"
}
}
}

0 comments on commit c62d77d

Please sign in to comment.