mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-02-16 12:10:45 +01:00
Merge pull request #136 from ouchadam/feature/foss-firebase-imports
Ensure FOSS build has no firebase dependencies
This commit is contained in:
commit
b0e53a7b84
@ -12,8 +12,6 @@ dependencies {
|
||||
implementation project(":features:messenger")
|
||||
implementation project(":features:navigator")
|
||||
|
||||
implementation platform('com.google.firebase:firebase-bom:29.0.3')
|
||||
implementation 'com.google.firebase:firebase-messaging'
|
||||
implementation Dependencies.mavenCentral.kotlinSerializationJson
|
||||
|
||||
kotlinTest(it)
|
||||
|
@ -2,8 +2,6 @@ package app.dapk.st.notifications
|
||||
|
||||
import android.app.Notification
|
||||
import android.graphics.drawable.Icon
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
|
||||
sealed interface AndroidNotificationStyle {
|
||||
|
||||
@ -20,7 +18,6 @@ sealed interface AndroidNotificationStyle {
|
||||
val content: List<AndroidMessage>,
|
||||
) : AndroidNotificationStyle {
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.P)
|
||||
override fun build(builder: AndroidNotificationStyleBuilder) = builder.build(this)
|
||||
|
||||
data class AndroidPerson(val name: String, val key: String, val icon: Icon? = null)
|
||||
|
@ -5,8 +5,6 @@ import android.app.Notification
|
||||
import android.app.Notification.InboxStyle
|
||||
import android.app.Notification.MessagingStyle
|
||||
import android.app.Person
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
class AndroidNotificationStyleBuilder(
|
||||
@ -27,7 +25,6 @@ class AndroidNotificationStyleBuilder(
|
||||
inboxStyle.setSummaryText(summary)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.P)
|
||||
private fun AndroidNotificationStyle.Messaging.buildMessagingStyle() = messagingStyleFactory(
|
||||
personBuilderFactory()
|
||||
.setName(person.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user