更新版本1.0.21+2024032801
This commit is contained in:
parent
4e779d9c5a
commit
4994bda26f
@ -16,6 +16,8 @@ class StarLockAMapKey {
|
||||
|
||||
class F {
|
||||
static Flavor? appFlavor;
|
||||
// 是否为精简模式(在一些应用商店场景下,需要精简掉一些功能)
|
||||
static bool isLite = false;
|
||||
|
||||
static String get name => appFlavor?.name ?? '';
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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: '演示模式',
|
||||
|
||||
9
star_lock/lib/main_sky_lite.dart
Normal file
9
star_lock/lib/main_sky_lite.dart
Normal 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();
|
||||
}
|
||||
@ -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, () {
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user