changes for play store initial release

This commit is contained in:
2024-09-19 21:59:20 -04:00
parent c3717042a1
commit c2c919b55e
5 changed files with 25 additions and 1 deletions

View File

@@ -5,6 +5,12 @@ plugins {
id "dev.flutter.flutter-gradle-plugin"
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace = "net.ything.radio.android"
//compileSdk = flutter.compileSdkVersion
@@ -31,11 +37,21 @@ android {
versionName = flutter.versionName
}
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
}
}
}

View File

@@ -0,0 +1,4 @@
storePassword=
keyPassword=
keyAlias=
storeFile=

View File

@@ -0,0 +1,4 @@
https://docs.flutter.dev/deployment/android#signing-the-app
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.