11plugins {
22 // Android studio bug shows libs as an error - https://youtrack.jetbrains.com/issue/KTIJ-19369
3- alias(libs.plugins.android.application)
4- alias(libs.plugins.kotlin.android)
5- alias(libs.plugins.hilt.android)
6- alias(libs.plugins.google.services)
7- alias(libs.plugins.crashlytics)
8- alias(libs.plugins.firebase.perf)
9- alias(libs.plugins.spotless)
10- alias(libs.plugins.dependency.updates)
3+ id(" apkanalyzer.application" )
4+ id(" apkanalyzer.hilt" )
5+ id(" apkanalyzer.spotless" )
116 id(" kotlin-parcelize" )
12- kotlin( " kapt " )
7+ alias(libs.plugins.dependency.updates )
138}
149android {
1510 namespace = " sk.styk.martin.apkanalyzer"
1611
1712 defaultConfig {
1813 applicationId = " sk.styk.martin.apkanalyzer"
19-
20- minSdk = 21
21- targetSdk = 33
22- compileSdk = 33
23-
24- versionCode = 1
25- versionName = " dev"
26-
27- multiDexEnabled = true
28- vectorDrawables.useSupportLibrary = true
2914 proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
3015 }
3116
@@ -42,41 +27,14 @@ android {
4227 buildConfigField(" boolean" , " SHOW_PROMO" , " false" )
4328 }
4429 }
45- buildTypes {
46- getByName(" release" ) {
47- isMinifyEnabled = true
48- isShrinkResources = true
49- }
50- getByName(" debug" ) {
51- isMinifyEnabled = false
52- isShrinkResources = false
53- }
54- }
30+
5531 buildFeatures {
5632 viewBinding = true
5733 dataBinding = true
5834 }
59- compileOptions {
60- sourceCompatibility = JavaVersion .VERSION_1_8
61- targetCompatibility = JavaVersion .VERSION_1_8
62- }
63- kotlinOptions {
64- jvmTarget = JavaVersion .VERSION_1_8 .toString()
65- freeCompilerArgs = freeCompilerArgs + " -Xopt-in=kotlin.RequiresOptIn " +
66- " -Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi " +
67- " -Xuse-experimental=kotlinx.coroutines.FlowPreview"
68- }
6935 lint {
7036 disable + = " MissingTranslation"
7137 }
72- spotless {
73- kotlin {
74- target(" **/*.kt" )
75- targetExclude(" $buildDir /**/*.kt" )
76- targetExclude(" bin/**/*.kt" )
77- ktlint(" 0.48.2" )
78- }
79- }
8038}
8139
8240dependencies {
@@ -107,16 +65,6 @@ dependencies {
10765 annotationProcessor(libs.glide.compiler)
10866 implementation(libs.bundles.google.play)
10967
110- // Firebase
111- implementation(platform(libs.firebase.bom))
112- implementation(" com.google.firebase:firebase-crashlytics-ktx" )
113- implementation(" com.google.firebase:firebase-analytics-ktx" )
114- implementation(" com.google.firebase:firebase-perf" )
115-
116- // Hilt
117- implementation(libs.hilt)
118- kapt(libs.hilt.compiler)
119-
12068 debugImplementation(libs.leakcannary)
12169
12270 testImplementation(libs.junit)
0 commit comments