口味:xie改为local

This commit is contained in:
葛佳祥 2024-04-08 13:30:35 +08:00
parent 28554dd0e4
commit fe8569e82d
9 changed files with 20 additions and 22 deletions

View File

@ -36,8 +36,8 @@ android {
keyAlias = 'starlock' keyAlias = 'starlock'
keyPassword '123456' keyPassword '123456'
} }
// xiepreskyxhj // localpreskyxhj
xie { local {
storeFile file("starlock.keystore") storeFile file("starlock.keystore")
storePassword '123456' storePassword '123456'
keyAlias = 'starlock' keyAlias = 'starlock'
@ -68,12 +68,12 @@ android {
flavorDimensions "flavor-type" flavorDimensions "flavor-type"
productFlavors { productFlavors {
xie { local {
dimension "flavor-type" dimension "flavor-type"
applicationId "com.starlock.lock.xie" applicationId "com.starlock.lock.local"
signingConfig signingConfigs.pre signingConfig signingConfigs.pre
resValue "string", "app_name", "星锁-xie" resValue "string", "app_name", "星锁-local"
manifestPlaceholders.JPUSH_PKGNAME = "com.starlock.lock.xie" manifestPlaceholders.JPUSH_PKGNAME = "com.starlock.lock.local"
} }
dev { dev {
dimension "flavor-type" dimension "flavor-type"
@ -182,7 +182,7 @@ android {
// //
minifyEnabled false minifyEnabled false
shrinkResources false shrinkResources false
productFlavors.xie.signingConfig signingConfigs.pre productFlavors.local.signingConfig signingConfigs.pre
productFlavors.dev.signingConfig signingConfigs.pre productFlavors.dev.signingConfig signingConfigs.pre
productFlavors.pre.signingConfig signingConfigs.pre productFlavors.pre.signingConfig signingConfigs.pre
productFlavors.sky.signingConfig signingConfigs.sky productFlavors.sky.signingConfig signingConfigs.sky

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

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

View File

@ -1,7 +1,7 @@
import 'package:get/get.dart'; import 'package:get/get.dart';
enum Flavor { enum Flavor {
xie, local,
dev, dev,
pre, pre,
sky, sky,
@ -25,8 +25,8 @@ class F {
static String get title { static String get title {
switch (appFlavor) { switch (appFlavor) {
case Flavor.xie: case Flavor.local:
return '星锁-xie'; return '星锁-local';
case Flavor.dev: case Flavor.dev:
return '星锁-dev'; return '星锁-dev';
case Flavor.pre: case Flavor.pre:
@ -42,8 +42,8 @@ class F {
static String get navTitle { static String get navTitle {
switch (appFlavor) { switch (appFlavor) {
case Flavor.xie: case Flavor.local:
return '${"starLock".tr}-xie'; return '${"starLock".tr}-local';
case Flavor.dev: case Flavor.dev:
return '${"starLock".tr}-dev'; return '${"starLock".tr}-dev';
case Flavor.pre: case Flavor.pre:
@ -59,10 +59,8 @@ class F {
static String get apiPrefix { static String get apiPrefix {
switch (appFlavor) { switch (appFlavor) {
// case Flavor.ge: case Flavor.local:
// return 'https://ge.lock.star-lock.cn'; 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';
case Flavor.pre: case Flavor.pre:
@ -80,7 +78,7 @@ class F {
// StarLockAMapKey // StarLockAMapKey
static StarLockAMapKey get aMapKey { static StarLockAMapKey get aMapKey {
switch (appFlavor) { switch (appFlavor) {
case Flavor.xie: case Flavor.local:
case Flavor.dev: case Flavor.dev:
return const StarLockAMapKey( return const StarLockAMapKey(
androidKey: 'b56b681ee89f4db43a5aa1879ae8cbfe', androidKey: 'b56b681ee89f4db43a5aa1879ae8cbfe',

View File

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