@@ -20,6 +20,7 @@ kotlin {
2020 compilerOptions {
2121 freeCompilerArgs.add(" -Xwhen-guards" )
2222 freeCompilerArgs.add(" -Xcontext-receivers" )
23+ freeCompilerArgs.add(" -Xmulti-dollar-interpolation" )
2324 }
2425}
2526
@@ -45,6 +46,7 @@ android {
4546 libs.versions.version.name
4647 .get()
4748 vectorDrawables.useSupportLibrary = true
49+ multiDexEnabled = true
4850
4951 @Suppress(" UnstableApiUsage" )
5052 androidResources {
@@ -80,6 +82,12 @@ android {
8082 }
8183 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
8284
85+ ndk {
86+ abiFilters.add(" x86_64" )
87+ abiFilters.add(" armeabi-v7a" )
88+ abiFilters.add(" arm64-v8a" )
89+ }
90+
8391 if (isFullBuild) {
8492 try {
8593 println (" Full build detected, enabling Sentry DSN" )
@@ -192,6 +200,8 @@ dependencies {
192200 val fullImplementation = " fullImplementation"
193201 val debugImplementation = " debugImplementation"
194202
203+ coreLibraryDesugaring(libs.desugaring)
204+
195205 // Compose
196206 val composeBom = platform(libs.compose.bom)
197207 implementation(composeBom)
@@ -308,9 +318,6 @@ dependencies {
308318 // Custom Activity On Crash
309319 implementation(libs.customactivityoncrash)
310320
311- implementation(libs.sdp.android)
312- implementation(libs.ssp.android)
313-
314321 implementation(libs.aboutlibraries)
315322 implementation(libs.aboutlibraries.compose.m3)
316323
@@ -320,8 +327,6 @@ dependencies {
320327 // InsetsX
321328 implementation(libs.insetsx)
322329
323- coreLibraryDesugaring(libs.desugaring)
324-
325330 // Koin
326331 implementation(platform(libs.koin.bom))
327332 implementation(libs.koin.core)
@@ -342,13 +347,18 @@ dependencies {
342347
343348// debugImplementation(libs.leak.canary)
344349}
350+ /* *
351+ * Task to generate the aboutlibraries.json file
352+ * Run with:
353+ ./gradlew :app:exportLibraryDefinitions --no-daemon --no-configuration-cache --no-build-cache
354+ **/
345355aboutLibraries {
356+ android.registerAndroidTasks = false
346357 export {
358+ exportVariant = " fullRelease"
347359 prettyPrint = true
348360 excludeFields = listOf (" generated" )
349- }
350- android {
351- registerAndroidTasks = false
361+ outputPath = File (project.projectDir, " src/main/res/raw/aboutlibraries.json" )
352362 }
353363}
354364tasks.withType<CompileArtProfileTask > {
0 commit comments