Skip to content

Commit

Permalink
Merge pull request #9 from Pidji/master
Browse files Browse the repository at this point in the history
migrated to swift 4.2
  • Loading branch information
Pidji authored Oct 19, 2018
2 parents 9644bc2 + f16573a commit 005b6e9
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
Binary file modified Example/.DS_Store
Binary file not shown.
16 changes: 6 additions & 10 deletions Example/Hash2Pics.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1000;
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1000;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -475,8 +475,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -491,8 +490,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -512,8 +510,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -529,8 +526,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion Example/Hash2Pics/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
9 changes: 7 additions & 2 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Hash2Pics.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Hash2Pics'
s.version = '0.1.3'
s.version = '0.1.4'
s.summary = 'Lib for creating crypto avatars.'

# This description is used to generate tags and improve search results.
Expand All @@ -31,7 +31,7 @@ TODO: This is open-source lib for creating awesome avatars from any crypto addre
s.ios.deployment_target = '8.0'

s.source_files = 'Hash2Pics/Classes/**/*'
s.swift_version = '4.1'
s.swift_version = '4.2'
# s.resource_bundles = {
# 'Hash2Pics' => ['Hash2Pics/Assets/*.png']
# }
Expand Down
2 changes: 1 addition & 1 deletion Hash2Pics/Classes/PictureConstructor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class PictureConstructor: NSObject {
let result = TextLayer()
result.frame = CGRect(x: 0, y: 0, width: diameterInPixels, height: diameterInPixels)
result.string = text
result.alignmentMode = kCAAlignmentCenter
result.alignmentMode = CATextLayerAlignmentMode.center
let fontSize = 0.4 * diameterInPixels
result.font = UIFont(name: "AvenirNext-Bold", size: fontSize)
result.fontSize = fontSize
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| Target | Version |
| ------- | -------- |
| iOS | => 8.0 |
|Swift | => 4.1 |
|Swift | => 4.2 |

## Installation

Expand All @@ -37,7 +37,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp

## Authors

This library developed by guys from Multy - best open-source multy-blockchain wallet, team@multy.io
This library developed by guys from Multy - best open-source multi-blockchain wallet, team@multy.io

## License

Expand Down

0 comments on commit 005b6e9

Please sign in to comment.