From 1dc94a58ab7d87c1cc1e3892b1e414a2eceb1add Mon Sep 17 00:00:00 2001 From: Bartosz Rozwarski Date: Fri, 6 Sep 2024 07:34:40 -0700 Subject: [PATCH 1/4] add w3w deprecation warning --- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- Sources/Web3Wallet/Web3Wallet.swift | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Example/ExampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Example/ExampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index ae6b9a973..12673f779 100644 --- a/Example/ExampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Example/ExampleApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -69,8 +69,8 @@ "repositoryURL": "https://github.com/getsentry/sentry-cocoa.git", "state": { "branch": null, - "revision": "14aa6e47b03b820fd2b338728637570b9e969994", - "version": "8.12.0" + "revision": "5575af93efb776414f243e93d6af9f6258dc539a", + "version": "8.36.0" } }, { diff --git a/Sources/Web3Wallet/Web3Wallet.swift b/Sources/Web3Wallet/Web3Wallet.swift index f8614160c..7fbcf6658 100644 --- a/Sources/Web3Wallet/Web3Wallet.swift +++ b/Sources/Web3Wallet/Web3Wallet.swift @@ -17,8 +17,12 @@ public typealias VerifyContext = WalletConnectVerify.VerifyContext /// Web3Wallet.configure(metadata: metadata, account: account) /// Web3Wallet.instance.getSessions() /// ``` +/// +/// - Warning: `Web3Wallet` has been deprecated. Please migrate to `WalletKit` which can be found at [https://github.com/reown-com/reown-swift](https://github.com/reown-com/reown-swift). +@available(*, deprecated, message: "Web3Wallet has been deprecated. Please migrate to WalletKit, available at https://github.com/reown-com/reown-swift") public class Web3Wallet { - /// Web3Wallett client instance + + /// Web3Wallet client instance public static var instance: Web3WalletClient = { guard let config = Web3Wallet.config else { fatalError("Error - you must call Web3Wallet.configure(_:) before accessing the shared instance.") @@ -29,7 +33,7 @@ public class Web3Wallet { pushClient: Push.instance ) }() - + private static var config: Config? private init() { } @@ -38,6 +42,7 @@ public class Web3Wallet { /// - Parameters: /// - metadata: App metadata /// - crypto: Auth crypto utils + @available(*, deprecated, message: "Web3Wallet.configure has been deprecated. Please migrate to WalletKit.configure.") static public func configure( metadata: AppMetadata, crypto: CryptoProvider, From be03f67b4c35b28d08fd2d62a6f5435b99b651ec Mon Sep 17 00:00:00 2001 From: Bartosz Rozwarski Date: Tue, 17 Sep 2024 11:09:03 +0200 Subject: [PATCH 2/4] update warning --- Sources/Web3Wallet/Web3Wallet.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Web3Wallet/Web3Wallet.swift b/Sources/Web3Wallet/Web3Wallet.swift index 7fbcf6658..7ec06eb3d 100644 --- a/Sources/Web3Wallet/Web3Wallet.swift +++ b/Sources/Web3Wallet/Web3Wallet.swift @@ -19,7 +19,7 @@ public typealias VerifyContext = WalletConnectVerify.VerifyContext /// ``` /// /// - Warning: `Web3Wallet` has been deprecated. Please migrate to `WalletKit` which can be found at [https://github.com/reown-com/reown-swift](https://github.com/reown-com/reown-swift). -@available(*, deprecated, message: "Web3Wallet has been deprecated. Please migrate to WalletKit, available at https://github.com/reown-com/reown-swift") +@available(*, deprecated, message: "WalletConnect Inc is now Reown. As part of this transition, we are deprecating a number of repositories/packages across our supported platforms, and transitioning to their equivalents published under the Reown organization. This repository is now considered deprecated and will reach End-of-Life on February 17th 2025. For more details, including migration guides please see: https://docs.reown.com/advanced/walletconnect-deprecations") public class Web3Wallet { /// Web3Wallet client instance From c25665ac07ff888dad12201ebc4bdfcbec9812af Mon Sep 17 00:00:00 2001 From: Bartosz Rozwarski Date: Tue, 17 Sep 2024 11:23:26 +0200 Subject: [PATCH 3/4] update readme --- README.md | 62 +++---------------------------------------------------- 1 file changed, 3 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index 2048a8dce..478c4806c 100644 --- a/README.md +++ b/README.md @@ -1,61 +1,5 @@ -# WalletConnect v.2 - Swift +# Deprecated - WalletConnect v.2 - Swift -![CI main](https://github.com/WalletConnect/WalletConnectSwiftV2/actions/workflows/ci.yml/badge.svg?branch=main) -![CI develop](https://github.com/WalletConnect/WalletConnectSwiftV2/actions/workflows/ci.yml/badge.svg?branch=develop) +WalletConnect Inc is now Reown. As part of this transition, we are deprecating a number of repositories/packages across our supported platforms, and transitioning to their equivalents published under the Reown organization. -Swift implementation of WalletConnect v.2 protocol for native iOS applications. -## Requirements -- iOS 13 -- XCode 13 -- Swift 5 - -## Documentation & Usage -- In order to build API documentation in XCode go to Product -> Build Documentation -- [Getting started with wallet integration](https://docs.walletconnect.com/2.0/swift/sign/installation) -- [Beginner guide to WalletConnect v2.0 for iOS Developers](https://medium.com/walletconnect/beginner-guide-to-walletconnect-v2-0-for-swift-developers-4534b0975218) -- [Protocol Documentation](https://github.com/WalletConnect/walletconnect-specs) -- [Glossary](https://docs.walletconnect.com/2.0/introduction/glossary) -- [Migration guide from Sign and Auth to Web3Wallet](https://github.com/WalletConnect/walletconnect-docs/blob/main/docs/swift/guides/web3wallet-migration.md) - - -## Installation -### Swift Package Manager -Add .package(url:_:) to your Package.swift: -```Swift -dependencies: [ - .package(url: "https://github.com/WalletConnect/WalletConnectSwiftV2", .branch("main")), -], -``` -### Cocoapods -Add pod to your Podfile: - -```Ruby -pod 'WalletConnectSwiftV2' -``` -If you encounter any problems during package installation, you can specify the exact path to the repository -```Ruby -pod 'WalletConnectSwiftV2', :git => 'https://github.com/WalletConnect/WalletConnectSwiftV2.git', :tag => '1.0.5' -``` -## Setting Project ID -Follow instructions from *Configuration.xcconfig* and configure PROJECT_ID with your ID from WalletConnect Dashboard -``` -// Uncomment next line and paste your project id. Get this on: https://cloud.walletconnect.com/sign-in -// PROJECT_ID = YOUR_PROJECT_ID -// To use Push Notifications on the Simulator you need to grab the simulator identifier -// from Window->Devices and Simulators->Simulator you're using->Identifier -SIMULATOR_IDENTIFIER = YOUR_SIMULATOR_IDENTIFIER -``` -## Example App -open `Example/ExampleApp.xcodeproj` - -## Web3Wallet -Web3Wallet SDK introduces a new interface for all wallets that wraps the Sign and Auth clients internally. -- [Migration guide from Sign and Auth to Web3Wallet](https://github.com/WalletConnect/walletconnect-docs/blob/main/docs/swift/web3wallet/upgrade-guide.md) - -## License - -Apache 2.0 - -## Guides - -- [Artifacts sometimes not available in Actions -> Build name -> Artifacts?](./docs/guides/downloading_artifacts.md) +This repository is now considered deprecated and will reach End-of-Life on February 17th 2025. For more details, including migration guides please see: https://docs.reown.com/advanced/walletconnect-deprecations From 24397017dde42c130a20aa7a073ff198345b9df9 Mon Sep 17 00:00:00 2001 From: llbartekll Date: Tue, 17 Sep 2024 09:34:40 +0000 Subject: [PATCH 4/4] Set User Agent --- Sources/WalletConnectRelay/PackageConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WalletConnectRelay/PackageConfig.json b/Sources/WalletConnectRelay/PackageConfig.json index feab0ad89..9ab57bbd8 100644 --- a/Sources/WalletConnectRelay/PackageConfig.json +++ b/Sources/WalletConnectRelay/PackageConfig.json @@ -1 +1 @@ -{"version": "1.20.2"} +{"version": "1.20.3"}