From 8cdfe4ba99a4452c06263dde8309fd744de93b5f Mon Sep 17 00:00:00 2001 From: user Date: Thu, 16 Jan 2025 07:39:03 +0000 Subject: [PATCH 1/4] html file for procaptcha --- demos/ios-webview/procaptcha/procaptcha.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 demos/ios-webview/procaptcha/procaptcha.html diff --git a/demos/ios-webview/procaptcha/procaptcha.html b/demos/ios-webview/procaptcha/procaptcha.html new file mode 100644 index 000000000..b8b83de5c --- /dev/null +++ b/demos/ios-webview/procaptcha/procaptcha.html @@ -0,0 +1,17 @@ +
+ +Procaptcha + + + + +
+ + +
+
+ +
+ + + From b2995aa00513946a738cae01db0738526820e71f Mon Sep 17 00:00:00 2001 From: user Date: Thu, 16 Jan 2025 07:45:02 +0000 Subject: [PATCH 2/4] use plist --- .../procaptcha.xcodeproj/project.pbxproj | 6 ++++++ .../xcshareddata/WorkspaceSettings.xcsettings | 5 +++++ .../UserInterfaceState.xcuserstate | Bin 0 -> 30540 bytes .../WorkspaceSettings.xcsettings | 14 ++++++++++++++ .../xcschemes/xcschememanagement.plist | 14 ++++++++++++++ 5 files changed, 39 insertions(+) create mode 100644 demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/WorkspaceSettings.xcsettings create mode 100644 demos/ios-webview/procaptcha.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/demos/ios-webview/procaptcha.xcodeproj/project.pbxproj b/demos/ios-webview/procaptcha.xcodeproj/project.pbxproj index f5ba2f6c3..eafc94380 100644 --- a/demos/ios-webview/procaptcha.xcodeproj/project.pbxproj +++ b/demos/ios-webview/procaptcha.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 6093CEA72CA96BB9006699D1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6093CEA62CA96BB9006699D1 /* ContentView.swift */; }; 6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEA82CA96BBD006699D1 /* Assets.xcassets */; }; 6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6093CEAC2CA96BBD006699D1 /* Preview Assets.xcassets */; }; + CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */ = {isa = PBXBuildFile; fileRef = CE79A1E92D38EC2200047A40 /* procaptcha.html */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -20,6 +21,7 @@ 6093CEA82CA96BBD006699D1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 6093CEAA2CA96BBD006699D1 /* procaptcha.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = procaptcha.entitlements; sourceTree = ""; }; 6093CEAC2CA96BBD006699D1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + CE79A1E92D38EC2200047A40 /* procaptcha.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = procaptcha.html; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -55,6 +57,7 @@ 6093CEA42CA96BB9006699D1 /* procaptchaApp.swift */, 6093CEA62CA96BB9006699D1 /* ContentView.swift */, 6093CEA82CA96BBD006699D1 /* Assets.xcassets */, + CE79A1E92D38EC2200047A40 /* procaptcha.html */, 6093CEAA2CA96BBD006699D1 /* procaptcha.entitlements */, 6093CEAB2CA96BBD006699D1 /* Preview Content */, ); @@ -127,6 +130,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + CE79A1EA2D38EC2200047A40 /* procaptcha.html in Resources */, 6093CEAD2CA96BBD006699D1 /* Preview Assets.xcassets in Resources */, 6093CEA92CA96BBD006699D1 /* Assets.xcassets in Resources */, ); @@ -282,6 +286,7 @@ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 13.3; MARKETING_VERSION = 1.0; + NSExceptionAllInsecureHTTPLoads = YES; PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; @@ -320,6 +325,7 @@ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 13.3; MARKETING_VERSION = 1.0; + NSExceptionAllInsecureHTTPLoads = YES; PRODUCT_BUNDLE_IDENTIFIER = io.prosopo.procaptcha; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = auto; diff --git a/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 000000000..0c67376eb --- /dev/null +++ b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,5 @@ + + + + + diff --git a/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..b7f0432c4bfe0fba0948f94b795c810dd5f2cdad GIT binary patch literal 30540 zcmeIb2YeLO_5eKhPFqOZgjAA{UP;+h0txADlTF=CBW1J6E)WPw$Zmij=v+lq>?k4v z3JIcsid{rRR1gu7Dq`;_HbkV@@H;cJn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W$Bccr<|%+)Cbo`*Q@Fi>XYj8>(%v|`m*}U`Ze_%>YuHDv3^JWtM#wd z@2fvhf2jWL`giI-s{gWKbVF!EY(soQQp1FX+=hw?DvHu*OBHw86?Hbpc=HN`f?HBD+tYpQP2 zHyN64Xu6|mY18vfuQcs!`lRVZ)3<1U!X77SL)~MuhU*NWf3G>TIkq{j zxvsgT+1R|K`L5<=%}+MJ(EMWam(4#k|7fr?xEkCI6AjshTtl;=%`nrj)UeX9+OXZQ z+pwp_rzNB%tfix6ZcA^=x|T;(SQFTfb=ivh}OhAB_s5gE7Q7!B}q88mo@dzYnvH_-TH_+)4aPf+ ztBnsB`;6<1PZ*yzK4;u&e9`!l@v!j&fCFa$pTGI?DF1yjR%(TI@&GeG#b<+{kyQVKqKbcOOewLy) R6vpzWVx|0P`)fM;{{ZLR1V8`) literal 0 HcmV?d00001 diff --git a/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/WorkspaceSettings.xcsettings b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 000000000..bbfef027f --- /dev/null +++ b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,14 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataLocationStyle + Default + ShowSharedSchemesAutomaticallyEnabled + + + diff --git a/demos/ios-webview/procaptcha.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist b/demos/ios-webview/procaptcha.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 000000000..68f807e83 --- /dev/null +++ b/demos/ios-webview/procaptcha.xcodeproj/xcuserdata/user.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + procaptcha.xcscheme_^#shared#^_ + + orderHint + 0 + + + + From 75badf8e57f194635b74b258d950c8ecbb8cb526 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 16 Jan 2025 07:45:15 +0000 Subject: [PATCH 3/4] load html content from file --- .../ios-webview/procaptcha/ContentView.swift | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/demos/ios-webview/procaptcha/ContentView.swift b/demos/ios-webview/procaptcha/ContentView.swift index 8bf7575c9..74bc68952 100644 --- a/demos/ios-webview/procaptcha/ContentView.swift +++ b/demos/ios-webview/procaptcha/ContentView.swift @@ -2,7 +2,7 @@ import SwiftUI import WebKit struct WebView: UIViewRepresentable { - let htmlString: String + let filePath: String func makeCoordinator() -> Coordinator { return Coordinator(self) @@ -49,8 +49,10 @@ struct WebView: UIViewRepresentable { webView.isInspectable = true //DispatchQueue.main.asyncAfter(deadline: .now() + 30) { - // baseURL must be set for localstorage to work. If localstorage is not required, it can be set to nil. Localstorage errors appear like "SecurityError: The operation is insecure." - webView.loadHTMLString(htmlString, baseURL: URL(string: "https://prosopo.io")) + guard let fileUrl = Bundle.main.url(forResource: filePath, withExtension: nil) else { + fatalError("html file \(filePath) not found") + } + webView.loadFileURL(fileUrl, allowingReadAccessTo: fileUrl.deletingLastPathComponent()) //} return webView @@ -89,25 +91,7 @@ struct ContentView: View { var body: some View { VStack { Text("Demo Procaptcha:") - WebView(htmlString: """ - - -Procaptcha - - - - -
- - -

image

-
-
- -
- - -""") + WebView(filePath: "procaptcha.html") } .padding() } From 4a6f72f2282132c1500f3da511ffb6bff677c512 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 16 Jan 2025 07:45:21 +0000 Subject: [PATCH 4/4] Update UserInterfaceState.xcuserstate --- .../UserInterfaceState.xcuserstate | Bin 30540 -> 30540 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate b/demos/ios-webview/procaptcha.xcodeproj/project.xcworkspace/xcuserdata/user.xcuserdatad/UserInterfaceState.xcuserstate index b7f0432c4bfe0fba0948f94b795c810dd5f2cdad..b735c8fd07191b896c4afd4306379d40143c921a 100644 GIT binary patch delta 39 tcmX@}j`7Sp#tnB=SUj?&$~Hexv6KO_j_Pfeb?lG=vaZQ*UKzbu8URz&5BLB8 delta 39 tcmX@}j`7Sp#tnB=SoF`R6>NT>VkrY;mEGJd>)0U$WVM{%yfS*RGyrO}5s&}?