Skip to content

Commit 7c9aeb9

Browse files
authored
Merge pull request #708 from Daily-DAYO/enhancement/issue-699
Clean up unused resources and update project configuration
2 parents e9c9292 + 4f299af commit 7c9aeb9

File tree

265 files changed

+209
-15053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+209
-15053
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ git clone git@github.com:Daily-DAYO/DAYO_Android.git
2727

2828
## Application Version
2929
- minSdkVersion : 26<br>
30-
- targetSdkVersion : 35
30+
- targetSdkVersion : 36
3131

3232
## Git Convention
3333
- Create issue<br>

app/build.gradle

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id 'com.android.application'
35
id 'kotlin-android'
46
id 'kotlin-kapt'
57
id 'dagger.hilt.android.plugin'
68
id 'com.google.gms.google-services'
79
id 'com.google.firebase.crashlytics'
8-
id 'io.sentry.android.gradle'
910
}
1011

1112
Properties properties = new Properties()
@@ -14,16 +15,11 @@ def NATIVE_APP_KEY = properties.getProperty('NATIVE_APP_KEY')
1415
def ADS_APPLICATION_ID = properties.getProperty('ADS_APPLICATION_ID')
1516
def keystorePropertiesFile = rootProject.file("app/keystore-release.properties")
1617

17-
sentry {
18-
setIncludeProguardMapping(true)
19-
setAutoUploadProguardMapping(true)
20-
setUploadNativeSymbols(false)
21-
setIncludeNativeSources(false)
22-
setAutoUpload(true)
23-
}
24-
2518
kotlin {
2619
jvmToolchain(17)
20+
compilerOptions {
21+
jvmTarget.set(JvmTarget.JVM_17)
22+
}
2723
}
2824

2925
android {
@@ -87,12 +83,6 @@ android {
8783
buildConfigField("String", "BASE_URL", properties['BASE_URL_PROD'])
8884
}
8985
}
90-
kotlinOptions {
91-
jvmTarget = JavaVersion.VERSION_17.toString()
92-
}
93-
buildFeatures {
94-
dataBinding true
95-
}
9686
namespace 'com.daily.dayo'
9787
}
9888

@@ -102,26 +92,22 @@ dependencies {
10292
implementation project(':domain')
10393
implementation project(':data')
10494

105-
def sentry_version = "8.24.0"
106-
def glide_version = "4.15.1"
95+
def glide_version = "5.0.5"
10796

10897
// Hilt
109-
implementation "com.google.dagger:hilt-android:2.44"
110-
kapt "com.google.dagger:hilt-android-compiler:2.44"
98+
implementation "com.google.dagger:hilt-android:2.57.2"
99+
kapt "com.google.dagger:hilt-android-compiler:2.57.2"
111100
// Kakao sdk
112101
implementation "com.kakao.sdk:v2-user:2.9.0"
113102
// Glide
114103
implementation "com.github.bumptech.glide:glide:$glide_version"
115-
kapt "com.github.bumptech.glide:compiler:$glide_version"
116104
// Sentry
117-
implementation platform("io.sentry:sentry-bom:$sentry_version")
118-
implementation('io.sentry:sentry-android')
119-
implementation('io.sentry:sentry-android-fragment')
120105
implementation 'org.slf4j:slf4j-nop:2.0.17'
121106
// Firebase
122-
implementation 'com.google.firebase:firebase-crashlytics-ktx'
123-
implementation 'com.google.firebase:firebase-analytics-ktx'
107+
implementation platform('com.google.firebase:firebase-bom:34.6.0')
108+
implementation "com.google.firebase:firebase-crashlytics"
109+
implementation "com.google.firebase:firebase-analytics"
124110

125111
// Google Ads
126-
implementation 'com.google.android.gms:play-services-ads:23.6.0'
112+
implementation 'com.google.android.gms:play-services-ads:24.7.0'
127113
}
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
package com.daily.dayo
22

3-
import androidx.test.platform.app.InstrumentationRegistry
4-
import androidx.test.ext.junit.runners.AndroidJUnit4
5-
6-
import org.junit.Test
7-
import org.junit.runner.RunWith
8-
9-
import org.junit.Assert.*
10-
113
/**
124
* Instrumented test, which will execute on an Android device.
135
*
146
* See [testing documentation](http://d.android.com/tools/testing).
157
*/
16-
@RunWith(AndroidJUnit4::class)
178
class ExampleInstrumentedTest {
18-
@Test
19-
fun useAppContext() {
20-
// Context of the app under test.
21-
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22-
assertEquals("com.daily.dayo", appContext.packageName)
23-
}
9+
2410
}

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020
android:supportsRtl="true"
2121
android:theme="@style/Theme.DAYO"
2222
android:enableOnBackInvokedCallback="true">
23-
<meta-data android:name="io.sentry.dsn" android:value="https://7f03a2b5d1c24582bfca11c28231a45f@o4504230448136192.ingest.sentry.io/4504230448988160" />
24-
<!-- Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
25-
We recommend adjusting this value in production. -->
26-
<meta-data android:name="io.sentry.traces.sample-rate" android:value="1.0" />
27-
<!-- Enable user interaction tracing to capture transactions for various UI events (such as clicks or scrolls). -->
28-
<meta-data android:name="io.sentry.traces.user-interaction.enable" android:value="true" />
29-
3023
<meta-data
3124
android:name="com.google.firebase.messaging.default_notification_icon"
3225
android:resource="@drawable/ic_dayo_logo" />

app/src/main/java/com/daily/dayo/DayoApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package com.daily.dayo
33
import android.app.Application
44
import com.bumptech.glide.Glide
55
import com.google.android.gms.ads.MobileAds
6+
import com.google.firebase.Firebase
67
import com.google.firebase.analytics.FirebaseAnalytics
7-
import com.google.firebase.analytics.ktx.analytics
8-
import com.google.firebase.ktx.Firebase
8+
import com.google.firebase.analytics.analytics
99
import com.kakao.sdk.common.KakaoSdk
1010
import dagger.hilt.android.HiltAndroidApp
1111

app/src/main/res/xml/network_security_config.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
package com.daily.dayo
22

3-
import org.junit.Test
4-
5-
import org.junit.Assert.*
63

74
/**
85
* Example local unit test, which will execute on the development machine (host).
96
*
107
* See [testing documentation](http://d.android.com/tools/testing).
118
*/
129
class ExampleUnitTest {
13-
@Test
14-
fun addition_isCorrect() {
15-
assertEquals(4, 2 + 2)
16-
}
1710
}

build.gradle

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@
22
buildscript {
33
ext {
44
javaInjectVersion = '1'
5-
kotlin_version = '1.8.20'
6-
compose_version = '1.4.6'
7-
nav_version = '2.6.0'
8-
paging_version = "3.2.0"
9-
targetSdkVersion = 35
10-
compileSdkVersion = 35
5+
kotlin_version = '2.2.21'
6+
nav_version = '2.9.6'
7+
paging_version = "3.3.6"
8+
targetSdkVersion = 36
9+
compileSdkVersion = 36
1110
minSdkVersion = 26
1211
}
1312
repositories {
1413
google()
1514
mavenCentral()
1615
}
1716
dependencies {
18-
classpath 'com.android.tools.build:gradle:8.1.0'
17+
classpath 'com.android.tools.build:gradle:8.13.1'
1918
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2019
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
21-
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.44'
22-
classpath 'com.google.gms:google-services:4.3.15'
23-
classpath 'io.sentry:sentry-android-gradle-plugin:4.13.0'
24-
classpath "com.google.firebase:firebase-crashlytics-gradle:2.9.9"
20+
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.57.2'
21+
classpath 'com.google.gms:google-services:4.4.4'
22+
classpath "com.google.firebase:firebase-crashlytics-gradle:3.0.6"
23+
classpath "org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:2.2.21"
2524
// NOTE: Do not place your application dependencies here; they belong
2625
// in the individual module build.gradle files
2726
}

data/build.gradle

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id 'com.android.library'
35
id 'org.jetbrains.kotlin.android'
@@ -7,6 +9,9 @@ plugins {
79

810
kotlin {
911
jvmToolchain(17)
12+
compilerOptions {
13+
jvmTarget.set(JvmTarget.JVM_17)
14+
}
1015
}
1116

1217
Properties properties = new Properties()
@@ -49,46 +54,41 @@ android {
4954
sourceCompatibility = JavaVersion.VERSION_17
5055
targetCompatibility = JavaVersion.VERSION_17
5156
}
52-
kotlinOptions {
53-
jvmTarget = JavaVersion.VERSION_17.toString()
54-
}
5557
}
5658

5759
dependencies {
5860
// multiModule
5961
implementation project(':domain')
6062

61-
implementation 'androidx.core:core-ktx:1.9.0'
62-
implementation 'androidx.appcompat:appcompat:1.6.1'
63-
implementation 'com.google.android.material:material:1.9.0'
63+
implementation 'androidx.core:core-ktx:1.17.0'
64+
implementation 'androidx.appcompat:appcompat:1.7.1'
65+
implementation 'com.google.android.material:material:1.13.0'
6466
testImplementation 'junit:junit:4.13.2'
65-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
67+
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
68+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
6769

6870
// Hilt
69-
implementation "com.google.dagger:hilt-android:2.44"
70-
kapt "com.google.dagger:hilt-android-compiler:2.44"
71-
kapt 'androidx.hilt:hilt-compiler:1.0.0'
71+
implementation "com.google.dagger:hilt-android:2.57.2"
72+
kapt "com.google.dagger:hilt-android-compiler:2.57.2"
73+
kapt 'androidx.hilt:hilt-compiler:1.3.0'
7274

7375
// retrofit2
74-
implementation group: 'com.squareup.retrofit2', name: 'retrofit', version: '2.9.0'
75-
implementation group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.9.0'
76-
implementation group: 'com.squareup.retrofit2', name: 'converter-scalars', version: '2.9.0'
76+
implementation group: 'com.squareup.retrofit2', name: 'retrofit', version: '3.0.0'
77+
implementation group: 'com.squareup.retrofit2', name: 'converter-gson', version: '3.0.0'
78+
implementation group: 'com.squareup.retrofit2', name: 'converter-scalars', version: '3.0.0'
7779
// JSON을 직렬화
78-
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
80+
implementation group: 'com.google.code.gson', name: 'gson', version: '2.13.2'
7981
// 직렬화된 JSON을 객체로 역직렬화
8082

8183
// OKHttp
82-
implementation "com.squareup.okhttp3:okhttp:4.9.2"
83-
implementation "com.squareup.okhttp3:okhttp-urlconnection:4.9.2"
84+
implementation "com.squareup.okhttp3:okhttp:5.3.0"
85+
implementation "com.squareup.okhttp3:okhttp-urlconnection:5.3.0"
8486
// Use for HttpLoggingInterceptor
85-
implementation "com.squareup.okhttp3:logging-interceptor:4.9.2"
87+
implementation "com.squareup.okhttp3:logging-interceptor:5.3.0"
8688

8789
// Preference
88-
implementation 'androidx.preference:preference-ktx:1.1.1'
90+
implementation 'androidx.preference:preference-ktx:1.2.1'
8991

9092
// paging
9193
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
92-
// optional - Jetpack Compose integration
93-
implementation "androidx.paging:paging-compose:3.2.0"
9494
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
package daily.dayo.data
22

3-
import org.junit.Test
4-
5-
import org.junit.Assert.*
63

74
/**
85
* Example local unit test, which will execute on the development machine (host).
96
*
107
* See [testing documentation](http://d.android.com/tools/testing).
118
*/
129
class ExampleUnitTest {
13-
@Test
14-
fun addition_isCorrect() {
15-
assertEquals(4, 2 + 2)
16-
}
1710
}

0 commit comments

Comments
 (0)