From f2f425b83f89107998b2285f6320be5528f457ef Mon Sep 17 00:00:00 2001 From: Arnaud Dorgans Date: Mon, 5 Jul 2021 19:14:55 +0200 Subject: [PATCH] SPM --- .gitignore | 7 +++++++ Package.resolved | 16 ++++++++++++++++ Package.swift | 33 +++++++++++++++++++++++++++++++++ ROX.podspec | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Package.resolved create mode 100644 Package.swift diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb460e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..4f00b3b --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "ROXCore", + "repositoryURL": "https://github.com/arnauddorgans/rox-ios-core", + "state": { + "branch": "spm", + "revision": "41bfc0c587a0c7c0b2b2207bd2f69fd6e203b8ee", + "version": null + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..d5e03f8 --- /dev/null +++ b/Package.swift @@ -0,0 +1,33 @@ +// 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: "ROX", + platforms: [.iOS(.v8), .tvOS(.v10)], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "ROX", + targets: ["ROX"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + .package(name: "ROXCore", url: "https://github.com/arnauddorgans/rox-ios-core", .branch("spm")) + ], + 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: "ROX", + dependencies: [ + "ROXCore" + ], + path: "RoxSdk", + exclude: [ + "Info.plist", + "RoxSdk.h" + ]) + ] +) diff --git a/ROX.podspec b/ROX.podspec index fbe40da..99af86f 100644 --- a/ROX.podspec +++ b/ROX.podspec @@ -19,7 +19,7 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/rollout/rox-ios.git", :tag => "4.10.16" } - s.source_files = '**/*.{h,swift}' + s.source_files = 'RoxSdk/**/*.{h,swift}' s.dependency 'ROXCore', '4.10.16'