From 9d0ed3abf6ae65a526b6eb85491d75f3d8a36796 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Mon, 19 May 2025 14:34:09 +0300 Subject: [PATCH] 1.2.8+16 uploaded on play store --- lib/controllers/api_routes/urls.dart | 2 +- lib/new_views/pages/splash_page.dart | 11 +++-------- pubspec.yaml | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/lib/controllers/api_routes/urls.dart b/lib/controllers/api_routes/urls.dart index 4859b8db..aa95fa27 100644 --- a/lib/controllers/api_routes/urls.dart +++ b/lib/controllers/api_routes/urls.dart @@ -1,7 +1,7 @@ class URLs { URLs._(); - static const String appReleaseBuildNumber = "14"; + static const String appReleaseBuildNumber = "15"; static const host1 = "https://atomsm.hmg.com"; // production url // static const host1 = "https://atomsmdev.hmg.com"; // local UAT url diff --git a/lib/new_views/pages/splash_page.dart b/lib/new_views/pages/splash_page.dart index 2f7169c9..13f8e96e 100644 --- a/lib/new_views/pages/splash_page.dart +++ b/lib/new_views/pages/splash_page.dart @@ -172,20 +172,15 @@ class _SplashPageState extends State { Future checkDeviceSafety() async { if (!kReleaseMode) return true; - bool isOnExternalStorage = false; - bool isDevelopmentModeEnable = false; + bool isJailBroken = false; bool isRealDevice = false; try { isJailBroken = await SafeDevice.isJailBroken; isRealDevice = await SafeDevice.isRealDevice; - if (Platform.isAndroid) { - isOnExternalStorage = await SafeDevice.isOnExternalStorage; - isDevelopmentModeEnable = await SafeDevice.isDevelopmentModeEnable; - } - //TODO correct isDevelopmentModeEnable when publish to prod... - if (isJailBroken || !isRealDevice || isOnExternalStorage || isDevelopmentModeEnable) { + + if (isJailBroken || !isRealDevice) { return false; } else { return true; diff --git a/pubspec.yaml b/pubspec.yaml index 87054baa..4e57c676 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.2.7+15 +version: 1.2.8+16 environment: sdk: ">=2.7.0 <3.0.0" @@ -86,7 +86,7 @@ dependencies: wifi_iot: ^0.3.19+1 just_audio: ^0.9.30 pinput: - safe_device: ^1.1.9 + safe_device: ^1.2.1 dev_dependencies: flutter_test: