眼镜版隐藏掉字幕翻译、Thread Performance Checker去掉勾选,提升性能
authorliangzhenying <867174124@qq.com>
Tue, 17 Mar 2026 08:57:40 +0000 (16:57 +0800)
committerliangzhenying <867174124@qq.com>
Tue, 17 Mar 2026 08:57:40 +0000 (16:57 +0800)
ShenYin/DeepChordsSdk/DCBleManager.swift
ShenYin/ShenYin.xcodeproj/project.pbxproj
ShenYin/ShenYin.xcodeproj/xcshareddata/xcschemes/playboy.xcscheme
ShenYin/ShenYin/Sdk/DcSdk/VC/AiFunctionVC.swift
ShenYin/ShenYin/Sdk/DcSdk/tool/CCConfig.swift
ShenYin/ShenYin/Sdk/DcSdk/tool/DcSdkManager.swift
ShenYin/ShenYin/Sdk/LogManager.swift

index ca49314..fe33588 100644 (file)
@@ -26,7 +26,7 @@ public class DCBleManager{
 
     func send(_ sender:BleSender){
         if let connectPeripheral = connectPeripheral, let writeCha = writeCha {
-            DCLogger.debug("发",writeCha.uuid.uuidString,sender.data.joined())
+//            DCLogger.debug("发",writeCha.uuid.uuidString,sender.data.joined())
             connectPeripheral.writeValue(sender.data, for: writeCha, type:.withoutResponse)
         }
     }
@@ -50,7 +50,7 @@ extension DCBleManager{
 
     /// 通知断开蓝牙
     public func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: Error?) {
-        DCLogger.debug("蓝牙已断开 \(peripheral)")
+        DCLogger.debug("蓝牙已断开 \(peripheral)","error \(error?.localizedDescription ?? "")")
         if DCPhoneRecord.shared.isRecording {
             DCPhoneRecord.shared.stop()
         }
@@ -94,7 +94,7 @@ extension DCBleManager{
             }
             else if data[1] == 0x0D{
                 let subData = data.subdata(in: 2..<data.count - 3)
-                DCLogger.debug("传给字节sdk",subData.joined())
+//                DCLogger.debug("传给字节sdk",subData.joined())
                 StarburstSdk.shared().receiveBleData(subData)
             }else{
                 receiveNoticeData(data)
index 0dd289b..139c9db 100644 (file)
                                CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 202603121640;
+                               CURRENT_PROJECT_VERSION = 202603171655;
                                DEVELOPMENT_TEAM = MAC46RQ4KH;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 202603121640;
+                               CURRENT_PROJECT_VERSION = 202603171655;
                                DEVELOPMENT_TEAM = MAC46RQ4KH;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
index 2cabc21..0c0b10c 100644 (file)
@@ -39,7 +39,8 @@
       ignoresPersistentStateOnLaunch = "NO"
       debugDocumentVersioning = "YES"
       debugServiceExtension = "internal"
-      allowLocationSimulation = "YES">
+      allowLocationSimulation = "YES"
+      disablePerformanceAntipatternChecker = "YES">
       <BuildableProductRunnable
          runnableDebuggingMode = "0">
          <BuildableReference
index 2bc4ef3..c0ca97f 100644 (file)
@@ -27,7 +27,7 @@ class AiFunctionVC:BaseVC{
     override func setupViews() {
         navBar.title = device.productName
         navBar.backgroundColor = .color(.bgColor)
-        navBar.rightView.isHidden = false
+//        navBar.rightView.isHidden = false
         navBar.rightView.setTitle("字幕翻译", for: .normal)
         view.backgroundColor = .color(.bgColor)
         //        navBar.rightView.setImage(UIImage(named: "add_icon"), for: .normal)
index 93e2c4d..7feb772 100644 (file)
@@ -6,36 +6,36 @@
 //
 
 
-class CCConfig{
-    static var appLanguage = AppSupportLanguage.english
-    
-    static let wxAppID = "wxeb3291e720293abc"
-    static let wxUniversalLink = "https://www.playboykq.com/app/"
-    static let appStoreLink = "https://itunes.apple.com/cn/app/6757697090?mt=8"
-    /// 版本检测
-    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6757697090"
-    
-    /// 服务器地址
-    static let baseURL = "https://app-api.deepchords.com"
-    
-    /// 用户隐私协议地址
-    static let yonghuBaseURL = "https://pub-cdn.playboykq.com"
-    
-}
-
 //class CCConfig{
 //    static var appLanguage = AppSupportLanguage.english
-//
+//    
 //    static let wxAppID = "wxeb3291e720293abc"
 //    static let wxUniversalLink = "https://www.playboykq.com/app/"
 //    static let appStoreLink = "https://itunes.apple.com/cn/app/6757697090?mt=8"
 //    /// 版本检测
 //    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6757697090"
-//
+//    
 //    /// 服务器地址
-//    static let baseURL = "https://app-api.playboykq.com"
-//
+//    static let baseURL = "https://app-api.deepchords.com"
+//    
 //    /// 用户隐私协议地址
 //    static let yonghuBaseURL = "https://pub-cdn.playboykq.com"
-//
+//    
 //}
+
+class CCConfig{
+    static var appLanguage = AppSupportLanguage.english
+
+    static let wxAppID = "wxeb3291e720293abc"
+    static let wxUniversalLink = "https://www.playboykq.com/app/"
+    static let appStoreLink = "https://itunes.apple.com/cn/app/6757697090?mt=8"
+    /// 版本检测
+    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6757697090"
+
+    /// 服务器地址
+    static let baseURL = "https://app-api.playboykq.com"
+
+    /// 用户隐私协议地址
+    static let yonghuBaseURL = "https://pub-cdn.playboykq.com"
+
+}
index aed19a7..faa4d40 100644 (file)
@@ -14,7 +14,7 @@ class DcSdkManager{
     func initSdk(){
         DcCall.shared.start()
         DCSdk.shared.initSDK()
-        DCLogger.isDebug = true
+        DCLogger.isDebug = false
         DCSdk.shared.authCallback = {[weak self] (code,msg)in
             DCLogger.debug(code,msg)
             guard let self = self else{return}
index 8735333..f61e054 100644 (file)
@@ -9,7 +9,7 @@ import Foundation
 
 /// 日记管理
 class Logger {
-    static var isDebug: Bool = true
+    static var isDebug: Bool = false
     
     fileprivate static let shared = Logger()
     private var fileHandle:FileHandle?