feat(push): FCM via MAX server — oneme flavor, dedicated FCM workflow, opcode 22, notifications + CI/lint fixes

This commit is contained in:
klockky
2026-05-15 18:14:22 +03:00
parent 0a9780a024
commit 75ccc2e694
20 changed files with 647 additions and 203 deletions
+16 -4
View File
@@ -3,6 +3,7 @@ plugins {
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
id("com.google.gms.google-services")
}
android {
@@ -20,16 +21,27 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "ru.komet.app"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
minSdk = maxOf(flutter.minSdkVersion, 23)
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
flavorDimensions += "distribution"
productFlavors {
create("komet") {
dimension = "distribution"
isDefault = true
applicationId = "ru.komet.app"
}
create("oneme") {
dimension = "distribution"
applicationId = "ru.oneme.app"
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "659634599081",
"project_id": "max-messenger-app",
"storage_bucket": "max-messenger-app.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:659634599081:android:00000000000000000000ab",
"android_client_info": {
"package_name": "ru.komet.app"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyABuDYeeDXIOrKTXLkUj30Ii143ofPe63Q"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
+4
View File
@@ -2,6 +2,7 @@
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<application
android:label="komet"
android:name="${applicationName}"
@@ -33,6 +34,9 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="komet_messages" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "659634599081",
"project_id": "max-messenger-app",
"storage_bucket": "max-messenger-app.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:659634599081:android:9605285443b661167225b8",
"android_client_info": {
"package_name": "ru.oneme.app"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyABuDYeeDXIOrKTXLkUj30Ii143ofPe63Q"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
+1
View File
@@ -21,6 +21,7 @@ plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
id("com.google.gms.google-services") version "4.4.3" apply false
}
include(":app")