Skip to content

Commit

Permalink
README updates and more platforms supported in podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonclaybrook committed Aug 26, 2020
1 parent eef87d8 commit 6ecddc7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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:
Expand Down
7 changes: 5 additions & 2 deletions Settler.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
8 changes: 2 additions & 6 deletions Sources/SettlerDemo/PersonResolver+Output.swift
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/SettlerFramework/Utility/SettlerVersion.swift
Original file line number Diff line number Diff line change
@@ -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
}

Expand Down

0 comments on commit 6ecddc7

Please sign in to comment.