Skip to content

Commit e18a4b1

Browse files
authored
Merge pull request #123 from AliSoftware/release/5.0.0
Release 5.0.0
2 parents 967e1a4 + e279927 commit e18a4b1

File tree

74 files changed

+2385
-2001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2385
-2001
lines changed

Diff for: .travis.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,29 @@ matrix:
77
- os: linux
88
include:
99
- script:
10-
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty -c
11-
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip-OSX -sdk macosx -destination 'platform=OS X,arch=x86_64' ONLY_ACTIVE_ARCH=NO | xcpretty -c
12-
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip-tvOS -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty -c
13-
- set -o pipefail && xcodebuild -workspace Dip.xcworkspace -scheme Dip-watchOS -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty - c
10+
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty -c
11+
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip -sdk macosx -destination 'platform=macOS,arch=x86_64' ONLY_ACTIVE_ARCH=NO | xcpretty -c
12+
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme Dip -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty -c
13+
- set -o pipefail && xcodebuild -workspace Dip.xcworkspace -scheme Dip -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty - c
1414
- set -o pipefail && xcodebuild test -workspace Dip.xcworkspace -scheme DipSampleApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' ONLY_ACTIVE_ARCH=NO | xcpretty -c
1515
- pod lib lint --quick
1616
- carthage build --no-skip-current
1717
os: osx
18-
osx_image: xcode7.3
18+
osx_image: xcode8
1919
language: objective-c
2020
- script:
21-
- swift build
21+
- swift build --clean && swift build && swift test
2222
os: linux
2323
dist: trusty
2424
sudo: required
2525
language: generic
2626
before_install:
2727
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
2828
- cd ..
29-
- export SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
29+
- export SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-09-07-a
3030
- wget https://swift.org/builds/development/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz
3131
- tar xzf $SWIFT_VERSION-ubuntu14.04.tar.gz
3232
- export PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/bin:${PATH}"
33-
- export SWIFT_RELEASE_VERSION=2.2.1
34-
- export SWIFT_RELEASE_NAME="${SWIFT_RELEASE_VERSION}-RELEASE"
35-
- wget https://swift.org/builds/swift-$SWIFT_RELEASE_VERSION-release/ubuntu1404/swift-$SWIFT_RELEASE_NAME/swift-$SWIFT_RELEASE_NAME-ubuntu14.04.tar.gz
36-
- tar xzf swift-$SWIFT_RELEASE_NAME-ubuntu14.04.tar.gz
37-
- export SWIFT_EXEC="${PWD}/swift-${SWIFT_RELEASE_NAME}-ubuntu14.04/usr/bin/swiftc"
3833
- cd $MODULE_NAME
3934

4035
notifications:

Diff for: CHANGELOG.md

+29-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,38 @@
11
# CHANGELOG
22

3+
## 5.0.0
4+
5+
* Migrated to Swift 3.0
6+
[#120](https://github.com/AliSoftware/Dip/issues/120), [@patrick-lind](https://github.com/patrick-lind), [@mark-urbanthings](https://github.com/mark-urbanthings), [@ilyapuchka](https://github.com/ilyapuchka)
7+
* Renamed `DefinitionOf` to `Definition` and some other source-breaking refactoring.
8+
[#113](https://github.com/AliSoftware/Dip/issues/113), [@ilyapuchka](https://github.com/ilyapuchka)
9+
* Added `invalidType` error when resolved instance does not implement requested type.
10+
[#118](https://github.com/AliSoftware/Dip/issues/118), [@ilyapuchka](https://github.com/ilyapuchka)
11+
* Added optional `type` parameter in register methods to be able to specify type when registering using method literal instead of closure.
12+
[#115](https://github.com/AliSoftware/Dip/issues/115), [@ilyapuchka](https://github.com/ilyapuchka)
13+
* Added `implements` family of methods in to `Definition` to register type-forwarding definitions.
14+
[#114](https://github.com/AliSoftware/Dip/issues/114), [@ilyapuchka](https://github.com/ilyapuchka)
15+
* Shared scope is now the default scope.
16+
[#112](https://github.com/AliSoftware/Dip/issues/112), [@ilyapuchka](https://github.com/ilyapuchka)
17+
* Single target project setup.
18+
[#121](https://github.com/AliSoftware/Dip/issues/121), [@ilyapuchka](https://github.com/ilyapuchka)
19+
* Simplified implementation of auto-wiring.
20+
[#117](https://github.com/AliSoftware/Dip/issues/117), [@ilyapuchka](https://github.com/ilyapuchka)
21+
22+
23+
#### Fixed
24+
* Auto-injected properties inherited from super class are now properly injected when resolving subclass.
25+
Added `resolveDependencies(_:DependencyContainer)` method to `Resolvable` protocol to handle inheritance when resolving.
26+
[#116](https://github.com/AliSoftware/Dip/issues/116), [@ilyapuchka](https://github.com/ilyapuchka)
27+
28+
329
## 4.6.1
430

531
#### Fixed
632

7-
* Fixed sharing singletons between collaborating containers
33+
* Fixed sharing singletons between collaborating containers.
834
[#103](https://github.com/AliSoftware/Dip/issues/103), [@ilyapuchka](https://github.com/ilyapuchka)
9-
* Renamed some public API's (see release notes for more info)
35+
* Renamed some public API's (see release notes for more info).
1036
[#105](https://github.com/AliSoftware/Dip/issues/105), [@ilyapuchka](https://github.com/ilyapuchka)
1137

1238
## 4.6.0
@@ -155,7 +181,7 @@
155181
This code:
156182

157183
```swift
158-
container.register("some tag") { SomeClass() as SomeProtocol }
184+
container.register(tag: "some tag") { SomeClass() as SomeProtocol }
159185
container.resolve("some tag") as SomeProtocol
160186
```
161187

Diff for: Dip.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Dip"
3-
s.version = "4.6.1"
3+
s.version = "5.0.0"
44
s.summary = "Dependency Injection for Swift made easy."
55

66
s.description = <<-DESC

0 commit comments

Comments
 (0)