Last active
February 7, 2022 13:44
-
-
Save litoarias/eb2f3819ad89a17c7f1aaf16a44a52e2 to your computer and use it in GitHub Desktop.
Binary target SPM
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
// swift-tools-version:5.5 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let version = "1.0.0" | |
let moduleName = "NetworkModule" | |
let checksum = "8f42f67a0665798e1c4e149c73a36fb9dddc062bc90e3b4e077ea571613ddda1" | |
let package = Package( | |
name: moduleName, | |
platforms: [ | |
.iOS(.v13) //, .macCatalyst(.v15), .macOS(.v10_15) | |
], | |
products: [ | |
.library( | |
name: moduleName, | |
targets: [moduleName] | |
) | |
], | |
targets: [ | |
.binaryTarget( | |
name: moduleName, | |
url: "https://github.com/litoarias/NetworkModuleDistribution/releases/download/\(version)/\(moduleName).xcframework.zip", | |
checksum: checksum | |
) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment