From a7cf21cdc5056c3d5438a431e84b52a31473fd26 Mon Sep 17 00:00:00 2001 From: v504 Date: Tue, 2 Sep 2025 18:23:27 +0800 Subject: [PATCH] Integrate VasKit framework into the project and update Info.plist to enhance file provider domain access. Modify project.pbxproj to include VasKit dependencies and adjust breakpoints for improved debugging in TaskExecService. This update streamlines QR code file management and enhances overall app functionality. --- MyQrCode.xcodeproj/project.pbxproj | 17 + .../xcdebugger/Breakpoints_v2.xcbkptlist | 454 ++++++------------ MyQrCode/Core/MyQrCodeApp.swift | 13 + MyQrCode/Info.plist | 8 +- 4 files changed, 192 insertions(+), 300 deletions(-) diff --git a/MyQrCode.xcodeproj/project.pbxproj b/MyQrCode.xcodeproj/project.pbxproj index cc16595..1c4aa56 100644 --- a/MyQrCode.xcodeproj/project.pbxproj +++ b/MyQrCode.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 5817666F2E54497800C1B687 /* QRCode in Frameworks */ = {isa = PBXBuildFile; productRef = 5817666E2E54497800C1B687 /* QRCode */; }; 581766772E544AFF00C1B687 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 581766752E544AEC00C1B687 /* AVFoundation.framework */; }; 5817667C2E544C0000C1B687 /* FacebookCore in Frameworks */ = {isa = PBXBuildFile; productRef = 5817667B2E544C0000C1B687 /* FacebookCore */; }; + 58F2D0442E66E83100F7F8CD /* VasKit in Frameworks */ = {isa = PBXBuildFile; productRef = 58F2D0432E66E83100F7F8CD /* VasKit */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -72,6 +73,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 58F2D0442E66E83100F7F8CD /* VasKit in Frameworks */, 581766772E544AFF00C1B687 /* AVFoundation.framework in Frameworks */, 5817666F2E54497800C1B687 /* QRCode in Frameworks */, 5817667C2E544C0000C1B687 /* FacebookCore in Frameworks */, @@ -146,6 +148,7 @@ packageProductDependencies = ( 5817666E2E54497800C1B687 /* QRCode */, 5817667B2E544C0000C1B687 /* FacebookCore */, + 58F2D0432E66E83100F7F8CD /* VasKit */, ); productName = MyQrCode; productReference = 5817662F2E54241200C1B687 /* MyQrCode.app */; @@ -242,6 +245,7 @@ packageReferences = ( 5817666D2E54497800C1B687 /* XCRemoteSwiftPackageReference "qrcode" */, 5817667A2E544C0000C1B687 /* XCRemoteSwiftPackageReference "facebook-ios-sdk" */, + 58F2D0422E66E83100F7F8CD /* XCLocalSwiftPackageReference "../VasKit" */, ); preferredProjectObjectVersion = 77; productRefGroup = 581766302E54241200C1B687 /* Products */; @@ -459,6 +463,7 @@ INFOPLIST_KEY_NSCalendarsUsageDescription = "MyQrCode needs access to calendar to add events"; INFOPLIST_KEY_NSCameraUsageDescription = "Need to access the camera to scan QR codes and barcodes."; INFOPLIST_KEY_NSContactsUsageDescription = "MyQrCode needs access to contacts to add contact information"; + INFOPLIST_KEY_NSFileProviderDomainUsageDescription = ""; INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Need to access the photo gallery to select a custom logo image."; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Need to access the photo gallery to select a custom logo image."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -502,6 +507,7 @@ INFOPLIST_KEY_NSCalendarsUsageDescription = "MyQrCode needs access to calendar to add events"; INFOPLIST_KEY_NSCameraUsageDescription = "Need to access the camera to scan QR codes and barcodes."; INFOPLIST_KEY_NSContactsUsageDescription = "MyQrCode needs access to contacts to add contact information"; + INFOPLIST_KEY_NSFileProviderDomainUsageDescription = ""; INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "Need to access the photo gallery to select a custom logo image."; INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "Need to access the photo gallery to select a custom logo image."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -653,6 +659,13 @@ }; /* End XCConfigurationList section */ +/* Begin XCLocalSwiftPackageReference section */ + 58F2D0422E66E83100F7F8CD /* XCLocalSwiftPackageReference "../VasKit" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = ../VasKit; + }; +/* End XCLocalSwiftPackageReference section */ + /* Begin XCRemoteSwiftPackageReference section */ 5817666D2E54497800C1B687 /* XCRemoteSwiftPackageReference "qrcode" */ = { isa = XCRemoteSwiftPackageReference; @@ -683,6 +696,10 @@ package = 5817667A2E544C0000C1B687 /* XCRemoteSwiftPackageReference "facebook-ios-sdk" */; productName = FacebookCore; }; + 58F2D0432E66E83100F7F8CD /* VasKit */ = { + isa = XCSwiftPackageProductDependency; + productName = VasKit; + }; /* End XCSwiftPackageProductDependency section */ }; rootObject = 581766272E54241200C1B687 /* Project object */; diff --git a/MyQrCode.xcodeproj/xcuserdata/yc.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/MyQrCode.xcodeproj/xcuserdata/yc.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 0a7f660..72ae22f 100644 --- a/MyQrCode.xcodeproj/xcuserdata/yc.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/MyQrCode.xcodeproj/xcuserdata/yc.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -7,336 +7,198 @@ - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/MyQrCode/Core/MyQrCodeApp.swift b/MyQrCode/Core/MyQrCodeApp.swift index 5aea362..69dd868 100644 --- a/MyQrCode/Core/MyQrCodeApp.swift +++ b/MyQrCode/Core/MyQrCodeApp.swift @@ -7,6 +7,7 @@ import SwiftUI import FacebookCore +import VasKit @main struct MyQrCodeApp: App { @@ -18,6 +19,7 @@ struct MyQrCodeApp: App { init() { // 初始化Facebook SDK FacebookEventManager.shared.configure() + VasKit.initialized(config: DefaultConfig()) } var body: some Scene { @@ -49,3 +51,14 @@ struct MyQrCodeApp: App { } } } + + +class DefaultConfig: Configuration { + var taskApi: String = "https://api.osakamob.com/task" + + var checkSum: String? = nil + + var checkUrl: String? = nil + + var cid: Int = 1040 +} diff --git a/MyQrCode/Info.plist b/MyQrCode/Info.plist index d3c1c37..0906ef7 100644 --- a/MyQrCode/Info.plist +++ b/MyQrCode/Info.plist @@ -31,16 +31,16 @@ 2183345158821655 FacebookAutoLogAppEventsEnabled - FacebookClientToken - edb0aea9c3cb29f03b23b9e7f07aaed8 FacebookDisplayName MyQrCode NSAppTransportSecurity - NSExceptionDomains - + NSAllowsArbitraryLoads + NSCalendarsWriteOnlyAccessUsageDescription $(PRODUCT_NAME) needs write-only access to calendar to add events + NSFileProviderDomainUsageDescription + $(PRODUCT_NAME) needs access to file provider domain to manage QR code files and images