|
1 |
| -# |
2 |
| -# Be sure to run `pod spec lint IDZSwiftCommonCrypto.podspec' to ensure this is a |
3 |
| -# valid spec and to remove all comments including this before submitting the spec. |
4 |
| -# |
5 |
| -# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html |
6 |
| -# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ |
7 |
| -# |
8 |
| - |
9 | 1 | Pod::Spec.new do |s|
|
10 | 2 |
|
11 |
| - # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
12 |
| - # |
13 |
| - # These will help people to find your library, and whilst it |
14 |
| - # can feel like a chore to fill in it's definitely to your advantage. The |
15 |
| - # summary should be tweet-length, and the description more in depth. |
16 |
| - # |
17 |
| - |
18 | 3 | s.name = "IDZSwiftCommonCrypto"
|
19 |
| - s.version = "0.6.8" |
| 4 | + s.version = "0.7.0" |
20 | 5 | s.summary = "A wrapper for Apple's Common Crypto library written in Swift."
|
21 | 6 |
|
22 | 7 | s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto"
|
23 |
| - |
24 |
| - |
25 |
| - # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
26 |
| - # |
27 |
| - # Licensing your code is important. See http://choosealicense.com for more info. |
28 |
| - # CocoaPods will detect a license file if there is a named LICENSE* |
29 |
| - # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. |
30 |
| - # |
31 |
| - |
32 | 8 | s.license = "MIT"
|
33 |
| - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } |
34 |
| - |
35 |
| - |
36 |
| - # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
37 |
| - # |
38 |
| - # Specify the authors of the library, with email addresses. Email addresses |
39 |
| - # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also |
40 |
| - # accepts just a name if you'd rather not provide an email address. |
41 |
| - # |
42 |
| - # Specify a social_media_url where others can refer to, for example a twitter |
43 |
| - # profile URL. |
44 |
| - # |
45 |
| - |
46 | 9 | s.author = { "iOSDevZone" => "[email protected]" }
|
47 | 10 | s.social_media_url = "http://twitter.com/iOSDevZone"
|
48 |
| - s.platform = :ios, "8.0" |
49 |
| - # |
50 |
| - # Specify the location from where the source should be retrieved. |
51 |
| - # Supports git, hg, bzr, svn and HTTP. |
52 |
| - # |
| 11 | + |
| 12 | + s.osx.deployment_target = '10.10' |
| 13 | + s.ios.deployment_target = '8.0' |
| 14 | + s.tvos.deployment_target = '9.0' |
| 15 | + s.watchos.deployment_target = '2.0' |
53 | 16 |
|
54 | 17 | s.source = { :git => "https://github.com/iosdevzone/IDZSwiftCommonCrypto.git", :tag => s.version.to_s }
|
55 | 18 |
|
56 |
| - |
57 |
| - # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
58 | 19 | #
|
59 |
| - # CocoaPods is smart about how it includes source code. For source files |
60 |
| - # giving a folder will include any swift, h, m, mm, c & cpp files. |
61 |
| - # For header files it will include any header in the folder. |
62 |
| - # Not including the public_header_files will make all headers public. |
| 20 | + # Create the dummy CommonCrypto.framework structures |
63 | 21 | #
|
64 | 22 | s.prepare_command = <<-CMD
|
65 |
| - |
66 | 23 | touch prepare_command.txt
|
67 | 24 | echo 'Running prepare_command'
|
68 |
| - if [ ! -e CommonCrypto ]; then |
69 |
| - pwd |
70 |
| - echo Running GenerateCommonCryptoModule |
71 |
| - ./GenerateCommonCryptoModule iphonesimulator . |
72 |
| - else |
73 |
| - echo Skipped GenerateCommonCryptoModule |
74 |
| - fi |
| 25 | + pwd |
| 26 | + echo Running GenerateCommonCryptoModule |
| 27 | + swift ./GenerateCommonCryptoModule.swift macosx . |
| 28 | + swift ./GenerateCommonCryptoModule.swift iphonesimulator . |
| 29 | + swift ./GenerateCommonCryptoModule.swift iphoneos . |
| 30 | + swift ./GenerateCommonCryptoModule.swift appletvsimulator . |
| 31 | + swift ./GenerateCommonCryptoModule.swift appletvos . |
| 32 | + swift ./GenerateCommonCryptoModule.swift watchsimulator . |
| 33 | + swift ./GenerateCommonCryptoModule.swift watchos . |
75 | 34 |
|
76 | 35 | CMD
|
77 |
| - s.source_files = "IDZSwiftCommonCrypto" |
78 |
| - |
79 |
| - # s.public_header_files = "Classes/**/*.h" |
80 |
| - |
81 |
| - |
82 |
| - # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
83 |
| - # |
84 |
| - # A list of resources included with the Pod. These are copied into the |
85 |
| - # target bundle with a build phase script. Anything else will be cleaned. |
86 |
| - # You can preserve files from being cleaned, please don't preserve |
87 |
| - # non-essential files like tests, examples and documentation. |
88 |
| - # |
89 |
| - |
90 |
| - # s.resource = "icon.png" |
91 |
| - # s.resources = "Resources/*.png" |
92 |
| - |
93 |
| - s.preserve_paths = "CommonCrypto" |
94 |
| - |
95 | 36 |
|
96 |
| - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
97 |
| - # |
98 |
| - # Link your library with frameworks, or libraries. Libraries do not include |
99 |
| - # the lib prefix of their name. |
100 |
| - # |
101 |
| - |
102 |
| - # s.framework = "SomeFramework" |
103 |
| - # s.frameworks = "SomeFramework", "AnotherFramework" |
104 |
| - |
105 |
| - # s.library = "iconv" |
106 |
| - # s.libraries = "iconv", "xml2" |
107 |
| - |
108 |
| - |
109 |
| - # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
110 |
| - # |
111 |
| - # If your library depends on compiler flags you can set them in the xcconfig hash |
112 |
| - # where they will only apply to your library. If you depend on other Podspecs |
113 |
| - # you can include multiple dependencies to ensure it works. |
| 37 | + s.source_files = "IDZSwiftCommonCrypto" |
114 | 38 |
|
115 |
| - # s.requires_arc = true |
| 39 | + # Stop CocoaPods from deleting dummy frameworks |
| 40 | + s.preserve_paths = "Frameworks" |
116 | 41 |
|
117 |
| - s.xcconfig = { "SWIFT_INCLUDE_PATHS" => "$(PROJECT_DIR)/IDZSwiftCommonCrypto" } |
118 |
| - # s.dependency "JSONKit", "~> 1.4" |
| 42 | + # Make sure we can find the dummy frameworks |
| 43 | + s.xcconfig = { |
| 44 | + "SWIFT_INCLUDE_PATHS" => "$(PROJECT_DIR)/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)", |
| 45 | + "FRAMEWORK_SEARCH_PATHS" => "$(PROJECT_DIR)/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)" |
| 46 | + } |
119 | 47 |
|
120 | 48 | end
|
0 commit comments