Skip to content

Commit

Permalink
Merge pull request #67 from icapps/feature/spm
Browse files Browse the repository at this point in the history
Make Stella available with SPM in Xcode 11.
  • Loading branch information
Stefan Adams authored Jun 7, 2019
2 parents 21f0914 + 85fbd06 commit d970768
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "Stella",
dependencies: [
.Package(url: "https://github.com/icapps/ios-stella.git", majorVersion: 1, minor: 1)
]
)
platforms: [
.macOS(.v10_10),
.iOS(.v9),
.tvOS(.v9)
],
products: [
.library(name: "Stella", targets: ["Stella"])
],
dependencies: [],
targets: [
.target(name: "Stella", dependencies: [], path: "Sources")
],
swiftLanguageVersions: [.v4_2]
)
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## TOC

- [Installation](#installation)
- [Swift Package Manager](#swift-package-manager)
- [Cocoapods](#cocoapods)
- [Carthage](#carthage)
- [Features](#features)
Expand Down Expand Up @@ -37,6 +38,10 @@

## Installation 💾

## Swift Package Manager

You can install `Stella` using the Swift Package Manager. This is available starting from Xcode 11. Just search for `icapps/ios-stella` and install it.

### Cocoapods

Stella is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your `Podfile`:
Expand Down
2 changes: 2 additions & 0 deletions Sources/Defaults/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//

import Foundation

// swiftlint:disable identifier_name
/// `Defaults` is a wrapper for the UserDefaults standard defaults instance.
public let Defaults = UserDefaults.standard
Expand Down
2 changes: 2 additions & 0 deletions Sources/Keychain/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//

import Foundation

// swiftlint:disable identifier_name
/// `Keychain` is a wrapper for the Keychain shared instance.
public let Keychain = KeychainHandler.shared
Expand Down
2 changes: 2 additions & 0 deletions Sources/Localization/Localization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//

import Foundation

public extension String {
/// Returns a localized string using the main bundle.
var localizedString: String {
Expand Down

0 comments on commit d970768

Please sign in to comment.