cocoadebug fixed

This commit is contained in:
DDIsFriend
2023-09-05 10:10:55 +08:00
parent f0812dad0c
commit 1db91e1e14
14 changed files with 54 additions and 211 deletions

View File

@@ -253,8 +253,8 @@
filePath = "OrderScheduling/Main/Initial.swift" filePath = "OrderScheduling/Main/Initial.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "119" startingLineNumber = "127"
endingLineNumber = "119" endingLineNumber = "127"
landmarkName = "networkErrorHandler(response:)" landmarkName = "networkErrorHandler(response:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -269,10 +269,10 @@
filePath = "OrderScheduling/Main/Initial.swift" filePath = "OrderScheduling/Main/Initial.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "120" startingLineNumber = "128"
endingLineNumber = "120" endingLineNumber = "128"
landmarkName = "networkErrorHandler(response:)" landmarkName = "Initial"
landmarkType = "7"> landmarkType = "21">
<Locations> <Locations>
<Location <Location
uuid = "DF79959D-0BBA-40D3-A66A-F71619158179 - 4dcf9988e24c37f" uuid = "DF79959D-0BBA-40D3-A66A-F71619158179 - 4dcf9988e24c37f"
@@ -768,54 +768,6 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "D7C5681F-207E-4416-BD5C-E76811C87DA5"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "41"
endingLineNumber = "41"
landmarkName = "init(assetURL:)"
landmarkType = "7">
<Locations>
<Location
uuid = "D7C5681F-207E-4416-BD5C-E76811C87DA5 - 1c290bd8f9d93389"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (__C.ZFPlayerController, Swift.Bool) -&gt; () in OrderScheduling.VehicleMonitoringVideoDetailController.init(assetURL: Swift.Optional&lt;Foundation.URL&gt;) -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
offsetFromSymbolStart = "384">
</Location>
<Location
uuid = "D7C5681F-207E-4416-BD5C-E76811C87DA5 - 1c290bd8f9d93389"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (__C.ZFPlayerController, Swift.Bool) -&gt; () in OrderScheduling.VehicleMonitoringVideoDetailController.init(assetURL: Swift.Optional&lt;Foundation.URL&gt;) -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
offsetFromSymbolStart = "284">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
@@ -826,22 +778,6 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "35"
endingLineNumber = "35"
landmarkName = "application(_:supportedInterfaceOrientationsFor:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "722976D5-F836-49FD-96AC-DED6423203A5"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "36" startingLineNumber = "36"
endingLineNumber = "36" endingLineNumber = "36"
landmarkName = "application(_:supportedInterfaceOrientationsFor:)" landmarkName = "application(_:supportedInterfaceOrientationsFor:)"
@@ -851,15 +787,15 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "51FF5EE2-FD23-41D2-B8D5-C4A4E1A876A0" uuid = "722976D5-F836-49FD-96AC-DED6423203A5"
shouldBeEnabled = "No" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "38" startingLineNumber = "37"
endingLineNumber = "38" endingLineNumber = "37"
landmarkName = "application(_:supportedInterfaceOrientationsFor:)" landmarkName = "application(_:supportedInterfaceOrientationsFor:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -867,112 +803,16 @@
<BreakpointProxy <BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent <BreakpointContent
uuid = "E1838FB7-A3C8-4759-BDFF-029BB0ED073C" uuid = "51FF5EE2-FD23-41D2-B8D5-C4A4E1A876A0"
shouldBeEnabled = "No" shouldBeEnabled = "No"
ignoreCount = "0" ignoreCount = "0"
continueAfterRunningActions = "No" continueAfterRunningActions = "No"
filePath = "OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "39" startingLineNumber = "39"
endingLineNumber = "39" endingLineNumber = "39"
landmarkName = "init(assetURL:)" landmarkName = "application(_:supportedInterfaceOrientationsFor:)"
landmarkType = "7">
<Locations>
<Location
uuid = "E1838FB7-A3C8-4759-BDFF-029BB0ED073C - 1a040148b4e1358b"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "OrderScheduling.VehicleMonitoringVideoDetailController.init() -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "39"
endingLineNumber = "39"
offsetFromSymbolStart = "1164">
</Location>
<Location
uuid = "E1838FB7-A3C8-4759-BDFF-029BB0ED073C - c30bc7b7a948ca73"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (__C.ZFPlayerController, Swift.Bool) -&gt; () in OrderScheduling.VehicleMonitoringVideoDetailController.init() -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
offsetFromSymbolStart = "52">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "6AF2D12A-7F15-435F-B2A9-3E6E606B8704"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
landmarkName = "init(assetURL:)"
landmarkType = "7">
<Locations>
<Location
uuid = "6AF2D12A-7F15-435F-B2A9-3E6E606B8704 - c30bc7b7a948ca73"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (__C.ZFPlayerController, Swift.Bool) -&gt; () in OrderScheduling.VehicleMonitoringVideoDetailController.init() -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
offsetFromSymbolStart = "52">
</Location>
<Location
uuid = "6AF2D12A-7F15-435F-B2A9-3E6E606B8704 - c30bc7b7a948ca73"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (__C.ZFPlayerController, Swift.Bool) -&gt; () in OrderScheduling.VehicleMonitoringVideoDetailController.init() -&gt; OrderScheduling.VehicleMonitoringVideoDetailController"
moduleName = "OrderScheduling"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/zd/Desktop/%E4%B8%AD%E9%81%93%E6%95%91%E6%8F%B4/OrderScheduling/OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitoringVideoDetailController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
offsetFromSymbolStart = "168">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "6BDAE436-A2A0-4062-B7CB-DEF4553903FA"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "OrderScheduling/VehicleMonitoring/ViewController/VehicleMonitorVideoController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "65"
endingLineNumber = "65"
landmarkName = "categoryView(_:didSelectedItemAt:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
@@ -1274,8 +1114,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "101" startingLineNumber = "102"
endingLineNumber = "101" endingLineNumber = "102"
landmarkName = "jpushNotificationCenter(_:willPresent:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:willPresent:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -1397,8 +1237,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "137" startingLineNumber = "138"
endingLineNumber = "137" endingLineNumber = "138"
landmarkName = "jpushNotificationAuthorization(_:withInfo:)" landmarkName = "jpushNotificationAuthorization(_:withInfo:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1413,8 +1253,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "125" startingLineNumber = "126"
endingLineNumber = "125" endingLineNumber = "126"
landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -1573,8 +1413,8 @@
filePath = "OrderScheduling/Main/Initial.swift" filePath = "OrderScheduling/Main/Initial.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "105" startingLineNumber = "113"
endingLineNumber = "105" endingLineNumber = "113"
landmarkName = "changeRootViewController(window:)" landmarkName = "changeRootViewController(window:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2032,8 +1872,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "43" startingLineNumber = "44"
endingLineNumber = "43" endingLineNumber = "44"
landmarkName = "applicationDidBecomeActive(_:)" landmarkName = "applicationDidBecomeActive(_:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2048,8 +1888,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "127" startingLineNumber = "128"
endingLineNumber = "127" endingLineNumber = "128"
landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:didReceive:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2064,10 +1904,10 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "62" startingLineNumber = "63"
endingLineNumber = "62" endingLineNumber = "63"
landmarkName = "application(_:didReceiveRemoteNotification:)" landmarkName = "AppDelegate"
landmarkType = "7"> landmarkType = "3">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
@@ -2080,8 +1920,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "102" startingLineNumber = "103"
endingLineNumber = "102" endingLineNumber = "103"
landmarkName = "jpushNotificationCenter(_:willPresent:withCompletionHandler:)" landmarkName = "jpushNotificationCenter(_:willPresent:withCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -2173,8 +2013,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "66" startingLineNumber = "67"
endingLineNumber = "66" endingLineNumber = "67"
landmarkName = "application(_:didReceiveRemoteNotification:fetchCompletionHandler:)" landmarkName = "application(_:didReceiveRemoteNotification:fetchCompletionHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
@@ -2189,9 +2029,9 @@
filePath = "OrderScheduling/Main/Initial.swift" filePath = "OrderScheduling/Main/Initial.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "96" startingLineNumber = "104"
endingLineNumber = "96" endingLineNumber = "104"
landmarkName = "initRootViewController()" landmarkName = "changeRootViewController(window:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
@@ -2317,10 +2157,10 @@
filePath = "OrderScheduling/Main/Initial.swift" filePath = "OrderScheduling/Main/Initial.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "111" startingLineNumber = "119"
endingLineNumber = "111" endingLineNumber = "119"
landmarkName = "changeRootViewController(window:)" landmarkName = "Initial"
landmarkType = "7"> landmarkType = "3">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy <BreakpointProxy
@@ -3460,8 +3300,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "18" startingLineNumber = "19"
endingLineNumber = "18" endingLineNumber = "19"
landmarkName = "application(_:didFinishLaunchingWithOptions:)" landmarkName = "application(_:didFinishLaunchingWithOptions:)"
landmarkType = "7"> landmarkType = "7">
<Locations> <Locations>
@@ -3540,8 +3380,8 @@
filePath = "OrderScheduling/Main/AppDelegate.swift" filePath = "OrderScheduling/Main/AppDelegate.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "136" startingLineNumber = "137"
endingLineNumber = "136" endingLineNumber = "137"
landmarkName = "jpushNotificationAuthorization(_:withInfo:)" landmarkName = "jpushNotificationAuthorization(_:withInfo:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -14,7 +14,6 @@ import DDTimerKit_Private
import DDProgressHUDKit_Private import DDProgressHUDKit_Private
import DDAutoUIKit_Private import DDAutoUIKit_Private
import DDControlsKit_Private import DDControlsKit_Private
import CocoaDebug
class LoginController : ZDViewController { class LoginController : ZDViewController {
private let disposeBag = DisposeBag() private let disposeBag = DisposeBag()

View File

@@ -6,7 +6,7 @@
// //
import UIKit import UIKit
import CocoaDebug import DDLogKit_Private
class AppDelegate: UIResponder, UIApplicationDelegate { class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -50,11 +50,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let tokenString = deviceToken.map { String(format: "%02.2hhx", $0) }.joined() let tokenString = deviceToken.map { String(format: "%02.2hhx", $0) }.joined()
USER.deviceToken = tokenString USER.deviceToken = tokenString
print("deviceToken:\(tokenString)") DDLog(message: "deviceToken:\(tokenString)")
} }
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
print("did fail to register for remote notification with error ", error) DDLog(message: ("did fail to register for remote notification with error ", error))
} }
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) { func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
@@ -86,10 +86,10 @@ extension AppDelegate : JPUSHRegisterDelegate {
func jpushNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification) { func jpushNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification) {
if notification.request.trigger?.isKind(of: UNPushNotificationTrigger.self) == true { if notification.request.trigger?.isKind(of: UNPushNotificationTrigger.self) == true {
// //
print("ios12从通知页面进入应用") DDLog(message:"ios12从通知页面进入应用")
}else{ }else{
// //
print("ios12从通知设置进入应用") DDLog(message:"ios12从通知设置进入应用")
} }
} }
@@ -129,9 +129,9 @@ extension AppDelegate : JPUSHRegisterDelegate {
} }
func jpushNotificationAuthorization(_ status: JPAuthorizationStatus, withInfo info: [AnyHashable : Any]?) { func jpushNotificationAuthorization(_ status: JPAuthorizationStatus, withInfo info: [AnyHashable : Any]?) {
print("通知授权状态\(status)") DDLog(message:"通知授权状态\(status)")
USER.regId = JPUSHService.registrationID() USER.regId = JPUSHService.registrationID()
print("registrationID:\(JPUSHService.registrationID())") DDLog(message:"registrationID:\(JPUSHService.registrationID())")
if status != .statusAuthorized { if status != .statusAuthorized {
NOTIAUTHTOOL.requestNotiAuthRelay.accept(nil) NOTIAUTHTOOL.requestNotiAuthRelay.accept(nil)

View File

@@ -14,7 +14,9 @@ import Alamofire
import DDToastKit_Private import DDToastKit_Private
import DDCategoryKit_Private import DDCategoryKit_Private
import DDControlsKit_Private import DDControlsKit_Private
#if DEBUG
import CocoaDebug import CocoaDebug
#endif
import RxSwift import RxSwift
class Initial : NSObject { class Initial : NSObject {
@@ -64,7 +66,9 @@ class Initial : NSObject {
} }
func initCocoaDebug() { func initCocoaDebug() {
#if DEBUG
CocoaDebug.hideBubble() CocoaDebug.hideBubble()
#endif
} }
func initCall() { func initCall() {