diff --git a/.github/workflows/android_ci.yml b/.github/workflows/android_ci.yml index fbc0daf7..992f4136 100644 --- a/.github/workflows/android_ci.yml +++ b/.github/workflows/android_ci.yml @@ -64,9 +64,11 @@ jobs: env: DEFAULTS_ORG: ${{ secrets.DEFAULTS_ORG }} DEFAULTS_PROJECT: ${{ secrets.DEFAULTS_PROJECT }} + AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} run: | echo "defaults.org=$DEFAULTS_ORG" >> sentry.properties echo "defaults.project=$DEFAULTS_PROJECT" >> sentry.properties + echo "auth.token=$AUTH_TOKEN" >> sentry.properties - name: Lint Check run: ./gradlew ktlintCheck -PcompileSdkVersion=34 diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5bd757b1..851bb4df 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -40,12 +40,14 @@ android { buildTypes { debug { + isMinifyEnabled = false buildConfigField("String", "BASE_URL", properties["dev.base.url"].toString()) buildConfigField("String", "AMPLITUDE_API_KEY", properties["amplitude.dev.api.key"].toString()) } release { - isMinifyEnabled = false + isMinifyEnabled = true + isShrinkResources = true buildConfigField("String", "BASE_URL", properties["prod.base.url"].toString()) buildConfigField("String", "AMPLITUDE_API_KEY", properties["amplitude.prod.api.key"].toString()) proguardFiles( diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb434..c252b883 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,33 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile +-keep class com.kakao.sdk.**.model.* { ; } +-keep class * extends com.google.gson.TypeAdapter +-keep interface com.kakao.sdk.**.*Api + +-keepattributes Signature, InnerClasses, EnclosingMethod +-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations +-keepattributes AnnotationDefault +-keepclassmembers,allowshrinking,allowobfuscation interface * { + @retrofit2.http.* ; +} +-dontwarn javax.annotation.** +-dontwarn kotlin.Unit +-dontwarn retrofit2.KotlinExtensions +-dontwarn retrofit2.KotlinExtensions$* +-if interface * { @retrofit2.http.* ; } +-keep,allowobfuscation interface <1> +-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation +-if interface * { @retrofit2.http.* public *** *(...); } +-keep,allowoptimization,allowshrinking,allowobfuscation class <3> +-keep,allowobfuscation,allowshrinking class retrofit2.Response +-keep,allowobfuscation,allowshrinking interface retrofit2.Call + +-dontwarn javax.annotation.** +-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz +-dontwarn org.codehaus.mojo.animal_sniffer.* +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6edf44b1..c77c5d0b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,18 +19,18 @@ espressoCore = "3.6.1" # AndroidX coreSplashscreen = "1.0.1" coreKtx = "1.13.1" -lifecycleRuntimeKtx = "2.8.5" +lifecycleRuntimeKtx = "2.8.6" activityCompose = "1.9.2" -composeBom = "2024.09.00" -navigation = "2.8.0" +composeBom = "2024.09.02" +navigation = "2.8.1" security = "1.1.0-alpha06" -lifecycleRuntimeComposeAndroid = "2.8.5" +lifecycleRuntimeComposeAndroid = "2.8.6" pagingCommonAndroid = "3.3.2" # Google googleServices = "4.4.2" firebaseCrashlytics = "3.0.2" -firebaseBom = "33.2.0" +firebaseBom = "33.3.0" # Accompanist accompanistPager = "0.25.0"