Skip to content

Commit 7e9d02a

Browse files
authoredNov 5, 2018
Merge pull request #7 from Asana/steve/podspec
Swift 4.2 + podspec + version bump
2 parents e8fe8c1 + d2bc17e commit 7e9d02a

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed
 

‎.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.2

‎Drawsana Demo/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414
var window: UIWindow?
1515

1616

17-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1818
// Override point for customization after application launch.
1919
return true
2020
}

‎Drawsana Demo/ViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class ViewController: UIViewController {
203203

204204
guard
205205
let image = drawingView.render(over: imageView.image),
206-
let data = UIImageJPEGRepresentation(image, 0.75),
206+
let data = image.jpegData(compressionQuality: 0.75),
207207
(try? data.write(to: savedImageURL)) != nil else
208208
{
209209
assert(false, "Can't create or save image")

‎Drawsana.podspec

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'Drawsana'
3+
spec.version = '0.9.2'
4+
spec.license = { :type => 'MIT' }
5+
spec.homepage = 'https://asana.github.io/Drawsana'
6+
spec.documentation_url = 'https://asana.github.io/Drawsana'
7+
spec.authors = { 'Steve Landey' => 'stevelandey@asana.com' }
8+
spec.summary = 'Let your users mark up images with freehand drawings, shapes, and text'
9+
spec.source = { :git => 'https://github.com/asana/Drawsana.git', :tag => '0.9.2' }
10+
spec.source_files = 'Drawsana/**/*.swift'
11+
12+
spec.platform = :ios, '9.0'
13+
14+
spec.swift_version = '4.2'
15+
end

‎Drawsana.xcodeproj/project.pbxproj

+8-7
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,14 @@
397397
TargetAttributes = {
398398
37EB4ED8210649E100E10461 = {
399399
CreatedOnToolsVersion = 9.4;
400-
LastSwiftMigration = 0940;
400+
LastSwiftMigration = 1010;
401401
};
402402
37EB4EE1210649E100E10461 = {
403403
CreatedOnToolsVersion = 9.4;
404404
};
405405
37EB4EF921064A5E00E10461 = {
406406
CreatedOnToolsVersion = 9.4;
407+
LastSwiftMigration = 1010;
407408
};
408409
};
409410
};
@@ -689,7 +690,7 @@
689690
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
690691
SKIP_INSTALL = YES;
691692
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
692-
SWIFT_VERSION = 4.0;
693+
SWIFT_VERSION = 4.2;
693694
TARGETED_DEVICE_FAMILY = "1,2";
694695
};
695696
name = Debug;
@@ -716,7 +717,7 @@
716717
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingView;
717718
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
718719
SKIP_INSTALL = YES;
719-
SWIFT_VERSION = 4.0;
720+
SWIFT_VERSION = 4.2;
720721
TARGETED_DEVICE_FAMILY = "1,2";
721722
};
722723
name = Release;
@@ -735,7 +736,7 @@
735736
);
736737
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingViewTests;
737738
PRODUCT_NAME = "$(TARGET_NAME)";
738-
SWIFT_VERSION = 4.0;
739+
SWIFT_VERSION = 4.2;
739740
TARGETED_DEVICE_FAMILY = "1,2";
740741
};
741742
name = Debug;
@@ -754,7 +755,7 @@
754755
);
755756
PRODUCT_BUNDLE_IDENTIFIER = com.asana.AMDrawingViewTests;
756757
PRODUCT_NAME = "$(TARGET_NAME)";
757-
SWIFT_VERSION = 4.0;
758+
SWIFT_VERSION = 4.2;
758759
TARGETED_DEVICE_FAMILY = "1,2";
759760
};
760761
name = Release;
@@ -773,7 +774,7 @@
773774
);
774775
PRODUCT_BUNDLE_IDENTIFIER = "com.asana.AMDrawingView-Demo";
775776
PRODUCT_NAME = "$(TARGET_NAME)";
776-
SWIFT_VERSION = 4.0;
777+
SWIFT_VERSION = 4.2;
777778
TARGETED_DEVICE_FAMILY = "1,2";
778779
};
779780
name = Debug;
@@ -792,7 +793,7 @@
792793
);
793794
PRODUCT_BUNDLE_IDENTIFIER = "com.asana.AMDrawingView-Demo";
794795
PRODUCT_NAME = "$(TARGET_NAME)";
795-
SWIFT_VERSION = 4.0;
796+
SWIFT_VERSION = 4.2;
796797
TARGETED_DEVICE_FAMILY = "1,2";
797798
};
798799
name = Release;

‎Readme.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Drawsana 0.9.1
1+
# Drawsana 0.9.2
22

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

3434
```
35-
github "Asana/Drawsana" == 0.9.1
35+
github "Asana/Drawsana" == 0.9.2
3636
```
3737

3838
## Usage
@@ -95,6 +95,10 @@ open https://asana.github.io/Drawsana
9595

9696
## Changelog
9797

98+
### 0.9.2
99+
* Convert to Swift 4.2
100+
* CocoaPods support
101+
98102
### 0.9.1
99103

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

0 commit comments

Comments
 (0)
Please sign in to comment.