swiched to intial build.gradle file

This commit is contained in:
Manish 2025-12-17 17:31:04 +05:30
parent 2e1b3065df
commit 48a4eb2ca7

View File

@ -48,30 +48,32 @@ android {
// Define signing configurations for different build types
signingConfigs {
release {
if (keystorePropertiesFile.exists()) {
release {
// Reference the key alias from key.properties
keyAlias keystoreProperties['keyAlias']
// Reference the key password from key.properties
keyPassword keystoreProperties['keyPassword']
// Reference the keystore file path from key.properties
storeFile file(keystoreProperties['storeFile'])
// Reference the keystore password from key.properties
storePassword keystoreProperties['storePassword']
}
}
}
// Define different build types (e.g., debug, release)
buildTypes {
release {
if (keystorePropertiesFile.exists()) {
buildTypes {
release {
// Apply the 'release' signing configuration defined above to the release build
signingConfig signingConfigs.release
// Enable code minification to reduce app size
minifyEnabled true
// Enable resource shrinking to remove unused resources
shrinkResources true
// Other release specific configurations can be added here, e.g., ProGuard rules
}
minifyEnabled true
shrinkResources true
}
}
}
// Configure Flutter specific settings, pointing to the root of your Flutter project
flutter {
source = "../.."