Loading app/build.gradle +5 −9 Original line number Diff line number Diff line Loading @@ -34,20 +34,16 @@ android { debug { minifyEnabled false debuggable true applicationIdSuffix ".debug" versionNameSuffix "-debug" } } flavorDimensions "store" productFlavors { forPlay { dimension "store" buildConfigField 'String', 'STORE', '"play"' play { buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'true' } forFDroid { dimension "store" buildConfigField 'String', 'STORE', '"fdroid"' fdroid { buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'false' } } Loading Loading @@ -81,7 +77,7 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:4.9.2" // Firebase, sigh ... (only Google Play) forPlayImplementation 'com.google.firebase:firebase-messaging:22.0.0' playImplementation 'com.google.firebase:firebase-messaging:22.0.0' // RecyclerView implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion" Loading app/src/fdroid/java/io/heckel/ntfy/firebase/FirebaseMessenger.kt 0 → 100644 +11 −0 Original line number Diff line number Diff line package io.heckel.ntfy.firebase class FirebaseMessenger { fun subscribe(topic: String) { // Dummy to keep F-Droid flavor happy } fun unsubscribe(topic: String) { // Dummy to keep F-Droid flavor happy } } app/src/fdroid/java/io/heckel/ntfy/firebase/FirebaseService.kt 0 → 100644 +5 −0 Original line number Diff line number Diff line package io.heckel.ntfy.firebase class FirebaseService { // Dummy to keep F-Droid flavor happy } app/src/main/AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ </intent-filter> </receiver> <!-- Firebase messaging --> <!-- Firebase messaging (note that this is empty in the F-Droid flavor) --> <service android:name=".msg.FirebaseService" android:name=".firebase.FirebaseService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> Loading app/src/main/java/io/heckel/ntfy/app/Application.kt +0 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,8 @@ package io.heckel.ntfy.app import android.app.Application import android.content.Context import com.google.firebase.messaging.FirebaseMessagingService import io.heckel.ntfy.data.Database import io.heckel.ntfy.data.Repository import io.heckel.ntfy.msg.ApiService class Application : Application() { private val database by lazy { Database.getInstance(this) } Loading Loading
app/build.gradle +5 −9 Original line number Diff line number Diff line Loading @@ -34,20 +34,16 @@ android { debug { minifyEnabled false debuggable true applicationIdSuffix ".debug" versionNameSuffix "-debug" } } flavorDimensions "store" productFlavors { forPlay { dimension "store" buildConfigField 'String', 'STORE', '"play"' play { buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'true' } forFDroid { dimension "store" buildConfigField 'String', 'STORE', '"fdroid"' fdroid { buildConfigField 'boolean', 'FIREBASE_AVAILABLE', 'false' } } Loading Loading @@ -81,7 +77,7 @@ dependencies { implementation "com.squareup.okhttp3:okhttp:4.9.2" // Firebase, sigh ... (only Google Play) forPlayImplementation 'com.google.firebase:firebase-messaging:22.0.0' playImplementation 'com.google.firebase:firebase-messaging:22.0.0' // RecyclerView implementation "androidx.recyclerview:recyclerview:$rootProject.recyclerViewVersion" Loading
app/src/fdroid/java/io/heckel/ntfy/firebase/FirebaseMessenger.kt 0 → 100644 +11 −0 Original line number Diff line number Diff line package io.heckel.ntfy.firebase class FirebaseMessenger { fun subscribe(topic: String) { // Dummy to keep F-Droid flavor happy } fun unsubscribe(topic: String) { // Dummy to keep F-Droid flavor happy } }
app/src/fdroid/java/io/heckel/ntfy/firebase/FirebaseService.kt 0 → 100644 +5 −0 Original line number Diff line number Diff line package io.heckel.ntfy.firebase class FirebaseService { // Dummy to keep F-Droid flavor happy }
app/src/main/AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ </intent-filter> </receiver> <!-- Firebase messaging --> <!-- Firebase messaging (note that this is empty in the F-Droid flavor) --> <service android:name=".msg.FirebaseService" android:name=".firebase.FirebaseService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> Loading
app/src/main/java/io/heckel/ntfy/app/Application.kt +0 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,8 @@ package io.heckel.ntfy.app import android.app.Application import android.content.Context import com.google.firebase.messaging.FirebaseMessagingService import io.heckel.ntfy.data.Database import io.heckel.ntfy.data.Repository import io.heckel.ntfy.msg.ApiService class Application : Application() { private val database by lazy { Database.getInstance(this) } Loading