Skip to content

Commit

Permalink
Merge branch 'release/4.0' into color-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 authored Jun 10, 2017
2 parents 85f6a51 + 9533a97 commit f21cdd7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.0.0.alpha.1

- Deprecate clr based color resources
- Introduce color asset based color resources

## 3.3.0

*New features:*
Expand Down
4 changes: 2 additions & 2 deletions R.swift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "R.swift"
spec.version = "3.3.0"
spec.version = "4.0.0.alpha.1"
spec.license = "MIT"

spec.summary = "Get strong typed, autocompleted resources like images, fonts and segues in Swift projects"
Expand All @@ -26,7 +26,7 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '8.0'
spec.tvos.deployment_target = '9.0'

spec.dependency "R.swift.Library", "~> 3.0.2"
spec.dependency "R.swift.Library", "~> 4.0.0.alpha.1"

spec.preserve_paths = "rswift"

Expand Down
3 changes: 1 addition & 2 deletions Sources/RswiftCore/ResourceTypes/Font.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ struct Font: WhiteListedExtensionsResourceType {
throw ResourceParsingError.parsingFailed("Unable to create data provider for font at \(url)")
}

let font: CGFont? = CGFont(dataProvider)

let font = CGFont(dataProvider)
guard let postScriptName = font?.postScriptName else {
throw ResourceParsingError.parsingFailed("No postscriptName associated to font at \(url)")
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/rswift/Rswift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
import Foundation

struct Rswift {
static let version = "3.3.0"
static let version = "4.0.0.alpha.1"
static let resourceFileName = "R.generated.swift"
}

0 comments on commit f21cdd7

Please sign in to comment.