diff --git a/audio_service/CHANGELOG.md b/audio_service/CHANGELOG.md index aa77330d..ba3f1965 100644 --- a/audio_service/CHANGELOG.md +++ b/audio_service/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.18.15 * Add deep link support for FlutterFragmentActivity (@jan-milovanovic). +* Fix JDK 21 compile error. ## 0.18.14 diff --git a/audio_service/android/build.gradle b/audio_service/android/build.gradle index c33a63d8..7bc3e3ee 100644 --- a/audio_service/android/build.gradle +++ b/audio_service/android/build.gradle @@ -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 { diff --git a/audio_service/example/android/build.gradle b/audio_service/example/android/build.gradle index b8e955ca..95adc21a 100644 --- a/audio_service/example/android/build.gradle +++ b/audio_service/example/android/build.gradle @@ -14,13 +14,6 @@ allprojects { google() mavenCentral() } - - gradle.projectsEvaluated { - tasks.withType(JavaCompile) { - options.compilerArgs << "-Xlint:deprecation" - options.compilerArgs << "-Xlint:unchecked" - } - } } rootProject.buildDir = '../build' @@ -34,3 +27,11 @@ subprojects { tasks.register("clean", Delete) { delete rootProject.buildDir } + +gradle.projectsEvaluated { + project(":audio_service") { + tasks.withType(JavaCompile) { + options.compilerArgs << "-Werror" + } + } +}