[Android] gradle: pass kotlin compiler 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:07:32 2026 +0200| [816668b09aa8e260b5725aa2cb01d7e4855d0464] | committer: Steve Lhomme

gradle: pass kotlin compiler option in compilerOptions

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

 application/app/build.gradle | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/application/app/build.gradle b/application/app/build.gradle
index 282c166546..9062b16d36 100644
--- a/application/app/build.gradle
+++ b/application/app/build.gradle
@@ -75,7 +75,11 @@ android {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
-            kotlinOptions.freeCompilerArgs = ['-Xno-param-assertions']
+            kotlin {
+                compilerOptions {
+                    freeCompilerArgs.addAll(['-Xno-param-assertions'])
+                }
+            }
         }
         signedRelease {
             initWith release



More information about the Android mailing list