| .. | .. |
|---|
| 20 | 20 | } |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | defaultConfig { |
|---|
| 23 | | - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). |
|---|
| 24 | 23 | applicationId = "com.tekmidian.pailot" |
|---|
| 25 | | - // You can update the following values to match your application needs. |
|---|
| 26 | | - // For more information, see: https://flutter.dev/to/review-gradle-config. |
|---|
| 27 | 24 | minSdk = flutter.minSdkVersion |
|---|
| 28 | 25 | targetSdk = flutter.targetSdkVersion |
|---|
| 29 | 26 | versionCode = flutter.versionCode |
|---|
| 30 | 27 | versionName = flutter.versionName |
|---|
| 31 | 28 | } |
|---|
| 32 | 29 | |
|---|
| 30 | + // Release signing — keystore lives at android/release.keystore (gitignored). |
|---|
| 31 | + // Back this file up: losing it means losing the ability to ship updates to |
|---|
| 32 | + // the Play Store under this package name. |
|---|
| 33 | + signingConfigs { |
|---|
| 34 | + create("release") { |
|---|
| 35 | + storeFile = file("../release.keystore") |
|---|
| 36 | + storePassword = "pailot-release-key-2026" |
|---|
| 37 | + keyAlias = "pailot" |
|---|
| 38 | + keyPassword = "pailot-release-key-2026" |
|---|
| 39 | + } |
|---|
| 40 | + } |
|---|
| 41 | + |
|---|
| 33 | 42 | buildTypes { |
|---|
| 34 | 43 | release { |
|---|
| 35 | | - // TODO: Add your own signing config for the release build. |
|---|
| 36 | | - // Signing with the debug keys for now, so `flutter run --release` works. |
|---|
| 37 | | - signingConfig = signingConfigs.getByName("debug") |
|---|
| 44 | + signingConfig = signingConfigs.getByName("release") |
|---|
| 45 | + isMinifyEnabled = true |
|---|
| 46 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt")) |
|---|
| 38 | 47 | } |
|---|
| 39 | 48 | } |
|---|
| 40 | 49 | } |
|---|