添加多种口味😋
This commit is contained in:
parent
88cc26a672
commit
c6071fc916
BIN
star_lock/assets/icon/dev.png
Normal file
BIN
star_lock/assets/icon/dev.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
star_lock/assets/icon/pre.png
Normal file
BIN
star_lock/assets/icon/pre.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
star_lock/assets/icon/sky.png
Normal file
BIN
star_lock/assets/icon/sky.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
star_lock/assets/icon/xhj.png
Normal file
BIN
star_lock/assets/icon/xhj.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
93
star_lock/flavorizr.yaml
Normal file
93
star_lock/flavorizr.yaml
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
# 用于编译出不同的APPID
|
||||||
|
|
||||||
|
# 用法:dart run flutter_flavorizr -p xxx
|
||||||
|
|
||||||
|
# 用法-生成flutter风味配置文件(lib/flavors.dart):dart run flutter_flavorizr -p flutter:flavors
|
||||||
|
|
||||||
|
# 用法-生成安卓图标:dart run flutter_flavorizr -p android:icons
|
||||||
|
# 用法-生成安卓构建参数集配置:dart run flutter_flavorizr -p android:androidManifest
|
||||||
|
# 用法-生成安卓构建目标配置:dart run flutter_flavorizr -p android:buildGradle
|
||||||
|
|
||||||
|
# 用法-生成iOS图标:dart run flutter_flavorizr -p ios:icons
|
||||||
|
# 用法-生成iOS构建参数集配置:dart run flutter_flavorizr -p ios:xcconfig
|
||||||
|
# 用法-生成iOS构建目标配置:dart run flutter_flavorizr -p ios:buildTargets
|
||||||
|
|
||||||
|
# 运行:flutter run --flavor <flavorName> -t lib/main.dart
|
||||||
|
# 构建:flutter build --flavor <flavorName> -t lib/main.dart
|
||||||
|
# 例如:flutter run --profile --flavor dev -t lib/main.dart
|
||||||
|
|
||||||
|
flavorizr:
|
||||||
|
app:
|
||||||
|
android:
|
||||||
|
flavorDimensions: "flavor-type"
|
||||||
|
ios:
|
||||||
|
ide: "idea"
|
||||||
|
flavors:
|
||||||
|
dev:
|
||||||
|
app:
|
||||||
|
name: "星锁-dev"
|
||||||
|
icon: "assets/icon/dev.png"
|
||||||
|
instructions: [
|
||||||
|
"android:icons",
|
||||||
|
"android:androidManifest",
|
||||||
|
"android:buildGradle",
|
||||||
|
"ios:icons",
|
||||||
|
"ios:xcconfig",
|
||||||
|
"ios:buildTargets"
|
||||||
|
]
|
||||||
|
android:
|
||||||
|
applicationId: "com.starlock.lock.dev"
|
||||||
|
ios:
|
||||||
|
bundleId: "com.starlock.lock.dev"
|
||||||
|
buildSettings:
|
||||||
|
# 开发团队在苹果开发者门户中可见
|
||||||
|
DEVELOPMENT_TEAM: YOURDEVTEAMID
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER: "Dev-ProvisioningProfile"
|
||||||
|
pre:
|
||||||
|
app:
|
||||||
|
name: "星锁-pre"
|
||||||
|
icon: "assets/icon/pre.png"
|
||||||
|
instructions: [
|
||||||
|
"android:icons",
|
||||||
|
"android:androidManifest",
|
||||||
|
"android:buildGradle",
|
||||||
|
"ios:icons",
|
||||||
|
"ios:xcconfig",
|
||||||
|
"ios:buildTargets"
|
||||||
|
]
|
||||||
|
android:
|
||||||
|
applicationId: "com.starlock.lock.pre"
|
||||||
|
ios:
|
||||||
|
bundleId: "com.starlock.lock.pre"
|
||||||
|
sky:
|
||||||
|
app:
|
||||||
|
name: "锁通通"
|
||||||
|
icon: "assets/icon/sky.png"
|
||||||
|
instructions: [
|
||||||
|
"android:icons",
|
||||||
|
"android:androidManifest",
|
||||||
|
"android:buildGradle",
|
||||||
|
"ios:icons",
|
||||||
|
"ios:xcconfig",
|
||||||
|
"ios:buildTargets"
|
||||||
|
]
|
||||||
|
android:
|
||||||
|
applicationId: "com.skychip.lock"
|
||||||
|
ios:
|
||||||
|
bundleId: "com.skychip.lock"
|
||||||
|
xhj:
|
||||||
|
app:
|
||||||
|
name: "鑫锁"
|
||||||
|
icon: "assets/icon/xhj.png"
|
||||||
|
instructions: [
|
||||||
|
"android:icons",
|
||||||
|
"android:androidManifest",
|
||||||
|
"android:buildGradle",
|
||||||
|
"ios:icons",
|
||||||
|
"ios:xcconfig",
|
||||||
|
"ios:buildTargets"
|
||||||
|
]
|
||||||
|
android:
|
||||||
|
applicationId: "com.xhjcn.lock"
|
||||||
|
ios:
|
||||||
|
bundleId: "com.xhjcn.lock"
|
||||||
@ -150,6 +150,9 @@ dev_dependencies:
|
|||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
||||||
|
# 说明文件在:flavorizr.yaml
|
||||||
|
flutter_flavorizr: ^2.2.1
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user