|
1 |
| -# |
2 |
| -# Be sure to run `pod spec lint CodableUserDefaults.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 https://guides.cocoapods.org/syntax/podspec.html |
6 |
| -# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ |
7 |
| -# |
8 |
| - |
9 | 1 | Pod::Spec.new do |spec|
|
10 | 2 | spec.name = "CodableUserDefaults"
|
11 | 3 | spec.version = "0.0.1"
|
12 | 4 | spec.summary = "A simple implementation of Codables with UserDefaults."
|
13 | 5 | spec.description = "CodableUserDefaults gives you the power to implement UserDefaults with codable seamlessly, look at it as icing on the cake."
|
14 |
| - |
15 |
| - spec.homepage = "http://EXAMPLE/CodableUserDefaults" |
16 |
| - # spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" |
17 |
| - |
18 |
| - |
19 |
| - # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
20 |
| - # |
21 |
| - # Licensing your code is important. See https://choosealicense.com for more info. |
22 |
| - # CocoaPods will detect a license file if there is a named LICENSE* |
23 |
| - # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. |
24 |
| - # |
25 |
| - |
26 |
| - spec.license = "MIT (example)" |
27 |
| - # spec.license = { :type => "MIT", :file => "FILE_LICENSE" } |
28 |
| - |
29 |
| - |
30 |
| - # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
31 |
| - # |
32 |
| - # Specify the authors of the library, with email addresses. Email addresses |
33 |
| - # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also |
34 |
| - # accepts just a name if you'd rather not provide an email address. |
35 |
| - # |
36 |
| - # Specify a social_media_url where others can refer to, for example a twitter |
37 |
| - # profile URL. |
38 |
| - # |
39 |
| - |
| 6 | + spec.homepage = "http://github.com/AdieOlami/CodableUserDefaults" |
| 7 | + spec.license = { :type => "MIT", :file => "LICENSE" } |
40 | 8 | spec.author = { "Adie Olalekan" => "ugbeadie@gmail.com" }
|
41 |
| - # Or just: spec.author = "Adie Olalekan" |
42 |
| - # spec.authors = { "Adie Olalekan" => "ugbeadie@gmail.com" } |
43 |
| - # spec.social_media_url = "https://twitter.com/Adie Olalekan" |
44 |
| - |
45 |
| - # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
46 |
| - # |
47 |
| - # If this Pod runs only on iOS or OS X, then specify the platform and |
48 |
| - # the deployment target. You can optionally include the target after the platform. |
49 |
| - # |
50 |
| - |
51 |
| - # spec.platform = :ios |
52 |
| - # spec.platform = :ios, "5.0" |
53 |
| - |
54 |
| - # When using multiple platforms |
55 |
| - # spec.ios.deployment_target = "5.0" |
56 |
| - # spec.osx.deployment_target = "10.7" |
57 |
| - # spec.watchos.deployment_target = "2.0" |
58 |
| - # spec.tvos.deployment_target = "9.0" |
59 |
| - |
60 |
| - |
61 |
| - # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
62 |
| - # |
63 |
| - # Specify the location from where the source should be retrieved. |
64 |
| - # Supports git, hg, bzr, svn and HTTP. |
65 |
| - # |
66 |
| - |
67 |
| - spec.source = { :git => "http://EXAMPLE/CodableUserDefaults.git", :tag => "#{spec.version}" } |
68 |
| - |
69 |
| - |
70 |
| - # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
71 |
| - # |
72 |
| - # CocoaPods is smart about how it includes source code. For source files |
73 |
| - # giving a folder will include any swift, h, m, mm, c & cpp files. |
74 |
| - # For header files it will include any header in the folder. |
75 |
| - # Not including the public_header_files will make all headers public. |
76 |
| - # |
77 |
| - |
78 |
| - spec.source_files = "Classes", "Classes/**/*.{h,m}" |
79 |
| - spec.exclude_files = "Classes/Exclude" |
80 |
| - |
81 |
| - # spec.public_header_files = "Classes/**/*.h" |
82 |
| - |
83 |
| - |
84 |
| - # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
85 |
| - # |
86 |
| - # A list of resources included with the Pod. These are copied into the |
87 |
| - # target bundle with a build phase script. Anything else will be cleaned. |
88 |
| - # You can preserve files from being cleaned, please don't preserve |
89 |
| - # non-essential files like tests, examples and documentation. |
90 |
| - # |
91 |
| - |
92 |
| - # spec.resource = "icon.png" |
93 |
| - # spec.resources = "Resources/*.png" |
94 |
| - |
95 |
| - # spec.preserve_paths = "FilesToSave", "MoreFilesToSave" |
96 |
| - |
97 |
| - |
98 |
| - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
99 |
| - # |
100 |
| - # Link your library with frameworks, or libraries. Libraries do not include |
101 |
| - # the lib prefix of their name. |
102 |
| - # |
103 |
| - |
104 |
| - # spec.framework = "SomeFramework" |
105 |
| - # spec.frameworks = "SomeFramework", "AnotherFramework" |
106 |
| - |
107 |
| - # spec.library = "iconv" |
108 |
| - # spec.libraries = "iconv", "xml2" |
109 |
| - |
110 |
| - |
111 |
| - # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # |
112 |
| - # |
113 |
| - # If your library depends on compiler flags you can set them in the xcconfig hash |
114 |
| - # where they will only apply to your library. If you depend on other Podspecs |
115 |
| - # you can include multiple dependencies to ensure it works. |
| 9 | + spec.social_media_url = "https://twitter.com/AdieOlami" |
116 | 10 |
|
117 |
| - # spec.requires_arc = true |
| 11 | + spec.source = { :git => "https://github.com/AdieOlami/CodableUserDefaults.git", :tag => "#{spec.version}" } |
118 | 12 |
|
119 |
| - # spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } |
120 |
| - # spec.dependency "JSONKit", "~> 1.4" |
| 13 | + spec.source_files = "CodableUserDefaults/**/*.{swift}" |
| 14 | + spec.swift_versions = '5.0' |
| 15 | + spec.ios.deployment_target = "9.0" |
121 | 16 |
|
122 | 17 | end
|
0 commit comments