From 6ecddc7392f49e866e366d84f6e7619f6d115ede Mon Sep 17 00:00:00 2001 From: Dalton Claybrook Date: Tue, 25 Aug 2020 22:00:34 -0400 Subject: [PATCH] README updates and more platforms supported in podspec --- Makefile | 2 +- README.md | 5 ++++- Settler.podspec | 7 +++++-- Sources/SettlerDemo/PersonResolver+Output.swift | 8 ++------ Sources/SettlerFramework/Utility/SettlerVersion.swift | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index c306a45..5f9422f 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ endif BINARIES_FOLDER=/usr/local/bin SETTLER_CLI_EXECUTABLE=$(shell swift build $(SWIFT_BUILD_FLAGS) --show-bin-path)/settler -CURRENT_VERSION=0.1.0 +CURRENT_VERSION=0.1.1 .PHONY: build clean test linuxmain xcode install uninstall portable_zip diff --git a/README.md b/README.md index 549caf2..ee81b26 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ ![Build Status](https://github.com/daltonclaybrook/Settler/workflows/Swift/badge.svg) [![codecov](https://codecov.io/gh/daltonclaybrook/Settler/branch/main/graph/badge.svg?cache_bust=1)](https://codecov.io/gh/daltonclaybrook/Settler) +[![Pod Version](https://img.shields.io/cocoapods/v/Settler.svg?style=flat)](http://cocoapods.org/pods/Settler) +[![License](https://img.shields.io/cocoapods/l/Sourcery.svg?style=flat)](http://cocoapods.org/pods/Sourcery) +[![Pod Platform](https://img.shields.io/cocoapods/p/Settler.svg?style=flat)](http://cocoapods.org/pods/Settler) **Settler** is a Swift metaprogramming tool used to resolve complex dependency graphs in a way that encourages code separation and cleanliness while maintaining the safety guarantees of the compiler. If an object in your resolver cannot be resolved due to a missing or circular dependency, Settler will find it and bottom out compilation of your program. @@ -61,7 +64,7 @@ In Xcode, you can add this package to your project by selecting File ➡ Swift P If you use a Package.swift file instead, add the following line inside of your package dependencies array: ```swift -.package(url: "https://github.com/daltonclaybrook/Settler", from: "0.1.0"), +.package(url: "https://github.com/daltonclaybrook/Settler", from: "0.1.1"), ``` Now add Settler as a dependency of any relevant targets: diff --git a/Settler.podspec b/Settler.podspec index 666f373..bf7d96a 100644 --- a/Settler.podspec +++ b/Settler.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Settler' - s.version = '0.1.0' + s.version = '0.1.1' s.summary = 'A utility for building complex, type-safe dependency graphs in Swift' s.description = <<-DESC @@ -18,8 +18,11 @@ Pod::Spec.new do |s| s.source_files = 'Sources/Settler/**/*' s.preserve_paths = '*' - s.ios.deployment_target = '9.0' + s.ios.deployment_target = '10.0' s.osx.deployment_target = '10.12' + s.tvos.deployment_target = '10.0' + s.watchos.deployment_target = '3.0' + s.swift_versions = ['5.1', '5.2'] end diff --git a/Sources/SettlerDemo/PersonResolver+Output.swift b/Sources/SettlerDemo/PersonResolver+Output.swift index c85ff51..de67fab 100644 --- a/Sources/SettlerDemo/PersonResolver+Output.swift +++ b/Sources/SettlerDemo/PersonResolver+Output.swift @@ -1,25 +1,21 @@ -// Generated using Settler 0.1.0 - https://github.com/daltonclaybrook/Settler +// Generated using Settler 0.1.1 - https://github.com/daltonclaybrook/Settler // DO NOT EDIT import Settler extension PersonResolver { func resolve() -> Output { - // Resolver phase 1 + // Resolver functions let daltonBirthdate = resolveDaltonBirthdate() let daltonAddress = Lazy { self.resolveDaltonAddress() } let rufus = resolveRufus() let whiskers = resolveWhiskers() - // Resolver phase 2 let daltonCompany = Lazy { self.resolveDaltonCompany(address: daltonAddress) } - // Resolver phase 3 let steve = resolveSteve(birthdate: daltonBirthdate, address: daltonAddress.resolve(), company: daltonCompany.resolve(), pet: rufus) - // Resolver phase 4 let daltonParents = resolveDaltonParents(steve: steve) - // Resolver phase 5 let dalton = resolveDalton(birthdate: daltonBirthdate, address: daltonAddress.resolve(), company: daltonCompany.resolve(), rufus: rufus, whiskers: whiskers, parents: daltonParents) // Configuration configure(whiskers: whiskers, company: daltonCompany) diff --git a/Sources/SettlerFramework/Utility/SettlerVersion.swift b/Sources/SettlerFramework/Utility/SettlerVersion.swift index 0ee9564..f78c4c3 100644 --- a/Sources/SettlerFramework/Utility/SettlerVersion.swift +++ b/Sources/SettlerFramework/Utility/SettlerVersion.swift @@ -1,7 +1,7 @@ import Foundation struct SettlerVersion { - static let current = SettlerVersion(value: "0.1.0") + static let current = SettlerVersion(value: "0.1.1") let value: String }