Quellcode durchsuchen

1.上传 下载 备份 第一次需要弹框

huangxiaodong vor 1 Jahr
Ursprung
Commit
f02f90a129

+ 9 - 0
创维盒子/双子星云手机/AppDelegate/Config/Const.h

@@ -89,6 +89,12 @@ UIKIT_EXTERN NSString *const Const_did_show_image_version_date;
 /*标记是否使用流量上传下载*/
 UIKIT_EXTERN NSString *const Const_file_Transfe_canUse_Cellular;
 
+/*标记是否阅读过上传提醒*/
+UIKIT_EXTERN NSString *const Const_file_upLoad_need_read;
+
+/*标记是否阅读过下载提醒*/
+UIKIT_EXTERN NSString *const Const_file_downLoad_need_read;
+
 /*标记是否低电量上传下载*/
 UIKIT_EXTERN NSString *const Const_file_Transfe_battery_level;
 
@@ -101,6 +107,9 @@ UIKIT_EXTERN NSString *const Const_photo_backups_default_path;
 /*标记是否使用流量备份*/
 UIKIT_EXTERN NSString *const Const_file_backups_canUse_Cellular;
 
+/*标记是否阅读过备份提醒*/
+UIKIT_EXTERN NSString *const Const_file_backups_need_read;
+
 /*标记是否低电量备份*/
 UIKIT_EXTERN NSString *const Const_file_backups_battery_level;
 

+ 9 - 0
创维盒子/双子星云手机/AppDelegate/Config/Const.m

@@ -85,6 +85,12 @@ NSString *const Const_did_show_image_version_date  = @"did_show_image_version_da
 /*标记是否使用流量上传下载*/
 NSString *const Const_file_Transfe_canUse_Cellular  = @"file_Transfe_canUse_Cellular";
 
+/*标记是否阅读过上传提醒*/
+NSString *const Const_file_upLoad_need_read = @"file_upload_need_read";
+
+/*标记是否阅读过下载提醒*/
+NSString *const Const_file_downLoad_need_read = @"file_download_need_read";;
+
 /*标记是否低电量上传下载*/
 NSString *const Const_file_Transfe_battery_level  = @"file_Transfe_battery_level";
 
@@ -97,6 +103,9 @@ NSString *const Const_photo_backups_default_path = @"photo_backups_default_path"
 /*标记是否使用流量备份*/
 NSString *const Const_file_backups_canUse_Cellular = @"file_backups_canUse_Cellular";
 
+/*标记是否阅读过备份提醒*/
+NSString *const Const_file_backups_need_read = @"file_backups_need_read";
+
 /*标记是否低电量备份*/
 NSString *const Const_file_backups_battery_level = @"file_backups_battery_level";
 

+ 1 - 0
创维盒子/双子星云手机/AppDelegate/PrefixHeader.pch

@@ -46,6 +46,7 @@
 #import "AppDelegate.h"
 #import "connectDeviceManager.h"
 #import "cachesFileManager.h"
+#import "ComontAlretViewController.h"
 
 #define globalBlock(block) dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), block)
 

+ 39 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileRecordViewController.m

@@ -422,6 +422,7 @@
     mainBlock(^{
         weakSelf.didGetUploadDataType = YES;
         [weakSelf handleRemoveIndicator];
+        [weakSelf showUploadOrDownReadTipFun:YES];
     });
     
     [self realGotoUploadFile:indexPathsForSelectedItems];
@@ -862,6 +863,7 @@
 -(void)gotoDownloadFile:(NSMutableArray*)selectedItems
 {
     KWeakSelf
+    [weakSelf showUploadOrDownReadTipFun:YES];
     [[downloadManager shareInstance] handleCouldPhoneFileModelToDownloadFileDataFunBy:selectedItems complete:^(NSMutableArray * _Nonnull Arr) {
         
         weakSelf.didGetDownloadDataType = YES;
@@ -1011,4 +1013,41 @@
 }
 
 
+- (void)showUploadOrDownReadTipFun:(BOOL)isUploadType
+{
+    BOOL didReadUploadTipType = [HWDataManager getBoolWithKey:Const_file_upLoad_need_read];
+    BOOL didReadDownloadTipType = [HWDataManager getBoolWithKey:Const_file_downLoad_need_read];
+    
+    if(didReadUploadTipType  && didReadDownloadTipType){//阅读过
+        return;
+    }
+    
+    //KWeakSelf
+    /*弹窗提示恢复出厂*/
+    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
+                                                                                     msg:NSLocalizedString(@"backups_need_read_msg",nil)
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
+                                                                                 okTitle:nil
+                                                                        isOkBtnHighlight:NO
+                                                                              didClickOk:^{
+        
+    } didClickCancel:^{
+        if(isUploadType){
+            [HWDataManager setBoolWithKey:Const_file_upLoad_need_read value:YES];
+        }
+        else{
+            [HWDataManager setBoolWithKey:Const_file_downLoad_need_read value:YES];
+        }
+    }];
+    
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+    
+    [self presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+    
+}
+
+
 @end

+ 31 - 0
创维盒子/双子星云手机/Class/Set/view/mySetHeadView.m

@@ -499,6 +499,8 @@
         
     }
 
+    [self showBackupsReadTipFun];
+    
     [HWDataManager setBoolWithKey:stringKeyAddSn(Const_photo_backups_state) value:YES];
     [self setBackupsStateFun];
     [[iToast makeText:NSLocalizedString(@"set_Privacy_title_image_open",nil)] show];
@@ -506,6 +508,35 @@
     [[backupsFileManager shareInstance] handlePhotosBackupsFun];
 }
 
+- (void)showBackupsReadTipFun
+{
+    BOOL didReadbackupsTipType = [HWDataManager getBoolWithKey:Const_file_backups_need_read];
+    if(didReadbackupsTipType){//阅读过
+        return;
+    }
+    
+    //KWeakSelf
+    /*弹窗提示恢复出厂*/
+    ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
+                                                                                     msg:NSLocalizedString(@"backups_need_read_msg",nil)
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
+                                                                                 okTitle:nil
+                                                                        isOkBtnHighlight:NO
+                                                                              didClickOk:^{
+        
+    } didClickCancel:^{
+        [HWDataManager setBoolWithKey:Const_file_backups_need_read value:YES];
+    }];
+    
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+    
+    [[iTools appRootViewController] presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+    
+}
+
 - (void)setBackupsStateFun
 {
     BOOL haveOpenBackups = [HWDataManager getBoolWithKey:stringKeyAddSn(Const_photo_backups_state)];

+ 6 - 0
创维盒子/双子星云手机/en.lproj/Localizable.strings

@@ -399,3 +399,9 @@
 "netWork_error_tip_content" = "iphone network abnormality, please check the current network permissions, or drag to the bottom of the settings to find Private-x and enter to view wireless data permissions";
 "scan_sn_data_error_tip"   = "Device info not found. Scan to bind a new one.";
 "File_Transfer_By_Cellular_tip"   = "Data transmission will be paused in non-WIFI environments. Please enable data transmission in the settings page";
+"backups_need_read_msg" = "1. When uploading/downloading files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions.
+2. Please keep the app running in the foreground during file transfer as exiting may cause interruptions.
+3. Uploading/downloading files may impact the cloud phone operation experience; it is advisable to complete file transfers before engaging in cloud phone operations.
+4. When backing up files, the system will request access to your photo library. To ensure a smooth experience, it is recommended to choose \"Allow Full Access\" to avoid frequent pop-up interruptions. Permission path: Settings > private-X app > Photos > Full Access
+5. Remember to keep the app running in the foreground while backing up files, as exiting may result in interrupted transfers.
+6. Backing up files may affect the cloud phone operation experience; it is recommended to finish file transfers before using cloud phone operations.";

+ 6 - 0
创维盒子/双子星云手机/ja.lproj/Localizable.strings

@@ -398,3 +398,9 @@
 "netWork_error_tip_content" = "携帯電話のネットワークに異常がある場合は、現在のネットワーク権限を確認するか、設定の下にPrivate-xを見つけてワイヤレスデータを表示する権限を確認してください";
 "scan_sn_data_error_tip"   = "デバイス情報未確認。新デバイスをスキャンして繋ぐる。";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境では伝輸を一時停止します。設定画面でデータ伝輸を有効にしてください";
+"backups_need_read_msg" = "1. ファイルをアップロード/ダウンロードする際、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
+2. ファイル転送中は、アプリを前面で実行しておくことをお勧めします。終了すると転送が中断される可能性があります。
+3. ファイルのアップロード/ダウンロードはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。
+4. ファイルのバックアップ時、システムは写真ライブラリへのアクセス権を要求します。スムーズな体験のためには、「完全アクセスを許可」を選択して頻繁なポップアップを回避することをお勧めします。 権限パス:設定 > private-Xアプリ > 写真 > 完全アクセス
+5. ファイルをバックアップする際は、アプリを前面で実行しておいてください。終了すると転送が中断される可能性があります。
+6. ファイルのバックアップはクラウドフォンの操作体験に影響を与える場合があります。クラウドフォンの操作を行う前にファイル転送を完了することをお勧めします。";

+ 6 - 0
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -398,3 +398,9 @@
 "netWork_error_tip_content" = "手机网络异常,请检查当前网络权限,或者在设置里拉到底部找到Private-x进入查看无线数据权限";
 "scan_sn_data_error_tip"   = "设备信息不存在,请扫码绑定新设备";
 "File_Transfer_By_Cellular_tip"   = "非WIFI环境将暂停传输,请在设置页面开启流量传输";
+"backups_need_read_msg" = "1、上传/下载文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问\n
+2、上传/下载文件时,请保持APP前台运行,退出将会导致传输中断;\n
+3、上传/下载文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;\n
+4、备份文件时,系统将请求相册访问权限。为确保顺畅体验,建议您选择【允许完全访问】,以避免频繁弹窗打扰。权限路径:设置> private-X应用>照片>完全访问;\n
+5、备份文件时,请保持APP前台运行,退出将会导致传输中断;\n
+6、备份文件时,可能会影响云机操作体验,建议先完成文件传输再进行云机操作;";

+ 8 - 0
创维盒子/双子星云手机/zh-Hant.lproj/Localizable.strings

@@ -398,3 +398,11 @@
 "netWork_error_tip_content" = "手機網絡异常,請檢查當前網絡許可權,或者在設定里拉到底部找到Private-x進入查看無線數據許可權";
 "scan_sn_data_error_tip"   = "設備資訊不存在,請掃碼綁定新設備";
 "File_Transfer_By_Cellular_tip"   = "非WIFI環境將暂停傳輸,請在设置頁面開啟流量傳輸";
+"backups_need_read_msg" = "1. 上傳/下載文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
+權限路徑:設置> private-X應用>照片>完全訪問\n
+2. 上傳/下載文件時,請保持APP在前台運行,退出將導致傳輸中斷;
+3. 上傳/下載文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;
+4. 備份文件時,系統將請求相冊訪問權限。為確保順暢體驗,建議您選擇【允許完全訪問】,以避免頻繁彈窗打擾。
+權限路徑:設置> private-X應用>照片>完全訪問\n
+5. 備份文件時,請保持APP在前台運行,退出將導致傳輸中斷;
+6. 備份文件時,可能會影響雲機操作體驗,建議先完成文件傳輸再進行雲機操作;";