Skip to content

Latest commit

 

History

History
116 lines (98 loc) · 4.55 KB

File metadata and controls

116 lines (98 loc) · 4.55 KB

I. Release Android:

1. Tạo file key jks ( dùng Android studio )
2. Lưu file vào folder project/android/app
3. Trong file project/android/gradle.properties thay đổi các thông số sau:
MYAPP_RELEASE_STORE_FILE=kename.jks (tên file key jks vừa tạo)
MYAPP_RELEASE_KEY_ALIAS=key0 (Tên key)
MYAPP_RELEASE_STORE_PASSWORD=password	(mật khẩu store)
MYAPP_RELEASE_KEY_PASSWORD=password  (mật khẩu key)
 
4. Thêm đoạn sau vào file project/android/app/build.gradle :
android { // thẻ android chứa compileSdkVersion 28
    signingConfigs {
       debug {
           if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
               storeFile file(MYAPP_RELEASE_STORE_FILE)
               storePassword MYAPP_RELEASE_STORE_PASSWORD
               keyAlias MYAPP_RELEASE_KEY_ALIAS
               keyPassword MYAPP_RELEASE_KEY_PASSWORD
           }
       }
       release {
           if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
               storeFile file(MYAPP_RELEASE_STORE_FILE)
               storePassword MYAPP_RELEASE_STORE_PASSWORD
               keyAlias MYAPP_RELEASE_KEY_ALIAS
               keyPassword MYAPP_RELEASE_KEY_PASSWORD
           }
       }
   }
   buildTypes {
       release {
           signingConfig signingConfigs.release
           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'app/proguard-rules.pro'
       }
   }
}
  1. Mở terminal project gõ lệnh : flutter build apk để lấy file apk -> Vào thư mục project/build/app/outputs/flutter-apk/ : để lấy apk flutter build appbundle --target-platform android-arm,android-arm64,android-x64 để lấy file appbundle -> Vào thư mục project/build/app/outputs/bundle/release/ : để lấy appbundle

II. Release Ios:

B1: Đổi bundle id trong xcode, add app mới trên firebase (đồng thời cập nhật file GoogleService-Info.plist)

B2:Config push noti trên firebase: Vào app => Settings => Cloud messaging => thêm APNs Authentication Key (lấy trên acc dev) trong app ios

B4: Cài đặt flutter và run

Chạy lệnh lấy lib về: flutter package get Đóng gói dart sang native: flutter build ios Mở xcode lên build và upstore như native

A. IOS:

- 1 screen short: 
  1.1 6.5 inch (iPhone 13 Pro Max, iPhone 12 Pro Max, iPhone 11 Pro Max, iPhone 11, iPhone XS Max, iPhone XR)
               2688 x 1242 pixels (19.5:9 aspect ratio)
  1.2 5.5 inch (iPhone 6s Plus, iPhone 7 Plus, iPhone 8 Plus) 
              2208 x 1242 pixels (Rendered Pixels)
              1920 x 1080 pixels (Physical Pixels)
  1.3 12.9 inch (iPad Pro (3rd generation)) 
              2732 x 2048 pixels (4:3 aspect ratio)

B Android

* More

C Up app:

D Up store success:

  • 1 Android Login fb: config sh1, hash key:
    • sh1: lấy trên store ch play
    • hash key: run git bash trên windown: sh echo <sh1> | xxd -r -p | openssl base64
    • mac: sh echo -n "abc"| openssl sha1 -binary | base64
  • 2 Android Firebase auth: config sh1

E May ảo

F: Android: install .apk programmatically [duplicate]

*Note: Ảnh dùng theo 3 size: low: 100px, medium: 300px, high: 500px

G: Create drawble android:

https://www.img-bak.in/tbjNPVCqVzjxLZVIvfGHUT8nMvLhDyIr/