imagetools 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -2
  4. data/appicon.png +0 -0
  5. data/lib/imagetools/iconcreator.rb +1 -1
  6. data/lib/imagetools/imageconcat.rb +1 -1
  7. data/lib/imagetools/imagefilter.rb +1 -1
  8. data/lib/imagetools/version.rb +1 -1
  9. data/sample/demo/.gitignore +67 -0
  10. data/sample/demo/demo/AppDelegate.swift +46 -0
  11. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Contents.json +116 -0
  12. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-1024x1024@1x.png +0 -0
  13. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@1x.png +0 -0
  14. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@2x.png +0 -0
  15. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@3x.png +0 -0
  16. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@1x.png +0 -0
  17. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@2x.png +0 -0
  18. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@3x.png +0 -0
  19. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@1x.png +0 -0
  20. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@2x.png +0 -0
  21. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@3x.png +0 -0
  22. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-60x60@2x.png +0 -0
  23. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-60x60@3x.png +0 -0
  24. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-76x76@1x.png +0 -0
  25. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-76x76@2x.png +0 -0
  26. data/sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-83.5x83.5@2x.png +0 -0
  27. data/sample/demo/demo/Base.lproj/LaunchScreen.storyboard +25 -0
  28. data/sample/demo/demo/Base.lproj/Main.storyboard +24 -0
  29. data/sample/demo/demo/Info.plist +45 -0
  30. data/sample/demo/demo/ViewController.swift +25 -0
  31. data/sample/demo/demo.xcodeproj/project.pbxproj +327 -0
  32. data/sample/demo/demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  33. data/sample/icon.png +0 -0
  34. data/sample/icon.sketch +0 -0
  35. data/sample_iconcreator.sh +3 -0
  36. metadata +29 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6c1f6bcc140a56398c7dde6e035bfd833087c87d4073f79941f35a3bee218d5
4
- data.tar.gz: '077803339e06bc1d111cfe3578102fce618317f5a3739baf77eccc904e73feaf'
3
+ metadata.gz: a471bcc97395de84d2626bd0708fe1463c3c0129056ffd99e62c2feaf4d81948
4
+ data.tar.gz: 213abe065b40268e623affea31a2f0b390e3686e237f72b0644a2242741d448c
5
5
  SHA512:
6
- metadata.gz: 0c84df990c4098d9670cffa17ad5e6a8d47c1f186ae071d341f5d5d167f3e66e0567928c96fa684b8c1bc7edc1232c6eb27c088dfdea1d6f32d9f7abf69d3ab5
7
- data.tar.gz: 1021d94363089d3ac87b69336cce0b7accafd68e35454562b0e87f5de8fdd4dea2fbca212eabac8cfde803d8ec9f6c9659aeb440c750f61ea1dcabc42540f681
6
+ metadata.gz: 71ed87582356c0b42bd24533b07c18624d23fcfda5fe5179710dda0dbc426b845590bef2256c6dde7dd2c7522f25976b75b6c6e6000be1d6d43329f3ed0c7f8a
7
+ data.tar.gz: e7dcb59dcc670bfdd5bc54d82002ede1de839f4ba8039870a0f698b72e7cc7cc83a73f45020c90fd898f29dbfaaf5ae513cb726307219858990f0e6a291df365
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagetools (0.2.0)
4
+ imagetools (0.3.0)
5
5
  rmagick
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -25,12 +25,12 @@ PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem imagetools
25
25
 
26
26
  ### iconcreator
27
27
 
28
+ ![AppIcon](appicon.png)
29
+
28
30
  ```
29
31
  iconcreator -i <ORIGINAL_ICON_FILE> -o <OUTPUT_DIR>
30
32
  ```
31
33
 
32
-
33
-
34
34
  ## Usage
35
35
 
36
36
  TODO: Write usage instructions here
data/appicon.png ADDED
Binary file
@@ -53,7 +53,7 @@ module Imagetools
53
53
  exit
54
54
  end
55
55
  opts[:o] ||= "./out"
56
- command = Command.new(opts)
56
+ command = Iconcreator.new(opts)
57
57
  command.run
58
58
  end
59
59
 
@@ -33,7 +33,7 @@ module Imagetools
33
33
  puts opt.help
34
34
  exit
35
35
  end
36
- command = Command.new(opts)
36
+ command = Imageconcat.new(opts)
37
37
  command.run(image_files)
38
38
  end
39
39
 
@@ -52,7 +52,7 @@ EOM
52
52
  exit
53
53
  end
54
54
  filepaths.each do |filepath|
55
- command = Command.new(opts)
55
+ command = Imagefilter.new(opts)
56
56
  command.run(filepath)
57
57
  end
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module Imagetools
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -0,0 +1,67 @@
1
+ --> Displaying snippet 'Swift'
2
+ # Xcode
3
+ #
4
+ # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
5
+
6
+ ## Build generated
7
+ build/
8
+ DerivedData/
9
+
10
+ ## Various settings
11
+ *.pbxuser
12
+ !default.pbxuser
13
+ *.mode1v3
14
+ !default.mode1v3
15
+ *.mode2v3
16
+ !default.mode2v3
17
+ *.perspectivev3
18
+ !default.perspectivev3
19
+ xcuserdata/
20
+
21
+ ## Other
22
+ *.moved-aside
23
+ *.xcuserstate
24
+
25
+ ## Obj-C/Swift specific
26
+ *.hmap
27
+ *.ipa
28
+ *.dSYM.zip
29
+ *.dSYM
30
+
31
+ ## Playgrounds
32
+ timeline.xctimeline
33
+ playground.xcworkspace
34
+
35
+ # Swift Package Manager
36
+ #
37
+ # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38
+ # Packages/
39
+ .build/
40
+
41
+ # CocoaPods
42
+ #
43
+ # We recommend against adding the Pods directory to your .gitignore. However
44
+ # you should judge for yourself, the pros and cons are mentioned at:
45
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
46
+ #
47
+ Pods/
48
+
49
+ # Carthage
50
+ #
51
+ # Add this line if you want to avoid checking in source code from Carthage dependencies.
52
+ # Carthage/Checkouts
53
+
54
+ Carthage/Build
55
+
56
+ # fastlane
57
+ #
58
+ # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59
+ # screenshots whenever they are needed.
60
+ # For more information about the recommended setup visit:
61
+ # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
62
+
63
+ fastlane/report.xml
64
+ fastlane/Preview.html
65
+ fastlane/screenshots
66
+ fastlane/test_output
67
+
@@ -0,0 +1,46 @@
1
+ //
2
+ // AppDelegate.swift
3
+ // demo
4
+ //
5
+ // Created by sora on 2018/02/19.
6
+ // Copyright © 2018年 swift-study. All rights reserved.
7
+ //
8
+
9
+ import UIKit
10
+
11
+ @UIApplicationMain
12
+ class AppDelegate: UIResponder, UIApplicationDelegate {
13
+
14
+ var window: UIWindow?
15
+
16
+
17
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18
+ // Override point for customization after application launch.
19
+ return true
20
+ }
21
+
22
+ func applicationWillResignActive(_ application: UIApplication) {
23
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24
+ // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25
+ }
26
+
27
+ func applicationDidEnterBackground(_ application: UIApplication) {
28
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30
+ }
31
+
32
+ func applicationWillEnterForeground(_ application: UIApplication) {
33
+ // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34
+ }
35
+
36
+ func applicationDidBecomeActive(_ application: UIApplication) {
37
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38
+ }
39
+
40
+ func applicationWillTerminate(_ application: UIApplication) {
41
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42
+ }
43
+
44
+
45
+ }
46
+
@@ -0,0 +1,116 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "size": "20x20",
5
+ "idiom": "iphone",
6
+ "filename": "Icon-20x20@2x.png",
7
+ "scale": "2x"
8
+ },
9
+ {
10
+ "size": "20x20",
11
+ "idiom": "iphone",
12
+ "filename": "Icon-20x20@3x.png",
13
+ "scale": "3x"
14
+ },
15
+ {
16
+ "size": "29x29",
17
+ "idiom": "iphone",
18
+ "filename": "Icon-29x29@2x.png",
19
+ "scale": "2x"
20
+ },
21
+ {
22
+ "size": "29x29",
23
+ "idiom": "iphone",
24
+ "filename": "Icon-29x29@3x.png",
25
+ "scale": "3x"
26
+ },
27
+ {
28
+ "size": "40x40",
29
+ "idiom": "iphone",
30
+ "filename": "Icon-40x40@2x.png",
31
+ "scale": "2x"
32
+ },
33
+ {
34
+ "size": "40x40",
35
+ "idiom": "iphone",
36
+ "filename": "Icon-40x40@3x.png",
37
+ "scale": "3x"
38
+ },
39
+ {
40
+ "size": "60x60",
41
+ "idiom": "iphone",
42
+ "filename": "Icon-60x60@2x.png",
43
+ "scale": "2x"
44
+ },
45
+ {
46
+ "size": "60x60",
47
+ "idiom": "iphone",
48
+ "filename": "Icon-60x60@3x.png",
49
+ "scale": "3x"
50
+ },
51
+ {
52
+ "size": "20x20",
53
+ "idiom": "ipad",
54
+ "filename": "Icon-20x20@1x.png",
55
+ "scale": "1x"
56
+ },
57
+ {
58
+ "size": "20x20",
59
+ "idiom": "ipad",
60
+ "filename": "Icon-20x20@2x.png",
61
+ "scale": "2x"
62
+ },
63
+ {
64
+ "size": "29x29",
65
+ "idiom": "ipad",
66
+ "filename": "Icon-29x29@1x.png",
67
+ "scale": "1x"
68
+ },
69
+ {
70
+ "size": "29x29",
71
+ "idiom": "ipad",
72
+ "filename": "Icon-29x29@2x.png",
73
+ "scale": "2x"
74
+ },
75
+ {
76
+ "size": "40x40",
77
+ "idiom": "ipad",
78
+ "filename": "Icon-40x40@1x.png",
79
+ "scale": "1x"
80
+ },
81
+ {
82
+ "size": "40x40",
83
+ "idiom": "ipad",
84
+ "filename": "Icon-40x40@2x.png",
85
+ "scale": "2x"
86
+ },
87
+ {
88
+ "size": "76x76",
89
+ "idiom": "ipad",
90
+ "filename": "Icon-76x76@1x.png",
91
+ "scale": "1x"
92
+ },
93
+ {
94
+ "size": "76x76",
95
+ "idiom": "ipad",
96
+ "filename": "Icon-76x76@2x.png",
97
+ "scale": "2x"
98
+ },
99
+ {
100
+ "size": "83.5x83.5",
101
+ "idiom": "ipad",
102
+ "filename": "Icon-83.5x83.5@2x.png",
103
+ "scale": "2x"
104
+ },
105
+ {
106
+ "size": "1024x1024",
107
+ "idiom": "ios-marketing",
108
+ "filename": "Icon-1024x1024@1x.png",
109
+ "scale": "1x"
110
+ }
111
+ ],
112
+ "info" : {
113
+ "version" : 1,
114
+ "author" : "xcode"
115
+ }
116
+ }
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <scenes>
9
+ <!--View Controller-->
10
+ <scene sceneID="EHf-IW-A2E">
11
+ <objects>
12
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
13
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
14
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
17
+ <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18
+ </view>
19
+ </viewController>
20
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
21
+ </objects>
22
+ <point key="canvasLocation" x="53" y="375"/>
23
+ </scene>
24
+ </scenes>
25
+ </document>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <scenes>
9
+ <!--View Controller-->
10
+ <scene sceneID="tne-QT-ifu">
11
+ <objects>
12
+ <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
13
+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
14
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
17
+ <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18
+ </view>
19
+ </viewController>
20
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
21
+ </objects>
22
+ </scene>
23
+ </scenes>
24
+ </document>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>APPL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ <key>LSRequiresIPhoneOS</key>
22
+ <true/>
23
+ <key>UILaunchStoryboardName</key>
24
+ <string>LaunchScreen</string>
25
+ <key>UIMainStoryboardFile</key>
26
+ <string>Main</string>
27
+ <key>UIRequiredDeviceCapabilities</key>
28
+ <array>
29
+ <string>armv7</string>
30
+ </array>
31
+ <key>UISupportedInterfaceOrientations</key>
32
+ <array>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
+ </array>
37
+ <key>UISupportedInterfaceOrientations~ipad</key>
38
+ <array>
39
+ <string>UIInterfaceOrientationPortrait</string>
40
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
41
+ <string>UIInterfaceOrientationLandscapeLeft</string>
42
+ <string>UIInterfaceOrientationLandscapeRight</string>
43
+ </array>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,25 @@
1
+ //
2
+ // ViewController.swift
3
+ // demo
4
+ //
5
+ // Created by sora on 2018/02/19.
6
+ // Copyright © 2018年 swift-study. All rights reserved.
7
+ //
8
+
9
+ import UIKit
10
+
11
+ class ViewController: UIViewController {
12
+
13
+ override func viewDidLoad() {
14
+ super.viewDidLoad()
15
+ // Do any additional setup after loading the view, typically from a nib.
16
+ }
17
+
18
+ override func didReceiveMemoryWarning() {
19
+ super.didReceiveMemoryWarning()
20
+ // Dispose of any resources that can be recreated.
21
+ }
22
+
23
+
24
+ }
25
+
@@ -0,0 +1,327 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 48;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 97572271203A9C5F007101B3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97572270203A9C5F007101B3 /* AppDelegate.swift */; };
11
+ 97572273203A9C5F007101B3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97572272203A9C5F007101B3 /* ViewController.swift */; };
12
+ 97572276203A9C5F007101B3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97572274203A9C5F007101B3 /* Main.storyboard */; };
13
+ 97572278203A9C5F007101B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97572277203A9C5F007101B3 /* Assets.xcassets */; };
14
+ 9757227B203A9C5F007101B3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97572279203A9C5F007101B3 /* LaunchScreen.storyboard */; };
15
+ /* End PBXBuildFile section */
16
+
17
+ /* Begin PBXFileReference section */
18
+ 9757226D203A9C5F007101B3 /* demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
19
+ 97572270203A9C5F007101B3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
20
+ 97572272203A9C5F007101B3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
21
+ 97572275203A9C5F007101B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
22
+ 97572277203A9C5F007101B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
23
+ 9757227A203A9C5F007101B3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
24
+ 9757227C203A9C5F007101B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
25
+ /* End PBXFileReference section */
26
+
27
+ /* Begin PBXFrameworksBuildPhase section */
28
+ 9757226A203A9C5F007101B3 /* Frameworks */ = {
29
+ isa = PBXFrameworksBuildPhase;
30
+ buildActionMask = 2147483647;
31
+ files = (
32
+ );
33
+ runOnlyForDeploymentPostprocessing = 0;
34
+ };
35
+ /* End PBXFrameworksBuildPhase section */
36
+
37
+ /* Begin PBXGroup section */
38
+ 97572264203A9C5F007101B3 = {
39
+ isa = PBXGroup;
40
+ children = (
41
+ 9757226F203A9C5F007101B3 /* demo */,
42
+ 9757226E203A9C5F007101B3 /* Products */,
43
+ );
44
+ sourceTree = "<group>";
45
+ };
46
+ 9757226E203A9C5F007101B3 /* Products */ = {
47
+ isa = PBXGroup;
48
+ children = (
49
+ 9757226D203A9C5F007101B3 /* demo.app */,
50
+ );
51
+ name = Products;
52
+ sourceTree = "<group>";
53
+ };
54
+ 9757226F203A9C5F007101B3 /* demo */ = {
55
+ isa = PBXGroup;
56
+ children = (
57
+ 97572270203A9C5F007101B3 /* AppDelegate.swift */,
58
+ 97572272203A9C5F007101B3 /* ViewController.swift */,
59
+ 97572274203A9C5F007101B3 /* Main.storyboard */,
60
+ 97572277203A9C5F007101B3 /* Assets.xcassets */,
61
+ 97572279203A9C5F007101B3 /* LaunchScreen.storyboard */,
62
+ 9757227C203A9C5F007101B3 /* Info.plist */,
63
+ );
64
+ path = demo;
65
+ sourceTree = "<group>";
66
+ };
67
+ /* End PBXGroup section */
68
+
69
+ /* Begin PBXNativeTarget section */
70
+ 9757226C203A9C5F007101B3 /* demo */ = {
71
+ isa = PBXNativeTarget;
72
+ buildConfigurationList = 9757227F203A9C5F007101B3 /* Build configuration list for PBXNativeTarget "demo" */;
73
+ buildPhases = (
74
+ 97572269203A9C5F007101B3 /* Sources */,
75
+ 9757226A203A9C5F007101B3 /* Frameworks */,
76
+ 9757226B203A9C5F007101B3 /* Resources */,
77
+ );
78
+ buildRules = (
79
+ );
80
+ dependencies = (
81
+ );
82
+ name = demo;
83
+ productName = demo;
84
+ productReference = 9757226D203A9C5F007101B3 /* demo.app */;
85
+ productType = "com.apple.product-type.application";
86
+ };
87
+ /* End PBXNativeTarget section */
88
+
89
+ /* Begin PBXProject section */
90
+ 97572265203A9C5F007101B3 /* Project object */ = {
91
+ isa = PBXProject;
92
+ attributes = {
93
+ LastSwiftUpdateCheck = 0920;
94
+ LastUpgradeCheck = 0920;
95
+ ORGANIZATIONNAME = "swift-study";
96
+ TargetAttributes = {
97
+ 9757226C203A9C5F007101B3 = {
98
+ CreatedOnToolsVersion = 9.2;
99
+ ProvisioningStyle = Automatic;
100
+ };
101
+ };
102
+ };
103
+ buildConfigurationList = 97572268203A9C5F007101B3 /* Build configuration list for PBXProject "demo" */;
104
+ compatibilityVersion = "Xcode 8.0";
105
+ developmentRegion = en;
106
+ hasScannedForEncodings = 0;
107
+ knownRegions = (
108
+ en,
109
+ Base,
110
+ );
111
+ mainGroup = 97572264203A9C5F007101B3;
112
+ productRefGroup = 9757226E203A9C5F007101B3 /* Products */;
113
+ projectDirPath = "";
114
+ projectRoot = "";
115
+ targets = (
116
+ 9757226C203A9C5F007101B3 /* demo */,
117
+ );
118
+ };
119
+ /* End PBXProject section */
120
+
121
+ /* Begin PBXResourcesBuildPhase section */
122
+ 9757226B203A9C5F007101B3 /* Resources */ = {
123
+ isa = PBXResourcesBuildPhase;
124
+ buildActionMask = 2147483647;
125
+ files = (
126
+ 9757227B203A9C5F007101B3 /* LaunchScreen.storyboard in Resources */,
127
+ 97572278203A9C5F007101B3 /* Assets.xcassets in Resources */,
128
+ 97572276203A9C5F007101B3 /* Main.storyboard in Resources */,
129
+ );
130
+ runOnlyForDeploymentPostprocessing = 0;
131
+ };
132
+ /* End PBXResourcesBuildPhase section */
133
+
134
+ /* Begin PBXSourcesBuildPhase section */
135
+ 97572269203A9C5F007101B3 /* Sources */ = {
136
+ isa = PBXSourcesBuildPhase;
137
+ buildActionMask = 2147483647;
138
+ files = (
139
+ 97572273203A9C5F007101B3 /* ViewController.swift in Sources */,
140
+ 97572271203A9C5F007101B3 /* AppDelegate.swift in Sources */,
141
+ );
142
+ runOnlyForDeploymentPostprocessing = 0;
143
+ };
144
+ /* End PBXSourcesBuildPhase section */
145
+
146
+ /* Begin PBXVariantGroup section */
147
+ 97572274203A9C5F007101B3 /* Main.storyboard */ = {
148
+ isa = PBXVariantGroup;
149
+ children = (
150
+ 97572275203A9C5F007101B3 /* Base */,
151
+ );
152
+ name = Main.storyboard;
153
+ sourceTree = "<group>";
154
+ };
155
+ 97572279203A9C5F007101B3 /* LaunchScreen.storyboard */ = {
156
+ isa = PBXVariantGroup;
157
+ children = (
158
+ 9757227A203A9C5F007101B3 /* Base */,
159
+ );
160
+ name = LaunchScreen.storyboard;
161
+ sourceTree = "<group>";
162
+ };
163
+ /* End PBXVariantGroup section */
164
+
165
+ /* Begin XCBuildConfiguration section */
166
+ 9757227D203A9C5F007101B3 /* Debug */ = {
167
+ isa = XCBuildConfiguration;
168
+ buildSettings = {
169
+ ALWAYS_SEARCH_USER_PATHS = NO;
170
+ CLANG_ANALYZER_NONNULL = YES;
171
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
172
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
173
+ CLANG_CXX_LIBRARY = "libc++";
174
+ CLANG_ENABLE_MODULES = YES;
175
+ CLANG_ENABLE_OBJC_ARC = YES;
176
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
177
+ CLANG_WARN_BOOL_CONVERSION = YES;
178
+ CLANG_WARN_COMMA = YES;
179
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
180
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
182
+ CLANG_WARN_EMPTY_BODY = YES;
183
+ CLANG_WARN_ENUM_CONVERSION = YES;
184
+ CLANG_WARN_INFINITE_RECURSION = YES;
185
+ CLANG_WARN_INT_CONVERSION = YES;
186
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
187
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
188
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
189
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
190
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
191
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
192
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
193
+ CLANG_WARN_UNREACHABLE_CODE = YES;
194
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
195
+ CODE_SIGN_IDENTITY = "iPhone Developer";
196
+ COPY_PHASE_STRIP = NO;
197
+ DEBUG_INFORMATION_FORMAT = dwarf;
198
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
199
+ ENABLE_TESTABILITY = YES;
200
+ GCC_C_LANGUAGE_STANDARD = gnu11;
201
+ GCC_DYNAMIC_NO_PIC = NO;
202
+ GCC_NO_COMMON_BLOCKS = YES;
203
+ GCC_OPTIMIZATION_LEVEL = 0;
204
+ GCC_PREPROCESSOR_DEFINITIONS = (
205
+ "DEBUG=1",
206
+ "$(inherited)",
207
+ );
208
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
209
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
210
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
211
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
212
+ GCC_WARN_UNUSED_FUNCTION = YES;
213
+ GCC_WARN_UNUSED_VARIABLE = YES;
214
+ IPHONEOS_DEPLOYMENT_TARGET = 11.2;
215
+ MTL_ENABLE_DEBUG_INFO = YES;
216
+ ONLY_ACTIVE_ARCH = YES;
217
+ SDKROOT = iphoneos;
218
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
219
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
220
+ };
221
+ name = Debug;
222
+ };
223
+ 9757227E203A9C5F007101B3 /* Release */ = {
224
+ isa = XCBuildConfiguration;
225
+ buildSettings = {
226
+ ALWAYS_SEARCH_USER_PATHS = NO;
227
+ CLANG_ANALYZER_NONNULL = YES;
228
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
229
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
230
+ CLANG_CXX_LIBRARY = "libc++";
231
+ CLANG_ENABLE_MODULES = YES;
232
+ CLANG_ENABLE_OBJC_ARC = YES;
233
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
234
+ CLANG_WARN_BOOL_CONVERSION = YES;
235
+ CLANG_WARN_COMMA = YES;
236
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
237
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
238
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
239
+ CLANG_WARN_EMPTY_BODY = YES;
240
+ CLANG_WARN_ENUM_CONVERSION = YES;
241
+ CLANG_WARN_INFINITE_RECURSION = YES;
242
+ CLANG_WARN_INT_CONVERSION = YES;
243
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
244
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
245
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
246
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
247
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
248
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
249
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
250
+ CLANG_WARN_UNREACHABLE_CODE = YES;
251
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
252
+ CODE_SIGN_IDENTITY = "iPhone Developer";
253
+ COPY_PHASE_STRIP = NO;
254
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
255
+ ENABLE_NS_ASSERTIONS = NO;
256
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
257
+ GCC_C_LANGUAGE_STANDARD = gnu11;
258
+ GCC_NO_COMMON_BLOCKS = YES;
259
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
260
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
261
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
262
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
263
+ GCC_WARN_UNUSED_FUNCTION = YES;
264
+ GCC_WARN_UNUSED_VARIABLE = YES;
265
+ IPHONEOS_DEPLOYMENT_TARGET = 11.2;
266
+ MTL_ENABLE_DEBUG_INFO = NO;
267
+ SDKROOT = iphoneos;
268
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
269
+ VALIDATE_PRODUCT = YES;
270
+ };
271
+ name = Release;
272
+ };
273
+ 97572280203A9C5F007101B3 /* Debug */ = {
274
+ isa = XCBuildConfiguration;
275
+ buildSettings = {
276
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
277
+ CODE_SIGN_STYLE = Automatic;
278
+ DEVELOPMENT_TEAM = 4SU7KA8AJS;
279
+ INFOPLIST_FILE = demo/Info.plist;
280
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
281
+ PRODUCT_BUNDLE_IDENTIFIER = "com.swift-study.demo";
282
+ PRODUCT_NAME = "$(TARGET_NAME)";
283
+ SWIFT_VERSION = 4.0;
284
+ TARGETED_DEVICE_FAMILY = "1,2";
285
+ };
286
+ name = Debug;
287
+ };
288
+ 97572281203A9C5F007101B3 /* Release */ = {
289
+ isa = XCBuildConfiguration;
290
+ buildSettings = {
291
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
292
+ CODE_SIGN_STYLE = Automatic;
293
+ DEVELOPMENT_TEAM = 4SU7KA8AJS;
294
+ INFOPLIST_FILE = demo/Info.plist;
295
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
296
+ PRODUCT_BUNDLE_IDENTIFIER = "com.swift-study.demo";
297
+ PRODUCT_NAME = "$(TARGET_NAME)";
298
+ SWIFT_VERSION = 4.0;
299
+ TARGETED_DEVICE_FAMILY = "1,2";
300
+ };
301
+ name = Release;
302
+ };
303
+ /* End XCBuildConfiguration section */
304
+
305
+ /* Begin XCConfigurationList section */
306
+ 97572268203A9C5F007101B3 /* Build configuration list for PBXProject "demo" */ = {
307
+ isa = XCConfigurationList;
308
+ buildConfigurations = (
309
+ 9757227D203A9C5F007101B3 /* Debug */,
310
+ 9757227E203A9C5F007101B3 /* Release */,
311
+ );
312
+ defaultConfigurationIsVisible = 0;
313
+ defaultConfigurationName = Release;
314
+ };
315
+ 9757227F203A9C5F007101B3 /* Build configuration list for PBXNativeTarget "demo" */ = {
316
+ isa = XCConfigurationList;
317
+ buildConfigurations = (
318
+ 97572280203A9C5F007101B3 /* Debug */,
319
+ 97572281203A9C5F007101B3 /* Release */,
320
+ );
321
+ defaultConfigurationIsVisible = 0;
322
+ defaultConfigurationName = Release;
323
+ };
324
+ /* End XCConfigurationList section */
325
+ };
326
+ rootObject = 97572265203A9C5F007101B3 /* Project object */;
327
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:demo.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
data/sample/icon.png ADDED
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ ./test_iconcreator.sh -i sample/icon.png -o sample/demo/demo/Assets.xcassets
3
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagetools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - src
@@ -85,6 +85,7 @@ files:
85
85
  - LICENSE.txt
86
86
  - README.md
87
87
  - Rakefile
88
+ - appicon.png
88
89
  - bin/console
89
90
  - bin/setup
90
91
  - build.sh
@@ -99,6 +100,33 @@ files:
99
100
  - lib/imagetools/imageconcat.rb
100
101
  - lib/imagetools/imagefilter.rb
101
102
  - lib/imagetools/version.rb
103
+ - sample/demo/.gitignore
104
+ - sample/demo/demo.xcodeproj/project.pbxproj
105
+ - sample/demo/demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
106
+ - sample/demo/demo/AppDelegate.swift
107
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Contents.json
108
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-1024x1024@1x.png
109
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@1x.png
110
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@2x.png
111
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-20x20@3x.png
112
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@1x.png
113
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@2x.png
114
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-29x29@3x.png
115
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@1x.png
116
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@2x.png
117
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-40x40@3x.png
118
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-60x60@2x.png
119
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-60x60@3x.png
120
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-76x76@1x.png
121
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-76x76@2x.png
122
+ - sample/demo/demo/Assets.xcassets/AppIcon.appiconset/Icon-83.5x83.5@2x.png
123
+ - sample/demo/demo/Base.lproj/LaunchScreen.storyboard
124
+ - sample/demo/demo/Base.lproj/Main.storyboard
125
+ - sample/demo/demo/Info.plist
126
+ - sample/demo/demo/ViewController.swift
127
+ - sample/icon.png
128
+ - sample/icon.sketch
129
+ - sample_iconcreator.sh
102
130
  - test.sh
103
131
  - test_iconcreator.sh
104
132
  - test_imageconcat.sh