diff --git a/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.pbxproj b/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.pbxproj
index e4e413452..8c326313a 100644
--- a/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.pbxproj
+++ b/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.pbxproj
@@ -624,7 +624,7 @@
repositoryURL = "https://github.com/web3auth/web3auth-swift-sdk";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
/* End XCRemoteSwiftPackageReference section */
diff --git a/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 8e8fa239b..52792863e 100644
--- a/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-aggregate-verifier-example/ios-aggregate-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -51,8 +51,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -150,8 +150,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/web3auth/web3auth-swift-sdk",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
},
{
diff --git a/ios/ios-aggregate-verifier-example/ios-aggregate-example/ViewModel.swift b/ios/ios-aggregate-verifier-example/ios-aggregate-example/ViewModel.swift
index 7f2b1580c..fd0b0710a 100644
--- a/ios/ios-aggregate-verifier-example/ios-aggregate-example/ViewModel.swift
+++ b/ios/ios-aggregate-verifier-example/ios-aggregate-example/ViewModel.swift
@@ -37,12 +37,6 @@ class ViewModel: ObservableObject {
verifierSubIdentifier: "w3a-a0-github"
)
],
- mfaSettings: MfaSettings(
- deviceShareFactor: MfaSetting(enable: true, priority: 1),
- backUpShareFactor: MfaSetting(enable: true, priority: 2),
- socialBackupFactor: MfaSetting(enable: true, priority: 3),
- passwordFactor: MfaSetting(enable: true, priority: 4)
- ),
// 259200 allows user to stay authenticated for 3 days with Web3Auth.
// Default is 86400, which is 1 day.
sessionTime: 259200
diff --git a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.pbxproj b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.pbxproj
index fddfbaa49..e5655e45c 100644
--- a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.pbxproj
+++ b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.pbxproj
@@ -666,7 +666,7 @@
repositoryURL = "https://github.com/Web3Auth/web3auth-swift-sdk/";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
A4DCEE6F2C8B36670048A663 /* XCRemoteSwiftPackageReference "aptos-swift-sdk" */ = {
diff --git a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 92729a09a..4d4a5be48 100644
--- a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -1,5 +1,5 @@
{
- "originHash" : "c5d16b0968e4fbe28d85effde140f5fd8b458629cafc7911d79915d17535e9c2",
+ "originHash" : "6b85e04c538f006ce2b9ae9841cd84700094308248d004c8af2dfa2cd222c76f",
"pins" : [
{
"identity" : "aptos-swift-sdk",
@@ -33,8 +33,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -69,8 +69,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -123,8 +123,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/web3auth-swift-sdk/",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
}
],
diff --git a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate
index 021921c3c..434262675 100644
Binary files a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
index 69131c40a..3bc3e5f93 100644
--- a/ios/ios-aptos-example/ios-aptos-example.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
+++ b/ios/ios-aptos-example/ios-aptos-example.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -9,21 +9,84 @@
isShown
orderHint
- 5
+ 2
Demo (Playground) 2.xcscheme
isShown
orderHint
- 6
+ 3
+
+ Demo (Playground) 3.xcscheme
+
+ isShown
+
+ orderHint
+ 8
+
+ Demo (Playground) 4.xcscheme
+
+ isShown
+
+ orderHint
+ 11
+
+ Demo (Playground) 5.xcscheme
+
+ isShown
+
+ orderHint
+ 12
Demo (Playground).xcscheme
isShown
orderHint
- 4
+ 1
+
+ MnemonicSwiftExample (Playground) 1.xcscheme
+
+ isShown
+
+ orderHint
+ 9
+
+ MnemonicSwiftExample (Playground) 2.xcscheme
+
+ isShown
+
+ orderHint
+ 10
+
+ MnemonicSwiftExample (Playground) 3.xcscheme
+
+ isShown
+
+ orderHint
+ 13
+
+ MnemonicSwiftExample (Playground) 4.xcscheme
+
+ isShown
+
+ orderHint
+ 14
+
+ MnemonicSwiftExample (Playground) 5.xcscheme
+
+ isShown
+
+ orderHint
+ 15
+
+ MnemonicSwiftExample (Playground).xcscheme
+
+ isShown
+
+ orderHint
+ 7
Playground (Playground) 1.xcscheme
diff --git a/ios/ios-aptos-example/ios-aptos-example/Helper/AptosHelper.swift b/ios/ios-aptos-example/ios-aptos-example/Helper/AptosHelper.swift
index 33cb7921d..77de7169f 100644
--- a/ios/ios-aptos-example/ios-aptos-example/Helper/AptosHelper.swift
+++ b/ios/ios-aptos-example/ios-aptos-example/Helper/AptosHelper.swift
@@ -22,10 +22,8 @@ class AptosHelper {
/// - Parameter privateKey: The private key received from Web3Auth.
func initialize(privateKey: String) async throws {
aptosClient = Aptos(aptosConfig: .testnet)
- account = try generateAptosAccount(privateKey: privateKey)
-
- guard account != nil else {
- throw NSError(domain: "AptosHelper", code: 1, userInfo: [NSLocalizedDescriptionKey: "Failed to generate Aptos account."])
+ if !privateKey.isEmpty {
+ account = try generateAptosAccount(privateKey: privateKey)
}
print("Aptos client and account initialized successfully.")
diff --git a/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.pbxproj b/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.pbxproj
index fc4620526..a24aac2e7 100644
--- a/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.pbxproj
+++ b/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.pbxproj
@@ -616,7 +616,7 @@
repositoryURL = "https://github.com/Web3Auth/web3auth-swift-sdk/";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
2833BEE02BD6246900243B09 /* XCRemoteSwiftPackageReference "web3" */ = {
diff --git a/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 5d274f85e..42797f8ca 100644
--- a/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-auth0-example/ios-auth0-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -51,8 +51,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -148,10 +148,10 @@
{
"identity" : "web3auth-swift-sdk",
"kind" : "remoteSourceControl",
- "location" : "https://github.com/web3auth/web3auth-swift-sdk",
+ "location" : "https://github.com/Web3Auth/web3auth-swift-sdk/",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
},
{
diff --git a/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.pbxproj b/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.pbxproj
index 1456a837f..e3921f8a4 100644
--- a/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.pbxproj
+++ b/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.pbxproj
@@ -642,7 +642,7 @@
repositoryURL = "https://github.com/Web3Auth/web3auth-swift-sdk/";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
/* End XCRemoteSwiftPackageReference section */
diff --git a/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index db021ee51..ce1b17457 100644
--- a/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-firebase-example/ios-firebase-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -33,8 +33,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -150,8 +150,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -267,8 +267,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/web3auth-swift-sdk/",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
},
{
diff --git a/ios/ios-firebase-example/ios-firebase-example/UserDetailView.swift b/ios/ios-firebase-example/ios-firebase-example/UserDetailView.swift
index c5642eebc..497f4a001 100644
--- a/ios/ios-firebase-example/ios-firebase-example/UserDetailView.swift
+++ b/ios/ios-firebase-example/ios-firebase-example/UserDetailView.swift
@@ -3,7 +3,7 @@ import Web3Auth
import web3
struct UserDetailView: View {
-
+
@State private var showingAlert = false
@StateObject var web3RPC: Web3RPC
@StateObject var viewModel: ViewModel
@@ -20,7 +20,7 @@ struct UserDetailView: View {
Section{
Button {
web3RPC.getAccounts()
-
+
} label: {
HStack{
Text("Get Public Key")
@@ -30,7 +30,7 @@ struct UserDetailView: View {
if(web3RPC.publicAddress != ""){
Text("\(web3RPC.publicAddress)")
}
-
+
} header: {
Text("Public key")
}
@@ -38,19 +38,19 @@ struct UserDetailView: View {
Text("Name \(user.userInfo?.name ?? "")")
Text("Email \(user.userInfo?.email ?? "")")
}
- header: {
- Text("User Info")
- }
+ header: {
+ Text("User Info")
+ }
Section{
- Button {
- web3RPC.getBalance()
-
- } label: {
- HStack{
- Text("Get Balance")
- Spacer()
- }
- }
+ Button {
+ web3RPC.getBalance()
+
+ } label: {
+ HStack{
+ Text("Get Balance")
+ Spacer()
+ }
+ }
if(web3RPC.balance>=0){
Text("\(web3RPC.balance) Eth")
@@ -79,9 +79,9 @@ struct UserDetailView: View {
}
}
- header: {
- Text("Blockchain Calls")
- }
+ header: {
+ Text("Blockchain Calls")
+ }
Section(
header: Text("Web3Auth Operations")
@@ -99,23 +99,18 @@ struct UserDetailView: View {
}
Button {
- viewModel.request()
- } label: {
- Text("Request Signature")
- }
-
- Button {
- viewModel.getSignature{
+ viewModel.request{
result in
self.signature = result
}
} label: {
- Text("Get Signature")
+ Text("Request Signature")
}
if(!signature.isEmpty) {
Text(signature)
}
+
}
diff --git a/ios/ios-firebase-example/ios-firebase-example/ViewModel.swift b/ios/ios-firebase-example/ios-firebase-example/ViewModel.swift
index bc539dcc7..0c453c154 100644
--- a/ios/ios-firebase-example/ios-firebase-example/ViewModel.swift
+++ b/ios/ios-firebase-example/ios-firebase-example/ViewModel.swift
@@ -83,20 +83,21 @@ class ViewModel: ObservableObject {
}
}
- func request() {
+ func request(signature: @escaping(String) -> ()) {
Task {
do {
var params = [Any]()
- let address = Web3RPC(
+ let address: String? = Web3RPC(
user: web3Auth!.state!
)?.address.toChecksumAddress()
params.append("Hello, Web3Auth from iOS!")
params.append(
- address
+ address!
)
+
params.append("Web3Auth")
-
- try await self.web3Auth?.request(
+
+ let result = try await self.web3Auth?.request(
chainConfig: ChainConfig(
chainId: "0x89",
rpcTarget: "https://polygon.llamarpc.com"
@@ -104,24 +105,14 @@ class ViewModel: ObservableObject {
method: "personal_sign",
requestParams: params
)
- } catch {
- print(error.localizedDescription)
- }
- }
- }
-
- func getSignature(signature: @escaping(String) -> ()) {
- Task {
- do {
- let response = try Web3Auth.getSignResponse()
- if response!.success {
- signature(response!.result!)
+
+ if result!.success {
+ signature(result!.result!)
} else {
- signature(response!.error!)
+ signature(result!.error!)
}
} catch {
print(error.localizedDescription)
- signature(error.localizedDescription)
}
}
}
diff --git a/ios/ios-playground/ios-playground.xcodeproj/project.pbxproj b/ios/ios-playground/ios-playground.xcodeproj/project.pbxproj
index b90a74ec3..e04360cc1 100644
--- a/ios/ios-playground/ios-playground.xcodeproj/project.pbxproj
+++ b/ios/ios-playground/ios-playground.xcodeproj/project.pbxproj
@@ -687,7 +687,7 @@
repositoryURL = "https://github.com/Web3Auth/web3auth-swift-sdk/";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
2888565B2BDA5EDC0087B92C /* XCRemoteSwiftPackageReference "web3" */ = {
diff --git a/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index c2462bacb..4086c37d4 100644
--- a/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -51,8 +51,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -159,8 +159,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/web3auth-swift-sdk/",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
},
{
diff --git a/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate b/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate
index be07f73a7..be94420ef 100644
Binary files a/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/ios-playground/ios-playground.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/ios/ios-playground/ios-playground.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/ios-playground/ios-playground.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
index 9ea51b18f..dd3aed9b5 100644
--- a/ios/ios-playground/ios-playground.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
+++ b/ios/ios-playground/ios-playground.xcodeproj/xcuserdata/ayushb.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -9,42 +9,84 @@
isShown
orderHint
- 5
+ 1
Demo (Playground) 2.xcscheme
isShown
orderHint
- 6
+ 2
+
+ Demo (Playground) 3.xcscheme
+
+ isShown
+
+ orderHint
+ 14
+
+ Demo (Playground) 4.xcscheme
+
+ isShown
+
+ orderHint
+ 15
+
+ Demo (Playground) 5.xcscheme
+
+ isShown
+
+ orderHint
+ 16
Demo (Playground).xcscheme
isShown
orderHint
- 4
+ 0
Playground (Playground) 1.xcscheme
isShown
orderHint
- 9
+ 8
Playground (Playground) 2.xcscheme
isShown
orderHint
- 10
+ 9
+
+ Playground (Playground) 3.xcscheme
+
+ isShown
+
+ orderHint
+ 11
+
+ Playground (Playground) 4.xcscheme
+
+ isShown
+
+ orderHint
+ 12
+
+ Playground (Playground) 5.xcscheme
+
+ isShown
+
+ orderHint
+ 13
Playground (Playground).xcscheme
isShown
orderHint
- 8
+ 7
ios-playground.xcscheme_^#shared#^_
diff --git a/ios/ios-quick-start/ios-example.xcodeproj/project.pbxproj b/ios/ios-quick-start/ios-example.xcodeproj/project.pbxproj
index e7fa9ff41..667205b26 100644
--- a/ios/ios-quick-start/ios-example.xcodeproj/project.pbxproj
+++ b/ios/ios-quick-start/ios-example.xcodeproj/project.pbxproj
@@ -616,7 +616,7 @@
repositoryURL = "https://github.com/web3auth/web3auth-swift-sdk";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
/* End XCRemoteSwiftPackageReference section */
diff --git a/ios/ios-quick-start/ios-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-quick-start/ios-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 034159324..d0e6f3cba 100644
--- a/ios/ios-quick-start/ios-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-quick-start/ios-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -51,8 +51,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -159,8 +159,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/web3auth/web3auth-swift-sdk",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
},
{
diff --git a/ios/ios-solana-example/ios-solana-example.xcodeproj/project.pbxproj b/ios/ios-solana-example/ios-solana-example.xcodeproj/project.pbxproj
index abf52a81b..ff85f6a26 100644
--- a/ios/ios-solana-example/ios-solana-example.xcodeproj/project.pbxproj
+++ b/ios/ios-solana-example/ios-solana-example.xcodeproj/project.pbxproj
@@ -651,7 +651,7 @@
repositoryURL = "https://github.com/Web3Auth/web3auth-swift-sdk/";
requirement = {
kind = upToNextMajorVersion;
- minimumVersion = 9.0.0;
+ minimumVersion = 11.0.1;
};
};
28C341872CB4017F00360382 /* XCRemoteSwiftPackageReference "solana-swift" */ = {
diff --git a/ios/ios-solana-example/ios-solana-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/ios-solana-example/ios-solana-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index b6a1c45d8..21d317d9e 100644
--- a/ios/ios-solana-example/ios-solana-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/ios/ios-solana-example/ios-solana-example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -1,13 +1,13 @@
{
- "originHash" : "3b81bfeafa72a554b6ad22c3055d64712325a3e410def63c3f2649d3f0e98bbb",
+ "originHash" : "edf43263484c458b2f2acf14cf0abd81b2aafca008f8a166f2055d3b10bbb47a",
"pins" : [
{
"identity" : "bigint",
"kind" : "remoteSourceControl",
- "location" : "https://github.com/attaswift/BigInt",
+ "location" : "https://github.com/attaswift/BigInt.git",
"state" : {
- "revision" : "0ed110f7555c34ff468e72e1686e59721f2b0da6",
- "version" : "5.3.0"
+ "revision" : "114343a705df4725dfe7ab8a2a326b8883cfd79c",
+ "version" : "5.5.1"
}
},
{
@@ -15,8 +15,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tkey/curvelib.swift",
"state" : {
- "revision" : "9f88bd5e56d1df443a908f7a7e81ae4f4d9170ea",
- "version" : "1.0.1"
+ "revision" : "432bf1abe7ff505fc2ac9fcf697341ff5b2dc6d0",
+ "version" : "2.0.0"
}
},
{
@@ -42,8 +42,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/session-manager-swift.git",
"state" : {
- "revision" : "20cc7bff065d7fe53164d17e7714a3f17d4cea2a",
- "version" : "4.0.2"
+ "revision" : "d86cd2a7f6d8095531ed609c728d851820fe85be",
+ "version" : "6.0.1"
}
},
{
@@ -78,8 +78,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Web3Auth/web3auth-swift-sdk/",
"state" : {
- "revision" : "fb4971ad9452a0f0cbf9f5742f22d1c5c6d7759c",
- "version" : "9.0.0"
+ "revision" : "d7b946452919ec9a50d2dfeb67297c844bdec690",
+ "version" : "11.0.1"
}
}
],
diff --git a/ios/ios-solana-example/ios-solana-example/Helpers/Web3AuthHelper.swift b/ios/ios-solana-example/ios-solana-example/Helpers/Web3AuthHelper.swift
index fd692d455..8faa762a0 100644
--- a/ios/ios-solana-example/ios-solana-example/Helpers/Web3AuthHelper.swift
+++ b/ios/ios-solana-example/ios-solana-example/Helpers/Web3AuthHelper.swift
@@ -13,13 +13,18 @@ class Web3AuthHelper {
var web3Auth: Web3Auth!
func initialize() async throws {
- web3Auth = try await Web3Auth(
- W3AInitParams(
- clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ",
- network: Network.sapphire_mainnet,
- redirectUrl: "com.w3a.ios-solana-example://auth"
+ do {
+ web3Auth = try await Web3Auth(
+ W3AInitParams(
+ clientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ",
+ network: Network.sapphire_mainnet,
+ redirectUrl: "com.w3a.ios-solana-example://auth"
+ )
)
- )
+ } catch let error {
+ print(error.localizedDescription)
+ }
+
}
func isUserAuthenticated() -> Bool {