We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc72c6 commit a618e33Copy full SHA for a618e33
android/app/build.gradle
@@ -74,6 +74,16 @@ android {
74
}
75
76
77
+tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
78
+ // Compile Kotlin with `-Werror`... but only in release builds, so that it
79
+ // doesn't get in the way of quick local experiments for debugging.
80
+ //
81
+ // The string-searching makes this a bit of a mess, but it works.
82
+ // Better would be if we can add this to android.buildTypes.release above;
83
+ // but on a first attempt that didn't work (it affected debug builds too).
84
+ kotlinOptions.allWarningsAsErrors = name.contains("Release")
85
+}
86
+
87
flutter {
88
source '../..'
89
0 commit comments