手动增加谢总环节口味
This commit is contained in:
parent
f8a989939b
commit
9f365a82c0
@ -51,6 +51,16 @@ app:
|
|||||||
flavorDimensions: "flavor-type"
|
flavorDimensions: "flavor-type"
|
||||||
|
|
||||||
flavors:
|
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:
|
dev:
|
||||||
app:
|
app:
|
||||||
name: "星锁-dev"
|
name: "星锁-dev"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
enum Flavor {
|
enum Flavor {
|
||||||
|
xie,
|
||||||
dev,
|
dev,
|
||||||
pre,
|
pre,
|
||||||
sky,
|
sky,
|
||||||
@ -20,6 +21,8 @@ class F {
|
|||||||
|
|
||||||
static String get title {
|
static String get title {
|
||||||
switch (appFlavor) {
|
switch (appFlavor) {
|
||||||
|
case Flavor.xie:
|
||||||
|
return '星锁-xie';
|
||||||
case Flavor.dev:
|
case Flavor.dev:
|
||||||
return '星锁-dev';
|
return '星锁-dev';
|
||||||
case Flavor.pre:
|
case Flavor.pre:
|
||||||
@ -35,6 +38,8 @@ class F {
|
|||||||
|
|
||||||
static String get navTitle {
|
static String get navTitle {
|
||||||
switch (appFlavor) {
|
switch (appFlavor) {
|
||||||
|
case Flavor.xie:
|
||||||
|
return '星锁-xie';
|
||||||
case Flavor.dev:
|
case Flavor.dev:
|
||||||
return '星锁-dev';
|
return '星锁-dev';
|
||||||
case Flavor.pre:
|
case Flavor.pre:
|
||||||
@ -50,10 +55,12 @@ class F {
|
|||||||
|
|
||||||
static String get apiPrefix {
|
static String get apiPrefix {
|
||||||
switch (appFlavor) {
|
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:
|
case Flavor.dev:
|
||||||
return 'https://dev.lock.star-lock.cn';
|
return 'https://dev.lock.star-lock.cn';
|
||||||
// return "http://192.168.1.15:8022"; //谢总本地
|
|
||||||
// "https://ge.lock.star-lock.cn"; //葛工开发环境地址
|
|
||||||
case Flavor.pre:
|
case Flavor.pre:
|
||||||
return 'https://pre.lock.star-lock.cn';
|
return 'https://pre.lock.star-lock.cn';
|
||||||
case Flavor.sky:
|
case Flavor.sky:
|
||||||
@ -69,6 +76,7 @@ class F {
|
|||||||
// StarLockAMapKey
|
// StarLockAMapKey
|
||||||
static StarLockAMapKey get aMapKey {
|
static StarLockAMapKey get aMapKey {
|
||||||
switch (appFlavor) {
|
switch (appFlavor) {
|
||||||
|
case Flavor.xie:
|
||||||
case Flavor.dev:
|
case Flavor.dev:
|
||||||
return const StarLockAMapKey(
|
return const StarLockAMapKey(
|
||||||
androidKey: 'b56b681ee89f4db43a5aa1879ae8cbfe',
|
androidKey: 'b56b681ee89f4db43a5aa1879ae8cbfe',
|
||||||
|
|||||||
8
star_lock/lib/main_xie.dart
Normal file
8
star_lock/lib/main_xie.dart
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import 'flavors.dart';
|
||||||
|
|
||||||
|
import 'main.dart' as runner;
|
||||||
|
|
||||||
|
Future<void> main() async {
|
||||||
|
F.appFlavor = Flavor.xie;
|
||||||
|
await runner.main();
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user