-
-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PVLibrary and PVSupport SwiftPM start
Signed-off-by: Joseph Mattello <[email protected]>
- Loading branch information
Showing
91 changed files
with
459 additions
and
29 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
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,88 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "CocoaLumberjack", | ||
"repositoryURL": "https://github.com/CocoaLumberjack/CocoaLumberjack", | ||
"state": { | ||
"branch": null, | ||
"revision": "80ada1f753b0d53d9b57c465936a7c4169375002", | ||
"version": "3.7.4" | ||
} | ||
}, | ||
{ | ||
"package": "Reachability", | ||
"repositoryURL": "https://github.com/ashleymills/Reachability.swift", | ||
"state": { | ||
"branch": null, | ||
"revision": "c01bbdf2d633cf049ae1ed1a68a2020a8bda32e2", | ||
"version": "5.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "Realm", | ||
"repositoryURL": "https://github.com/realm/realm-cocoa", | ||
"state": { | ||
"branch": null, | ||
"revision": "39177714b95bb5b1b29fffe28f1c7da77eef8e8b", | ||
"version": "10.21.1" | ||
} | ||
}, | ||
{ | ||
"package": "RealmDatabase", | ||
"repositoryURL": "https://github.com/realm/realm-core", | ||
"state": { | ||
"branch": null, | ||
"revision": "f1976f0d96d9b06fbe0afbd60090b1c3966b1e23", | ||
"version": "11.8.0" | ||
} | ||
}, | ||
{ | ||
"package": "RxRealm", | ||
"repositoryURL": "https://github.com/RxSwiftCommunity/RxRealm", | ||
"state": { | ||
"branch": null, | ||
"revision": "d9e612a1bc3788c910b307e49093dec788d102df", | ||
"version": "5.0.3" | ||
} | ||
}, | ||
{ | ||
"package": "RxSwift", | ||
"repositoryURL": "https://github.com/ReactiveX/RxSwift", | ||
"state": { | ||
"branch": null, | ||
"revision": "b4307ba0b6425c0ba4178e138799946c3da594f8", | ||
"version": "6.5.0" | ||
} | ||
}, | ||
{ | ||
"package": "SQLite.swift", | ||
"repositoryURL": "https://github.com/stephencelis/SQLite.swift", | ||
"state": { | ||
"branch": null, | ||
"revision": "60a65015f6402b7c34b9a924f755ca0a73afeeaa", | ||
"version": "0.13.1" | ||
} | ||
}, | ||
{ | ||
"package": "swift-log", | ||
"repositoryURL": "https://github.com/apple/swift-log.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7", | ||
"version": "1.4.2" | ||
} | ||
}, | ||
{ | ||
"package": "ZipArchive", | ||
"repositoryURL": "https://github.com/ZipArchive/ZipArchive", | ||
"state": { | ||
"branch": null, | ||
"revision": "825ff12a74a94c54e737e279604c27e6740e8a2c", | ||
"version": "2.4.2" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
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,127 @@ | ||
// 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: "PVLibrary", | ||
platforms: [ | ||
.iOS(.v11), | ||
.tvOS(.v11), | ||
.watchOS(.v7), | ||
.macOS(.v11) | ||
], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "PVLibrary", | ||
targets: ["PVLibrary"]) | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
.package( | ||
name: "PVSupport", | ||
path: "../PVSupport"), | ||
.package( | ||
url: "https://github.com/ReactiveX/RxSwift", | ||
.upToNextMajor(from: "6.2.0")), | ||
.package( | ||
url: "https://github.com/RxSwiftCommunity/RxRealm", | ||
.upToNextMajor(from: "5.0.3")), | ||
.package( | ||
name: "SQLite.swift", | ||
url: "https://github.com/stephencelis/SQLite.swift", | ||
.upToNextMajor(from: "0.12.2")), | ||
.package( | ||
name: "ZipArchive", | ||
url: "https://github.com/ZipArchive/ZipArchive", | ||
.upToNextMajor(from: "2.3.0")), | ||
.package( | ||
name: "Reachability", | ||
url: "https://github.com/realm/realm-cocoa", | ||
.upToNextMajor(from: "10.20.2")) | ||
], | ||
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: "PVLibraryObjC", | ||
dependencies: [ | ||
"PVSupport", | ||
// "Realm", | ||
// "RealmSwift", | ||
.product(name: "RxCocoa", package: "RxSwift"), | ||
.product(name: "RxSwift", package: "RxSwift"), | ||
.product(name: "RxRealm", package: "RxRealm"), | ||
.product(name: "SQLite", package: "SQLite.swift"), | ||
.product(name: "ZipArchive", package: "ZipArchive") | ||
], | ||
path: "PVLibrary", | ||
sources: [ | ||
"Database/OESQLiteDatabase.m", | ||
"NSExtensions/NSFileManager+Hashing.m", | ||
"NSExtensions/UIImage+Scaling.m", | ||
"NSExtensions/NSString+Hashing.m", | ||
"NSExtensions/NSData+Hashing.m", | ||
// "LzmaSDKObjC/src/LzmaSDKObjC.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCBufferProcessor.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCCrc.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCError.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCExtern.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCExtractCallback.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCItem.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCMutableItem.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCReader.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCUpdateCallback.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCWriter.mm", | ||
]), | ||
|
||
.target( | ||
name: "LzmaSDKObjC", | ||
path: "LzmaSDKObjC" | ||
), | ||
|
||
.target( | ||
name: "PVLibrary", | ||
dependencies: [ | ||
"PVSupport", | ||
"LzmaSDKObjC", | ||
"PVLibraryObjC", | ||
// "Realm", | ||
// "RealmSwift", | ||
.product(name: "RxCocoa", package: "RxSwift"), | ||
.product(name: "RxSwift", package: "RxSwift"), | ||
.product(name: "RxRealm", package: "RxRealm"), | ||
.product(name: "SQLite", package: "SQLite.swift"), | ||
.product(name: "ZipArchive", package: "ZipArchive") | ||
], | ||
path: "PVLibrary", | ||
exclude: [ | ||
"Database/OESQLiteDatabase.m", | ||
"NSExtensions/NSFileManager+Hashing.m", | ||
"NSExtensions/UIImage+Scaling.m", | ||
"NSExtensions/NSString+Hashing.m", | ||
"NSExtensions/NSData+Hashing.m", | ||
"Info.plist", | ||
// "LzmaSDKObjC/src/LzmaSDKObjC.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCBufferProcessor.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCCrc.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCError.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCExtern.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCExtractCallback.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCItem.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCMutableItem.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCReader.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCUpdateCallback.mm", | ||
// "LzmaSDKObjC/src/LzmaSDKObjCWriter.mm", | ||
], | ||
resources: [ | ||
.process("Resources/") | ||
]), | ||
|
||
// MARK: SwiftPM tests | ||
.testTarget( | ||
name: "PVLibraryTests", | ||
dependencies: ["PVLibrary"], | ||
path: "Tests") | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
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
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,34 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "CocoaLumberjack", | ||
"repositoryURL": "https://github.com/CocoaLumberjack/CocoaLumberjack", | ||
"state": { | ||
"branch": null, | ||
"revision": "80ada1f753b0d53d9b57c465936a7c4169375002", | ||
"version": "3.7.4" | ||
} | ||
}, | ||
{ | ||
"package": "Reachability", | ||
"repositoryURL": "https://github.com/ashleymills/Reachability.swift", | ||
"state": { | ||
"branch": null, | ||
"revision": "c01bbdf2d633cf049ae1ed1a68a2020a8bda32e2", | ||
"version": "5.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "swift-log", | ||
"repositoryURL": "https://github.com/apple/swift-log.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7", | ||
"version": "1.4.2" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
Oops, something went wrong.