Created
June 23, 2023 12:10
-
-
Save robsonamendonca/7e56df843517785ba962ceafee67e29c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Comentar Várias LinkedHashSet | |
1. Selecionar LinkedHashSet | |
2. CTRL + K | |
3. CTRL + C | |
2. Remover Comentários | |
1. Selecionar LinkedHashSet | |
2. CTRL + K | |
3. CTRL + U | |
3. Tutorial How to Deploy to Google App Store | |
1. Criando os ícones | |
1. https://www.youtube.com/watch?v=g0GNuoCOtaQ&t=1s | |
2. Icon Generation https://icon.kitchen/ | |
3. flutter pub add flutter_launcher_icons | |
4. flutter pub get | |
5. flutter pub run flutter_launcher_icons | |
2. Alterando o nome do app | |
6. flutter pub global activate rename | |
7. flutter pub global run rename --appname "Nome do Meu App" | |
8. flutter pub global run rename --bundleId com.nomedomeuapp | |
3. Signing the app | |
9. Na pasta Android, criar o arquivo key.properties | |
10. | |
storePassword=<password from previous step> | |
keyPassword=<password from previous step> | |
keyAlias=upload | |
storeFile=path/android/app/upload-keystore.jks | |
11. keytool -genkey -v -keystore path\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload | |
12. Mover o arquivo para a pasta android\app\upload-keystore.jks | |
13. Alterar o caminho no key.properties para storeFile=..app/upload-keystore.jks | |
4. Configure signing in gradle | |
14. Abrir arquivo \android\app\build.gradle | |
15. colar antes da seção andorid | |
def keystoreProperties = new Properties() | |
def keystorePropertiesFile = rootProject.file('key.properties') | |
if (keystorePropertiesFile.exists()) { | |
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
} | |
Find the buildTypes block And replace it with the following signing configuration info: | |
signingConfigs { | |
release { | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null | |
storePassword keystoreProperties['storePassword'] | |
} | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} | |
} | |
5. Limpa e builda | |
flutter clean | |
flutter build appbundle | |
6. Alterar o gitignore para | |
key.properties | |
**/*.keystore | |
**/*.jks | |
7. flutter build appbundle | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment