Skip to content

Commit

Permalink
Merge pull request #45 from torusresearch/cocoapods_update
Browse files Browse the repository at this point in the history
feat: update package for cocoapods
  • Loading branch information
chaitanyapotti authored Apr 19, 2024
2 parents 9747a59 + 54f56e5 commit 4047e2e
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
.DS_Store
**/*.DS_Store
17 changes: 3 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,18 @@ let package = Package(
.library(
name: "FetchNodeDetails",
targets: ["FetchNodeDetails"]),
.library(
name: "FndBase",
targets: ["FndBase"])
],
dependencies: [
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
],
targets: [
.target(
name: "CommonSources",
dependencies: ["BigInt"],
path: "Sources/CommonSources"),
.target(
name: "FndBase",
dependencies: ["CommonSources"],
path: "Sources/FndBase"),
.target(
name: "FetchNodeDetails",
dependencies: ["CommonSources", "FndBase"],
path: "Sources/FetchNodeDetails"),
dependencies: ["BigInt"],
path: "Sources"),
.testTarget(
name: "FetchNodeDetailsTests",
dependencies: ["FetchNodeDetails","CommonSources", "FndBase"]),
dependencies: ["FetchNodeDetails"]),
],
swiftLanguageVersions: [.v5]
)
2 changes: 0 additions & 2 deletions Sources/FetchNodeDetails/Constants/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import CommonSources

let TORUS_NETWORK: [TorusNetwork: String] = [
TorusNetwork.sapphire(SapphireNetwork.SAPPHIRE_DEVNET) : "sapphire_devnet",
TorusNetwork.sapphire(SapphireNetwork.SAPPHIRE_MAINNET) : "sapphire_mainnet",
Expand Down
2 changes: 0 additions & 2 deletions Sources/FetchNodeDetails/NodeDetailManager.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import BigInt
import Foundation
import OSLog
import CommonSources
import FndBase
// Global variable
var fndLogType = OSLogType.default

Expand Down
8 changes: 0 additions & 8 deletions Sources/FndBase/Configs/SapphireConfig.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
//
// File.swift
//
//
// Created by CW Lee on 10/07/2023.
//

import Foundation
import CommonSources

public var SapphireMainnetNodePub : [TorusNodePubModel] = [
.init(_X: "e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052", _Y: "54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1"),
Expand Down
2 changes: 0 additions & 2 deletions Sources/FndBase/Endpoints/Endpoints.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import CommonSources

let SAPPHIRE_NETWORK_URLS: [SapphireNetwork: [String]] = [
.SAPPHIRE_DEVNET: [
"https://node-1.dev-node.web3auth.io",
Expand Down
2 changes: 0 additions & 2 deletions Sources/FndBase/Utils/Utils.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import CommonSources

public func fetchLocalConfig(network: TorusNetwork) throws -> AllNodeDetailsModel? {

switch network {
Expand Down
2 changes: 0 additions & 2 deletions Tests/FetchNodeDetailsTests/SampleOutput.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import BigInt
@testable import CommonSources
@testable import FetchNodeDetails
@testable import FndBase

import XCTest

Expand Down
1 change: 0 additions & 1 deletion Tests/FetchNodeDetailsTests/fetchNodeDetailsTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@testable import FetchNodeDetails
import FndBase

import XCTest

Expand Down
7 changes: 2 additions & 5 deletions Torus-fetchNodeDetails.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
Pod::Spec.new do |spec|
spec.name = "Torus-fetchNodeDetails"
spec.version = "5.1.0"
spec.version = "6.0.0"
spec.ios.deployment_target = '13.0'
spec.summary = "Fetches the node details from torus nodelist smart contract"
spec.homepage = "https://github.com/torusresearch/fetch-node-details-swift"
spec.license = { :type => 'BSD', :file => 'License.md' }
spec.swift_version = "5.3"
spec.author = { "Shubham Rathi" => "[email protected]" }
spec.source = { :git => "https://github.com/torusresearch/fetch-node-details-swift.git", :tag => spec.version }
spec.source_files = "Sources/FetchNodeDetails/*.{swift,json}","Sources/FetchNodeDetails/**/*.{swift,json}"
spec.source_files = "Sources/FndBase/*.{swift,json}","Sources/FndBase/**/*.{swift,json}"
spec.source_files = "Sources/CommonSources/*.{swift,json}","Sources/CommonSources/**/*.{swift,json}"
spec.source_files = "Sources/**/*.{swift,json}"
spec.module_name = "FetchNodeDetails"
spec.dependency 'BigInt', '~> 5.2.0'

end

0 comments on commit 4047e2e

Please sign in to comment.