Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version:5.7

import PackageDescription

let package = Package(
name: "Wormholy",
platforms: [.iOS(.v11)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Wormholy",
targets: ["Wormholy"]),
targets: ["WormholySwift", "WormholyObjC"]),
],
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 which this package depends on.
.target(
name: "Wormholy",
dependencies: []),
name: "WormholySwift",
dependencies: [],
resources: [
.process("Support Files/Assets.xcassets")
]
),
.target(
name: "WormholyObjC",
dependencies: [
"WormholySwift"
]),
.testTarget(
name: "WormholyTests",
dependencies: ["Wormholy"]),
dependencies: [
"WormholySwift",
"WormholyObjC"
]),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

#import "NSURLSessionConfiguration+Wormholy.h"
#import "WormholyMethodSwizzling.h"
#if __has_include(<Wormholy/Wormholy-Swift.h>)
#import <Wormholy/Wormholy-Swift.h>

#if SWIFT_PACKAGE
@import WormholySwift;
#else
#import "Wormholy-Swift.h"
#import <Wormholy/Wormholy-Swift.h>
#endif

typedef NSURLSessionConfiguration*(*SessionConfigConstructor)(id,SEL);
Expand Down
File renamed without changes.
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,6 +7,7 @@
//

import Foundation
import UIKit

final class ShareUtils {

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion Tests/WormholyTests/WormholyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Foundation
import XCTest
import Wormholy

class WormholyTests: XCTestCase {
func testExample() {
Expand Down