[Android] Add compiler argument to support opt-in annotations

Robert Stone git at videolan.org
Wed Apr 13 07:21:58 UTC 2022


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Tue Apr 12 22:59:03 2022 -0700| [f73fc59823c247f6e4c1a62b201dba16a2814ee2] | committer: Nicolas Pomepuy

Add compiler argument to support opt-in annotations

> https://code.videolan.org/videolan/vlc-android/commit/f73fc59823c247f6e4c1a62b201dba16a2814ee2
---

 build.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build.gradle b/build.gradle
index 45825f50c..aa2e5aed7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,6 +28,11 @@ allprojects {
         options.addStringOption('Xdoclint:none', '-quiet')
         options.addStringOption('encoding', 'UTF-8')
     }
+    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
+        kotlinOptions {
+            freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn']
+        }
+    }
 }
 
 ext {



More information about the Android mailing list