LifeMate — Personal, Family & Learning Companion

fix/backend-request-safety
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
kts 52 lines 1.97 KB
Raw
1 plugins {
2 id("com.android.application")
3 // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
4 id("dev.flutter.flutter-gradle-plugin")
5 }
6
7 val localTestBuild = providers.gradleProperty("lifemateLocalTest").orNull == "true"
8
9 android {
10 namespace = "com.example.lifemate"
11 compileSdk = flutter.compileSdkVersion
12 ndkVersion = flutter.ndkVersion
13
14 compileOptions {
15 sourceCompatibility = JavaVersion.VERSION_17
16 targetCompatibility = JavaVersion.VERSION_17
17 }
18
19 defaultConfig {
20 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
21 applicationId = if (localTestBuild) "com.example.lifemate.localtest" else "com.example.lifemate"
22 manifestPlaceholders["applicationLabel"] = if (localTestBuild) "آرام (محلی)" else "LifeMate"
23 // You can update the following values to match your application needs.
24 // For more information, see: https://flutter.dev/to/review-gradle-config.
25 minSdk = flutter.minSdkVersion
26 targetSdk = flutter.targetSdkVersion
27 // Uses the version code from pubspec.yaml. When using split APKs, 1000 * ABI_VERSION
28 // is added automatically by Flutter. (https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions)
29 // You can force using the value of versionCode by specifying the `-P force-version-code-ignoring-abi=true`
30 // flag during build.
31 versionCode = flutter.versionCode
32 versionName = flutter.versionName
33 }
34
35 buildTypes {
36 release {
37 // TODO: Add your own signing config for the release build.
38 // Signing with the debug keys for now, so `flutter run --release` works.
39 signingConfig = signingConfigs.getByName("debug")
40 }
41 }
42 }
43
44 kotlin {
45 compilerOptions {
46 jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
47 }
48 }
49
50 flutter {
51 source = "../.."
52 }