Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 10c9104

Browse files
authored
Merge pull request #16 from magiclabs/revert-14-ariflo-sc-68590-replace-MagicSDK_Web3-with-Web3.swift
Revert "Replace MagicSDK_Web3 with Web3.swift"
2 parents ab15142 + c762ca1 commit 10c9104

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

MagicSDK.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'MagicSDK'
6-
s.version = '7.0.0'
6+
s.version = '6.0.0'
77
s.summary = 'Magic IOS SDK'
88

99
s.description = <<-DESC
@@ -20,9 +20,9 @@ TODO: Add long description of the pod here.
2020

2121
s.source_files = 'Sources/MagicSDK/**/*'
2222

23-
s.dependency 'Web3', '~> 0.5.0'
24-
s.dependency 'Web3/ContractABI', '~> 1.0'
25-
s.dependency 'Web3/PromiseKit', '~> 1.0'
23+
s.dependency 'MagicSDK-Web3', '~> 1.0'
24+
s.dependency 'MagicSDK-Web3/ContractABI', '~> 1.0'
25+
s.dependency 'MagicSDK-Web3/PromiseKit', '~> 1.0'
2626

2727
s.dependency 'PromiseKit/CorePromise', '~> 6.15'
2828

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "MagicSDK",
88
platforms: [
9-
.iOS(.v13),
9+
.iOS(.v10),
1010
.macOS(.v10_12)
1111
],
1212
products: [
@@ -16,7 +16,7 @@ let package = Package(
1616
targets: ["MagicSDK"]),
1717
],
1818
dependencies: [
19-
.package(url: "https://github.com/Boilertalk/Web3.swift", from:"0.5.0"),
19+
.package(url: "https://github.com/magiclabs/Web3.swift.git", from:"1.1.0"),
2020
.package(url: "https://github.com/mxcl/PromiseKit.git", from:"6.16.2")
2121
],
2222
targets: [
@@ -25,7 +25,7 @@ let package = Package(
2525
.target(
2626
name: "MagicSDK",
2727
dependencies: [
28-
.product(name: "Web3", package: "Web3.swift"),
28+
.product(name: "MagicSDK_Web3", package: "Web3.swift"),
2929
.product(name: "Web3PromiseKit", package: "Web3.swift"),
3030
.product(name: "PromiseKit", package: "PromiseKit"),
3131
.product(name: "Web3ContractABI", package: "Web3.swift")

Sources/MagicSDK/Core/Magic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Jerry Liu on 1/20/20.
66
// Copyright © 2020 Magic Labs Inc. All rights reserved.
77
//
8-
import Web3
8+
import MagicSDK_Web3
99
import WebKit
1010

1111

Sources/MagicSDK/Core/Provider/RpcProvider.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2020 Magic Labs Inc. All rights reserved.
77
//
88

9-
import Web3
9+
import MagicSDK_Web3
1010
import WebKit
1111
import PromiseKit
1212

@@ -76,15 +76,15 @@ public class RpcProvider: NetworkClient, Web3Provider {
7676
}.catch { error in
7777
let errResponse = Web3Response<Result>(error: ProviderError.encodingFailed(error))
7878
response(errResponse)
79+
// handleRollbarError(error, log: false)
7980
}
8081
}
8182
}
8283

8384
public typealias Web3ResponseCompletion<Result: Codable> = (_ resp: Web3Response<Result>) -> Void
8485

85-
// Necessary to avoid conflicts with other dependency packages
86-
internal extension BytesInitializable {
87-
init(_ bytes: BytesConvertible ) throws {
86+
internal extension Web3BytesInitializable {
87+
init(_ bytes: Web3BytesRepresentable) throws {
8888
let bytes = try bytes.makeBytes()
8989
try self.init(bytes)
9090
}

Sources/MagicSDK/Modules/Auth/AuthModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import Web3
10+
import MagicSDK_Web3
1111
import PromiseKit
1212

1313
public class AuthModule: BaseModule {

Sources/MagicSDK/Modules/BaseModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import Web3
10+
import MagicSDK_Web3
1111
import PromiseKit
1212

1313
open class BaseModule {

Sources/MagicSDK/Modules/Connect/ConnectModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
import Foundation
9-
import Web3
9+
import MagicSDK_Web3
1010

1111
public class ConnectModule: BaseModule {
1212

Sources/MagicSDK/Modules/User/UserConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import Web3
10+
import MagicSDK_Web3
1111

1212
/// Get Id Token configuration
1313
public class GetIdTokenConfiguration: BaseConfiguration {

Sources/MagicSDK/Modules/User/UserModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77

88
import Foundation
9-
import Web3
9+
import MagicSDK_Web3
1010
import PromiseKit
1111

1212
public class UserModule: BaseModule {

Sources/MagicSDK/Modules/User/UserResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import Web3
10+
import MagicSDK_Web3
1111

1212
public protocol MagicResponse: Codable {}
1313

0 commit comments

Comments
 (0)