Merge remote-tracking branch 'origin/develop' into develop_liyi

This commit is contained in:
liyi 2025-01-08 11:30:53 +08:00
commit 0b65d905b9
16 changed files with 1063 additions and 1041 deletions

View File

@ -95,7 +95,8 @@ generate_git_tag:
- bash pre_build.sh sky
- project_url=$(echo $CI_PROJECT_URL | sed 's/http:\/\///')
- echo "project_url:$project_url"
- git remote set-url origin http://gitlab-ci-token:${GITLAB_ACCESS_TOKEN}@$project_url.git
- echo "CI_SERVER_FQDN:$CI_SERVER_FQDN"
- git remote set-url origin git@$CI_SERVER_FQDN:StarlockTeam/app-starlock.git
script:
- bash tag_generator.sh generate_tag

View File

@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.star_lock">
package="com.skychip.lock">
<uses-permission
android:name="android.permission.BLUETOOTH_SCAN"
@ -65,7 +65,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application
android:name="android.app.Application"
android:name=".App"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
@ -149,7 +149,7 @@
</intent-filter>
</service> <!--兼容Q版本-->
<activity
android:name="com.skychip.lock.MainActivity"
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"

View File

@ -0,0 +1,16 @@
package com.skychip.lock
import io.flutter.app.FlutterApplication
import android.util.Log
import com.umeng.commonsdk.UMConfigure;
class App : FlutterApplication() {
override fun onCreate() {
super.onCreate()
UMConfigure.setLogEnabled(true);
//友盟预初始化
UMConfigure.preInit(getApplicationContext(), "671244cf80464b33f6df9648", "Product");
Log.d("MyApplication", "Application has started")
}
}

View File

@ -87,11 +87,11 @@
<key>NSFileProtectionKey</key>
<string>NSFileProtectionCompleteUntilFirstUserAuthentication</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>应用在前台和后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>应用在后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>应用在前台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSMicrophoneUsageDescription</key>
<string>应用请求麦克风用来通话</string>
<key>NSPhotoLibraryUsageDescription</key>

View File

@ -11,8 +11,8 @@ NSBluetoothAlwaysUsageDescription="The app uses bluetooth to find, connect and t
NSBluetoothPeripheralUsageDescription="The app uses bluetooth to find, connect and transfer data between different devices";
NSCameraUsageDescription="The application requests the camera to take photos for avatar upload and face authentication";
NSContactsUsageDescription="Access the address book to send electronic keys to contacts in the address book";
NSLocationAlwaysAndWhenInUseUsageDescription="updated location information when applying in the front and backend";
NSLocationAlwaysUsageDescription="updated location information when the app is in the background";
NSLocationWhenInUseUsageDescription="updated location information when the app is in the foreground";
NSLocationAlwaysAndWhenInUseUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSLocationAlwaysUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSLocationWhenInUseUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSMicrophoneUsageDescription="request microphone for calls";
NSPhotoLibraryUsageDescription="request photo album for avatar upload";

View File

@ -11,8 +11,8 @@ NSBluetoothAlwaysUsageDescription="The app uses bluetooth to find, connect and t
NSBluetoothPeripheralUsageDescription="The app uses bluetooth to find, connect and transfer data between different devices";
NSCameraUsageDescription="The application requests the camera to take photos for avatar upload and face authentication";
NSContactsUsageDescription="Access the address book to send electronic keys to contacts in the address book";
NSLocationAlwaysAndWhenInUseUsageDescription="updated location information when applying in the front and backend";
NSLocationAlwaysUsageDescription="updated location information when the app is in the background";
NSLocationWhenInUseUsageDescription="updated location information when the app is in the foreground";
NSLocationAlwaysAndWhenInUseUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSLocationAlwaysUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSLocationWhenInUseUsageDescription="We need to access your location information in order to more accurately scan the Bluetooth lock device at your location.";
NSMicrophoneUsageDescription="request microphone for calls";
NSPhotoLibraryUsageDescription="request photo album for avatar upload";

View File

@ -87,11 +87,11 @@
<key>NSFileProtectionKey</key>
<string>NSFileProtectionCompleteUntilFirstUserAuthentication</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>应用在前台和后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>应用在后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>应用在前台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSMicrophoneUsageDescription</key>
<string>应用请求麦克风用来通话</string>
<key>NSPhotoLibraryUsageDescription</key>

View File

@ -85,11 +85,11 @@
<key>NSContactsUsageDescription</key>
<string>Reason we need access to the contact list</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>应用在前台和后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>应用在后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>应用在前台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSMicrophoneUsageDescription</key>
<string>应用请求麦克风用来通话</string>
<key>NSPhotoLibraryUsageDescription</key>

View File

@ -85,11 +85,11 @@
<key>NSContactsUsageDescription</key>
<string>Reason we need access to the contact list</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>应用在前台和后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>应用在后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>应用在前台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSMicrophoneUsageDescription</key>
<string>应用请求麦克风用来通话</string>
<key>NSPhotoLibraryUsageDescription</key>

View File

@ -87,11 +87,11 @@
<key>NSFileProtectionKey</key>
<string>NSFileProtectionCompleteUntilFirstUserAuthentication</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>应用在前台和后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>应用在后台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>应用在前台的时候可以搜到更新的位置信息</string>
<string>我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备</string>
<key>NSMicrophoneUsageDescription</key>
<string>应用请求麦克风用来通话</string>
<key>NSPhotoLibraryUsageDescription</key>

View File

@ -11,8 +11,8 @@ NSBluetoothAlwaysUsageDescription="该应用程序使用蓝牙在不同设备之
NSBluetoothPeripheralUsageDescription="该应用程序使用蓝牙在不同设备之间查找、连接和传输数据";
NSCameraUsageDescription="应用请求相机,以便于拍摄照片,用于头像上传及人脸认证";
NSContactsUsageDescription="应用访问通讯录,用于给通讯录中的联系人发送电子钥匙";
NSLocationAlwaysAndWhenInUseUsageDescription="应用在前台和后台的时候可以搜到更新的位置信息";
NSLocationAlwaysUsageDescription="应用在后台的时候可以搜到更新的位置信息";
NSLocationWhenInUseUsageDescription="应用在前台的时候可以搜到更新的位置信息";
NSLocationAlwaysAndWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationAlwaysUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSMicrophoneUsageDescription="应用请求麦克风用来通话";
NSPhotoLibraryUsageDescription="应用请求相册用于头像上传";

View File

@ -11,8 +11,8 @@ NSBluetoothAlwaysUsageDescription="该应用程序使用蓝牙在不同设备之
NSBluetoothPeripheralUsageDescription="该应用程序使用蓝牙在不同设备之间查找、连接和传输数据";
NSCameraUsageDescription="应用请求相机,以便于拍摄照片,用于头像上传及人脸认证";
NSContactsUsageDescription="应用访问通讯录,用于给通讯录中的联系人发送电子钥匙";
NSLocationAlwaysAndWhenInUseUsageDescription="应用在前台和后台的时候可以搜到更新的位置信息";
NSLocationAlwaysUsageDescription="应用在后台的时候可以搜到更新的位置信息";
NSLocationWhenInUseUsageDescription="应用在前台的时候可以搜到更新的位置信息";
NSLocationAlwaysAndWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationAlwaysUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSMicrophoneUsageDescription="应用请求麦克风用来通话";
NSPhotoLibraryUsageDescription="应用请求相册用于头像上传";

View File

@ -11,8 +11,8 @@ NSBluetoothAlwaysUsageDescription="该应用程序使用蓝牙在不同设备之
NSBluetoothPeripheralUsageDescription="该应用程序使用蓝牙在不同设备之间查找、连接和传输数据";
NSCameraUsageDescription="应用请求相机,以便于拍摄照片,用于头像上传及人脸认证";
NSContactsUsageDescription="应用访问通讯录,用于给通讯录中的联系人发送电子钥匙";
NSLocationAlwaysAndWhenInUseUsageDescription="应用在前台和后台的时候可以搜到更新的位置信息";
NSLocationAlwaysUsageDescription="应用在后台的时候可以搜到更新的位置信息";
NSLocationWhenInUseUsageDescription="应用在前台的时候可以搜到更新的位置信息";
NSLocationAlwaysAndWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationAlwaysUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSLocationWhenInUseUsageDescription="我们需要访问您的位置信息,以便更加精准的扫描到所在位置的蓝牙锁设备";
NSMicrophoneUsageDescription="应用请求麦克风用来通话";
NSPhotoLibraryUsageDescription="应用请求相册用于头像上传";

File diff suppressed because it is too large Load Diff

View File

@ -23,9 +23,12 @@ class AppFirstEnterHandle {
switch (flagStr) {
case isAgreePrivacy: //
if (getFlag != isAgreePrivacy) {
await showPrivacyAgreementAlert();
final bool? isAgree = await showPrivacyAgreementAlert();
if (isAgree ?? false) {
await privacySDKInitialization();
}
}
await privacySDKInitialization();
if (Get.isRegistered<StarLockLoginLogic>()) {
Get.find<StarLockLoginLogic>().flushedDeviceInfo();
}
@ -51,8 +54,8 @@ class AppFirstEnterHandle {
}
//
Future<void> showPrivacyAgreementAlert() async {
await showCupertinoDialog(
Future<bool?> showPrivacyAgreementAlert() async {
return await showCupertinoDialog(
context: Get.context!,
builder: (BuildContext context) {
return PopScope(
@ -103,7 +106,8 @@ class AppFirstEnterHandle {
},
),
TextSpan(
text: '的全部内容。点击“同意”即表示您同意并接受全部条款。若选择不同意,将无法使用我们的产品和服务,并会退出应用。'.tr
text: '的全部内容。点击“同意”即表示您同意并接受全部条款。若选择不同意,将无法使用我们的产品和服务,并会退出应用。'
.tr
.tr),
],
),
@ -123,7 +127,7 @@ class AppFirstEnterHandle {
),
onPressed: () {
Storage.setString(isAgreePrivacy, isAgreePrivacy);
Navigator.of(context).pop();
Navigator.of(context).pop(true);
getAppFirstEnter(isShowUpdateVersion);
},
),
@ -173,7 +177,8 @@ class AppFirstEnterHandle {
},
),
TextSpan(
text: '的全部内容。点击“同意”即表示您同意并接受全部条款。若选择不同意,将无法使用我们的产品和服务,并会退出应用。'.tr
text: '的全部内容。点击“同意”即表示您同意并接受全部条款。若选择不同意,将无法使用我们的产品和服务,并会退出应用。'
.tr
.tr),
],
),
@ -193,7 +198,7 @@ class AppFirstEnterHandle {
),
onPressed: () {
Storage.setString(isAgreePrivacy, isAgreePrivacy);
Navigator.of(context).pop();
Navigator.of(context).pop(true);
getAppFirstEnter(isShowUpdateVersion);
},
),

View File

@ -250,7 +250,7 @@ dependencies:
flutter_bugly: ^1.0.2
open_filex: ^4.4.0
umeng_common_sdk: 1.2.7
umeng_common_sdk: 1.2.8
cryptography: ^2.7.0
asn1lib: ^1.0.0