|
|
@ -2,6 +2,8 @@ import kotlin.text.all |
|
|
import kotlin.text.find |
|
|
import kotlin.text.find |
|
|
import kotlin.text.isNotEmpty |
|
|
import kotlin.text.isNotEmpty |
|
|
import kotlin.text.replace |
|
|
import kotlin.text.replace |
|
|
|
|
|
import java.io.FileInputStream |
|
|
|
|
|
import java.util.Properties |
|
|
|
|
|
|
|
|
plugins { |
|
|
plugins { |
|
|
id("com.android.application") |
|
|
id("com.android.application") |
|
|
@ -10,6 +12,12 @@ plugins { |
|
|
id("dev.flutter.flutter-gradle-plugin") |
|
|
id("dev.flutter.flutter-gradle-plugin") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def keystoreProperties = new Properties() |
|
|
|
|
|
def keystorePropertiesFile = rootProject.file('keystore.properties') |
|
|
|
|
|
if (keystorePropertiesFile.exists()) { |
|
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
android { |
|
|
android { |
|
|
namespace = "com.example.hadi_hoda_flutter" |
|
|
namespace = "com.example.hadi_hoda_flutter" |
|
|
compileSdk = 36 |
|
|
compileSdk = 36 |
|
|
@ -35,11 +43,18 @@ android { |
|
|
versionName = flutter.versionName |
|
|
versionName = flutter.versionName |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
signingConfigs { |
|
|
|
|
|
create("release") { |
|
|
|
|
|
keyAlias = keystoreProperties['keyAlias'] |
|
|
|
|
|
keyPassword = keystoreProperties['keyPassword'] |
|
|
|
|
|
storeFile = file(keystoreProperties['storeFile']) |
|
|
|
|
|
storePassword = keystoreProperties['storePassword'] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
buildTypes { |
|
|
buildTypes { |
|
|
release { |
|
|
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") |
|
|
|
|
|
|
|
|
signingConfig = signingConfigs.getByName("release") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|