Skip to content

Commit

Permalink
Fix podspec errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ppamorim committed May 1, 2021
1 parent 2acd1df commit fef3b08
Show file tree
Hide file tree
Showing 17 changed files with 287 additions and 216 deletions.
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Skynet: 60a3ac65eda67c0c474c90e62ce2c830cbe08b50
Skynet: 37fcaa0dfffd99a3643676fadfbfd18964178c85

PODFILE CHECKSUM: c218a68b11fbd229f39ed088795d3479aa029eff

Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/Skynet.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

409 changes: 207 additions & 202 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Example/Skynet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
607FACE11AFB9204008FA782 /* Sources */,
607FACE21AFB9204008FA782 /* Frameworks */,
607FACE31AFB9204008FA782 /* Resources */,
47B2298F488DF3C25DEE5666 /* [CP] Embed Pods Frameworks */,
8DC6F0B8E73FD0B34482E65A /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -167,7 +167,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
47B2298F488DF3C25DEE5666 /* [CP] Embed Pods Frameworks */ = {
8DC6F0B8E73FD0B34482E65A /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Skynet",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "Skynet",
targets: ["Skynet"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "Skynet",
dependencies: []),
.testTarget(
name: "Skynet_Tests",
dependencies: ["Skynet"]),
]
)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Skynet
# Skynet SDK for iOS and macOS

[![Version](https://img.shields.io/cocoapods/v/Skynet.svg?style=flat)](https://cocoapods.org/pods/Skynet)
[![License](https://img.shields.io/cocoapods/l/Skynet.svg?style=flat)](https://cocoapods.org/pods/Skynet)
[![Platform](https://img.shields.io/cocoapods/p/Skynet.svg?style=flat)](https://cocoapods.org/pods/Skynet)

Use Sia Skynet in your iOS or macOS projects. (Decentralized database)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.
Expand Down
13 changes: 7 additions & 6 deletions Skynet.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
s.name = 'Skynet'
s.version = '0.1.0'
s.summary = 'A short description of Skynet.'
s.summary = 'Skynet SDK for iOS and macOS'

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
Expand All @@ -18,19 +18,20 @@ Pod::Spec.new do |s|
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
TODO: Add long description of the pod here.
Use Sia Skynet in your iOS or macOS projects (Decentralized database)
DESC

s.homepage = 'https://github.com/Pedro Paulo de Amorim/Skynet'
s.homepage = 'https://github.com/ppamorim/skynet-swift'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Pedro Paulo de Amorim' => '[email protected]' }
s.source = { :git => 'https://github.com/Pedro Paulo de Amorim/Skynet.git', :tag => s.version.to_s }
s.source = { :git => 'https://github.com/ppamorim/skynet-swift.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.source_files = 'Sources/**/*.swift'
s.swift_versions = ['5.2']
s.ios.deployment_target = '10.0'

s.source_files = 'Skynet/Classes/**/*'
s.osx.deployment_target = '10.10'

# s.resource_bundles = {
# 'Skynet' => ['Skynet/Assets/*.png']
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
//

import Foundation
#if os(iOS)
import MobileCoreServices
#else
import CoreServices
#endif

extension URLSession {

Expand Down Expand Up @@ -163,7 +167,7 @@ public func uploadMultipartTask(url: URL, parameters: [String: AnyObject]?, file

/// Determine mime type on the basis of extension of a file.
///
/// This requires MobileCoreServices framework.
/// This requires MobileCoreServices (iOS) or CoreServices (macOS) framework.
///
/// - parameter path: The path of the file for which we are going to determine the mime type.
///
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import skynet_swiftTests

var tests = [XCTestCaseEntry]()
tests += skynet_swiftTests.allTests()
XCTMain(tests)
9 changes: 9 additions & 0 deletions Tests/skynet-swiftTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(skynet_swiftTests.allTests),
]
}
#endif
15 changes: 15 additions & 0 deletions Tests/skynet-swiftTests/skynet_swiftTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import XCTest
@testable import skynet_swift

final class skynet_swiftTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(skynet_swift().text, "Hello, World!")
}

static var allTests = [
("testExample", testExample),
]
}

0 comments on commit fef3b08

Please sign in to comment.