From 81e238b4b13a5216aadc843b624e2403f1dfa102 Mon Sep 17 00:00:00 2001 From: odedhartg Date: Fri, 30 Dec 2016 15:24:39 +0200 Subject: [PATCH] passed validation --- .swift-version | 1 + Example/Podfile.lock | 16 + .../Local Podspecs/SuperBadges.podspec.json | 22 + Example/Pods/Manifest.lock | 16 + Example/Pods/Pods.xcodeproj/project.pbxproj | 550 ++++++++++++++++++ .../Pods-SuperBadges_Tests/Info.plist | 26 + ...uperBadges_Tests-acknowledgements.markdown | 26 + ...s-SuperBadges_Tests-acknowledgements.plist | 58 ++ .../Pods-SuperBadges_Tests-dummy.m | 5 + .../Pods-SuperBadges_Tests-frameworks.sh | 91 +++ .../Pods-SuperBadges_Tests-resources.sh | 96 +++ .../Pods-SuperBadges_Tests-umbrella.h | 8 + .../Pods-SuperBadges_Tests.debug.xcconfig | 11 + .../Pods-SuperBadges_Tests.modulemap | 6 + .../Pods-SuperBadges_Tests.release.xcconfig | 11 + .../SuperBadges/Info.plist | 26 + .../SuperBadges/SuperBadges-dummy.m | 5 + .../SuperBadges/SuperBadges-prefix.pch | 4 + .../SuperBadges/SuperBadges-umbrella.h | 8 + .../SuperBadges/SuperBadges.modulemap | 6 + .../SuperBadges/SuperBadges.xcconfig | 9 + Example/SuperBadges.xcodeproj/project.pbxproj | 12 +- .../contents.xcworkspacedata | 10 + Example/Tests/Tests.swift | 2 +- LICENSE | 2 +- README.md | 3 +- SuperBadges.podspec | 18 +- SuperBadges/Classes/ReplaceMe.swift | 0 SuperBadges/Classes/SuperBadges.swift | 46 ++ 29 files changed, 1075 insertions(+), 19 deletions(-) create mode 100644 .swift-version create mode 100644 Example/Podfile.lock create mode 100644 Example/Pods/Local Podspecs/SuperBadges.podspec.json create mode 100644 Example/Pods/Manifest.lock create mode 100644 Example/Pods/Pods.xcodeproj/project.pbxproj create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Info.plist create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.markdown create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.plist create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-dummy.m create mode 100755 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-frameworks.sh create mode 100755 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-resources.sh create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-umbrella.h create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.debug.xcconfig create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap create mode 100644 Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.release.xcconfig create mode 100644 Example/Pods/Target Support Files/SuperBadges/Info.plist create mode 100644 Example/Pods/Target Support Files/SuperBadges/SuperBadges-dummy.m create mode 100644 Example/Pods/Target Support Files/SuperBadges/SuperBadges-prefix.pch create mode 100644 Example/Pods/Target Support Files/SuperBadges/SuperBadges-umbrella.h create mode 100644 Example/Pods/Target Support Files/SuperBadges/SuperBadges.modulemap create mode 100644 Example/Pods/Target Support Files/SuperBadges/SuperBadges.xcconfig create mode 100644 Example/SuperBadges.xcworkspace/contents.xcworkspacedata delete mode 100644 SuperBadges/Classes/ReplaceMe.swift create mode 100644 SuperBadges/Classes/SuperBadges.swift diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..9f55b2c --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +3.0 diff --git a/Example/Podfile.lock b/Example/Podfile.lock new file mode 100644 index 0000000..2505442 --- /dev/null +++ b/Example/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - SuperBadges (0.1.0) + +DEPENDENCIES: + - SuperBadges (from `../`) + +EXTERNAL SOURCES: + SuperBadges: + :path: "../" + +SPEC CHECKSUMS: + SuperBadges: 4cb4af189362be205e04dcbc09e3abc4c045f2f1 + +PODFILE CHECKSUM: 9e7bfdc9387893d36665ca3d6728d448b6fffe46 + +COCOAPODS: 1.1.1 diff --git a/Example/Pods/Local Podspecs/SuperBadges.podspec.json b/Example/Pods/Local Podspecs/SuperBadges.podspec.json new file mode 100644 index 0000000..0866478 --- /dev/null +++ b/Example/Pods/Local Podspecs/SuperBadges.podspec.json @@ -0,0 +1,22 @@ +{ + "name": "SuperBadges", + "version": "0.1.0", + "summary": "A short description of SuperBadges.", + "description": "TODO: Add long description of the pod here.", + "homepage": "https://github.com//SuperBadges", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "odedhartg": "odedharth@gmail.com" + }, + "source": { + "git": "https://github.com//SuperBadges.git", + "tag": "0.1.0" + }, + "platforms": { + "ios": "8.0" + }, + "source_files": "SuperBadges/Classes/**/*" +} diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock new file mode 100644 index 0000000..2505442 --- /dev/null +++ b/Example/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - SuperBadges (0.1.0) + +DEPENDENCIES: + - SuperBadges (from `../`) + +EXTERNAL SOURCES: + SuperBadges: + :path: "../" + +SPEC CHECKSUMS: + SuperBadges: 4cb4af189362be205e04dcbc09e3abc4c045f2f1 + +PODFILE CHECKSUM: 9e7bfdc9387893d36665ca3d6728d448b6fffe46 + +COCOAPODS: 1.1.1 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3a1ca8f --- /dev/null +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,550 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1555194114AA15A1DE0D7F19C57806A6 /* Pods-SuperBadges_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3378C287BD5F70DC4E746B4CE4CF3FD6 /* Pods-SuperBadges_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1A5B0F661F17732A58539ADE90F8628C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; + 294AF7FE6CA2049A172436557C05FA77 /* SuperBadges-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 56D0B98F474BAB6323E0A6FD5F613D03 /* SuperBadges-dummy.m */; }; + 33354133DB6A89BFF6F802A35652891C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; + 3E3E96CCAFBE1976F1B02A0054D07306 /* Pods-SuperBadges_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E2504651B1A60A31A7898D865B80E5B /* Pods-SuperBadges_Tests-dummy.m */; }; + B49C1009C41886B3AC40752C4E0F07AF /* SuperBadges-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E5FC886F67563D2B191C3F9DC8120DF9 /* SuperBadges-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + CE399D2518FFCB6EF864D49FBBA546E8 /* SuperBadges.swift in Sources */ = {isa = PBXBuildFile; fileRef = C83BF769F9A2973414F5057A5ED99D6D /* SuperBadges.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 6B66997E63E17ABAE721EA2A7B06B265 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; + proxyType = 1; + remoteGlobalIDString = AD82D540F548B215A4FC9FDA8924AB2E; + remoteInfo = SuperBadges; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 01597180465DEF23B32AAF769785AB2A /* Pods-SuperBadges_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-SuperBadges_Tests.modulemap"; sourceTree = ""; }; + 0E334AABC3B71A9292C18248638EF87D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 1055867A3D9E1009F1A05A56B70CDE80 /* Pods-SuperBadges_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SuperBadges_Tests-acknowledgements.plist"; sourceTree = ""; }; + 26F357F1B00B5C2112DC6289277E6D66 /* Pods-SuperBadges_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SuperBadges_Tests.release.xcconfig"; sourceTree = ""; }; + 3378C287BD5F70DC4E746B4CE4CF3FD6 /* Pods-SuperBadges_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SuperBadges_Tests-umbrella.h"; sourceTree = ""; }; + 414847192DDD4CA034110DF5560923BF /* Pods-SuperBadges_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SuperBadges_Tests.debug.xcconfig"; sourceTree = ""; }; + 56D0B98F474BAB6323E0A6FD5F613D03 /* SuperBadges-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SuperBadges-dummy.m"; sourceTree = ""; }; + 59FC37031D6376ECA4E98DA23C502CE8 /* SuperBadges.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SuperBadges.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 6E2504651B1A60A31A7898D865B80E5B /* Pods-SuperBadges_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SuperBadges_Tests-dummy.m"; sourceTree = ""; }; + 7350A1A31A94E65480D3884429B5CD10 /* Pods-SuperBadges_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SuperBadges_Tests-resources.sh"; sourceTree = ""; }; + 8BB0FEF4B995B504B9C433EA66FCE760 /* SuperBadges-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SuperBadges-prefix.pch"; sourceTree = ""; }; + 92F3DFD742068C8ADCBA62F0107AC804 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + ABBDDC274B7563F782288A42857D7DE1 /* Pods_SuperBadges_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SuperBadges_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C83BF769F9A2973414F5057A5ED99D6D /* SuperBadges.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SuperBadges.swift; sourceTree = ""; }; + CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + D3B24FD2AF02E88C4DF41A71026D89D8 /* Pods-SuperBadges_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SuperBadges_Tests-acknowledgements.markdown"; sourceTree = ""; }; + D5328130F9E82E8902569B6FF06FDC46 /* SuperBadges.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = SuperBadges.modulemap; sourceTree = ""; }; + D8CDA084170BB62562ACB7B320620FB8 /* SuperBadges.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SuperBadges.xcconfig; sourceTree = ""; }; + E5FC886F67563D2B191C3F9DC8120DF9 /* SuperBadges-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SuperBadges-umbrella.h"; sourceTree = ""; }; + F06041A0D2D3A3C557030EA2B3A4449A /* Pods-SuperBadges_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SuperBadges_Tests-frameworks.sh"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4CEB75DE8EC28386B18A9F718A320AE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 33354133DB6A89BFF6F802A35652891C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F562D2075D2F73C897281F6BA28577EB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1A5B0F661F17732A58539ADE90F8628C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 087B1DA56E45FA6021F49CE7514686B2 /* Development Pods */ = { + isa = PBXGroup; + children = ( + A0452D4F53040CE606CFAD9328AD35EF /* SuperBadges */, + ); + name = "Development Pods"; + sourceTree = ""; + }; + 27EAD8B1E102A2AF0C4495992B122E50 /* SuperBadges */ = { + isa = PBXGroup; + children = ( + B5BB4139B89BEB4FE0AF3CE237CFBF4C /* Classes */, + ); + path = SuperBadges; + sourceTree = ""; + }; + 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { + isa = PBXGroup; + children = ( + CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 7DB346D0F39D3F0E887471402A8071AB = { + isa = PBXGroup; + children = ( + 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, + 087B1DA56E45FA6021F49CE7514686B2 /* Development Pods */, + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, + 969C3CBDC088FF73DDFB75D05607E75B /* Products */, + C9AC4BD6ED0DC9326DD4A9CC7DAC486D /* Targets Support Files */, + ); + sourceTree = ""; + }; + 8BE66549DC68651904B51723C3490D8C /* Pods-SuperBadges_Tests */ = { + isa = PBXGroup; + children = ( + 92F3DFD742068C8ADCBA62F0107AC804 /* Info.plist */, + 01597180465DEF23B32AAF769785AB2A /* Pods-SuperBadges_Tests.modulemap */, + D3B24FD2AF02E88C4DF41A71026D89D8 /* Pods-SuperBadges_Tests-acknowledgements.markdown */, + 1055867A3D9E1009F1A05A56B70CDE80 /* Pods-SuperBadges_Tests-acknowledgements.plist */, + 6E2504651B1A60A31A7898D865B80E5B /* Pods-SuperBadges_Tests-dummy.m */, + F06041A0D2D3A3C557030EA2B3A4449A /* Pods-SuperBadges_Tests-frameworks.sh */, + 7350A1A31A94E65480D3884429B5CD10 /* Pods-SuperBadges_Tests-resources.sh */, + 3378C287BD5F70DC4E746B4CE4CF3FD6 /* Pods-SuperBadges_Tests-umbrella.h */, + 414847192DDD4CA034110DF5560923BF /* Pods-SuperBadges_Tests.debug.xcconfig */, + 26F357F1B00B5C2112DC6289277E6D66 /* Pods-SuperBadges_Tests.release.xcconfig */, + ); + name = "Pods-SuperBadges_Tests"; + path = "Target Support Files/Pods-SuperBadges_Tests"; + sourceTree = ""; + }; + 969C3CBDC088FF73DDFB75D05607E75B /* Products */ = { + isa = PBXGroup; + children = ( + ABBDDC274B7563F782288A42857D7DE1 /* Pods_SuperBadges_Tests.framework */, + 59FC37031D6376ECA4E98DA23C502CE8 /* SuperBadges.framework */, + ); + name = Products; + sourceTree = ""; + }; + A0452D4F53040CE606CFAD9328AD35EF /* SuperBadges */ = { + isa = PBXGroup; + children = ( + 27EAD8B1E102A2AF0C4495992B122E50 /* SuperBadges */, + DB7CAADDB1D85909E71625287D69E9BA /* Support Files */, + ); + name = SuperBadges; + path = ../..; + sourceTree = ""; + }; + B5BB4139B89BEB4FE0AF3CE237CFBF4C /* Classes */ = { + isa = PBXGroup; + children = ( + C83BF769F9A2973414F5057A5ED99D6D /* SuperBadges.swift */, + ); + path = Classes; + sourceTree = ""; + }; + BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { + isa = PBXGroup; + children = ( + 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + C9AC4BD6ED0DC9326DD4A9CC7DAC486D /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + 8BE66549DC68651904B51723C3490D8C /* Pods-SuperBadges_Tests */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + DB7CAADDB1D85909E71625287D69E9BA /* Support Files */ = { + isa = PBXGroup; + children = ( + 0E334AABC3B71A9292C18248638EF87D /* Info.plist */, + D5328130F9E82E8902569B6FF06FDC46 /* SuperBadges.modulemap */, + D8CDA084170BB62562ACB7B320620FB8 /* SuperBadges.xcconfig */, + 56D0B98F474BAB6323E0A6FD5F613D03 /* SuperBadges-dummy.m */, + 8BB0FEF4B995B504B9C433EA66FCE760 /* SuperBadges-prefix.pch */, + E5FC886F67563D2B191C3F9DC8120DF9 /* SuperBadges-umbrella.h */, + ); + name = "Support Files"; + path = "Example/Pods/Target Support Files/SuperBadges"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 7AC85B18DAB0DC575CEE02152C7A79F2 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + B49C1009C41886B3AC40752C4E0F07AF /* SuperBadges-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A2D3D9169282155C93A438FB61779C24 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 1555194114AA15A1DE0D7F19C57806A6 /* Pods-SuperBadges_Tests-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 99E5D933C8314C24EF8BEE3FE95FD1A0 /* Pods-SuperBadges_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7E3209BEF977406690B7977D70CAF2B8 /* Build configuration list for PBXNativeTarget "Pods-SuperBadges_Tests" */; + buildPhases = ( + DA69C745BFE685917A1F07CFE23715E2 /* Sources */, + 4CEB75DE8EC28386B18A9F718A320AE5 /* Frameworks */, + A2D3D9169282155C93A438FB61779C24 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + D70D9D5AD7F49569BEF680F96817B00D /* PBXTargetDependency */, + ); + name = "Pods-SuperBadges_Tests"; + productName = "Pods-SuperBadges_Tests"; + productReference = ABBDDC274B7563F782288A42857D7DE1 /* Pods_SuperBadges_Tests.framework */; + productType = "com.apple.product-type.framework"; + }; + AD82D540F548B215A4FC9FDA8924AB2E /* SuperBadges */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4A8190CF9CC2E01A4BD7F647F5E9578E /* Build configuration list for PBXNativeTarget "SuperBadges" */; + buildPhases = ( + 142F88AEF7A6966A1FB1859220B20866 /* Sources */, + F562D2075D2F73C897281F6BA28577EB /* Frameworks */, + 7AC85B18DAB0DC575CEE02152C7A79F2 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SuperBadges; + productName = SuperBadges; + productReference = 59FC37031D6376ECA4E98DA23C502CE8 /* SuperBadges.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0730; + LastUpgradeCheck = 0700; + }; + buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7DB346D0F39D3F0E887471402A8071AB; + productRefGroup = 969C3CBDC088FF73DDFB75D05607E75B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 99E5D933C8314C24EF8BEE3FE95FD1A0 /* Pods-SuperBadges_Tests */, + AD82D540F548B215A4FC9FDA8924AB2E /* SuperBadges */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 142F88AEF7A6966A1FB1859220B20866 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CE399D2518FFCB6EF864D49FBBA546E8 /* SuperBadges.swift in Sources */, + 294AF7FE6CA2049A172436557C05FA77 /* SuperBadges-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DA69C745BFE685917A1F07CFE23715E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3E3E96CCAFBE1976F1B02A0054D07306 /* Pods-SuperBadges_Tests-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + D70D9D5AD7F49569BEF680F96817B00D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = SuperBadges; + target = AD82D540F548B215A4FC9FDA8924AB2E /* SuperBadges */; + targetProxy = 6B66997E63E17ABAE721EA2A7B06B265 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 102E1A002D4CBC2C443D99A35A8172E5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D8CDA084170BB62562ACB7B320620FB8 /* SuperBadges.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "Target Support Files/SuperBadges/SuperBadges-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/SuperBadges/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/SuperBadges/SuperBadges.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = SuperBadges; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 4BCA4B948256D325AD2FD80833B398F6 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D8CDA084170BB62562ACB7B320620FB8 /* SuperBadges.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREFIX_HEADER = "Target Support Files/SuperBadges/SuperBadges-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/SuperBadges/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/SuperBadges/SuperBadges.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_NAME = SuperBadges; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 3.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 6CE16FC4604BFFAF5B3CA81CB52DB631 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 26F357F1B00B5C2112DC6289277E6D66 /* Pods-SuperBadges_Tests.release.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-SuperBadges_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_SuperBadges_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_REQUIRED = NO; + COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + ONLY_ACTIVE_ARCH = YES; + PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; + STRIP_INSTALLED_PRODUCT = NO; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + B5506849BDD5A761A9463E48090D7306 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 414847192DDD4CA034110DF5560923BF /* Pods-SuperBadges_Tests.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + INFOPLIST_FILE = "Target Support Files/Pods-SuperBadges_Tests/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap"; + MTL_ENABLE_DEBUG_INFO = YES; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = Pods_SuperBadges_Tests; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, + 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4A8190CF9CC2E01A4BD7F647F5E9578E /* Build configuration list for PBXNativeTarget "SuperBadges" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4BCA4B948256D325AD2FD80833B398F6 /* Debug */, + 102E1A002D4CBC2C443D99A35A8172E5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7E3209BEF977406690B7977D70CAF2B8 /* Build configuration list for PBXNativeTarget "Pods-SuperBadges_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B5506849BDD5A761A9463E48090D7306 /* Debug */, + 6CE16FC4604BFFAF5B3CA81CB52DB631 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; +} diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.markdown b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.markdown new file mode 100644 index 0000000..18178f6 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.markdown @@ -0,0 +1,26 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## SuperBadges + +Copyright (c) 2016 odedharth + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.plist b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.plist new file mode 100644 index 0000000..94eaf34 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-acknowledgements.plist @@ -0,0 +1,58 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + Copyright (c) 2016 odedharth <odedharth@gmail.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + License + MIT + Title + SuperBadges + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-dummy.m b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-dummy.m new file mode 100644 index 0000000..58c7600 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_SuperBadges_Tests : NSObject +@end +@implementation PodsDummy_Pods_SuperBadges_Tests +@end diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-frameworks.sh b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-frameworks.sh new file mode 100755 index 0000000..a7082d3 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-frameworks.sh @@ -0,0 +1,91 @@ +#!/bin/sh +set -e + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" + +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + # use filter instead of exclude so missing patterns dont' throw errors + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identitiy + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" + /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" + fi +} + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" + stripped="" + for arch in $archs; do + if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" || exit 1 + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi +} + + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/SuperBadges/SuperBadges.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "$BUILT_PRODUCTS_DIR/SuperBadges/SuperBadges.framework" +fi diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-resources.sh b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-resources.sh new file mode 100755 index 0000000..25e9d37 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-resources.sh @@ -0,0 +1,96 @@ +#!/bin/sh +set -e + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + +RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt +> "$RESOURCES_TO_COPY" + +XCASSET_FILES=() + +case "${TARGETED_DEVICE_FAMILY}" in + 1,2) + TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" + ;; + 1) + TARGET_DEVICE_ARGS="--target-device iphone" + ;; + 2) + TARGET_DEVICE_ARGS="--target-device ipad" + ;; + *) + TARGET_DEVICE_ARGS="--target-device mac" + ;; +esac + +install_resource() +{ + if [[ "$1" = /* ]] ; then + RESOURCE_PATH="$1" + else + RESOURCE_PATH="${PODS_ROOT}/$1" + fi + if [[ ! -e "$RESOURCE_PATH" ]] ; then + cat << EOM +error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. +EOM + exit 1 + fi + case $RESOURCE_PATH in + *.storyboard) + 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}" + 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} + ;; + *.xib) + 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}" + 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} + ;; + *.framework) + echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + ;; + *.xcdatamodel) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" + ;; + *.xcdatamodeld) + echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" + xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" + ;; + *.xcmappingmodel) + echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" + xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" + ;; + *.xcassets) + ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" + XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") + ;; + *) + echo "$RESOURCE_PATH" + echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" + ;; + esac +} + +mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then + mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" + rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" +fi +rm -f "$RESOURCES_TO_COPY" + +if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] +then + # Find all other xcassets (this unfortunately includes those of path pods and other targets). + OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) + while read line; do + if [[ $line != "${PODS_ROOT}*" ]]; then + XCASSET_FILES+=("$line") + fi + done <<<"$OTHER_XCASSETS" + + 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}" +fi diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-umbrella.h b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-umbrella.h new file mode 100644 index 0000000..289d275 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests-umbrella.h @@ -0,0 +1,8 @@ +#ifdef __OBJC__ +#import +#endif + + +FOUNDATION_EXPORT double Pods_SuperBadges_TestsVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_SuperBadges_TestsVersionString[]; + diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.debug.xcconfig b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.debug.xcconfig new file mode 100644 index 0000000..2b215c2 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.debug.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +EMBEDDED_CONTENT_CONTAINS_SWIFT = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SuperBadges" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SuperBadges/SuperBadges.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "SuperBadges" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap new file mode 100644 index 0000000..8658fd0 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.modulemap @@ -0,0 +1,6 @@ +framework module Pods_SuperBadges_Tests { + umbrella header "Pods-SuperBadges_Tests-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.release.xcconfig b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.release.xcconfig new file mode 100644 index 0000000..2b215c2 --- /dev/null +++ b/Example/Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.release.xcconfig @@ -0,0 +1,11 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +EMBEDDED_CONTENT_CONTAINS_SWIFT = YES +FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SuperBadges" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' +OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SuperBadges/SuperBadges.framework/Headers" +OTHER_LDFLAGS = $(inherited) -framework "SuperBadges" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT}/Pods diff --git a/Example/Pods/Target Support Files/SuperBadges/Info.plist b/Example/Pods/Target Support Files/SuperBadges/Info.plist new file mode 100644 index 0000000..161a9d3 --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 0.1.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Example/Pods/Target Support Files/SuperBadges/SuperBadges-dummy.m b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-dummy.m new file mode 100644 index 0000000..538f9f2 --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_SuperBadges : NSObject +@end +@implementation PodsDummy_SuperBadges +@end diff --git a/Example/Pods/Target Support Files/SuperBadges/SuperBadges-prefix.pch b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-prefix.pch new file mode 100644 index 0000000..aa992a4 --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-prefix.pch @@ -0,0 +1,4 @@ +#ifdef __OBJC__ +#import +#endif + diff --git a/Example/Pods/Target Support Files/SuperBadges/SuperBadges-umbrella.h b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-umbrella.h new file mode 100644 index 0000000..11e73af --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/SuperBadges-umbrella.h @@ -0,0 +1,8 @@ +#ifdef __OBJC__ +#import +#endif + + +FOUNDATION_EXPORT double SuperBadgesVersionNumber; +FOUNDATION_EXPORT const unsigned char SuperBadgesVersionString[]; + diff --git a/Example/Pods/Target Support Files/SuperBadges/SuperBadges.modulemap b/Example/Pods/Target Support Files/SuperBadges/SuperBadges.modulemap new file mode 100644 index 0000000..8f7fe36 --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/SuperBadges.modulemap @@ -0,0 +1,6 @@ +framework module SuperBadges { + umbrella header "SuperBadges-umbrella.h" + + export * + module * { export * } +} diff --git a/Example/Pods/Target Support Files/SuperBadges/SuperBadges.xcconfig b/Example/Pods/Target Support Files/SuperBadges/SuperBadges.xcconfig new file mode 100644 index 0000000..d891dae --- /dev/null +++ b/Example/Pods/Target Support Files/SuperBadges/SuperBadges.xcconfig @@ -0,0 +1,9 @@ +CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/SuperBadges +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" +OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES diff --git a/Example/SuperBadges.xcodeproj/project.pbxproj b/Example/SuperBadges.xcodeproj/project.pbxproj index 9344abd..88f7d76 100644 --- a/Example/SuperBadges.xcodeproj/project.pbxproj +++ b/Example/SuperBadges.xcodeproj/project.pbxproj @@ -13,14 +13,14 @@ /* Begin PBXFileReference section */ 1EBA894836617871448A6BED /* Pods_SuperBadges_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SuperBadges_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 46BBCC86855696AFB3F93DC9 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + 46BBCC86855696AFB3F93DC9 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 52FBE1CDAC1C3C93473E6E45 /* Pods-SuperBadges_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SuperBadges_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.debug.xcconfig"; sourceTree = ""; }; 607FACE51AFB9204008FA782 /* SuperBadges_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SuperBadges_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; - 6E1C5EF780EFFB5F94E8B862 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; name = README.md; path = ../README.md; sourceTree = ""; }; + 6E1C5EF780EFFB5F94E8B862 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; D3B619280FC7B1C5D46894A4 /* Pods-SuperBadges_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SuperBadges_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SuperBadges_Tests/Pods-SuperBadges_Tests.release.xcconfig"; sourceTree = ""; }; - F0CBB8128B0D4BAE5DDE19AC /* SuperBadges.podspec */ = {isa = PBXFileReference; includeInIndex = 1; name = SuperBadges.podspec; path = ../SuperBadges.podspec; sourceTree = ""; }; + F0CBB8128B0D4BAE5DDE19AC /* SuperBadges.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SuperBadges.podspec; path = ../SuperBadges.podspec; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -131,11 +131,9 @@ LastUpgradeCheck = 0720; ORGANIZATIONNAME = CocoaPods; TargetAttributes = { - 607FACCF1AFB9204008FA782 = { - CreatedOnToolsVersion = 6.3.1; - }; 607FACE41AFB9204008FA782 = { CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 0820; TestTargetID = 607FACCF1AFB9204008FA782; }; }; @@ -326,6 +324,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; }; name = Debug; }; @@ -341,6 +340,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; }; name = Release; }; diff --git a/Example/SuperBadges.xcworkspace/contents.xcworkspacedata b/Example/SuperBadges.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1c167d8 --- /dev/null +++ b/Example/SuperBadges.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/Tests/Tests.swift b/Example/Tests/Tests.swift index 68b1a87..6f99ab5 100644 --- a/Example/Tests/Tests.swift +++ b/Example/Tests/Tests.swift @@ -21,7 +21,7 @@ class Tests: XCTestCase { func testPerformanceExample() { // This is an example of a performance test case. - self.measureBlock() { + self.measure() { // Put the code you want to measure the time of here. } } diff --git a/LICENSE b/LICENSE index cc86354..2939ebb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2016 odedhartg +Copyright (c) 2016 odedharth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 9c66ba7..975e140 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # SuperBadges -[![CI Status](http://img.shields.io/travis/odedhartg/SuperBadges.svg?style=flat)](https://travis-ci.org/odedhartg/SuperBadges) [![Version](https://img.shields.io/cocoapods/v/SuperBadges.svg?style=flat)](http://cocoapods.org/pods/SuperBadges) [![License](https://img.shields.io/cocoapods/l/SuperBadges.svg?style=flat)](http://cocoapods.org/pods/SuperBadges) [![Platform](https://img.shields.io/cocoapods/p/SuperBadges.svg?style=flat)](http://cocoapods.org/pods/SuperBadges) @@ -22,7 +21,7 @@ pod "SuperBadges" ## Author -odedhartg, odedharth@gmail.com +odedharth, odedharth@gmail.com ## License diff --git a/SuperBadges.podspec b/SuperBadges.podspec index 8001aac..cc7d5e4 100644 --- a/SuperBadges.podspec +++ b/SuperBadges.podspec @@ -8,8 +8,8 @@ Pod::Spec.new do |s| s.name = 'SuperBadges' - s.version = '0.1.0' - s.summary = 'A short description of SuperBadges.' + s.version = '1.0' + s.summary = 'Emoji Tab Bar button badges ✨' # This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? @@ -18,17 +18,17 @@ Pod::Spec.new do |s| # * Finally, don't worry about the indent, CocoaPods strips it! s.description = <<-DESC -TODO: Add long description of the pod here. + Add emojis and custom colored dots as badges for UITabBarContoller buttons. DESC - s.homepage = 'https://github.com//SuperBadges' - # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' + s.homepage = 'https://github.com/odedharth/SuperBadges' + s.screenshots = 'https://s23.postimg.org/zdakj47kr/Super_Bage.png' s.license = { :type => 'MIT', :file => 'LICENSE' } - s.author = { 'odedhartg' => 'odedharth@gmail.com' } - s.source = { :git => 'https://github.com//SuperBadges.git', :tag => s.version.to_s } - # s.social_media_url = 'https://twitter.com/' + s.author = { 'odedharth' => 'odedharth@gmail.com' } + s.source = { :git => 'https://github.com/odedharth/SuperBadges.git', :tag => s.version.to_s } + s.social_media_url = 'https://twitter.com/odedharth' - s.ios.deployment_target = '8.0' + s.ios.deployment_target = '10.0' s.source_files = 'SuperBadges/Classes/**/*' diff --git a/SuperBadges/Classes/ReplaceMe.swift b/SuperBadges/Classes/ReplaceMe.swift deleted file mode 100644 index e69de29..0000000 diff --git a/SuperBadges/Classes/SuperBadges.swift b/SuperBadges/Classes/SuperBadges.swift new file mode 100644 index 0000000..7d093c6 --- /dev/null +++ b/SuperBadges/Classes/SuperBadges.swift @@ -0,0 +1,46 @@ +import UIKit + +extension UITabBarController { + func addDotAtTabBarItemIndex(index: Int, radius : CGFloat = 5, color : UIColor = UIColor.red, text : String? = nil) { + let tag = index + 999 + for subview in self.tabBar.subviews { + if subview.tag == tag { + subview.removeFromSuperview() + break + } + } + let dotRadius: CGFloat = radius + let dotDiameter = dotRadius * 2 + let TabBarItemCount = CGFloat(self.tabBar.items!.count) + let HalfItemWidth = view.bounds.width / (TabBarItemCount * 2) + let imageHalfWidth: CGFloat = (self.tabBar.items![index]).selectedImage!.size.width / 2 + if text == nil { + let xOffset = HalfItemWidth * CGFloat(index * 2 + 1) + let TopMargin:CGFloat = 7 + let dot = UIView(frame: CGRect(x: xOffset + imageHalfWidth, y: TopMargin, width: dotDiameter, height: dotDiameter)) + dot.tag = tag + dot.backgroundColor = color + dot.layer.cornerRadius = dotRadius + self.tabBar.addSubview(dot) + } else { + let xOffset = HalfItemWidth * CGFloat(index * 2 + 1) - 3 + let TopMargin:CGFloat = 3 + let label = UILabel(frame: CGRect(x: xOffset + imageHalfWidth, y: TopMargin, width: dotDiameter, height: dotDiameter)) + label.tag = tag + label.numberOfLines = 1 + label.adjustsFontSizeToFitWidth = true + label.minimumScaleFactor = 0.3 + label.text = text! + self.tabBar.addSubview(label) + } + } + + func removeDotAtTabBarItemIndex(index: Int) { + let tag = index + 999 + for subview in self.tabBar.subviews { + if subview.tag == tag { + subview.removeFromSuperview() + } + } + } +}