Skip to content

Commit

Permalink
Merge pull request #7 from Asana/steve/podspec
Browse files Browse the repository at this point in the history
Swift 4.2 + podspec + version bump
  • Loading branch information
stevelandeyasana authored Nov 5, 2018
2 parents e8fe8c1 + d2bc17e commit 7e9d02a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.2
2 changes: 1 addition & 1 deletion Drawsana Demo/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
2 changes: 1 addition & 1 deletion Drawsana Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ViewController: UIViewController {

guard
let image = drawingView.render(over: imageView.image),
let data = UIImageJPEGRepresentation(image, 0.75),
let data = image.jpegData(compressionQuality: 0.75),
(try? data.write(to: savedImageURL)) != nil else
{
assert(false, "Can't create or save image")
Expand Down
15 changes: 15 additions & 0 deletions Drawsana.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |spec|
spec.name = 'Drawsana'
spec.version = '0.9.2'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://asana.github.io/Drawsana'
spec.documentation_url = 'https://asana.github.io/Drawsana'
spec.authors = { 'Steve Landey' => '[email protected]' }
spec.summary = 'Let your users mark up images with freehand drawings, shapes, and text'
spec.source = { :git => 'https://github.com/asana/Drawsana.git', :tag => '0.9.2' }
spec.source_files = 'Drawsana/**/*.swift'

spec.platform = :ios, '9.0'

spec.swift_version = '4.2'
end
15 changes: 8 additions & 7 deletions Drawsana.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,14 @@
TargetAttributes = {
37EB4ED8210649E100E10461 = {
CreatedOnToolsVersion = 9.4;
LastSwiftMigration = 0940;
LastSwiftMigration = 1010;
};
37EB4EE1210649E100E10461 = {
CreatedOnToolsVersion = 9.4;
};
37EB4EF921064A5E00E10461 = {
CreatedOnToolsVersion = 9.4;
LastSwiftMigration = 1010;
};
};
};
Expand Down Expand Up @@ -689,7 +690,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -716,7 +717,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingView;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -735,7 +736,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingViewTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -754,7 +755,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingViewTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -773,7 +774,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "com.asana.AMDrawingView-Demo";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -792,7 +793,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "com.asana.AMDrawingView-Demo";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
8 changes: 6 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Drawsana 0.9.1
# Drawsana 0.9.2

Drawsana is a generalized framework for making freehand drawing views on iOS. You can
let users scribble over images, add shapes and text, and even make your own tools.
Expand Down Expand Up @@ -32,7 +32,7 @@ Add `Asana/Drawsana` to your Cartfile and update your project like you would for
Carthage framework, or clone the source code and add the project to your workspace.

```
github "Asana/Drawsana" == 0.9.1
github "Asana/Drawsana" == 0.9.2
```

## Usage
Expand Down Expand Up @@ -95,6 +95,10 @@ open https://asana.github.io/Drawsana

## Changelog

### 0.9.2
* Convert to Swift 4.2
* CocoaPods support

### 0.9.1

* `DrawsanaView.selectionIndicatorViewShapeLayer` is exposed, allowing you to more
Expand Down

0 comments on commit 7e9d02a

Please sign in to comment.