├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SMCounterLabel.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-SMCounterLabel_Example │ │ ├── Info.plist │ │ ├── Pods-SMCounterLabel_Example-acknowledgements.markdown │ │ ├── Pods-SMCounterLabel_Example-acknowledgements.plist │ │ ├── Pods-SMCounterLabel_Example-dummy.m │ │ ├── Pods-SMCounterLabel_Example-frameworks.sh │ │ ├── Pods-SMCounterLabel_Example-resources.sh │ │ ├── Pods-SMCounterLabel_Example-umbrella.h │ │ ├── Pods-SMCounterLabel_Example.debug.xcconfig │ │ ├── Pods-SMCounterLabel_Example.modulemap │ │ └── Pods-SMCounterLabel_Example.release.xcconfig │ │ ├── Pods-SMCounterLabel_Tests │ │ ├── Info.plist │ │ ├── Pods-SMCounterLabel_Tests-acknowledgements.markdown │ │ ├── Pods-SMCounterLabel_Tests-acknowledgements.plist │ │ ├── Pods-SMCounterLabel_Tests-dummy.m │ │ ├── Pods-SMCounterLabel_Tests-frameworks.sh │ │ ├── Pods-SMCounterLabel_Tests-resources.sh │ │ ├── Pods-SMCounterLabel_Tests-umbrella.h │ │ ├── Pods-SMCounterLabel_Tests.debug.xcconfig │ │ ├── Pods-SMCounterLabel_Tests.modulemap │ │ └── Pods-SMCounterLabel_Tests.release.xcconfig │ │ └── SMCounterLabel │ │ ├── Info.plist │ │ ├── SMCounterLabel-dummy.m │ │ ├── SMCounterLabel-prefix.pch │ │ ├── SMCounterLabel-umbrella.h │ │ ├── SMCounterLabel.modulemap │ │ └── SMCounterLabel.xcconfig ├── SMCounterLabel.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── SMCounterLabel-Example.xcscheme ├── SMCounterLabel.xcworkspace │ └── contents.xcworkspacedata ├── SMCounterLabel │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── SMCounterLabel.podspec ├── SMCounterLabel ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── SMCounterLabel.swift ├── _Pods.xcodeproj └── animation.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SMCounterLabel.xcworkspace -scheme SMCounterLabel-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | 3 | use_frameworks! 4 | 5 | target 'SMCounterLabel_Example' do 6 | pod 'SMCounterLabel', :path => '../' 7 | 8 | target 'SMCounterLabel_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SMCounterLabel (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SMCounterLabel (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SMCounterLabel: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SMCounterLabel: c83bbf5030963b7f557629bd90a735d01119c34f 13 | 14 | PODFILE CHECKSUM: 7a0df61eec7f86f3e49fcfb107fb49e7dd7b1243 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SMCounterLabel.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SMCounterLabel", 3 | "version": "0.1.0", 4 | "summary": "Animated UILabel subclass.", 5 | "swift_version": "4.2", 6 | "description": "A numeric label that animates value change with a stock-like animation", 7 | "homepage": "https://github.com/slavenko/SMCounterLabel", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "slavenko": "slavenko.miljic@gmail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/slavenko/SMCounterLabel.git", 17 | "tag": "0.1.0" 18 | }, 19 | "platforms": { 20 | "ios": "9.0" 21 | }, 22 | "source_files": "SMCounterLabel/Classes/**/*" 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SMCounterLabel (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SMCounterLabel (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SMCounterLabel: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SMCounterLabel: c83bbf5030963b7f557629bd90a735d01119c34f 13 | 14 | PODFILE CHECKSUM: 7a0df61eec7f86f3e49fcfb107fb49e7dd7b1243 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1B8858D054F49DDC6C1E4A88DA86AE8E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 11 | 23CDE617FD28597B379B6F3015EC5C9F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 12 | 34F5EA70A680DEA6E5682771B8C71A51 /* Pods-SMCounterLabel_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 516CC3EB6E5F03A017C4C70EE299BB49 /* Pods-SMCounterLabel_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 40A05FF56E0214A7A32835080C61F8F0 /* Pods-SMCounterLabel_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5818597F01C36BD54E36406F148A9F7A /* Pods-SMCounterLabel_Example-dummy.m */; }; 14 | 56BA5AE1E7A02E03AE57020353813FD3 /* Pods-SMCounterLabel_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F7EBF17406A662471DD0ED76D5EAB6 /* Pods-SMCounterLabel_Tests-dummy.m */; }; 15 | 5C8B172A3C9FA3E405AD8F2F024D583A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 16 | AA347A5F0DCBC05AAEFD1474E8F2EC19 /* Pods-SMCounterLabel_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E4D9F31C92C64AD38316F43A90C64F4C /* Pods-SMCounterLabel_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | ABEF2BEE2B377319BE820D9D1B31AF62 /* SMCounterLabel-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 166BF58EC809CE5CB3152C23EC204A60 /* SMCounterLabel-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | C7306B4FDDEF72583685EBB933E0D7CB /* SMCounterLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31CF3CF42E472F91EAF06D75EDD07646 /* SMCounterLabel.swift */; }; 19 | C8F4FC71182E2A30AE0AC43EEA5068B5 /* SMCounterLabel-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 771B243FA2883C1631A5AA9D20EAC8CC /* SMCounterLabel-dummy.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 54BCD0F032848090B7269637D6B34297 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = A5D9B27CC822C73C22D437BC0A08C4A2; 28 | remoteInfo = SMCounterLabel; 29 | }; 30 | 6CC6BC8C791145579830F83A8E300043 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = F84FA3D2CE0186C97D480207278DE638; 35 | remoteInfo = "Pods-SMCounterLabel_Example"; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 0817FA0829E0B295286280E2600DC8F0 /* Pods_SMCounterLabel_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SMCounterLabel_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 0F2516362B909D6B2A987B04C7E8BC3D /* SMCounterLabel-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SMCounterLabel-prefix.pch"; sourceTree = ""; }; 42 | 166BF58EC809CE5CB3152C23EC204A60 /* SMCounterLabel-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SMCounterLabel-umbrella.h"; sourceTree = ""; }; 43 | 1AFE92F2F80C2449B3E75F0EDBA47541 /* Pods-SMCounterLabel_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SMCounterLabel_Tests-acknowledgements.plist"; sourceTree = ""; }; 44 | 31CF3CF42E472F91EAF06D75EDD07646 /* SMCounterLabel.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SMCounterLabel.swift; path = SMCounterLabel/Classes/SMCounterLabel.swift; sourceTree = ""; }; 45 | 3275A4ABE5DF55C5FA3DFDE19C576557 /* Pods-SMCounterLabel_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SMCounterLabel_Example-acknowledgements.plist"; sourceTree = ""; }; 46 | 3EBAE29F663F8D4A484FB9691613241D /* Pods-SMCounterLabel_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SMCounterLabel_Example.modulemap"; sourceTree = ""; }; 47 | 516CC3EB6E5F03A017C4C70EE299BB49 /* Pods-SMCounterLabel_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SMCounterLabel_Tests-umbrella.h"; sourceTree = ""; }; 48 | 51C965B52D924E69EC119D2274DE9154 /* Pods_SMCounterLabel_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SMCounterLabel_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 545BA171ECB7975D48C69FC345E44FD1 /* Pods-SMCounterLabel_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SMCounterLabel_Example-acknowledgements.markdown"; sourceTree = ""; }; 50 | 559F9DA920C916A7173EE603ACC9BBC1 /* SMCounterLabel.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SMCounterLabel.xcconfig; sourceTree = ""; }; 51 | 5818597F01C36BD54E36406F148A9F7A /* Pods-SMCounterLabel_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SMCounterLabel_Example-dummy.m"; sourceTree = ""; }; 52 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 53 | 65372D5901CD38E18F52401A7DE69978 /* Pods-SMCounterLabel_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SMCounterLabel_Tests-frameworks.sh"; sourceTree = ""; }; 54 | 73492933D3E1A96B21A1892573AD6647 /* Pods-SMCounterLabel_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SMCounterLabel_Tests.modulemap"; sourceTree = ""; }; 55 | 771B243FA2883C1631A5AA9D20EAC8CC /* SMCounterLabel-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SMCounterLabel-dummy.m"; sourceTree = ""; }; 56 | 7EB3353B2B8EACD4AB9F28096189304D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | 88EF8E67C92E620AC7EBEF6CE646D14A /* Pods-SMCounterLabel_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SMCounterLabel_Example-frameworks.sh"; sourceTree = ""; }; 58 | 8A22A70598750FF0B61DAEE89798859B /* Pods-SMCounterLabel_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SMCounterLabel_Tests-acknowledgements.markdown"; sourceTree = ""; }; 59 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 60 | 99B115338E05121A661252E415918EC1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 61 | 9C8DB87E783A6BF1EDE1C2B896659856 /* Pods-SMCounterLabel_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SMCounterLabel_Example.release.xcconfig"; sourceTree = ""; }; 62 | A1162CBE164CB6CEECCC5B3DCD44D7B1 /* Pods-SMCounterLabel_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SMCounterLabel_Example.debug.xcconfig"; sourceTree = ""; }; 63 | AA5ACC60D0EC5BEDF5D34E51FAEABB43 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 64 | BE5F03E5A2BB2CF033FB7D6A550EBEC6 /* SMCounterLabel.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = SMCounterLabel.modulemap; sourceTree = ""; }; 65 | BF48DB2CE1221BC4FD6A7504923BEC07 /* Pods-SMCounterLabel_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SMCounterLabel_Tests.debug.xcconfig"; sourceTree = ""; }; 66 | BFE979F166A924CA24CDDCBA3ED5028D /* SMCounterLabel.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SMCounterLabel.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | C6EFD4AD14D5E928D8D6DC97D92E9655 /* Pods-SMCounterLabel_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SMCounterLabel_Example-resources.sh"; sourceTree = ""; }; 68 | CEEA625C2C709C23EE4ED326E79E912F /* Pods-SMCounterLabel_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SMCounterLabel_Tests-resources.sh"; sourceTree = ""; }; 69 | DDF2F6031456EB211DAA2E38D234E14D /* Pods-SMCounterLabel_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SMCounterLabel_Tests.release.xcconfig"; sourceTree = ""; }; 70 | DFE3C6D36ADFFA351BEE1F832F6FE1A4 /* SMCounterLabel.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = SMCounterLabel.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 71 | E2F7EBF17406A662471DD0ED76D5EAB6 /* Pods-SMCounterLabel_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SMCounterLabel_Tests-dummy.m"; sourceTree = ""; }; 72 | E4D9F31C92C64AD38316F43A90C64F4C /* Pods-SMCounterLabel_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SMCounterLabel_Example-umbrella.h"; sourceTree = ""; }; 73 | F914497FFE1A31D4A9892D0257886AD5 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 74 | FD852B2939F7B5CA56A7EDFFDC0153E8 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 75 | /* End PBXFileReference section */ 76 | 77 | /* Begin PBXFrameworksBuildPhase section */ 78 | 4502306DADF69340BF9D0E8820A8B5EA /* Frameworks */ = { 79 | isa = PBXFrameworksBuildPhase; 80 | buildActionMask = 2147483647; 81 | files = ( 82 | 23CDE617FD28597B379B6F3015EC5C9F /* Foundation.framework in Frameworks */, 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | 659BF594870B300D61D5DE887B5B9719 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | 1B8858D054F49DDC6C1E4A88DA86AE8E /* Foundation.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | 841293FB09E6E13331AC7240EA4B8059 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | 5C8B172A3C9FA3E405AD8F2F024D583A /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 002F3D178ED47D1FDE4781CC5F368874 /* Targets Support Files */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 526CC83BBAD8F9EB0DE332DABBD88A1F /* Pods-SMCounterLabel_Example */, 109 | 1E8C94E3A5325BCF11C8080AFEF346FD /* Pods-SMCounterLabel_Tests */, 110 | ); 111 | name = "Targets Support Files"; 112 | sourceTree = ""; 113 | }; 114 | 1E8C94E3A5325BCF11C8080AFEF346FD /* Pods-SMCounterLabel_Tests */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | AA5ACC60D0EC5BEDF5D34E51FAEABB43 /* Info.plist */, 118 | 73492933D3E1A96B21A1892573AD6647 /* Pods-SMCounterLabel_Tests.modulemap */, 119 | 8A22A70598750FF0B61DAEE89798859B /* Pods-SMCounterLabel_Tests-acknowledgements.markdown */, 120 | 1AFE92F2F80C2449B3E75F0EDBA47541 /* Pods-SMCounterLabel_Tests-acknowledgements.plist */, 121 | E2F7EBF17406A662471DD0ED76D5EAB6 /* Pods-SMCounterLabel_Tests-dummy.m */, 122 | 65372D5901CD38E18F52401A7DE69978 /* Pods-SMCounterLabel_Tests-frameworks.sh */, 123 | CEEA625C2C709C23EE4ED326E79E912F /* Pods-SMCounterLabel_Tests-resources.sh */, 124 | 516CC3EB6E5F03A017C4C70EE299BB49 /* Pods-SMCounterLabel_Tests-umbrella.h */, 125 | BF48DB2CE1221BC4FD6A7504923BEC07 /* Pods-SMCounterLabel_Tests.debug.xcconfig */, 126 | DDF2F6031456EB211DAA2E38D234E14D /* Pods-SMCounterLabel_Tests.release.xcconfig */, 127 | ); 128 | name = "Pods-SMCounterLabel_Tests"; 129 | path = "Target Support Files/Pods-SMCounterLabel_Tests"; 130 | sourceTree = ""; 131 | }; 132 | 3841C99C016C57DDFC3FEF5B370CA6FA /* SMCounterLabel */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 31CF3CF42E472F91EAF06D75EDD07646 /* SMCounterLabel.swift */, 136 | 790C7BDB55CAE730B0B388D7818E9B58 /* Pod */, 137 | 86F5E6823F6E9DED9E740DD30C37CCF5 /* Support Files */, 138 | ); 139 | name = SMCounterLabel; 140 | path = ../..; 141 | sourceTree = ""; 142 | }; 143 | 526CC83BBAD8F9EB0DE332DABBD88A1F /* Pods-SMCounterLabel_Example */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 7EB3353B2B8EACD4AB9F28096189304D /* Info.plist */, 147 | 3EBAE29F663F8D4A484FB9691613241D /* Pods-SMCounterLabel_Example.modulemap */, 148 | 545BA171ECB7975D48C69FC345E44FD1 /* Pods-SMCounterLabel_Example-acknowledgements.markdown */, 149 | 3275A4ABE5DF55C5FA3DFDE19C576557 /* Pods-SMCounterLabel_Example-acknowledgements.plist */, 150 | 5818597F01C36BD54E36406F148A9F7A /* Pods-SMCounterLabel_Example-dummy.m */, 151 | 88EF8E67C92E620AC7EBEF6CE646D14A /* Pods-SMCounterLabel_Example-frameworks.sh */, 152 | C6EFD4AD14D5E928D8D6DC97D92E9655 /* Pods-SMCounterLabel_Example-resources.sh */, 153 | E4D9F31C92C64AD38316F43A90C64F4C /* Pods-SMCounterLabel_Example-umbrella.h */, 154 | A1162CBE164CB6CEECCC5B3DCD44D7B1 /* Pods-SMCounterLabel_Example.debug.xcconfig */, 155 | 9C8DB87E783A6BF1EDE1C2B896659856 /* Pods-SMCounterLabel_Example.release.xcconfig */, 156 | ); 157 | name = "Pods-SMCounterLabel_Example"; 158 | path = "Target Support Files/Pods-SMCounterLabel_Example"; 159 | sourceTree = ""; 160 | }; 161 | 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, 165 | ); 166 | name = iOS; 167 | sourceTree = ""; 168 | }; 169 | 708CE6774CED7957EB0779CADEF5C4D1 /* Development Pods */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 3841C99C016C57DDFC3FEF5B370CA6FA /* SMCounterLabel */, 173 | ); 174 | name = "Development Pods"; 175 | sourceTree = ""; 176 | }; 177 | 790C7BDB55CAE730B0B388D7818E9B58 /* Pod */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 99B115338E05121A661252E415918EC1 /* LICENSE */, 181 | FD852B2939F7B5CA56A7EDFFDC0153E8 /* README.md */, 182 | DFE3C6D36ADFFA351BEE1F832F6FE1A4 /* SMCounterLabel.podspec */, 183 | ); 184 | name = Pod; 185 | sourceTree = ""; 186 | }; 187 | 7DB346D0F39D3F0E887471402A8071AB = { 188 | isa = PBXGroup; 189 | children = ( 190 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 191 | 708CE6774CED7957EB0779CADEF5C4D1 /* Development Pods */, 192 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 193 | 84BEE7463E92986D4D877404A1490B21 /* Products */, 194 | 002F3D178ED47D1FDE4781CC5F368874 /* Targets Support Files */, 195 | ); 196 | sourceTree = ""; 197 | }; 198 | 84BEE7463E92986D4D877404A1490B21 /* Products */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 0817FA0829E0B295286280E2600DC8F0 /* Pods_SMCounterLabel_Example.framework */, 202 | 51C965B52D924E69EC119D2274DE9154 /* Pods_SMCounterLabel_Tests.framework */, 203 | BFE979F166A924CA24CDDCBA3ED5028D /* SMCounterLabel.framework */, 204 | ); 205 | name = Products; 206 | sourceTree = ""; 207 | }; 208 | 86F5E6823F6E9DED9E740DD30C37CCF5 /* Support Files */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | F914497FFE1A31D4A9892D0257886AD5 /* Info.plist */, 212 | BE5F03E5A2BB2CF033FB7D6A550EBEC6 /* SMCounterLabel.modulemap */, 213 | 559F9DA920C916A7173EE603ACC9BBC1 /* SMCounterLabel.xcconfig */, 214 | 771B243FA2883C1631A5AA9D20EAC8CC /* SMCounterLabel-dummy.m */, 215 | 0F2516362B909D6B2A987B04C7E8BC3D /* SMCounterLabel-prefix.pch */, 216 | 166BF58EC809CE5CB3152C23EC204A60 /* SMCounterLabel-umbrella.h */, 217 | ); 218 | name = "Support Files"; 219 | path = "Example/Pods/Target Support Files/SMCounterLabel"; 220 | sourceTree = ""; 221 | }; 222 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 223 | isa = PBXGroup; 224 | children = ( 225 | 5E0D919E635D23B70123790B8308F8EF /* iOS */, 226 | ); 227 | name = Frameworks; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXGroup section */ 231 | 232 | /* Begin PBXHeadersBuildPhase section */ 233 | 507FAEA0AA5D4D36C8D6824F690B6BBA /* Headers */ = { 234 | isa = PBXHeadersBuildPhase; 235 | buildActionMask = 2147483647; 236 | files = ( 237 | AA347A5F0DCBC05AAEFD1474E8F2EC19 /* Pods-SMCounterLabel_Example-umbrella.h in Headers */, 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | A067700F9D92C30FCDA7AF993CEC6B13 /* Headers */ = { 242 | isa = PBXHeadersBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 34F5EA70A680DEA6E5682771B8C71A51 /* Pods-SMCounterLabel_Tests-umbrella.h in Headers */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | FF1B320E3D739672E6189FCC157B0440 /* Headers */ = { 250 | isa = PBXHeadersBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ABEF2BEE2B377319BE820D9D1B31AF62 /* SMCounterLabel-umbrella.h in Headers */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | /* End PBXHeadersBuildPhase section */ 258 | 259 | /* Begin PBXNativeTarget section */ 260 | A5D9B27CC822C73C22D437BC0A08C4A2 /* SMCounterLabel */ = { 261 | isa = PBXNativeTarget; 262 | buildConfigurationList = AFAEB7BD37DFA1625F6E1F141E24DDE7 /* Build configuration list for PBXNativeTarget "SMCounterLabel" */; 263 | buildPhases = ( 264 | 2A8E97BA278A4ABAAB01619D611963FE /* Sources */, 265 | 4502306DADF69340BF9D0E8820A8B5EA /* Frameworks */, 266 | FF1B320E3D739672E6189FCC157B0440 /* Headers */, 267 | ); 268 | buildRules = ( 269 | ); 270 | dependencies = ( 271 | ); 272 | name = SMCounterLabel; 273 | productName = SMCounterLabel; 274 | productReference = BFE979F166A924CA24CDDCBA3ED5028D /* SMCounterLabel.framework */; 275 | productType = "com.apple.product-type.framework"; 276 | }; 277 | BE0E31BC41671843A37278CAF307ADAE /* Pods-SMCounterLabel_Tests */ = { 278 | isa = PBXNativeTarget; 279 | buildConfigurationList = 653C98F97248F3C4B3208EEB2481C771 /* Build configuration list for PBXNativeTarget "Pods-SMCounterLabel_Tests" */; 280 | buildPhases = ( 281 | AB6179A4195F349DCCDB13D82C3135BB /* Sources */, 282 | 841293FB09E6E13331AC7240EA4B8059 /* Frameworks */, 283 | A067700F9D92C30FCDA7AF993CEC6B13 /* Headers */, 284 | ); 285 | buildRules = ( 286 | ); 287 | dependencies = ( 288 | 5EAC712A1F97639B1010C1BF5CB9D372 /* PBXTargetDependency */, 289 | ); 290 | name = "Pods-SMCounterLabel_Tests"; 291 | productName = "Pods-SMCounterLabel_Tests"; 292 | productReference = 51C965B52D924E69EC119D2274DE9154 /* Pods_SMCounterLabel_Tests.framework */; 293 | productType = "com.apple.product-type.framework"; 294 | }; 295 | F84FA3D2CE0186C97D480207278DE638 /* Pods-SMCounterLabel_Example */ = { 296 | isa = PBXNativeTarget; 297 | buildConfigurationList = 699CED4A9592C90324C811C71891DB55 /* Build configuration list for PBXNativeTarget "Pods-SMCounterLabel_Example" */; 298 | buildPhases = ( 299 | 811A6630E1DB2D7222142A42CE463220 /* Sources */, 300 | 659BF594870B300D61D5DE887B5B9719 /* Frameworks */, 301 | 507FAEA0AA5D4D36C8D6824F690B6BBA /* Headers */, 302 | ); 303 | buildRules = ( 304 | ); 305 | dependencies = ( 306 | 59DCD4ABD5E1EE223E511441D2C2D755 /* PBXTargetDependency */, 307 | ); 308 | name = "Pods-SMCounterLabel_Example"; 309 | productName = "Pods-SMCounterLabel_Example"; 310 | productReference = 0817FA0829E0B295286280E2600DC8F0 /* Pods_SMCounterLabel_Example.framework */; 311 | productType = "com.apple.product-type.framework"; 312 | }; 313 | /* End PBXNativeTarget section */ 314 | 315 | /* Begin PBXProject section */ 316 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 317 | isa = PBXProject; 318 | attributes = { 319 | LastSwiftUpdateCheck = 0930; 320 | LastUpgradeCheck = 1010; 321 | }; 322 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 323 | compatibilityVersion = "Xcode 3.2"; 324 | developmentRegion = English; 325 | hasScannedForEncodings = 0; 326 | knownRegions = ( 327 | en, 328 | ); 329 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 330 | productRefGroup = 84BEE7463E92986D4D877404A1490B21 /* Products */; 331 | projectDirPath = ""; 332 | projectRoot = ""; 333 | targets = ( 334 | F84FA3D2CE0186C97D480207278DE638 /* Pods-SMCounterLabel_Example */, 335 | BE0E31BC41671843A37278CAF307ADAE /* Pods-SMCounterLabel_Tests */, 336 | A5D9B27CC822C73C22D437BC0A08C4A2 /* SMCounterLabel */, 337 | ); 338 | }; 339 | /* End PBXProject section */ 340 | 341 | /* Begin PBXSourcesBuildPhase section */ 342 | 2A8E97BA278A4ABAAB01619D611963FE /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | C8F4FC71182E2A30AE0AC43EEA5068B5 /* SMCounterLabel-dummy.m in Sources */, 347 | C7306B4FDDEF72583685EBB933E0D7CB /* SMCounterLabel.swift in Sources */, 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | }; 351 | 811A6630E1DB2D7222142A42CE463220 /* Sources */ = { 352 | isa = PBXSourcesBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | 40A05FF56E0214A7A32835080C61F8F0 /* Pods-SMCounterLabel_Example-dummy.m in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | AB6179A4195F349DCCDB13D82C3135BB /* Sources */ = { 360 | isa = PBXSourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | 56BA5AE1E7A02E03AE57020353813FD3 /* Pods-SMCounterLabel_Tests-dummy.m in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | /* End PBXSourcesBuildPhase section */ 368 | 369 | /* Begin PBXTargetDependency section */ 370 | 59DCD4ABD5E1EE223E511441D2C2D755 /* PBXTargetDependency */ = { 371 | isa = PBXTargetDependency; 372 | name = SMCounterLabel; 373 | target = A5D9B27CC822C73C22D437BC0A08C4A2 /* SMCounterLabel */; 374 | targetProxy = 54BCD0F032848090B7269637D6B34297 /* PBXContainerItemProxy */; 375 | }; 376 | 5EAC712A1F97639B1010C1BF5CB9D372 /* PBXTargetDependency */ = { 377 | isa = PBXTargetDependency; 378 | name = "Pods-SMCounterLabel_Example"; 379 | target = F84FA3D2CE0186C97D480207278DE638 /* Pods-SMCounterLabel_Example */; 380 | targetProxy = 6CC6BC8C791145579830F83A8E300043 /* PBXContainerItemProxy */; 381 | }; 382 | /* End PBXTargetDependency section */ 383 | 384 | /* Begin XCBuildConfiguration section */ 385 | 199D972A13F2B4C56847F7A89CCA83BC /* Debug */ = { 386 | isa = XCBuildConfiguration; 387 | buildSettings = { 388 | ALWAYS_SEARCH_USER_PATHS = NO; 389 | CLANG_ANALYZER_NONNULL = YES; 390 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 391 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 392 | CLANG_CXX_LIBRARY = "libc++"; 393 | CLANG_ENABLE_MODULES = YES; 394 | CLANG_ENABLE_OBJC_ARC = YES; 395 | CLANG_ENABLE_OBJC_WEAK = YES; 396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_COMMA = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 401 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 402 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | CODE_SIGNING_ALLOWED = NO; 418 | CODE_SIGNING_REQUIRED = NO; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = dwarf; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | ENABLE_TESTABILITY = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu11; 424 | GCC_DYNAMIC_NO_PIC = NO; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_OPTIMIZATION_LEVEL = 0; 427 | GCC_PREPROCESSOR_DEFINITIONS = ( 428 | "POD_CONFIGURATION_DEBUG=1", 429 | "DEBUG=1", 430 | "$(inherited)", 431 | ); 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | PRODUCT_NAME = "$(TARGET_NAME)"; 442 | STRIP_INSTALLED_PRODUCT = NO; 443 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 444 | SYMROOT = "${SRCROOT}/../build"; 445 | }; 446 | name = Debug; 447 | }; 448 | 5859F42FF12C870D2899E4EACD574AE0 /* Debug */ = { 449 | isa = XCBuildConfiguration; 450 | baseConfigurationReference = 559F9DA920C916A7173EE603ACC9BBC1 /* SMCounterLabel.xcconfig */; 451 | buildSettings = { 452 | CODE_SIGN_IDENTITY = ""; 453 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 454 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 455 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 456 | CURRENT_PROJECT_VERSION = 1; 457 | DEFINES_MODULE = YES; 458 | DYLIB_COMPATIBILITY_VERSION = 1; 459 | DYLIB_CURRENT_VERSION = 1; 460 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 461 | GCC_PREFIX_HEADER = "Target Support Files/SMCounterLabel/SMCounterLabel-prefix.pch"; 462 | INFOPLIST_FILE = "Target Support Files/SMCounterLabel/Info.plist"; 463 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 464 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 465 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 466 | MODULEMAP_FILE = "Target Support Files/SMCounterLabel/SMCounterLabel.modulemap"; 467 | PRODUCT_MODULE_NAME = SMCounterLabel; 468 | PRODUCT_NAME = SMCounterLabel; 469 | SDKROOT = iphoneos; 470 | SKIP_INSTALL = YES; 471 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 472 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 473 | SWIFT_VERSION = 4.2; 474 | TARGETED_DEVICE_FAMILY = "1,2"; 475 | VERSIONING_SYSTEM = "apple-generic"; 476 | VERSION_INFO_PREFIX = ""; 477 | }; 478 | name = Debug; 479 | }; 480 | 74D9F5460A350E152186F168F7262539 /* Release */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = 9C8DB87E783A6BF1EDE1C2B896659856 /* Pods-SMCounterLabel_Example.release.xcconfig */; 483 | buildSettings = { 484 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 485 | CODE_SIGN_IDENTITY = ""; 486 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 487 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 488 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 489 | CURRENT_PROJECT_VERSION = 1; 490 | DEFINES_MODULE = YES; 491 | DYLIB_COMPATIBILITY_VERSION = 1; 492 | DYLIB_CURRENT_VERSION = 1; 493 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 494 | INFOPLIST_FILE = "Target Support Files/Pods-SMCounterLabel_Example/Info.plist"; 495 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 496 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 497 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 498 | MACH_O_TYPE = staticlib; 499 | MODULEMAP_FILE = "Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.modulemap"; 500 | OTHER_LDFLAGS = ""; 501 | OTHER_LIBTOOLFLAGS = ""; 502 | PODS_ROOT = "$(SRCROOT)"; 503 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 504 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 505 | SDKROOT = iphoneos; 506 | SKIP_INSTALL = YES; 507 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 508 | TARGETED_DEVICE_FAMILY = "1,2"; 509 | VALIDATE_PRODUCT = YES; 510 | VERSIONING_SYSTEM = "apple-generic"; 511 | VERSION_INFO_PREFIX = ""; 512 | }; 513 | name = Release; 514 | }; 515 | 8E2E0AD4B5C4CF6305DC7A9545639897 /* Debug */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = BF48DB2CE1221BC4FD6A7504923BEC07 /* Pods-SMCounterLabel_Tests.debug.xcconfig */; 518 | buildSettings = { 519 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 520 | CODE_SIGN_IDENTITY = ""; 521 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 522 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 523 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 524 | CURRENT_PROJECT_VERSION = 1; 525 | DEFINES_MODULE = YES; 526 | DYLIB_COMPATIBILITY_VERSION = 1; 527 | DYLIB_CURRENT_VERSION = 1; 528 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 529 | INFOPLIST_FILE = "Target Support Files/Pods-SMCounterLabel_Tests/Info.plist"; 530 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 531 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 533 | MACH_O_TYPE = staticlib; 534 | MODULEMAP_FILE = "Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.modulemap"; 535 | OTHER_LDFLAGS = ""; 536 | OTHER_LIBTOOLFLAGS = ""; 537 | PODS_ROOT = "$(SRCROOT)"; 538 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 539 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 540 | SDKROOT = iphoneos; 541 | SKIP_INSTALL = YES; 542 | TARGETED_DEVICE_FAMILY = "1,2"; 543 | VERSIONING_SYSTEM = "apple-generic"; 544 | VERSION_INFO_PREFIX = ""; 545 | }; 546 | name = Debug; 547 | }; 548 | 8EC9771EFC70DF64DDAADEC1FB75828C /* Debug */ = { 549 | isa = XCBuildConfiguration; 550 | baseConfigurationReference = A1162CBE164CB6CEECCC5B3DCD44D7B1 /* Pods-SMCounterLabel_Example.debug.xcconfig */; 551 | buildSettings = { 552 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 553 | CODE_SIGN_IDENTITY = ""; 554 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 555 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 556 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 557 | CURRENT_PROJECT_VERSION = 1; 558 | DEFINES_MODULE = YES; 559 | DYLIB_COMPATIBILITY_VERSION = 1; 560 | DYLIB_CURRENT_VERSION = 1; 561 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 562 | INFOPLIST_FILE = "Target Support Files/Pods-SMCounterLabel_Example/Info.plist"; 563 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 564 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 565 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 566 | MACH_O_TYPE = staticlib; 567 | MODULEMAP_FILE = "Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.modulemap"; 568 | OTHER_LDFLAGS = ""; 569 | OTHER_LIBTOOLFLAGS = ""; 570 | PODS_ROOT = "$(SRCROOT)"; 571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 572 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 573 | SDKROOT = iphoneos; 574 | SKIP_INSTALL = YES; 575 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 576 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 577 | TARGETED_DEVICE_FAMILY = "1,2"; 578 | VERSIONING_SYSTEM = "apple-generic"; 579 | VERSION_INFO_PREFIX = ""; 580 | }; 581 | name = Debug; 582 | }; 583 | A4DDA844E8EA7A8A4C497E5145B5F43B /* Release */ = { 584 | isa = XCBuildConfiguration; 585 | baseConfigurationReference = 559F9DA920C916A7173EE603ACC9BBC1 /* SMCounterLabel.xcconfig */; 586 | buildSettings = { 587 | CODE_SIGN_IDENTITY = ""; 588 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 589 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 590 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 591 | CURRENT_PROJECT_VERSION = 1; 592 | DEFINES_MODULE = YES; 593 | DYLIB_COMPATIBILITY_VERSION = 1; 594 | DYLIB_CURRENT_VERSION = 1; 595 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 596 | GCC_PREFIX_HEADER = "Target Support Files/SMCounterLabel/SMCounterLabel-prefix.pch"; 597 | INFOPLIST_FILE = "Target Support Files/SMCounterLabel/Info.plist"; 598 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 599 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 600 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 601 | MODULEMAP_FILE = "Target Support Files/SMCounterLabel/SMCounterLabel.modulemap"; 602 | PRODUCT_MODULE_NAME = SMCounterLabel; 603 | PRODUCT_NAME = SMCounterLabel; 604 | SDKROOT = iphoneos; 605 | SKIP_INSTALL = YES; 606 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 607 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 608 | SWIFT_VERSION = 4.2; 609 | TARGETED_DEVICE_FAMILY = "1,2"; 610 | VALIDATE_PRODUCT = YES; 611 | VERSIONING_SYSTEM = "apple-generic"; 612 | VERSION_INFO_PREFIX = ""; 613 | }; 614 | name = Release; 615 | }; 616 | DC75C0ED30A96C5CE6B628F937285676 /* Release */ = { 617 | isa = XCBuildConfiguration; 618 | baseConfigurationReference = DDF2F6031456EB211DAA2E38D234E14D /* Pods-SMCounterLabel_Tests.release.xcconfig */; 619 | buildSettings = { 620 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 621 | CODE_SIGN_IDENTITY = ""; 622 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 623 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 624 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 625 | CURRENT_PROJECT_VERSION = 1; 626 | DEFINES_MODULE = YES; 627 | DYLIB_COMPATIBILITY_VERSION = 1; 628 | DYLIB_CURRENT_VERSION = 1; 629 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 630 | INFOPLIST_FILE = "Target Support Files/Pods-SMCounterLabel_Tests/Info.plist"; 631 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 632 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 633 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 634 | MACH_O_TYPE = staticlib; 635 | MODULEMAP_FILE = "Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.modulemap"; 636 | OTHER_LDFLAGS = ""; 637 | OTHER_LIBTOOLFLAGS = ""; 638 | PODS_ROOT = "$(SRCROOT)"; 639 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 640 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | TARGETED_DEVICE_FAMILY = "1,2"; 644 | VALIDATE_PRODUCT = YES; 645 | VERSIONING_SYSTEM = "apple-generic"; 646 | VERSION_INFO_PREFIX = ""; 647 | }; 648 | name = Release; 649 | }; 650 | FDB2FC4A1E5891381CD9D922145497F1 /* Release */ = { 651 | isa = XCBuildConfiguration; 652 | buildSettings = { 653 | ALWAYS_SEARCH_USER_PATHS = NO; 654 | CLANG_ANALYZER_NONNULL = YES; 655 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 656 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 657 | CLANG_CXX_LIBRARY = "libc++"; 658 | CLANG_ENABLE_MODULES = YES; 659 | CLANG_ENABLE_OBJC_ARC = YES; 660 | CLANG_ENABLE_OBJC_WEAK = YES; 661 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 662 | CLANG_WARN_BOOL_CONVERSION = YES; 663 | CLANG_WARN_COMMA = YES; 664 | CLANG_WARN_CONSTANT_CONVERSION = YES; 665 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 666 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 667 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 668 | CLANG_WARN_EMPTY_BODY = YES; 669 | CLANG_WARN_ENUM_CONVERSION = YES; 670 | CLANG_WARN_INFINITE_RECURSION = YES; 671 | CLANG_WARN_INT_CONVERSION = YES; 672 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 673 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 674 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 675 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 676 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 677 | CLANG_WARN_STRICT_PROTOTYPES = YES; 678 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 679 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 680 | CLANG_WARN_UNREACHABLE_CODE = YES; 681 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 682 | CODE_SIGNING_ALLOWED = NO; 683 | CODE_SIGNING_REQUIRED = NO; 684 | COPY_PHASE_STRIP = NO; 685 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 686 | ENABLE_NS_ASSERTIONS = NO; 687 | ENABLE_STRICT_OBJC_MSGSEND = YES; 688 | GCC_C_LANGUAGE_STANDARD = gnu11; 689 | GCC_NO_COMMON_BLOCKS = YES; 690 | GCC_PREPROCESSOR_DEFINITIONS = ( 691 | "POD_CONFIGURATION_RELEASE=1", 692 | "$(inherited)", 693 | ); 694 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 695 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 696 | GCC_WARN_UNDECLARED_SELECTOR = YES; 697 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 698 | GCC_WARN_UNUSED_FUNCTION = YES; 699 | GCC_WARN_UNUSED_VARIABLE = YES; 700 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 701 | MTL_ENABLE_DEBUG_INFO = NO; 702 | PRODUCT_NAME = "$(TARGET_NAME)"; 703 | STRIP_INSTALLED_PRODUCT = NO; 704 | SWIFT_COMPILATION_MODE = wholemodule; 705 | SYMROOT = "${SRCROOT}/../build"; 706 | }; 707 | name = Release; 708 | }; 709 | /* End XCBuildConfiguration section */ 710 | 711 | /* Begin XCConfigurationList section */ 712 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | 199D972A13F2B4C56847F7A89CCA83BC /* Debug */, 716 | FDB2FC4A1E5891381CD9D922145497F1 /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | 653C98F97248F3C4B3208EEB2481C771 /* Build configuration list for PBXNativeTarget "Pods-SMCounterLabel_Tests" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | 8E2E0AD4B5C4CF6305DC7A9545639897 /* Debug */, 725 | DC75C0ED30A96C5CE6B628F937285676 /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | 699CED4A9592C90324C811C71891DB55 /* Build configuration list for PBXNativeTarget "Pods-SMCounterLabel_Example" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | 8EC9771EFC70DF64DDAADEC1FB75828C /* Debug */, 734 | 74D9F5460A350E152186F168F7262539 /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | AFAEB7BD37DFA1625F6E1F141E24DDE7 /* Build configuration list for PBXNativeTarget "SMCounterLabel" */ = { 740 | isa = XCConfigurationList; 741 | buildConfigurations = ( 742 | 5859F42FF12C870D2899E4EACD574AE0 /* Debug */, 743 | A4DDA844E8EA7A8A4C497E5145B5F43B /* Release */, 744 | ); 745 | defaultConfigurationIsVisible = 0; 746 | defaultConfigurationName = Release; 747 | }; 748 | /* End XCConfigurationList section */ 749 | }; 750 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 751 | } 752 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SMCounterLabel 5 | 6 | Copyright (c) 2019 slavenko 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 slavenko <slavenko.miljic@nfinnova.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | SMCounterLabel 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SMCounterLabel_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SMCounterLabel_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/SMCounterLabel/SMCounterLabel.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/SMCounterLabel/SMCounterLabel.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SMCounterLabel_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SMCounterLabel_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel/SMCounterLabel.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SMCounterLabel" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SMCounterLabel_Example { 2 | umbrella header "Pods-SMCounterLabel_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel/SMCounterLabel.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SMCounterLabel" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SMCounterLabel_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SMCounterLabel_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SMCounterLabel_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SMCounterLabel_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel/SMCounterLabel.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SMCounterLabel_Tests { 2 | umbrella header "Pods-SMCounterLabel_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel/SMCounterLabel.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/SMCounterLabel-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SMCounterLabel : NSObject 3 | @end 4 | @implementation PodsDummy_SMCounterLabel 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/SMCounterLabel-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/SMCounterLabel-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double SMCounterLabelVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char SMCounterLabelVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/SMCounterLabel.modulemap: -------------------------------------------------------------------------------- 1 | framework module SMCounterLabel { 2 | umbrella header "SMCounterLabel-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SMCounterLabel/SMCounterLabel.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SMCounterLabel 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/SMCounterLabel.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0D20283D6872A70DD947E5C6 /* Pods_SMCounterLabel_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BDF61B357858D5E0B5AB194D /* Pods_SMCounterLabel_Tests.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | E2A86792745D6E4E17D23FD1 /* Pods_SMCounterLabel_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E143474411433CE41AFF742D /* Pods_SMCounterLabel_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = SMCounterLabel; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 01EF3F37B8EE0E3FAA81CFEE /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 29E5B07387EF757B79D4110A /* Pods-SMCounterLabel_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SMCounterLabel_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 439A204B8A8BC14BD97AFB6C /* Pods-SMCounterLabel_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SMCounterLabel_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.debug.xcconfig"; sourceTree = ""; }; 34 | 45F080178C40F9269DB79EA1 /* Pods-SMCounterLabel_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SMCounterLabel_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SMCounterLabel_Tests/Pods-SMCounterLabel_Tests.release.xcconfig"; sourceTree = ""; }; 35 | 4F02903809F3119CA452FC56 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 36 | 607FACD01AFB9204008FA782 /* SMCounterLabel_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SMCounterLabel_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 40 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 42 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 43 | 607FACE51AFB9204008FA782 /* SMCounterLabel_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SMCounterLabel_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 46 | BDF61B357858D5E0B5AB194D /* Pods_SMCounterLabel_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SMCounterLabel_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | BF5BF7B54A8C3647D894F287 /* Pods-SMCounterLabel_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SMCounterLabel_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example.release.xcconfig"; sourceTree = ""; }; 48 | C53044599757684790909178 /* SMCounterLabel.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SMCounterLabel.podspec; path = ../SMCounterLabel.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | E143474411433CE41AFF742D /* Pods_SMCounterLabel_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SMCounterLabel_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | E2A86792745D6E4E17D23FD1 /* Pods_SMCounterLabel_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 0D20283D6872A70DD947E5C6 /* Pods_SMCounterLabel_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 50C760A9CC6AD263149A4A89 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | E143474411433CE41AFF742D /* Pods_SMCounterLabel_Example.framework */, 76 | BDF61B357858D5E0B5AB194D /* Pods_SMCounterLabel_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for SMCounterLabel */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | 97678B37073116BE95CDBD38 /* Pods */, 89 | 50C760A9CC6AD263149A4A89 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* SMCounterLabel_Example.app */, 97 | 607FACE51AFB9204008FA782 /* SMCounterLabel_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for SMCounterLabel */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for SMCounterLabel"; 113 | path = SMCounterLabel; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | C53044599757684790909178 /* SMCounterLabel.podspec */, 145 | 4F02903809F3119CA452FC56 /* README.md */, 146 | 01EF3F37B8EE0E3FAA81CFEE /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | 97678B37073116BE95CDBD38 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 29E5B07387EF757B79D4110A /* Pods-SMCounterLabel_Example.debug.xcconfig */, 155 | BF5BF7B54A8C3647D894F287 /* Pods-SMCounterLabel_Example.release.xcconfig */, 156 | 439A204B8A8BC14BD97AFB6C /* Pods-SMCounterLabel_Tests.debug.xcconfig */, 157 | 45F080178C40F9269DB79EA1 /* Pods-SMCounterLabel_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* SMCounterLabel_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SMCounterLabel_Example" */; 168 | buildPhases = ( 169 | CB4BD63A77D6C5A29FC55908 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | DDCE335521E1ED3F9314F088 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = SMCounterLabel_Example; 180 | productName = SMCounterLabel; 181 | productReference = 607FACD01AFB9204008FA782 /* SMCounterLabel_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* SMCounterLabel_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SMCounterLabel_Tests" */; 187 | buildPhases = ( 188 | 5E85D5FEA08510DC09518316 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = SMCounterLabel_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* SMCounterLabel_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 1010; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | DevelopmentTeam = 8P99NYB6NZ; 216 | LastSwiftMigration = 1010; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | DevelopmentTeam = 8P99NYB6NZ; 221 | LastSwiftMigration = 1010; 222 | TestTargetID = 607FACCF1AFB9204008FA782; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SMCounterLabel" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = English; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | en, 232 | Base, 233 | ); 234 | mainGroup = 607FACC71AFB9204008FA782; 235 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | 607FACCF1AFB9204008FA782 /* SMCounterLabel_Example */, 240 | 607FACE41AFB9204008FA782 /* SMCounterLabel_Tests */, 241 | ); 242 | }; 243 | /* End PBXProject section */ 244 | 245 | /* Begin PBXResourcesBuildPhase section */ 246 | 607FACCE1AFB9204008FA782 /* Resources */ = { 247 | isa = PBXResourcesBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 251 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 252 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | 607FACE31AFB9204008FA782 /* Resources */ = { 257 | isa = PBXResourcesBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXResourcesBuildPhase section */ 264 | 265 | /* Begin PBXShellScriptBuildPhase section */ 266 | 5E85D5FEA08510DC09518316 /* [CP] Check Pods Manifest.lock */ = { 267 | isa = PBXShellScriptBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | ); 271 | inputPaths = ( 272 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 273 | "${PODS_ROOT}/Manifest.lock", 274 | ); 275 | name = "[CP] Check Pods Manifest.lock"; 276 | outputPaths = ( 277 | "$(DERIVED_FILE_DIR)/Pods-SMCounterLabel_Tests-checkManifestLockResult.txt", 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | shellPath = /bin/sh; 281 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 282 | showEnvVarsInLog = 0; 283 | }; 284 | CB4BD63A77D6C5A29FC55908 /* [CP] Check Pods Manifest.lock */ = { 285 | isa = PBXShellScriptBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | ); 289 | inputPaths = ( 290 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 291 | "${PODS_ROOT}/Manifest.lock", 292 | ); 293 | name = "[CP] Check Pods Manifest.lock"; 294 | outputPaths = ( 295 | "$(DERIVED_FILE_DIR)/Pods-SMCounterLabel_Example-checkManifestLockResult.txt", 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | shellPath = /bin/sh; 299 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 300 | showEnvVarsInLog = 0; 301 | }; 302 | DDCE335521E1ED3F9314F088 /* [CP] Embed Pods Frameworks */ = { 303 | isa = PBXShellScriptBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | ); 307 | inputPaths = ( 308 | "${SRCROOT}/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-frameworks.sh", 309 | "${BUILT_PRODUCTS_DIR}/SMCounterLabel/SMCounterLabel.framework", 310 | ); 311 | name = "[CP] Embed Pods Frameworks"; 312 | outputPaths = ( 313 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SMCounterLabel.framework", 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | shellPath = /bin/sh; 317 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SMCounterLabel_Example/Pods-SMCounterLabel_Example-frameworks.sh\"\n"; 318 | showEnvVarsInLog = 0; 319 | }; 320 | /* End PBXShellScriptBuildPhase section */ 321 | 322 | /* Begin PBXSourcesBuildPhase section */ 323 | 607FACCC1AFB9204008FA782 /* Sources */ = { 324 | isa = PBXSourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 328 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | 607FACE11AFB9204008FA782 /* Sources */ = { 333 | isa = PBXSourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | }; 340 | /* End PBXSourcesBuildPhase section */ 341 | 342 | /* Begin PBXTargetDependency section */ 343 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 344 | isa = PBXTargetDependency; 345 | target = 607FACCF1AFB9204008FA782 /* SMCounterLabel_Example */; 346 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 347 | }; 348 | /* End PBXTargetDependency section */ 349 | 350 | /* Begin PBXVariantGroup section */ 351 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 352 | isa = PBXVariantGroup; 353 | children = ( 354 | 607FACDA1AFB9204008FA782 /* Base */, 355 | ); 356 | name = Main.storyboard; 357 | sourceTree = ""; 358 | }; 359 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 360 | isa = PBXVariantGroup; 361 | children = ( 362 | 607FACDF1AFB9204008FA782 /* Base */, 363 | ); 364 | name = LaunchScreen.xib; 365 | sourceTree = ""; 366 | }; 367 | /* End PBXVariantGroup section */ 368 | 369 | /* Begin XCBuildConfiguration section */ 370 | 607FACED1AFB9204008FA782 /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 375 | CLANG_CXX_LIBRARY = "libc++"; 376 | CLANG_ENABLE_MODULES = YES; 377 | CLANG_ENABLE_OBJC_ARC = YES; 378 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 379 | CLANG_WARN_BOOL_CONVERSION = YES; 380 | CLANG_WARN_COMMA = YES; 381 | CLANG_WARN_CONSTANT_CONVERSION = YES; 382 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 383 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 384 | CLANG_WARN_EMPTY_BODY = YES; 385 | CLANG_WARN_ENUM_CONVERSION = YES; 386 | CLANG_WARN_INFINITE_RECURSION = YES; 387 | CLANG_WARN_INT_CONVERSION = YES; 388 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 389 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 390 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 392 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 393 | CLANG_WARN_STRICT_PROTOTYPES = YES; 394 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 395 | CLANG_WARN_UNREACHABLE_CODE = YES; 396 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 397 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 398 | COPY_PHASE_STRIP = NO; 399 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 401 | ENABLE_TESTABILITY = YES; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_DYNAMIC_NO_PIC = NO; 404 | GCC_NO_COMMON_BLOCKS = YES; 405 | GCC_OPTIMIZATION_LEVEL = 0; 406 | GCC_PREPROCESSOR_DEFINITIONS = ( 407 | "DEBUG=1", 408 | "$(inherited)", 409 | ); 410 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | }; 423 | name = Debug; 424 | }; 425 | 607FACEE1AFB9204008FA782 /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 430 | CLANG_CXX_LIBRARY = "libc++"; 431 | CLANG_ENABLE_MODULES = YES; 432 | CLANG_ENABLE_OBJC_ARC = YES; 433 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 434 | CLANG_WARN_BOOL_CONVERSION = YES; 435 | CLANG_WARN_COMMA = YES; 436 | CLANG_WARN_CONSTANT_CONVERSION = YES; 437 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 438 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 439 | CLANG_WARN_EMPTY_BODY = YES; 440 | CLANG_WARN_ENUM_CONVERSION = YES; 441 | CLANG_WARN_INFINITE_RECURSION = YES; 442 | CLANG_WARN_INT_CONVERSION = YES; 443 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 444 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 445 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 446 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 447 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 448 | CLANG_WARN_STRICT_PROTOTYPES = YES; 449 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 450 | CLANG_WARN_UNREACHABLE_CODE = YES; 451 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 452 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 453 | COPY_PHASE_STRIP = NO; 454 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 455 | ENABLE_NS_ASSERTIONS = NO; 456 | ENABLE_STRICT_OBJC_MSGSEND = YES; 457 | GCC_C_LANGUAGE_STANDARD = gnu99; 458 | GCC_NO_COMMON_BLOCKS = YES; 459 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 460 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 461 | GCC_WARN_UNDECLARED_SELECTOR = YES; 462 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 463 | GCC_WARN_UNUSED_FUNCTION = YES; 464 | GCC_WARN_UNUSED_VARIABLE = YES; 465 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 466 | MTL_ENABLE_DEBUG_INFO = NO; 467 | SDKROOT = iphoneos; 468 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 469 | VALIDATE_PRODUCT = YES; 470 | }; 471 | name = Release; 472 | }; 473 | 607FACF01AFB9204008FA782 /* Debug */ = { 474 | isa = XCBuildConfiguration; 475 | baseConfigurationReference = 29E5B07387EF757B79D4110A /* Pods-SMCounterLabel_Example.debug.xcconfig */; 476 | buildSettings = { 477 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 478 | DEVELOPMENT_TEAM = 8P99NYB6NZ; 479 | INFOPLIST_FILE = SMCounterLabel/Info.plist; 480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 481 | MODULE_NAME = ExampleApp; 482 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 483 | PRODUCT_NAME = "$(TARGET_NAME)"; 484 | SWIFT_VERSION = 4.2; 485 | }; 486 | name = Debug; 487 | }; 488 | 607FACF11AFB9204008FA782 /* Release */ = { 489 | isa = XCBuildConfiguration; 490 | baseConfigurationReference = BF5BF7B54A8C3647D894F287 /* Pods-SMCounterLabel_Example.release.xcconfig */; 491 | buildSettings = { 492 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 493 | DEVELOPMENT_TEAM = 8P99NYB6NZ; 494 | INFOPLIST_FILE = SMCounterLabel/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 496 | MODULE_NAME = ExampleApp; 497 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 498 | PRODUCT_NAME = "$(TARGET_NAME)"; 499 | SWIFT_VERSION = 4.2; 500 | }; 501 | name = Release; 502 | }; 503 | 607FACF31AFB9204008FA782 /* Debug */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = 439A204B8A8BC14BD97AFB6C /* Pods-SMCounterLabel_Tests.debug.xcconfig */; 506 | buildSettings = { 507 | DEVELOPMENT_TEAM = 8P99NYB6NZ; 508 | FRAMEWORK_SEARCH_PATHS = ( 509 | "$(SDKROOT)/Developer/Library/Frameworks", 510 | "$(inherited)", 511 | ); 512 | GCC_PREPROCESSOR_DEFINITIONS = ( 513 | "DEBUG=1", 514 | "$(inherited)", 515 | ); 516 | INFOPLIST_FILE = Tests/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 518 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_VERSION = 4.2; 521 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SMCounterLabel_Example.app/SMCounterLabel_Example"; 522 | }; 523 | name = Debug; 524 | }; 525 | 607FACF41AFB9204008FA782 /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = 45F080178C40F9269DB79EA1 /* Pods-SMCounterLabel_Tests.release.xcconfig */; 528 | buildSettings = { 529 | DEVELOPMENT_TEAM = 8P99NYB6NZ; 530 | FRAMEWORK_SEARCH_PATHS = ( 531 | "$(SDKROOT)/Developer/Library/Frameworks", 532 | "$(inherited)", 533 | ); 534 | INFOPLIST_FILE = Tests/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 536 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_VERSION = 4.2; 539 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SMCounterLabel_Example.app/SMCounterLabel_Example"; 540 | }; 541 | name = Release; 542 | }; 543 | /* End XCBuildConfiguration section */ 544 | 545 | /* Begin XCConfigurationList section */ 546 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SMCounterLabel" */ = { 547 | isa = XCConfigurationList; 548 | buildConfigurations = ( 549 | 607FACED1AFB9204008FA782 /* Debug */, 550 | 607FACEE1AFB9204008FA782 /* Release */, 551 | ); 552 | defaultConfigurationIsVisible = 0; 553 | defaultConfigurationName = Release; 554 | }; 555 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SMCounterLabel_Example" */ = { 556 | isa = XCConfigurationList; 557 | buildConfigurations = ( 558 | 607FACF01AFB9204008FA782 /* Debug */, 559 | 607FACF11AFB9204008FA782 /* Release */, 560 | ); 561 | defaultConfigurationIsVisible = 0; 562 | defaultConfigurationName = Release; 563 | }; 564 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SMCounterLabel_Tests" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 607FACF31AFB9204008FA782 /* Debug */, 568 | 607FACF41AFB9204008FA782 /* Release */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | /* End XCConfigurationList section */ 574 | }; 575 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 576 | } 577 | -------------------------------------------------------------------------------- /Example/SMCounterLabel.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SMCounterLabel.xcodeproj/xcshareddata/xcschemes/SMCounterLabel-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/SMCounterLabel.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SMCounterLabel 4 | // 5 | // Created by slavenko on 04/09/2019. 6 | // Copyright (c) 2019 slavenko. 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: [UIApplication.LaunchOptionsKey: 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 throttle down OpenGL ES frame rates. 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 inactive 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 | 47 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 38 | 44 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/SMCounterLabel/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SMCounterLabel 4 | // 5 | // Created by Slavenko on 1/26/19. 6 | // Copyright © 2019 Slavenko. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SMCounterLabel 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var label: SMCounterLabel! 15 | @IBOutlet weak var dummyLabel: UILabel! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | //I recommend using monospaced fonts, since you will get a bit of jitter when animating, since the character width is different on numbers 21 | label.font = UIFont(name:"Menlo", size: 50) 22 | 23 | dummyLabel.font = UIFont(name:"Menlo", size: 50) 24 | 25 | //Format type integer/decimal/fancy 26 | label.formatType = .decimal 27 | 28 | //How long it takes to animate one character 29 | label.duration = 0.6 30 | 31 | //How long to wait before the next character starts animating 32 | label.delay = 0.2 33 | 34 | //If for some reason you want the animation to slow down towards the end 35 | label.durationIncrement = 0.0 36 | 37 | //Text color obviously 38 | label.color = .darkGray 39 | 40 | //Set the value 41 | label.setValue(1234.56) 42 | dummyLabel.text = "\(label.getValue())" 43 | } 44 | 45 | @IBAction func updateLabel(_ sender: Any) { 46 | let randomNumber = Double.random(min: 1, max: 9999) 47 | label.setValue(randomNumber) 48 | dummyLabel.text = "\(label.getValue())" 49 | } 50 | } 51 | 52 | public extension Double { 53 | 54 | /// Returns a random floating point number between 0.0 and 1.0, inclusive. 55 | public static var random: Double { 56 | return Double(arc4random()) / 0xFFFFFFFF 57 | } 58 | 59 | /// Random double between 0 and n-1. 60 | /// 61 | /// - Parameter n: Interval max 62 | /// - Returns: Returns a random double point number between 0 and n max 63 | public static func random(min: Double, max: Double) -> Double { 64 | return Double.random * (max - min) + min 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import SMCounterLabel 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 slavenko 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SMCounterLabel 2 | 3 | [![CI Status](https://img.shields.io/travis/slavenko/SMCounterLabel.svg?style=flat)](https://travis-ci.org/slavenko/SMCounterLabel) 4 | [![Version](https://img.shields.io/cocoapods/v/SMCounterLabel.svg?style=flat)](https://cocoapods.org/pods/SMCounterLabel) 5 | [![License](https://img.shields.io/cocoapods/l/SMCounterLabel.svg?style=flat)](https://cocoapods.org/pods/SMCounterLabel) 6 | [![Platform](https://img.shields.io/cocoapods/p/SMCounterLabel.svg?style=flat)](https://cocoapods.org/pods/SMCounterLabel) 7 | 8 | # Screenshot 9 | ![Screenshot](animation.gif) 10 | 11 | ## Example 12 | 13 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 14 | 15 | ## Usage 16 | ``` 17 | //Format type integer/decimal/fancy 18 | label.formatType = .decimal 19 | 20 | //How long it takes to animate one character 21 | label.duration = 0.6 22 | 23 | //How long to wait before the next character starts animating 24 | label.delay = 0.2 25 | 26 | //If for some reason you want the 27 | //animation to slow down towards the end 28 | label.durationIncrement = 0.0 29 | 30 | //Text color obviously 31 | label.color = .darkGray 32 | 33 | //Set the label value 34 | label.setValue(1234.56) 35 | ``` 36 | 37 | ## Requirements 38 | 39 | ## Installation 40 | 41 | SMCounterLabel is available through [CocoaPods](https://cocoapods.org). To install 42 | it, simply add the following line to your Podfile: 43 | 44 | ```ruby 45 | pod 'SMCounterLabel' 46 | ``` 47 | 48 | ## Author 49 | 50 | Slavenko Miljic, slavenko.miljic@gmail.com 51 | 52 | ## License 53 | 54 | SMCounterLabel is available under the MIT license. See the LICENSE file for more info. 55 | -------------------------------------------------------------------------------- /SMCounterLabel.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SMCounterLabel.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'SMCounterLabel' 11 | s.version = '0.1.1' 12 | s.summary = 'Animated UILabel subclass.' 13 | s.swift_version = '4.2' 14 | 15 | s.description = 'A numeric label that animates value change with a stock-like animation' 16 | 17 | s.homepage = 'https://github.com/slavenko/SMCounterLabel' 18 | s.license = { :type => 'MIT', :file => 'LICENSE' } 19 | s.author = { 'slavenko' => 'slavenko.miljic@gmail.com' } 20 | s.source = { :git => 'https://github.com/slavenko/SMCounterLabel.git', :tag => s.version.to_s } 21 | 22 | s.ios.deployment_target = '9.0' 23 | 24 | s.source_files = 'SMCounterLabel/Classes/**/*' 25 | end 26 | -------------------------------------------------------------------------------- /SMCounterLabel/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slavenko/SMCounterLabel/23202da53d1598a0232487b1bc501ee22a30b059/SMCounterLabel/Assets/.gitkeep -------------------------------------------------------------------------------- /SMCounterLabel/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slavenko/SMCounterLabel/23202da53d1598a0232487b1bc501ee22a30b059/SMCounterLabel/Classes/.gitkeep -------------------------------------------------------------------------------- /SMCounterLabel/Classes/SMCounterLabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SMCounterLabel.swift 3 | // SMCounterLabel 4 | // 5 | // Created by Slavenko on 1/26/19. 6 | // Copyright © 2019 Slavenko. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | public enum SMLabelFormatType { 13 | case decimal 14 | case integer 15 | case fancy 16 | } 17 | 18 | public class SMSingleCounterLabel : UILabel 19 | { 20 | func incrementValue(endValue: Int, duration:CFTimeInterval) 21 | { 22 | let startVal = (Int(self.text!) ?? 0) + 1 23 | 24 | //we don't want to have increment for example from 3 to 4, because that's just one spin and it looks boring, so we'll add 10 just in case so we'll spin from 3 to 14 25 | var endVal = endValue + 10 26 | 27 | //in case we have for axample 9 and 12, it also looks boring, since it's only 3 spins so we make sure to add some more spins 28 | if (endVal - startVal) < 6 29 | { 30 | endVal += 10 31 | } 32 | 33 | //We calculate how long shuld each increment take, because we need to finish entire animation in a fixed amount of time 34 | let finalDuration : Double = duration / Double(endVal - startVal) 35 | for i in startVal...endVal 36 | { 37 | let index = i - startVal 38 | let character = "\(String(i).last!)" 39 | DispatchQueue.main.asyncAfter(deadline: .now() + (finalDuration * Double(index))){ 40 | self.layer.animateUp(duration: finalDuration, delay: 0) 41 | self.text = "\(character)" 42 | } 43 | } 44 | } 45 | 46 | func decrementValue(endValue: Int, duration:CFTimeInterval) 47 | { 48 | var startValue = (Int(self.text!) ?? 0) - 1 49 | 50 | //we don't want to have decrement for example from 4 to 3, because that's just one spin and it looks boring, so we'll add 10 just in case so we'll spin from 14 to 3 51 | startValue = startValue + 10 52 | 53 | //in case we have for axample 12 and 9, it also looks boring, since it's only 3 spins so we make sure to add some more spins 54 | if (startValue - endValue) < 6 55 | { 56 | startValue += 10 57 | } 58 | 59 | //We calculate how long shuld each increment take, because we need to finish entire animation in a fixed amount of time 60 | let finalDuration : Double = duration / Double(startValue - endValue) 61 | 62 | var i = 0 63 | while startValue >= endValue { 64 | let character = "\(String(startValue).last!)" 65 | DispatchQueue.main.asyncAfter(deadline: .now() + (finalDuration * Double(i))){ 66 | self.layer.animateDown(duration: finalDuration) 67 | self.text = "\(character)" 68 | } 69 | startValue = startValue - 1 70 | i = i + 1 71 | } 72 | } 73 | } 74 | 75 | public class SMCounterLabel : UILabel 76 | { 77 | public var formatType : SMLabelFormatType = .decimal 78 | 79 | public var duration : Double = 0.6 80 | public var delay : Double = 0.2 81 | public var durationIncrement : Double = 0.0 82 | public var color : UIColor = .black 83 | 84 | lazy var container : UIView = { 85 | let c = UIView() 86 | c.backgroundColor = .clear 87 | c.clipsToBounds = true 88 | return c 89 | }() 90 | 91 | required init?(coder aDecoder: NSCoder) { 92 | super.init(coder: aDecoder) 93 | self.backgroundColor = .clear 94 | self.textColor = .clear 95 | self.addContainer() 96 | } 97 | 98 | override init(frame: CGRect) { 99 | super.init(frame: frame) 100 | self.backgroundColor = .clear 101 | self.textColor = .clear 102 | self.addContainer() 103 | } 104 | 105 | func addContainer(){ 106 | self.addSubview(container) 107 | container.translatesAutoresizingMaskIntoConstraints = false 108 | container.topAnchor.constraint(equalTo: container.superview!.topAnchor).isActive = true 109 | container.bottomAnchor.constraint(equalTo: container.superview!.bottomAnchor).isActive = true 110 | container.leadingAnchor.constraint(equalTo: container.superview!.leadingAnchor).isActive = true 111 | container.trailingAnchor.constraint(equalTo: container.superview!.trailingAnchor).isActive = true 112 | } 113 | 114 | var value : Double = 0 { 115 | didSet { 116 | self.text = self.formatString(value) 117 | } 118 | } 119 | 120 | func formatString(_ val: Double) -> String? 121 | { 122 | let formatter = NumberFormatter() 123 | formatter.usesGroupingSeparator = true 124 | formatter.numberStyle = .decimal 125 | formatter.maximumFractionDigits = 2 126 | formatter.minimumFractionDigits = 2 127 | 128 | //Other supported format types (decimal/fancy) support decimal places 129 | if formatType == .integer 130 | { 131 | formatter.numberStyle = .none 132 | formatter.maximumFractionDigits = 0 133 | formatter.minimumFractionDigits = 0 134 | } 135 | 136 | return formatter.string(from: NSNumber(value: self.value)) 137 | } 138 | 139 | //We'll try to parse whatever we send here 140 | public func setValue(_ value: Any?) { 141 | if let dVal = value as? Double 142 | { 143 | self.value = dVal 144 | } 145 | else if let dVal = value as? Int 146 | { 147 | self.value = Double(dVal) 148 | } 149 | } 150 | 151 | //Return string value back 152 | public func getValue() -> String 153 | { 154 | return self.text! 155 | } 156 | 157 | override public var text: String? { 158 | didSet { 159 | guard let text = text else { return } 160 | guard self.parseCurrencyString(text) != nil else { 161 | return 162 | } 163 | 164 | if oldValue != nil 165 | { 166 | let oldVal = oldValue! 167 | var newVal = text 168 | if newVal.count < oldVal.count 169 | { 170 | newVal = String(oldVal.dropLast(oldVal.count - newVal.count)) 171 | } 172 | let attributedText = NSMutableAttributedString(string: text) 173 | let decimalSeparator = NSLocale.current.decimalSeparator! as String 174 | let fullFont = self.font 175 | let halfFont = UIFont(name: self.font.fontName, size: self.font.pointSize / 2) 176 | var startPos = 0 177 | if let range = text.range(of: decimalSeparator) 178 | { 179 | startPos = text.distance(from: text.startIndex, to: range.lowerBound) 180 | let attributedRange = NSMakeRange(startPos, text.count - startPos) 181 | let fontSize = formatType == .fancy ? self.font.pointSize / 2 : self.font.pointSize 182 | attributedText.addAttribute(NSAttributedString.Key.font, value: UIFont( 183 | name: self.font.fontName, 184 | size: fontSize)!, range: attributedRange) 185 | } 186 | self.attributedText = attributedText 187 | let fullTextWidth : CGFloat = self.text?.width(withConstrainedHeight: 0, font: self.font) ?? 0 188 | var previousLetter : SMSingleCounterLabel? = nil 189 | var initialdelay : Double = 0.0 190 | var initialduration : Double = self.duration 191 | _ = self.container.subviews.map({$0.removeFromSuperview()}) 192 | for (index, char) in text.enumerated() 193 | { 194 | let newChar = Int(text[index]) 195 | 196 | let lbl = SMSingleCounterLabel() 197 | if newChar == nil 198 | { 199 | lbl.text = text[index] 200 | } 201 | else if Int(oldVal[index]) != nil 202 | { 203 | lbl.text = oldVal[index] 204 | } 205 | else 206 | { 207 | lbl.text = text[index] 208 | } 209 | 210 | lbl.font = self.font 211 | lbl.textColor = self.color 212 | 213 | self.container.addSubview(lbl) 214 | lbl.translatesAutoresizingMaskIntoConstraints = false 215 | 216 | lbl.topAnchor.constraint(equalTo: container.topAnchor).isActive = true 217 | 218 | var width = String(char).width(withConstrainedHeight: 0, font: fullFont!) 219 | var offsetBottom : CGFloat = 0 220 | var offsetLeft : CGFloat = 0 221 | 222 | if formatType == .fancy && startPos <= index 223 | { 224 | lbl.font = halfFont 225 | width = String(char).width(withConstrainedHeight: 0, font: halfFont!) + 50 226 | offsetBottom = (fullFont?.pointSize)! / 3 + 1 227 | offsetLeft = -1 228 | } 229 | 230 | if previousLetter == nil 231 | { 232 | if self.textAlignment == .left 233 | { 234 | lbl.leadingAnchor.constraint(equalTo: container.leadingAnchor).isActive = true 235 | } 236 | else if self.textAlignment == .right 237 | { 238 | lbl.leadingAnchor.constraint(equalTo: container.trailingAnchor, constant: -fullTextWidth).isActive = true 239 | } 240 | else if self.textAlignment == .center 241 | { 242 | lbl.leadingAnchor.constraint(equalTo: container.centerXAnchor, constant: -fullTextWidth / 2).isActive = true 243 | } 244 | } 245 | else 246 | { 247 | lbl.leadingAnchor.constraint(equalTo: (previousLetter?.trailingAnchor)!, constant: offsetLeft).isActive = true 248 | } 249 | lbl.bottomAnchor.constraint(equalTo: container.bottomAnchor, constant: offsetBottom).isActive = true 250 | lbl.widthAnchor.constraint(equalToConstant: width) 251 | //lbl.clipsToBounds = true 252 | 253 | previousLetter = lbl 254 | 255 | if index == (self.text?.count)! - 1 256 | { 257 | lbl.trailingAnchor.constraint(equalTo: container.trailingAnchor).isActive = true 258 | } 259 | let oldNumber = self.parseCurrencyString(oldVal) 260 | let newNumber = self.parseCurrencyString(text) 261 | if newChar != nil && oldNumber != nil 262 | { 263 | DispatchQueue.main.asyncAfter(deadline: .now() + initialdelay){ 264 | if newNumber! > oldNumber! 265 | { 266 | lbl.incrementValue(endValue: newChar!, duration: initialduration) 267 | } 268 | else 269 | { 270 | lbl.decrementValue(endValue: newChar!, duration: initialduration) 271 | } 272 | initialduration += self.durationIncrement 273 | 274 | } 275 | initialdelay += self.delay 276 | } 277 | } 278 | } 279 | } 280 | } 281 | 282 | public func parseCurrencyString(_ value: String) -> Double? 283 | { 284 | var decimalSep = NSLocale.current.decimalSeparator! as String 285 | var groupSep = NSLocale.current.groupingSeparator! as String 286 | 287 | //Ok since everyone has different regional settings on their phone and can always change number format 288 | //we're gonna do this the old school way. 289 | //check for the last occurence of dot and comma characters in the string and decide based on that 290 | //what kind of string is the user trying to type in/paste 291 | //bring it on 292 | 293 | let dotRange = value.range(of: ".")?.upperBound 294 | let commaRange = value.range(of: ",")?.upperBound 295 | var dotPosition: Int = 0 296 | var dotEndPosition: Int = 0 297 | var commaPosition: Int = 0 298 | var commaEndPosition: Int = 0 299 | 300 | if dotRange != nil 301 | { 302 | dotPosition = value.distance(from: value.startIndex, to: dotRange!) 303 | dotEndPosition = value.distance(from: value.endIndex, to: dotRange!) 304 | } 305 | 306 | if commaRange != nil 307 | { 308 | commaPosition = value.distance(from: value.startIndex, to: commaRange!) 309 | commaEndPosition = value.distance(from: value.endIndex, to: commaRange!) 310 | } 311 | var formattedString: String = "0" 312 | 313 | if dotPosition > 0 && dotPosition > commaPosition 314 | { 315 | //the typed in number has dot as a decimal separator. 316 | //we assume that the comma is group separator 317 | decimalSep = "." 318 | groupSep = "," 319 | if dotEndPosition < -2 320 | { 321 | //this is a number formatted osmething like this 322 | // 123.456 and in this case dot is a group separator 323 | decimalSep = "," 324 | groupSep = "." 325 | } 326 | } 327 | else { 328 | //comma is a decimal separator, and dot is a group separator 329 | decimalSep = "," 330 | groupSep = "." 331 | 332 | if commaEndPosition < -2 333 | { 334 | //this is a number formatted osmething like this 335 | // 123,456 and in this case comma is a group separator 336 | decimalSep = "." 337 | groupSep = "," 338 | } 339 | } 340 | 341 | formattedString = value.replacingOccurrences(of: groupSep, with: "") 342 | formattedString = formattedString.replacingOccurrences(of: decimalSep, with: ".") 343 | return Double(formattedString) 344 | } 345 | } 346 | 347 | extension String { 348 | func height(withConstrainedWidth width: CGFloat, font: UIFont) -> CGFloat { 349 | let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude) 350 | let boundingBox = self.boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, attributes: [.font : font], context: nil) 351 | 352 | return ceil(boundingBox.height) 353 | } 354 | 355 | func width(withConstrainedHeight height: CGFloat, font: UIFont) -> CGFloat { 356 | let constraintRect = CGSize(width: .greatestFiniteMagnitude, height: height) 357 | let boundingBox = self.boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, attributes: [.font : font], context: nil) 358 | 359 | return ceil(boundingBox.width) 360 | } 361 | } 362 | 363 | extension NSAttributedString { 364 | func height(withConstrainedWidth width: CGFloat) -> CGFloat { 365 | let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude) 366 | let boundingBox = boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, context: nil) 367 | 368 | return ceil(boundingBox.height) 369 | } 370 | 371 | func width(withConstrainedHeight height: CGFloat) -> CGFloat { 372 | let constraintRect = CGSize(width: .greatestFiniteMagnitude, height: height) 373 | let boundingBox = boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, context: nil) 374 | 375 | return ceil(boundingBox.width) 376 | } 377 | } 378 | 379 | extension String { 380 | 381 | var length: Int { 382 | return count 383 | } 384 | 385 | subscript (i: Int) -> String { 386 | return self[i ..< i + 1] 387 | } 388 | 389 | func substring(fromIndex: Int) -> String { 390 | return self[min(fromIndex, length) ..< length] 391 | } 392 | 393 | func substring(toIndex: Int) -> String { 394 | return self[0 ..< max(0, toIndex)] 395 | } 396 | 397 | subscript (r: Range) -> String { 398 | let range = Range(uncheckedBounds: (lower: max(0, min(length, r.lowerBound)), 399 | upper: min(length, max(0, r.upperBound)))) 400 | let start = index(startIndex, offsetBy: range.lowerBound) 401 | let end = index(start, offsetBy: range.upperBound - range.lowerBound) 402 | return String(self[start ..< end]) 403 | } 404 | 405 | } 406 | 407 | extension CALayer { 408 | //Animate character sliding up 409 | func animateUp(duration:CFTimeInterval, delay: Double) { 410 | let animation = CATransition() 411 | animation.beginTime = CACurrentMediaTime() + delay 412 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 413 | animation.duration = duration 414 | animation.type = CATransitionType.push 415 | animation.subtype = CATransitionSubtype.fromTop 416 | 417 | self.add(animation, forKey: CATransitionType.push.rawValue) 418 | } 419 | 420 | //Animate character sliding down, maybe we can use this if the new value is smaller than the last 421 | func animateDown(duration:CFTimeInterval) { 422 | let animation = CATransition() 423 | animation.beginTime = CACurrentMediaTime() 424 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 425 | animation.duration = duration 426 | animation.type = CATransitionType.push 427 | animation.subtype = CATransitionSubtype.fromBottom 428 | self.add(animation, forKey: CATransitionType.push.rawValue) 429 | } 430 | } 431 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slavenko/SMCounterLabel/23202da53d1598a0232487b1bc501ee22a30b059/animation.gif --------------------------------------------------------------------------------