-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace pod with spm * Add Package.swift
- Loading branch information
1 parent
105ad0b
commit 9118b36
Showing
12 changed files
with
444 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ profile | |
DerivedData | ||
*.hmap | ||
*.ipa | ||
.swiftpm/ | ||
IDEWorkspaceChecks.plist | ||
|
||
# Bundler | ||
.bundle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version:5.5 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "trust-web3-provider", | ||
products: [ | ||
.library( | ||
name: "TrustWeb3Provider", | ||
targets: ["TrustWeb3Provider"] | ||
) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "TrustWeb3Provider", | ||
dependencies: [], | ||
path: "dist", | ||
resources: [ | ||
.process("trust-min.js", localization: .none) | ||
] | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright © 2017-2022 Trust Wallet. | ||
// | ||
// This file is part of Trust. The full Trust copyright notice, including | ||
// terms governing use, modification, and redistribution, is contained in the | ||
// file LICENSE at the root of the source code distribution tree. | ||
|
||
import Foundation | ||
|
||
public func providerJsUrl() -> URL { | ||
return Bundle.module.url(forResource: "trust-min", withExtension: "js")! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version:5.3 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "WalletCore", | ||
platforms: [.iOS(.v13)], | ||
products: [ | ||
.library(name: "WalletCore", targets: ["WalletCore"]), | ||
.library(name: "SwiftProtobuf", targets: ["SwiftProtobuf"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.binaryTarget( | ||
name: "WalletCore", | ||
url: "https://github.com/trustwallet/wallet-core/releases/download/2.7.0/WalletCore.xcframework.zip", | ||
checksum: "42812dfdcb1e003d41755f3df87a04ecd8ad2ef6fe475756b67f13a717724f5b" | ||
), | ||
.binaryTarget( | ||
name: "SwiftProtobuf", | ||
url: "https://github.com/trustwallet/wallet-core/releases/download/2.7.0/SwiftProtobuf.xcframework.zip", | ||
checksum: "3d70a5432e5c3e1f8b6f52eee87727f9c45f51f3b51d8defb7495f567da945a2" | ||
) | ||
] | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
ios/TrustWeb3Provider.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.