-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Fix] 타이머가 doze 모드에서 멈추는 현상 해결
- Loading branch information
Showing
42 changed files
with
378 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
...otification/src/main/java/com/teamhy2/hongikyeolgong2/notification/NotificationHandler.kt
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
...notification/src/main/java/com/teamhy2/hongikyeolgong2/notification/NotificationModule.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...otification/src/main/java/com/teamhy2/hongikyeolgong2/notification/NotificationHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.teamhy2.hongikyeolgong2.notification | ||
|
||
import android.app.Notification | ||
|
||
interface NotificationHandler { | ||
fun buildServiceNotification(): Notification | ||
|
||
fun buildGeneralNotification(contentText: String): Notification | ||
|
||
fun showSimpleNotification(pushText: PushText) | ||
} |
19 changes: 19 additions & 0 deletions
19
...notification/src/main/java/com/teamhy2/hongikyeolgong2/notification/NotificationModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.teamhy2.hongikyeolgong2.notification | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.SupervisorJob | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object NotificationModule { | ||
@Provides | ||
@Singleton | ||
fun providesCoroutineScope(): CoroutineScope { | ||
return CoroutineScope(SupervisorJob()) | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
core/notification/src/main/java/com/teamhy2/hongikyeolgong2/notification/PushText.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.teamhy2.hongikyeolgong2.notification | ||
|
||
import androidx.annotation.StringRes | ||
|
||
enum class PushText( | ||
@StringRes val id: Int, | ||
) { | ||
THIRTY_MINUTES(R.string.notification_content_thirty_minutes_remain), | ||
TEN_MINUTES(R.string.notification_content_ten_minutes_remain), | ||
ZERO_MINUTES(R.string.notification_content_zero_minutes_remain), | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.