Skip to content

Commit

Permalink
#10 [feat] : hilt 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsuhyun committed Dec 4, 2024
1 parent 9c4ccf4 commit 9baff1b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".WavveApp"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
Expand Down
17 changes: 17 additions & 0 deletions app/src/main/java/org/sopt/and/WavveApp.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.sopt.and

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class WavveApp: Application() {
override fun onCreate() {
super.onCreate()
setDarkMode()
}

private fun setDarkMode() {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaffold
import androidx.compose.ui.Modifier
import androidx.navigation.compose.rememberNavController
import dagger.hilt.android.AndroidEntryPoint
import org.sopt.and.ui.theme.ANDANDROIDTheme
import org.sopt.and.utils.currentRoute

@AndroidEntryPoint
class MainActivity : ComponentActivity() {

@SuppressLint("UnusedMaterial3ScaffoldPaddingParameter")
Expand Down

0 comments on commit 9baff1b

Please sign in to comment.