https://github.com/danieldantasdev/signapp_application_apk_flutter-3.10.5_dart-3.0.6
https://github.com/danieldantasdev/signapp_application_apk_flutter-3.10.5_dart-3.0.6
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danieldantasdev/signapp_application_apk_flutter-3.10.5_dart-3.0.6
- Owner: danieldantasdev
- Created: 2023-07-16T01:43:34.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T02:05:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-25T20:43:10.087Z (4 months ago)
- Language: C++
- Size: 263 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
1. Executar
```shell
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA \
-keysize 2048 -validity 10000 -alias upload
```
2. Criar arquivo em [project]/android/key.properties```properties
storePassword=
keyPassword=
keyAlias=upload
storeFile=
```3. Adicionar em [project]/android/app/build.gradle
```groovy
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}android {
"..."
}
```4. Substituir código em [project]/android/app/build.gradle
### Antes
```groovy
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
}
}```
### Depois
```groovy
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}```
### Referências
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
- [online documentation](https://docs.flutter.dev/)
- [signapp](https://docs.flutter.dev/deployment/android)