add Package.swift, fix Interface Builder render error

This commit is contained in:
Yonat Sharon 2019-08-22 09:35:41 +03:00
parent f58fc6feed
commit d12331c91e
4 changed files with 32 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
Example/Pods

View File

@ -19,7 +19,7 @@ batteryView.level = 42 // anywhere in 0...100
s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.author = { "Yonat Sharon" => "yonat@ootips.org" }
s.social_media_url = "http://twitter.com/yonatsharon"
s.social_media_url = "https://twitter.com/yonatsharon"
s.swift_version = '4.2'
s.swift_versions = ['4.2', '5.0']
@ -28,4 +28,7 @@ batteryView.level = 42 // anywhere in 0...100
s.source = { :git => "https://github.com/yonat/BatteryView.git", :tag => s.version }
s.source_files = "Sources/*"
s.pod_target_xcconfig = { 'LD_RUNPATH_SEARCH_PATHS' => '$(FRAMEWORK_SEARCH_PATHS)' } # fix Interface Builder render error
end

View File

@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- support Swift Package Manager.
### Fixed
- fix Interface Builder render error.
## [1.3.7] - 2019-07-13
### Added

18
Package.swift Normal file
View File

@ -0,0 +1,18 @@
// swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "BatteryView",
platforms: [
.iOS(.v9)
],
products: [
.library( name: "BatteryView", targets: ["BatteryView"])
],
dependencies: [],
targets: [
.target(name: "BatteryView", dependencies: [], path: "Sources")
],
swiftLanguageVersions: [.v5]
)