Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[merge] 기초세팅 / 다크모드 비활성화 #201

Merged
merged 9 commits into from
Oct 6, 2023
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 6,
"versionCode": 7,
"versionName": "1.0.0",
"outputFile": "app-release.apk"
}
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/org/go/sopt/winey/WineyApplication.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.go.sopt.winey

import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import com.kakao.sdk.common.KakaoSdk
import dagger.hilt.android.HiltAndroidApp
import org.go.sopt.winey.BuildConfig.KAKAO_NATIVE_KEY
Expand All @@ -10,7 +11,20 @@ import timber.log.Timber
class WineyApplication : Application() {
override fun onCreate() {
super.onCreate()
setupTimber()
setupKakaoSdk()
preventDarkMode()
}

private fun setupTimber() {
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
}

private fun setupKakaoSdk() {
KakaoSdk.init(this, KAKAO_NATIVE_KEY)
}

private fun preventDarkMode() {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/DefaultConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ object DefaultConfig {
const val compileSdk = 33
const val minSdk = 28
const val targetSdk = 33
const val versionCode = 6
const val versionCode = 7
const val versionName = "1.0.0"
}