Add Package.swift and update Podspec (#14)

This commit is contained in:
Mathias Claassen 2021-07-23 16:23:47 -03:00 committed by GitHub
parent 80a2937f8e
commit 79e66356e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 9 deletions

21
Package.swift Normal file
View File

@ -0,0 +1,21 @@
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "PagerTabStrip",
platforms: [.iOS(.v14)],
products: [
.library(name: "PagerTabStrip", targets: ["PagerTabStrip"])
],
targets: [
.target(
name: "PagerTabStrip",
path: "Sources"
),
.testTarget(
name: "PagerTabStripTests",
dependencies: ["PagerTabStrip"],
path: "Tests"
)
]
)

View File

@ -1,18 +1,15 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "PagerTabStrip" s.name = "PagerTabStrip"
s.version = "1.0.0" s.version = "1.0.0"
s.summary = "A short description of PagerTabStrip." s.summary = "PagerTabStrip allows navigating through pages using a custom navigation bar."
s.homepage = "https://github.com/xmartlabs/PagerTabStrip" s.homepage = "https://github.com/xmartlabs/PagerTabStrip"
s.license = { type: 'MIT', file: 'LICENSE' } s.license = { type: 'MIT', file: 'LICENSE' }
s.author = { "Xmartlabs SRL" => "swift@xmartlabs.com" } s.authors = { "Xmartlabs SRL" => "swift@xmartlabs.com" }
s.source = { git: "https://github.com/xmartlabs/PagerTabStrip.git", tag: s.version.to_s } s.source = { git: "https://github.com/xmartlabs/PagerTabStrip.git", tag: s.version.to_s }
s.social_media_url = 'https://twitter.com/xmartlabs' s.social_media_url = 'https://twitter.com/xmartlabs'
s.ios.deployment_target = '13.0' s.ios.deployment_target = '14.0'
s.swift_version = '5.0'
s.requires_arc = true s.requires_arc = true
s.ios.source_files = 'PagerTabStrip/Sources/**/*.{swift}' s.ios.source_files = 'Sources/**/*.{swift}'
# s.resource_bundles = { s.ios.frameworks = 'SwiftUI'
# 'PagerTabStrip' => ['PagerTabStrip/Sources/**/*.xib']
# }
# s.ios.frameworks = 'UIKit', 'Foundation'
# s.dependency 'Eureka', '~> 4.0'
end end