[Android] gradle: pass kotlin optin option in compilerOptions

Steve Lhomme git at videolan.org
Wed Jun 10 09:28:00 UTC 2026


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 10 10:06:18 2026 +0200| [ff490c0fa44b30c88c7154ae8c2bec3488ac04af] | committer: Steve Lhomme

gradle: pass kotlin optin option in compilerOptions

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

 build.gradle | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index dab07ae9e3..cbd5cc4e5f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -37,11 +37,9 @@ allprojects {
         kotlin {
             compilerOptions {
                 jvmTarget.set("$rootProject.ext.targetJVMKotlin")
+                optIn.add("kotlin.RequiresOptIn")
             }
         }
-        kotlinOptions {
-            freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn']
-        }
     }
 }
 



More information about the Android mailing list