nomadcode/android/app/build.gradle.kts
toki 9a39917a2c Add Firebase push notification support and Android Mattermost integration
- Android: MainActivity, AppLifecycleTracker, Firebase Messaging Service
- Android: Notification handlers (dismiss, reply, receipt delivery)
- Android: Custom push notification helper and database support
- Android: Drawable resources for notification actions
- Android: Mipmap resources with foreground/background/round icons
- iOS: Push notification service support
- Flutter: Push notification background and foreground services
- Web/Windows: Generated plugin registrant updates
- Config: Added google-services.json for Firebase
2026-03-21 15:06:19 +09:00

70 lines
2.3 KiB
Text

plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
// 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 {
namespace = "com.tokilabs.mattermost"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.tokilabs.mattermost"
// 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
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}
dependencies {
// Firebase BOM (버전 통합 관리)
implementation(platform("com.google.firebase:firebase-bom:33.7.0"))
implementation("com.google.firebase:firebase-messaging")
// JWT 서명 검증 (mattermost와 동일 버전)
implementation("io.jsonwebtoken:jjwt-api:0.12.5")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.5")
runtimeOnly("io.jsonwebtoken:jjwt-orgjson:0.12.5") {
exclude(group = "org.json", module = "json")
}
// HTTP 클라이언트
implementation("com.squareup.okhttp3:okhttp:4.12.0")
// Kotlin Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
// Room DB (로컬 캐시용)
implementation("androidx.room:room-runtime:2.6.1")
implementation("androidx.room:room-ktx:2.6.1")
kapt("androidx.room:room-compiler:2.6.1")
}