Skip to content

Commit 6dde607

Browse files
authored
Merge pull request #35 from Warm-Trace/103
BaselineProfile 및 난독화 적용하기
2 parents 84e4c4f + 1d221f2 commit 6dde607

26 files changed

Lines changed: 44357 additions & 12 deletions

.idea/ChatHistory_schema_v2.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/androidTestResultsUserPreferences.xml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetSelector.xml

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deviceManager.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Generate_Baseline_Profile_for_app.xml

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ plugins {
44
id("trace.android.application")
55
alias(libs.plugins.firebase.crashlytics)
66
alias(libs.plugins.google.services)
7+
alias(libs.plugins.android.application)
8+
alias(libs.plugins.baselineprofile)
79
}
810

911
android {
@@ -45,8 +47,8 @@ android {
4547

4648
buildTypes {
4749
release {
48-
isMinifyEnabled = false
49-
isShrinkResources = false
50+
isMinifyEnabled = true
51+
isShrinkResources = true
5052
proguardFiles(
5153
getDefaultProguardFile("proguard-android-optimize.txt"),
5254
"proguard-rules.pro"
@@ -69,7 +71,10 @@ android {
6971
buildFeatures {
7072
buildConfig = true
7173
}
74+
}
7275

76+
baselineProfile {
77+
dexLayoutOptimization = true
7378
}
7479

7580
dependencies {
@@ -80,4 +85,6 @@ dependencies {
8085

8186
implementation(libs.kakao.user)
8287
implementation(libs.firebase.messaging)
88+
implementation(libs.androidx.profileinstaller)
89+
baselineProfile(projects.baselineprofile)
8390
}

app/proguard-rules.pro

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-keepattributes SourceFile,LineNumberTable
2+
-keepattributes Signature, InnerClasses, EnclosingMethod, KotlinMetadata
3+
-keepattributes AnnotationDefault, *Annotation*
4+
5+
-keepclassmembers class android.content.Intent {
6+
public java.lang.String getStringExtra(java.lang.String);
7+
}
8+
9+
## 파이어베이스
10+
-keep class com.google.android.gms.** { *; }
11+
-keep class com.google.firebase.** { *; }
12+
13+
## 도메인 및 네트워크 모델
14+
-keep class com.virtuous.domain.model.** { *; }
15+
-keep class com.virtuous.network.model.** { *; }
16+
17+
## 네비게이션 클래스 이름 유지
18+
-keep class com.virtuous.navigation.** { *; }
19+
20+
## 카카오
21+
-keep class com.kakao.sdk.**.model.* { <fields>; }
22+
23+
## Gson
24+
-keep class com.google.gson.stream.** { *; }
25+
-keep class com.google.gson.reflect.** { *; }
26+
27+
# Gson이 사용하는 TypeToken 보존
28+
-keep class com.google.gson.internal.** { *; }
-12.8 KB
Binary file not shown.
-12.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)