Wednesday, 26 June 2019

Flutter Deployment


flutter tutorial,flutter,flutter tutorial for beginners,flutter app,flutter tutorials,flutter sdk,tutorial,flutter course,learn flutter,flutter tutorial ios,flutter firebase tutorial,flutter widgets,flutter app development tutorial,flutter ios,flutter dart,flutter android,google flutter,flutter sdk tutorial,flutter tutorial app,google flutter tutorial,flutter sqflite tutorial,flutter tutorial deutsch,flutter tutorial android

1 Keystore generate for Flutter


keystore generate
1) keytool-genkey -v -keystore d:/key.jks -keyalg RSA-keysize 2048 - validity 10000 -alias ali name
2) keytool -list -v -keystore dikey.jks - alias ali name -storepass password - keepass password (get detail sh1 key)

build.gradle def keystore Properties = new Properties
def keystore Properties File = rootProject.file(key.properties)

if (keystore Properties File.exists()) {
keystore Properties.load(new
FileInputStream(keystore Properties File
e))}

signingConfigs {
release {
keyAlias keystoreProperties[keyAlias]
keyPassword
keystoreProperties[keyPassword]
storeFile
file(keystoreProperties[storeFile])
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.release

create file key.properties in android
folder keyAlias=alisname
keyPassword=dharm123
storeFile=d:/keystore.jks
store Password=dharm123

2 App change icon


Add this library:
flutter launcher icons

pubspec.yaml add flutter icons image_path: "icon/icon.png"

android: true
ios: true

command line run:
1) flutter pub get
2) flutter pub pub run
flutter_launcher_icons:main