手动增加谢总环节口味

This commit is contained in:
葛佳祥 2024-03-22 15:33:17 +08:00
parent f8a989939b
commit 9f365a82c0
3 changed files with 28 additions and 2 deletions

View File

@ -51,6 +51,16 @@ app:
flavorDimensions: "flavor-type"
flavors:
xie:
app:
name: "星锁-xie"
icon: "assets/icon/dev.png"
android:
applicationId: "com.starlock.lock.xie"
customConfig:
signingConfig: signingConfigs.pre
ios:
bundleId: "com.starlock.lock.xie"
dev:
app:
name: "星锁-dev"

View File

@ -1,4 +1,5 @@
enum Flavor {
xie,
dev,
pre,
sky,
@ -20,6 +21,8 @@ class F {
static String get title {
switch (appFlavor) {
case Flavor.xie:
return '星锁-xie';
case Flavor.dev:
return '星锁-dev';
case Flavor.pre:
@ -35,6 +38,8 @@ class F {
static String get navTitle {
switch (appFlavor) {
case Flavor.xie:
return '星锁-xie';
case Flavor.dev:
return '星锁-dev';
case Flavor.pre:
@ -50,10 +55,12 @@ class F {
static String get apiPrefix {
switch (appFlavor) {
// case Flavor.ge:
// return 'https://ge.lock.star-lock.cn';
case Flavor.xie:
return 'http://192.168.1.15:8022';
case Flavor.dev:
return 'https://dev.lock.star-lock.cn';
// return "http://192.168.1.15:8022"; //
// "https://ge.lock.star-lock.cn"; //
case Flavor.pre:
return 'https://pre.lock.star-lock.cn';
case Flavor.sky:
@ -69,6 +76,7 @@ class F {
// StarLockAMapKey
static StarLockAMapKey get aMapKey {
switch (appFlavor) {
case Flavor.xie:
case Flavor.dev:
return const StarLockAMapKey(
androidKey: 'b56b681ee89f4db43a5aa1879ae8cbfe',

View File

@ -0,0 +1,8 @@
import 'flavors.dart';
import 'main.dart' as runner;
Future<void> main() async {
F.appFlavor = Flavor.xie;
await runner.main();
}