Skip to content

Commit

Permalink
[Add] #18 HiltAndroidApp 적용 app 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cacaocoffee committed Jun 19, 2024
1 parent a2f41df commit 60b29dc
Show file tree
Hide file tree
Showing 2 changed files with 22 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=".NowSopt"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
Expand Down
21 changes: 21 additions & 0 deletions app/src/main/java/com/sopt/now/NowSopt.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.sopt.now

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

@HiltAndroidApp
class NowSopt : Application() {
override fun onCreate() {
super.onCreate()
appContext = applicationContext

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}

companion object {
lateinit var appContext: Context
private set
}
}

0 comments on commit 60b29dc

Please sign in to comment.