Bläddra i källkod

Merge pull request #563 from motocodeltd/make_watchos_code_public

Make WatchOS SKError.code public
Samuel Spencer 5 år sedan
förälder
incheckning
ee7b4e4432
3 ändrade filer med 3 tillägg och 12 borttagningar
  1. 0 6
      README.md
  2. 1 1
      Sources/SwiftyStoreKit/OS.swift
  3. 2 5
      SwiftyStoreKit.podspec

+ 0 - 6
README.md

@@ -6,8 +6,6 @@
 [![Build](https://img.shields.io/travis/bizz84/SwiftyStoreKit.svg?style=flat)](https://travis-ci.org/bizz84/SwiftyStoreKit)
 [![Issues](https://img.shields.io/github/issues/bizz84/SwiftyStoreKit.svg?style=flat)](https://github.com/bizz84/SwiftyStoreKit/issues)
 [![Slack](https://img.shields.io/badge/Slack-Join-green.svg?style=flat)](https://join.slack.com/t/swiftystorekit/shared_invite/enQtODY3OTYxOTExMzE5LWVkNGY4MzcwY2VjNGM4MGU4NDFhMGE5YmUxMGM3ZTQ4NjVjNTRkNTJhNDAyMWZmY2M5OWE5MDE0ODc3OGJjMmM)
-[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
-[![Swift Package Manager compatible](https://img.shields.io/badge/SPM-compatible-orange.svg?style=flat)](https://swift.org/package-manager/)
 
 SwiftyStoreKit is a lightweight In App Purchases framework for iOS, tvOS, watchOS, macOS, and Mac Catalyst.
 
@@ -106,10 +104,6 @@ github "bizz84/SwiftyStoreKit"
 **NOTE**: Please ensure that you have the [latest](https://github.com/Carthage/Carthage/releases) Carthage installed.
 
 ### CocoaPods
-**:rotating_light: NOT RECOMMENDED**. Current project maintainers do *not* have push access to the CocoaPod trunk and we are waiting for confirmation from the original repo author / owner. **The CocoaPod pod is already 2 releases behind the current version.** 
-
-**:warning: There is no guarantee of future updates via CocoaPods. Installing with CocoaPods is done at your own risk. :warning:**
-
 SwiftyStoreKit can be installed as a [CocoaPod](https://cocoapods.org/) and builds as a Swift framework. To install, include this in your Podfile.
 
 ```ruby

+ 1 - 1
Sources/SwiftyStoreKit/OS.swift

@@ -46,7 +46,7 @@ public struct SKError: Error {
         self._nsError = _nsError
     }
     
-    var code: Code {
+    public var code: Code {
         return Code(rawValue: _nsError.code) ?? .unknown
     }
     

+ 2 - 5
SwiftyStoreKit.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name         = 'SwiftyStoreKit'
-  s.version      = '0.16.0'
+  s.version      = '0.16.1'
   s.summary      = 'Lightweight In App Purchases Swift framework for iOS, tvOS, watchOS, macOS and Mac Catalyst.'
   s.license      = 'MIT'
   s.homepage     = 'https://github.com/bizz84/SwiftyStoreKit'
@@ -11,10 +11,7 @@ Pod::Spec.new do |s|
   s.watchos.deployment_target = '6.2'
   s.swift_version = '5.0'
   s.source       = { :git => "https://github.com/bizz84/SwiftyStoreKit.git", :tag => s.version }
-
-  s.source_files = 'SwiftyStoreKit/*.{swift}'
-
+  s.source_files = 'Sources/SwiftyStoreKit/*.{swift}'
   s.screenshots  = ["https://github.com/bizz84/SwiftyStoreKit/raw/master/Screenshots/Preview.jpg"]
-
   s.requires_arc = true
 end