added publish files

This commit is contained in:
komekh 2024-09-05 14:48:38 +05:00
parent 4fa82f0786
commit 086f639c02
3 changed files with 21 additions and 2 deletions

View File

@ -23,6 +23,12 @@ if (flutterVersionName == null) {
flutterVersionName = "1.0"
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace = "com.example.cargo"
compileSdk = flutter.compileSdkVersion
@ -35,7 +41,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.cargo"
applicationId = "com.cargo66.com"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = flutter.minSdkVersion
@ -43,12 +49,21 @@ android {
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
}
signingConfigs {
release {
keyAlias = keystoreProperties['keyAlias']
keyPassword = keystoreProperties['keyPassword']
storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword = keystoreProperties['storePassword']
}
}
buildTypes {
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.debug
signingConfig = signingConfigs.release
}
}
}

Binary file not shown.

View File

@ -0,0 +1,4 @@
storePassword=cargo66
keyPassword=cargo66
keyAlias=upload
storeFile=upload-keystore.jks