更新版本1.0.21+2024032801

This commit is contained in:
葛佳祥 2024-03-28 09:51:30 +08:00
parent 4e779d9c5a
commit 4994bda26f
9 changed files with 21 additions and 11 deletions

View File

@ -16,6 +16,8 @@ class StarLockAMapKey {
class F {
static Flavor? appFlavor;
// ()
static bool isLite = false;
static String get name => appFlavor?.name ?? '';

View File

@ -201,8 +201,7 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
child: SizedBox(
width: 10.sp,
)),
// Google暂时屏蔽
F.appFlavor == Flavor.sky
F.isLite
? Container()
: GestureDetector(
child: SizedBox(

View File

@ -40,7 +40,7 @@ Future _initTranslation() async => TranslationLoader.loadTranslation(
Future _setCommonServices() async {
await Get.putAsync(() => StoreService().init());
await Get.putAsync(() => PlatformInfoService().init());
if (F.appFlavor == Flavor.sky) {
if (F.isLite) {
//
// await Get.putAsync(() => DeviceInfoService().init());
} else {

View File

@ -215,8 +215,7 @@ class _StarLockMainPageState extends State<StarLockMainPage> with BaseWidget {
SizedBox(
height: 160.h,
),
// Google暂时屏蔽
F.appFlavor == Flavor.sky
F.isLite
? Container()
: SubmitBtn(
btnName: '演示模式',

View File

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

View File

@ -146,14 +146,14 @@ class StarLockMinePageState extends State<StarLockMinePage> with BaseWidget {
Get.toNamed(Routers.mineSetPage);
}),
//
F.appFlavor == Flavor.sky
F.isLite
? Container()
: mineItem('images/mine/icon_mine_main_vip.png',
TranslationLoader.lanKeys!.valueAddedServices!.tr, () {
Get.back();
Get.toNamed(Routers.valueAddedServicesPage);
}),
F.appFlavor == Flavor.sky
F.isLite
? Container()
: mineItem(
'images/mine/icon_mine_main_shoppingcart.png', "配件商城".tr, () {

View File

@ -204,7 +204,7 @@ class _MineSetPageState extends State<MineSetPage> with WidgetsBindingObserver {
height: 10.h,
),
//
F.appFlavor == Flavor.sky
F.isLite
? Container()
: CommonItem(
leftTitel: "Amazon Alexa",
@ -214,7 +214,7 @@ class _MineSetPageState extends State<MineSetPage> with WidgetsBindingObserver {
action: () {
logic.showToast("功能暂未开放");
}),
F.appFlavor == Flavor.sky
F.isLite
? Container()
: CommonItem(
leftTitel: "Google Home",
@ -224,7 +224,7 @@ class _MineSetPageState extends State<MineSetPage> with WidgetsBindingObserver {
action: () {
logic.showToast("功能暂未开放");
}),
F.appFlavor == Flavor.sky
F.isLite
? Container()
: CommonItem(
leftTitel: TranslationLoader.lanKeys!.xiaomiIOTPlatform!.tr,

View File

@ -22,7 +22,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 1.0.18+2024032002修复注册页布局错乱修复第二次才可以删除锁的问题修改申请权限字符串
# 1.0.18+20240321(2024032101):打包给欧阳测试
# 1.0.20+2024032102修复Apple Store App Tracking Transparency权限问题
version: 1.0.20+2024032102
# 1.0.21+2024032801同为斯凯环境也区分删减版和完整版通过main_sky_lite.dart/main_sky_full.dart切换
version: 1.0.21+2024032801
environment:
sdk: '>=2.12.0 <3.0.0'