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)
}
}
/// 通知断开蓝牙
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()
}
}
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)
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)",
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
- allowLocationSimulation = "YES">
+ allowLocationSimulation = "YES"
+ disablePerformanceAntipatternChecker = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
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)
//
-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"
+
+}
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}
/// 日记管理
class Logger {
- static var isDebug: Bool = true
+ static var isDebug: Bool = false
fileprivate static let shared = Logger()
private var fileHandle:FileHandle?