Skip to content

Commit

Permalink
Add missing closure in reconnect (#5)
Browse files Browse the repository at this point in the history
* Add missing closure in reconnect

* Add project metadata in Example app
  • Loading branch information
tom-quiltt authored Jan 4, 2024
1 parent 74c48fd commit 3e0796a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 16 additions & 1 deletion ExampleSwiftUI/ExampleSwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 60;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -16,6 +16,7 @@
2F8C74902B26661800E46284 /* ExampleSwiftUIUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F8C748F2B26661800E46284 /* ExampleSwiftUIUITests.swift */; };
2F8C74922B26661800E46284 /* ExampleSwiftUIUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F8C74912B26661800E46284 /* ExampleSwiftUIUITestsLaunchTests.swift */; };
2F8C74A02B26663800E46284 /* QuilttConnector in Frameworks */ = {isa = PBXBuildFile; productRef = 2F8C749F2B26663800E46284 /* QuilttConnector */; };
2FBAC6A02B44B1E20074E464 /* QuilttConnector in Frameworks */ = {isa = PBXBuildFile; productRef = 2FBAC69F2B44B1E20074E464 /* QuilttConnector */; };
2FCC1F562B2B7E4B00F035DF /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FCC1F552B2B7E4B00F035DF /* ContentView.swift */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -58,6 +59,7 @@
buildActionMask = 2147483647;
files = (
2F8C74A02B26663800E46284 /* QuilttConnector in Frameworks */,
2FBAC6A02B44B1E20074E464 /* QuilttConnector in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -155,6 +157,7 @@
name = ExampleSwiftUI;
packageProductDependencies = (
2F8C749F2B26663800E46284 /* QuilttConnector */,
2FBAC69F2B44B1E20074E464 /* QuilttConnector */,
);
productName = ExampleSwiftUI;
productReference = 2F8C74712B26661600E46284 /* ExampleSwiftUI.app */;
Expand Down Expand Up @@ -229,6 +232,7 @@
);
mainGroup = 2F8C74682B26661600E46284;
packageReferences = (
2FBAC69E2B44B1E10074E464 /* XCLocalSwiftPackageReference ".." */,
);
productRefGroup = 2F8C74722B26661600E46284 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -608,11 +612,22 @@
};
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
2FBAC69E2B44B1E10074E464 /* XCLocalSwiftPackageReference ".." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ..;
};
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
2F8C749F2B26663800E46284 /* QuilttConnector */ = {
isa = XCSwiftPackageProductDependency;
productName = QuilttConnector;
};
2FBAC69F2B44B1E20074E464 /* QuilttConnector */ = {
isa = XCSwiftPackageProductDependency;
productName = QuilttConnector;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 2F8C74692B26661600E46284 /* Project object */;
Expand Down
8 changes: 7 additions & 1 deletion Sources/QuilttConnector/QuilttConnector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ public class QuilttConnector {
onExitSuccess: ConnectorSDKOnExitSuccessCallback? = nil,
onExitAbort: ConnectorSDKOnExitAbortCallback? = nil,
onExitError: ConnectorSDKOnExitErrorCallback? = nil) -> WKWebView {
webview!.load(token: self.token, config: config)
webview!.load(token: self.token,
config: config,
onEvent: onEvent,
onExit: onExit,
onExitSuccess: onExitSuccess,
onExitAbort: onExitAbort,
onExitError: onExitError)
return webview!
}
}

0 comments on commit 3e0796a

Please sign in to comment.