Merge pull request #136 from ouchadam/feature/foss-firebase-imports

Ensure FOSS build has no firebase dependencies
This commit is contained in:
Adam Brown 2022-09-10 15:41:13 +01:00 committed by GitHub
commit b0e53a7b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 8 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)