flutter release build setting
- FLUTTER
- 2022. 3. 21.
반응형
https://flutter-ko.dev/docs/deployment/android
로컬에서 릴리즈 빌드를 위한 설정.
keytool -genkey -v -keystore ~/someapp-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias someapp-release-key
flutter run -t lib/main_dev.dart --flavor dev --release
flutter build apk -t lib/main_dev.dart --flavor dev --release --target-platform=android-arm64
storePassword=ThisIspassword
keyPassword=ThisIspassword
keyAlias=someapp-release-key
storeFile=/Users/mac/someapp-release-key.jks
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
반응형
'FLUTTER' 카테고리의 다른 글
ReorderableListView 드래그앤드랍 리스트 (0) | 2022.03.27 |
---|---|
flutter build commands (0) | 2022.03.23 |
flutter dependencies pub cache 에러날 경우 (0) | 2022.03.17 |
android studio flutter cocoapods not installed error message (0) | 2022.02.05 |
WINDOWS Setting FLUTTER & REACT NATIVE (0) | 2022.02.02 |