|
|
@ -2,8 +2,6 @@ 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") |
|
|
@ -12,12 +10,6 @@ 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 |
|
|
@ -43,18 +35,9 @@ 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 { |
|
|
signingConfig = signingConfigs.getByName("release") |
|
|
|
|
|
|
|
|
signingConfig = signingConfigs.getByName("debug") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|