From 61608e0a6f00514b28513613d2eb58f4939441c6 Mon Sep 17 00:00:00 2001 From: Tushar Khatri Date: Sun, 10 Aug 2025 21:48:31 +0530 Subject: [PATCH] fix(android): add namespace, update compileSdkVersion to 33, align Java/Kotlin compatibility --- android/build.gradle | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 2a9e048..ca6817e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,7 +25,19 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + namespace "com.dcc.file_previewer" // Added for AGP 8+ compatibility + compileSdkVersion 33 // Updated to meet modern Play Store requirements + + compileOptions { + // Safe lowest-common-denominator for modern Android builds + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + // Match Java compatibility above to avoid JVM target mismatch errors + jvmTarget = JavaVersion.VERSION_1_8.toString() + } sourceSets { main.java.srcDirs += 'src/main/kotlin'