fixing firebase classes being imported for foss variant
- the notification module was pulling in firebase for an annotation import, which in turn pulled in the .aar manifest entries and services etc, fixed by removing the unneeded dependency
This commit is contained in:
parent
bb65b89b76
commit
ff72462be5
|
@ -12,8 +12,6 @@ dependencies {
|
||||||
implementation project(":features:messenger")
|
implementation project(":features:messenger")
|
||||||
implementation project(":features:navigator")
|
implementation project(":features:navigator")
|
||||||
|
|
||||||
implementation platform('com.google.firebase:firebase-bom:29.0.3')
|
|
||||||
implementation 'com.google.firebase:firebase-messaging'
|
|
||||||
implementation Dependencies.mavenCentral.kotlinSerializationJson
|
implementation Dependencies.mavenCentral.kotlinSerializationJson
|
||||||
|
|
||||||
kotlinTest(it)
|
kotlinTest(it)
|
||||||
|
|
|
@ -2,8 +2,6 @@ package app.dapk.st.notifications
|
||||||
|
|
||||||
import android.app.Notification
|
import android.app.Notification
|
||||||
import android.graphics.drawable.Icon
|
import android.graphics.drawable.Icon
|
||||||
import android.os.Build
|
|
||||||
import androidx.annotation.RequiresApi
|
|
||||||
|
|
||||||
sealed interface AndroidNotificationStyle {
|
sealed interface AndroidNotificationStyle {
|
||||||
|
|
||||||
|
@ -20,7 +18,6 @@ sealed interface AndroidNotificationStyle {
|
||||||
val content: List<AndroidMessage>,
|
val content: List<AndroidMessage>,
|
||||||
) : AndroidNotificationStyle {
|
) : AndroidNotificationStyle {
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.P)
|
|
||||||
override fun build(builder: AndroidNotificationStyleBuilder) = builder.build(this)
|
override fun build(builder: AndroidNotificationStyleBuilder) = builder.build(this)
|
||||||
|
|
||||||
data class AndroidPerson(val name: String, val key: String, val icon: Icon? = null)
|
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.InboxStyle
|
||||||
import android.app.Notification.MessagingStyle
|
import android.app.Notification.MessagingStyle
|
||||||
import android.app.Person
|
import android.app.Person
|
||||||
import android.os.Build
|
|
||||||
import androidx.annotation.RequiresApi
|
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
class AndroidNotificationStyleBuilder(
|
class AndroidNotificationStyleBuilder(
|
||||||
|
@ -27,7 +25,6 @@ class AndroidNotificationStyleBuilder(
|
||||||
inboxStyle.setSummaryText(summary)
|
inboxStyle.setSummaryText(summary)
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.P)
|
|
||||||
private fun AndroidNotificationStyle.Messaging.buildMessagingStyle() = messagingStyleFactory(
|
private fun AndroidNotificationStyle.Messaging.buildMessagingStyle() = messagingStyleFactory(
|
||||||
personBuilderFactory()
|
personBuilderFactory()
|
||||||
.setName(person.name)
|
.setName(person.name)
|
||||||
|
|
Loading…
Reference in New Issue