diff --git a/packages/frontend/apps/ios/App/App.xcodeproj/project.pbxproj b/packages/frontend/apps/ios/App/App.xcodeproj/project.pbxproj index 55f436619..7ebf6fcc4 100644 --- a/packages/frontend/apps/ios/App/App.xcodeproj/project.pbxproj +++ b/packages/frontend/apps/ios/App/App.xcodeproj/project.pbxproj @@ -3,13 +3,12 @@ archiveVersion = 1; classes = { }; - objectVersion = 56; + objectVersion = 77; objects = { /* Begin PBXBuildFile section */ 2E0DD47B57B994A104B25EED /* Pods_AFFiNE.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF48636D7DB5BEE00770FD9A /* Pods_AFFiNE.framework */; }; 5075136A2D1924C600AD60C0 /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507513692D1924C600AD60C0 /* RootViewController.swift */; }; - 5075136E2D1925BC00AD60C0 /* IntelligentsPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5075136D2D1925BC00AD60C0 /* IntelligentsPlugin.swift */; }; 50802D612D112F8700694021 /* Intelligents in Frameworks */ = {isa = PBXBuildFile; productRef = 50802D602D112F8700694021 /* Intelligents */; settings = {ATTRIBUTES = (Required, ); }; }; 50A285D72D112A5E000D5A6D /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 50A285D62D112A5E000D5A6D /* Localizable.xcstrings */; }; 50A285D82D112A5E000D5A6D /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 50A285D52D112A5E000D5A6D /* InfoPlist.xcstrings */; }; @@ -56,7 +55,6 @@ 5039CC962D1D42C700874F32 /* AffineGraphQL */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = AffineGraphQL; sourceTree = ""; }; 504EC3041FED79650016851F /* AFFiNE.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AFFiNE.app; sourceTree = BUILT_PRODUCTS_DIR; }; 507513692D1924C600AD60C0 /* RootViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootViewController.swift; sourceTree = ""; }; - 5075136D2D1925BC00AD60C0 /* IntelligentsPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IntelligentsPlugin.swift; sourceTree = ""; }; 50802D5E2D112F7D00694021 /* Intelligents */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Intelligents; sourceTree = ""; }; 50A285D52D112A5E000D5A6D /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = ""; }; 50A285D62D112A5E000D5A6D /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = ""; }; @@ -92,8 +90,6 @@ /* Begin PBXFileSystemSynchronizedRootGroup section */ C45499AB2D140B5000E21978 /* NBStore */ = { isa = PBXFileSystemSynchronizedRootGroup; - exceptions = ( - ); path = NBStore; sourceTree = ""; }; @@ -179,7 +175,6 @@ 9D90BE172CCB9876006677DB /* CookieManager.swift */, 9D90BE182CCB9876006677DB /* CookiePlugin.swift */, 9D6A85322CCF6DA700DAB35F /* HashcashPlugin.swift */, - 5075136D2D1925BC00AD60C0 /* IntelligentsPlugin.swift */, ); path = Cookie; sourceTree = ""; @@ -342,9 +337,13 @@ ); inputFileListPaths = ( ); + inputPaths = ( + ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AFFiNE/Pods-AFFiNE-frameworks.sh\"\n"; @@ -376,7 +375,6 @@ buildActionMask = 2147483647; files = ( 9D52FC432D26CDBF00105D0A /* JSValueContainerExt.swift in Sources */, - 5075136E2D1925BC00AD60C0 /* IntelligentsPlugin.swift in Sources */, 5075136A2D1924C600AD60C0 /* RootViewController.swift in Sources */, C4C97C7C2D030BE000BC2AD1 /* affine_mobile_native.swift in Sources */, 9DAE9BD92D8D1AB0000C1D5A /* AppConfigManager.swift in Sources */, diff --git a/packages/frontend/apps/ios/App/App/AffineViewController.swift b/packages/frontend/apps/ios/App/App/AffineViewController.swift index 018702ea2..54c6fcf1e 100644 --- a/packages/frontend/apps/ios/App/App/AffineViewController.swift +++ b/packages/frontend/apps/ios/App/App/AffineViewController.swift @@ -63,7 +63,13 @@ class AFFiNEViewController: CAPBridgeViewController { defer { self.isCheckingIntelligentEligibility = false } switch result { case .failure: break - case .success: self.presentIntelligentsButton() + case .success: + #if DEBUG + // only show the button in debug mode before we get done + self.presentIntelligentsButton() + #else + break + #endif } } } diff --git a/packages/frontend/apps/ios/App/App/Plugins/Cookie/IntelligentsPlugin.swift b/packages/frontend/apps/ios/App/App/Plugins/Cookie/IntelligentsPlugin.swift deleted file mode 100644 index 552a98542..000000000 --- a/packages/frontend/apps/ios/App/App/Plugins/Cookie/IntelligentsPlugin.swift +++ /dev/null @@ -1,36 +0,0 @@ -import Capacitor -import Foundation - -// @objc(IntelligentsPlugin) -// public class IntelligentsPlugin: CAPPlugin, CAPBridgedPlugin { -// public let identifier = "IntelligentsPlugin" -// public let jsName = "Intelligents" -// public let pluginMethods: [CAPPluginMethod] = [ -// CAPPluginMethod(name: "presentIntelligentsButton", returnType: CAPPluginReturnPromise), -// CAPPluginMethod(name: "dismissIntelligentsButton", returnType: CAPPluginReturnPromise), -// ] -// public private(set) weak var representController: UIViewController? -// -// init(representController: UIViewController) { -// self.representController = representController -// super.init() -// } -// -// deinit { -// representController = nil -// } -// -// @objc public func presentIntelligentsButton(_ call: CAPPluginCall) { -// DispatchQueue.main.async { -// self.representController?.presentIntelligentsButton() -// call.resolve() -// } -// } -// -// @objc public func dismissIntelligentsButton(_ call: CAPPluginCall) { -// DispatchQueue.main.async { -// self.representController?.dismissIntelligentsButton() -// call.resolve() -// } -// } -// }