Skip to content

Commit

Permalink
Merge pull request #46 from Liftric/chore/update-for-swift-5.4
Browse files Browse the repository at this point in the history
Update framework for Swift 5.4
  • Loading branch information
benjohnde authored May 18, 2021
2 parents 6a3d63a + 4ebaee7 commit dd076cb
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
name: Build & Test DIKit
steps:
- uses: actions/checkout@v1
- uses: YOCKOW/Action-setup-swift@master
- uses: fwal/setup-swift@v1
with:
swift-version: "5.2"
swift-version: "5.4"
- name: View Swift Version
run: swift --version
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions DIKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "DIKit"
s.version = "1.6.0"
s.version = "1.6.1"
s.license = { :type => "MIT", :file => "LICENSE" }

s.summary = "Dependency Injection Framework for Swift."
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.social_media_url = "http://twitter.com/benjohnde"

s.platform = :ios, "9.0"
s.swift_version = "5.1"
s.swift_version = "5.4"

s.source = { :git => "https://github.com/benjohnde/DIKit.git", :tag => "#{s.version}" }

Expand Down
4 changes: 3 additions & 1 deletion DIKit/DIKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1100;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = "Ben John";
TargetAttributes = {
4BD95D872008B1C8009CE38D = {
Expand Down Expand Up @@ -371,6 +371,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -433,6 +434,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
4 changes: 2 additions & 2 deletions DIKit/Sources/DIKitDSL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Copyright © 2019 Ben John. All rights reserved.

@_functionBuilder
@resultBuilder
public struct ModuleBuilder {
public static func buildBlock(_ children: [ComponentProtocol]...) -> [ComponentProtocol] {
children.flatMap { $0 }
Expand All @@ -22,7 +22,7 @@ public func module(@ModuleBuilder makeChildren: () -> [ComponentProtocol]) -> De
DependencyContainer { container in makeChildren().forEach { c in container.register(c) } }
}

@_functionBuilder
@resultBuilder
public struct ModulesBuilder {
public static func buildBlock(_ children: DependencyContainer...) -> [DependencyContainer] {
children.compactMap { $0 }
Expand Down
1 change: 0 additions & 1 deletion DIKit/Tests/DIKitDSLTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Ben John
//
// - Date: 27.08.20
// swiftlint:disable nesting
// Copyright © 2020 Ben John. All rights reserved.

import XCTest
Expand Down
1 change: 0 additions & 1 deletion DIKit/Tests/DependencyContainerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Ben John
//
// - Date: 27.08.20
// swiftlint:disable nesting
// Copyright © 2020 Ben John. All rights reserved.

import XCTest
Expand Down
1 change: 0 additions & 1 deletion DIKit/Tests/LazyInjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Ben John
//
// - Date: 27.08.20
// swiftlint:disable nesting
// Copyright © 2020 Ben John. All rights reserved.

import XCTest
Expand Down
1 change: 0 additions & 1 deletion DIKit/Tests/OptionalInjectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Ben John
//
// - Date: 27.08.20
// swiftlint:disable nesting
// Copyright © 2020 Ben John. All rights reserved.

import XCTest
Expand Down
1 change: 0 additions & 1 deletion DIKit/Tests/TaggedComponentTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Ben John
//
// - Date: 27.08.20
// swiftlint:disable nesting
// Copyright © 2020 Ben John. All rights reserved.

import XCTest
Expand Down
24 changes: 20 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
// swift-tools-version:5.1
// swift-tools-version:5.4
import PackageDescription

let package = Package(
name: "DIKit",
products: [
.library(name: "DIKit", targets: ["DIKit"]),
.library(
name: "DIKit",
targets: ["DIKit"]
),
],
targets: [
.target(name: "DIKit", dependencies: [], path: "DIKit/Sources"),
.testTarget(name: "DIKitTests", dependencies: ["DIKit"], path: "DIKit/Tests"),
.target(
name: "DIKit",
path: "DIKit/Sources",
exclude: [
"Resources"
]
),
.testTarget(
name: "DIKitTests",
dependencies: ["DIKit"],
path: "DIKit/Tests",
exclude: [
"Info.plist"
]
),
]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We started small, it perfectly fits our use case.
DIKit can be installed using [Carthage](https://github.com/Carthage/Carthage). After installing Carthage just add DIKit to your Cartfile:

```ogdl
github "Liftric/DIKit" ~> 1.6
github "Liftric/DIKit" ~> 1.6.1
```

### Via CocoaPods
Expand All @@ -22,7 +22,7 @@ github "Liftric/DIKit" ~> 1.6

```ruby
platform :ios, '9.0'
pod 'DIKit', '~> 1.6'
pod 'DIKit', '~> 1.6.1'
```

## Basic usage
Expand Down

0 comments on commit dd076cb

Please sign in to comment.