diff --git a/android/app/build.gradle b/android/app/build.gradle index 8f44683..62df9f0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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 } } } diff --git a/android/app/upload-keystore.jks copy b/android/app/upload-keystore.jks copy new file mode 100644 index 0000000..4f25909 Binary files /dev/null and b/android/app/upload-keystore.jks copy differ diff --git a/android/key.properties copy b/android/key.properties copy new file mode 100644 index 0000000..186b0e4 --- /dev/null +++ b/android/key.properties copy @@ -0,0 +1,4 @@ +storePassword=cargo66 +keyPassword=cargo66 +keyAlias=upload +storeFile=upload-keystore.jks \ No newline at end of file