Skip to content

Commit 6c04652

Browse files
committed
Merge branch 'release/1.0.3'
2 parents a42304a + 365a981 commit 6c04652

20 files changed

Lines changed: 139 additions & 98 deletions

File tree

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ before_install:
1313
- gem install bundler
1414
- brew update
1515
- bundle install && brew bundle
16-
- bundle exec pod repo update
17-
script:
18-
- bundle exec fastlane run_tests
19-
after_success:
20-
- bundle exec fastlane ci_framework_deploy
16+
install: bundle exec pod install --repo-update --silent
17+
script: bundle exec fastlane run_tests
18+
after_success: bundle exec fastlane ci_framework_deploy

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55

66
---
77

8+
## [1.0.3](https://github.com/Digipolitan/dependency-injector-object-mapper/releases/tag/v1.0.3)
9+
10+
remove pod warning
11+
update readme
12+
fix spm4
13+
update package.swift
14+
update travis
15+
remove swiftlint warning
16+
17+
---
18+
819
## [1.0.2](https://github.com/Digipolitan/dependency-injector-object-mapper/releases/tag/v1.0.2)
920

1021
swift 4 support & ObjectMappper 3.0+ & DependencyInjector 2.1

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github 'Digipolitan/DependencyInjector' ~> 2.1
1+
github 'Digipolitan/dependency-injector' ~> 2.1
22
github 'Hearst-DD/ObjectMapper' ~> 3.0

DependencyInjectorObjectMapper.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "DependencyInjectorObjectMapper"
3-
s.version = "1.0.2"
3+
s.version = "1.0.3"
44
s.summary = "Add Mappable support with dependency injection"
55
s.homepage = "https://github.com/Digipolitan/dependency-injector-object-mapper"
66
s.authors = "Digipolitan"

DependencyInjectorObjectMapper.xcodeproj/project.pbxproj

Lines changed: 58 additions & 50 deletions
Large diffs are not rendered by default.

Package.swift

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
// swift-tools-version:4.0
2+
13
import PackageDescription
24

35
let package = Package(
4-
name: "DependencyInjectorObjectMapper",
5-
dependencies: [
6-
.Package(url: "https://github.com/Digipolitan/dependency-injector.git", versions: Version(2, 0, 0)..<Version(3, 0, 0)),
7-
.Package(url: "https://github.com/Hearst-DD/ObjectMapper.git", versions: Version(2, 0, 0)..<Version(3, 0, 0))
8-
],
9-
exclude: [
10-
"Tests",
11-
"Samples"
12-
]
6+
name: "DependencyInjectorObjectMapper",
7+
products: [
8+
.library(name: "DependencyInjectorObjectMapper", targets: ["DependencyInjectorObjectMapper"])
9+
],
10+
dependencies: [
11+
.package(url: "https://github.com/Digipolitan/dependency-injector.git", from: "2.0.0"),
12+
.package(url: "https://github.com/Hearst-DD/ObjectMapper.git", from: "3.0.0")
13+
],
14+
targets: [
15+
.target(
16+
name: "DependencyInjectorObjectMapper",
17+
dependencies: [
18+
"DependencyInjector",
19+
"ObjectMapper"
20+
]
21+
),
22+
.testTarget(
23+
name: "DependencyInjectorObjectMapperTests",
24+
dependencies: [
25+
"DependencyInjectorObjectMapper"
26+
]
27+
)
28+
]
1329
)

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
DependencyInjector+ObjectMapper
22
=================================
33

4+
[![Swift Version](https://img.shields.io/badge/swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)
45
[![Build Status](https://travis-ci.org/Digipolitan/dependency-injector-object-mapper.svg?branch=master)](https://travis-ci.org/Digipolitan/dependency-injector-object-mapper)
56
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/DependencyInjectorObjectMapper.svg)](https://img.shields.io/cocoapods/v/DependencyInjectorObjectMapper.svg)
6-
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
7+
[![Carthage Compatible](https://img.shields.io/badge/carthage-compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)
8+
[![Swift Package Manager Compatible](https://img.shields.io/badge/swift%20package%20manager-compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager/)
79
[![Platform](https://img.shields.io/cocoapods/p/DependencyInjectorObjectMapper.svg?style=flat)](http://cocoadocs.org/docsets/DependencyInjectorObjectMapper)
810
[![Twitter](https://img.shields.io/badge/twitter-@Digipolitan-blue.svg?style=flat)](http://twitter.com/Digipolitan)
911

@@ -13,16 +15,47 @@ Dependency injector Swift compatible with ObjectMapper
1315

1416
### CocoaPods
1517

16-
To install DependencyInjectorObjectMapper with CocoaPods, add the following lines to your `Podfile`.
18+
To install DependencyInjector+ObjectMapper with CocoaPods, add the following lines to your `Podfile`.
1719

1820
```ruby
1921
source 'https://github.com/CocoaPods/Specs.git'
20-
platform :ios, '8.0' # or platform :osx, '10.10' if your target is OS X.
22+
platform :ios, '9.0'
2123
use_frameworks!
2224

2325
pod 'DependencyInjectorObjectMapper'
2426
```
2527

28+
### Carthage
29+
30+
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
31+
32+
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
33+
34+
```bash
35+
$ brew update
36+
$ brew install carthage
37+
```
38+
39+
To integrate DependencyInjector+ObjectMapper into your Xcode project using Carthage, specify it in your `Cartfile`:
40+
41+
```
42+
github 'Digipolitan/dependency-injector-object-mapper' ~> 1.0
43+
```
44+
45+
Run `carthage update` to build the framework and drag the built `DependencyInjectorObjectMapper.framework` into your Xcode project.
46+
47+
### Swift Package Manager
48+
49+
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.
50+
51+
Once you have your Swift package set up, adding DependencyInjector+ObjectMapper as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
52+
53+
```swift
54+
dependencies: [
55+
.package(url: "https://github.com/Digipolitan/dependency-injector-object-mapper.git", from: "1.0.0")
56+
]
57+
```
58+
2659
## How to use ?
2760

2861
First you must create your models conforms to BaseMappable protocol

Samples/DependencyInjectorObjectMapperSample-OSX/DependencyInjectorObjectMapperSample-OSX/AppDelegate.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
1414

1515
@IBOutlet weak var window: NSWindow!
1616

17-
func applicationDidFinishLaunching(_ aNotification: Notification) {
18-
let t = TemplateClass()
19-
print(t)
20-
}
21-
2217
func applicationWillTerminate(_ aNotification: Notification) {
2318
// Insert code here to tear down your application
2419
}

Samples/DependencyInjectorObjectMapperSample-iOS/DependencyInjectorObjectMapperSample-iOS/ViewController.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,4 @@ import DependencyInjectorObjectMapper
1111

1212
class ViewController: UIViewController {
1313

14-
override func viewDidLoad() {
15-
super.viewDidLoad()
16-
let t = TemplateClass()
17-
print(t)
18-
}
1914
}

0 commit comments

Comments
 (0)