Skip to content

Commit

Permalink
#68 [FIX] : fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun127 committed Sep 5, 2024
1 parent 20739a9 commit 73691b4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/src/main/java/com/teamwable/wable/WableApp.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package com.teamwable.wable

import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.NotificationManager.IMPORTANCE_HIGH
import android.content.Context
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatDelegate
import com.kakao.sdk.common.KakaoSdk
import com.kakao.sdk.common.util.Utility
import com.teamwable.ui.util.FcmTag.CHANNEL_ID
import com.teamwable.ui.util.FcmTag.CHANNEL_NAME
import com.teamwable.wable.BuildConfig.KAKAO_APP_KEY
import dagger.hilt.android.HiltAndroidApp
import dagger.hilt.android.qualifiers.ApplicationContext
Expand All @@ -29,7 +22,6 @@ class WableApp : Application() {
setTimber()
setDarkMode()
setKaKaoSdk()
createNotificationChannel()
}

private fun setTimber() {
Expand All @@ -46,16 +38,4 @@ class WableApp : Application() {
var keyHash = Utility.getKeyHash(this)
Timber.tag("Kakao").d("KeyHash: $keyHash")
}

@RequiresApi(Build.VERSION_CODES.O)
private fun createNotificationChannel() {
val notificationManager =
getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationManager
val channel = NotificationChannel(
CHANNEL_ID,
CHANNEL_NAME,
IMPORTANCE_HIGH,
)
notificationManager?.createNotificationChannel(channel)
}
}

0 comments on commit 73691b4

Please sign in to comment.