Skip to content

Commit 930617c

Browse files
Adds Podspec to project in preparation for using as a Cocoapod
1 parent 0425158 commit 930617c

File tree

7 files changed

+59
-14
lines changed

7 files changed

+59
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ xcuserdata/
2121
*.moved-aside
2222
*.xccheckout
2323
*.xcscmblueprint
24+
**/.DS_Store
2425

2526
## Obj-C/Swift specific
2627
*.hmap

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 SoftwareEngineerChris
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

RoundedDecimal.podspec

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'RoundedDecimal'
3+
s.version = '0.1.0'
4+
s.summary = 'Decimals where the number of decimal places is explicitly part of the type'
5+
6+
s.description = <<-DESC
7+
This library makes the number of decimal places after the point part of the type so that you can guarantee
8+
that you are handling a Decimal type with the exact number of decimal places you expect. Converting between
9+
decimals of differenct decimal places can be done safely and explicitly using the type system.
10+
DESC
11+
12+
s.homepage = 'https://github.com/SoftwareEngineerChris/RoundedDecimal'
13+
s.license = { :type => 'MIT', :file => 'LICENSE' }
14+
s.author = { 'SoftwareEngineerChris' => '[email protected]' }
15+
s.source = { :git => 'https://github.com/SoftwareEngineerChris/RoundedDecimal.git', :tag => s.version.to_s }
16+
17+
s.ios.deployment_target = '10.0'
18+
s.swift_version = '5.0'
19+
20+
s.source_files = 'RoundedDecimal/implementation/**/*'
21+
end

RoundedDecimal.xcodeproj/project.pbxproj

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
8366A47D214E9D8B0060C383 /* RoundedDecimalTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A47C214E9D8B0060C383 /* RoundedDecimalTests.swift */; };
1212
8366A47F214E9D8B0060C383 /* RoundedDecimal.h in Headers */ = {isa = PBXBuildFile; fileRef = 8366A471214E9D8B0060C383 /* RoundedDecimal.h */; settings = {ATTRIBUTES = (Public, ); }; };
1313
8366A489214E9F8E0060C383 /* RoundedDecimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A488214E9F8E0060C383 /* RoundedDecimal.swift */; };
14-
8366A48B214EA0330060C383 /* Decimal+Rounding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A48A214EA0330060C383 /* Decimal+Rounding.swift */; };
15-
8366A48D214EA04F0060C383 /* DecimalTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A48C214EA04F0060C383 /* DecimalTypes.swift */; };
14+
8366A48B214EA0330060C383 /* DecimalTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A48A214EA0330060C383 /* DecimalTypes.swift */; };
15+
8366A48D214EA04F0060C383 /* Decimal+Rounding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8366A48C214EA04F0060C383 /* Decimal+Rounding.swift */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXContainerItemProxy section */
@@ -32,9 +32,9 @@
3232
8366A477214E9D8B0060C383 /* RoundedDecimalTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RoundedDecimalTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3333
8366A47C214E9D8B0060C383 /* RoundedDecimalTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoundedDecimalTests.swift; sourceTree = "<group>"; };
3434
8366A47E214E9D8B0060C383 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
35-
8366A488214E9F8E0060C383 /* RoundedDecimal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RoundedDecimal.swift; sourceTree = "<group>"; };
36-
8366A48A214EA0330060C383 /* Decimal+Rounding.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Decimal+Rounding.swift"; sourceTree = "<group>"; };
37-
8366A48C214EA04F0060C383 /* DecimalTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DecimalTypes.swift; sourceTree = "<group>"; };
35+
8366A488214E9F8E0060C383 /* RoundedDecimal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = RoundedDecimal.swift; path = implementation/RoundedDecimal.swift; sourceTree = "<group>"; };
36+
8366A48A214EA0330060C383 /* DecimalTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DecimalTypes.swift; path = implementation/DecimalTypes.swift; sourceTree = "<group>"; };
37+
8366A48C214EA04F0060C383 /* Decimal+Rounding.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = "Decimal+Rounding.swift"; path = "implementation/Decimal+Rounding.swift"; sourceTree = "<group>"; };
3838
/* End PBXFileReference section */
3939

4040
/* Begin PBXFrameworksBuildPhase section */
@@ -80,8 +80,8 @@
8080
8366A471214E9D8B0060C383 /* RoundedDecimal.h */,
8181
8366A472214E9D8B0060C383 /* Info.plist */,
8282
8366A488214E9F8E0060C383 /* RoundedDecimal.swift */,
83-
8366A48A214EA0330060C383 /* Decimal+Rounding.swift */,
84-
8366A48C214EA04F0060C383 /* DecimalTypes.swift */,
83+
8366A48A214EA0330060C383 /* DecimalTypes.swift */,
84+
8366A48C214EA04F0060C383 /* Decimal+Rounding.swift */,
8585
);
8686
path = RoundedDecimal;
8787
sourceTree = "<group>";
@@ -157,10 +157,11 @@
157157
TargetAttributes = {
158158
8366A46D214E9D8B0060C383 = {
159159
CreatedOnToolsVersion = 9.4.1;
160-
LastSwiftMigration = 0940;
160+
LastSwiftMigration = 1030;
161161
};
162162
8366A476214E9D8B0060C383 = {
163163
CreatedOnToolsVersion = 9.4.1;
164+
LastSwiftMigration = 1030;
164165
};
165166
};
166167
};
@@ -170,6 +171,7 @@
170171
hasScannedForEncodings = 0;
171172
knownRegions = (
172173
en,
174+
Base,
173175
);
174176
mainGroup = 8366A464214E9D8B0060C383;
175177
productRefGroup = 8366A46F214E9D8B0060C383 /* Products */;
@@ -205,8 +207,8 @@
205207
buildActionMask = 2147483647;
206208
files = (
207209
8366A489214E9F8E0060C383 /* RoundedDecimal.swift in Sources */,
208-
8366A48B214EA0330060C383 /* Decimal+Rounding.swift in Sources */,
209-
8366A48D214EA04F0060C383 /* DecimalTypes.swift in Sources */,
210+
8366A48B214EA0330060C383 /* DecimalTypes.swift in Sources */,
211+
8366A48D214EA04F0060C383 /* Decimal+Rounding.swift in Sources */,
210212
);
211213
runOnlyForDeploymentPostprocessing = 0;
212214
};
@@ -371,7 +373,7 @@
371373
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
372374
SKIP_INSTALL = YES;
373375
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
374-
SWIFT_VERSION = 4.0;
376+
SWIFT_VERSION = 5.0;
375377
TARGETED_DEVICE_FAMILY = "1,2";
376378
};
377379
name = Debug;
@@ -397,7 +399,7 @@
397399
PRODUCT_BUNDLE_IDENTIFIER = io.softwareengineering.RoundedDecimal;
398400
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
399401
SKIP_INSTALL = YES;
400-
SWIFT_VERSION = 4.0;
402+
SWIFT_VERSION = 5.0;
401403
TARGETED_DEVICE_FAMILY = "1,2";
402404
};
403405
name = Release;
@@ -415,7 +417,7 @@
415417
);
416418
PRODUCT_BUNDLE_IDENTIFIER = io.softwareengineering.RoundedDecimalTests;
417419
PRODUCT_NAME = "$(TARGET_NAME)";
418-
SWIFT_VERSION = 4.0;
420+
SWIFT_VERSION = 5.0;
419421
TARGETED_DEVICE_FAMILY = "1,2";
420422
};
421423
name = Debug;
@@ -433,7 +435,7 @@
433435
);
434436
PRODUCT_BUNDLE_IDENTIFIER = io.softwareengineering.RoundedDecimalTests;
435437
PRODUCT_NAME = "$(TARGET_NAME)";
436-
SWIFT_VERSION = 4.0;
438+
SWIFT_VERSION = 5.0;
437439
TARGETED_DEVICE_FAMILY = "1,2";
438440
};
439441
name = Release;
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)