From 328288cd680bd59dd0eff4af1635ce48cd8dbdad Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Fri, 17 Jul 2026 20:50:19 +0200 Subject: [PATCH] chore(android): prepare native FCM push (Sygnal) wiring behind google-services.json --- config.json | 1 + src-tauri/gen/android/app/build.gradle.kts | 6 ++++++ src-tauri/gen/android/build.gradle.kts | 1 + 3 files changed, 8 insertions(+) diff --git a/config.json b/config.json index b6eb094a5..9abd8fd83 100644 --- a/config.json +++ b/config.json @@ -11,6 +11,7 @@ "pushNotifyUrl": "https://sygnal.sable.moe/_matrix/push/v1/notify", "vapidPublicKey": "BCnS4SbHjeOaqVFW4wjt5xDt_pYIL62qMzKePfYF9fl9PQU14RieIaObh7nLR_9dQf4sykZa-CTrcjkgMIE1mcg", "webPushAppID": "moe.sable.app.sygnal", + "nativePushAppID": "moe.sable.client.android", "unifiedPushAppID": "moe.sable.up" }, diff --git a/src-tauri/gen/android/app/build.gradle.kts b/src-tauri/gen/android/app/build.gradle.kts index 82dfaaa4c..10397a780 100644 --- a/src-tauri/gen/android/app/build.gradle.kts +++ b/src-tauri/gen/android/app/build.gradle.kts @@ -84,3 +84,9 @@ dependencies { } apply(from = "tauri.build.gradle.kts") + +// Native FCM push (Sygnal): applies only once google-services.json is added to this +// directory, so builds without Firebase configured still succeed. +if (file("google-services.json").exists()) { + apply(plugin = "com.google.gms.google-services") +} diff --git a/src-tauri/gen/android/build.gradle.kts b/src-tauri/gen/android/build.gradle.kts index 3373810c7..a91af1aef 100644 --- a/src-tauri/gen/android/build.gradle.kts +++ b/src-tauri/gen/android/build.gradle.kts @@ -6,6 +6,7 @@ buildscript { dependencies { classpath("com.android.tools.build:gradle:8.11.0") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0") + classpath("com.google.gms:google-services:4.5.0") } }