diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 088aa4f..9d7dcbb 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -9,7 +9,7 @@ PODS: - FBSnapshotTestCase/SwiftSupport (2.0.7): - FBSnapshotTestCase/Core - Specta (1.0.5) - - UIDevice-Utils (0.1.0) + - UIDevice-Utils (0.1.1) DEPENDENCIES: - Expecta @@ -27,6 +27,6 @@ SPEC CHECKSUMS: Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547 Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2 - UIDevice-Utils: d7703d3acfde8e598164af0195051141b92b9ad9 + UIDevice-Utils: 1638e7b4ed4a8d353d6951eb81b26f17dd158497 COCOAPODS: 0.39.0 diff --git a/Example/Pods/Headers/Private/UIDevice-Utils/UIDevice-Hardware.h b/Example/Pods/Headers/Private/UIDevice-Utils/UIDevice-Hardware.h new file mode 120000 index 0000000..fef49b4 --- /dev/null +++ b/Example/Pods/Headers/Private/UIDevice-Utils/UIDevice-Hardware.h @@ -0,0 +1 @@ +../../../../../Pod/Classes/UIDevice-Hardware.h \ No newline at end of file diff --git a/Example/Pods/Local Podspecs/UIDevice-Utils.podspec.json b/Example/Pods/Local Podspecs/UIDevice-Utils.podspec.json index d682782..2bf4c6b 100644 --- a/Example/Pods/Local Podspecs/UIDevice-Utils.podspec.json +++ b/Example/Pods/Local Podspecs/UIDevice-Utils.podspec.json @@ -1,16 +1,16 @@ { "name": "UIDevice-Utils", - "version": "0.1.0", - "summary": "A short description of UIDevice-Utils.", - "description": "", - "homepage": "https://github.com//UIDevice-Utils", + "version": "0.1.1", + "summary": "Category on UIDevice to distinguish between platforms.", + "description": "Category to easy distinguish devices, family platform device, or device inches. Provide human-readable device names e.g. 'iPhone 6S Plus' or enums e.g. 'UIDeviceGenerationModeliPhone6SPlus'", + "homepage": "https://github.com/giuseppenucifora/UIDevice-Utils", "license": "MIT", "authors": { "Giuseppe Nucifora": "me@giuseppenucifora.com" }, "source": { - "git": "https://github.com//UIDevice-Utils.git", - "tag": "0.1.0" + "git": "https://github.com/giuseppenucifora/UIDevice-Utils.git", + "tag": "0.1.1" }, "platforms": { "ios": "7.0" diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index 088aa4f..9d7dcbb 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -9,7 +9,7 @@ PODS: - FBSnapshotTestCase/SwiftSupport (2.0.7): - FBSnapshotTestCase/Core - Specta (1.0.5) - - UIDevice-Utils (0.1.0) + - UIDevice-Utils (0.1.1) DEPENDENCIES: - Expecta @@ -27,6 +27,6 @@ SPEC CHECKSUMS: Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba FBSnapshotTestCase: 7e85180d0d141a0cf472352edda7e80d7eaeb547 Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2 - UIDevice-Utils: d7703d3acfde8e598164af0195051141b92b9ad9 + UIDevice-Utils: 1638e7b4ed4a8d353d6951eb81b26f17dd158497 COCOAPODS: 0.39.0 diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index a250abb..b164a4e 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -8,7 +8,6 @@ /* Begin PBXBuildFile section */ 00C0F7789F21F85D9DD444D35609F3A7 /* SpectaDSL.m in Sources */ = {isa = PBXBuildFile; fileRef = DACE406B2E53BE18445F22E26993E5B9 /* SpectaDSL.m */; }; - 02BCC37E185865D4C5562246A4C71491 /* UIDevice-Utils-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BA7C739EBEEA7D960063FF8B4E0890B5 /* UIDevice-Utils-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 04AA70B8D2CC3E1021DCCFEEE34C7333 /* FBSnapshotTestCase-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 46B0CBF1C26A97FB6FEFDFDB7BA71F75 /* FBSnapshotTestCase-dummy.m */; }; 078E125BAD4F86315EECD2574DCA3F35 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CF01F310BCD4F2E114A0BB3796FAA47 /* Foundation.framework */; }; 08633497048C6516EEEE5B61AF8932F7 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5089DA448F1CB0FB085C4E12AFDD53A2 /* XCTest.framework */; }; @@ -35,6 +34,7 @@ 1B0389CD88AA949B34DC7269030FEC6F /* EXPMatchers+beGreaterThanOrEqualTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 64E62B947C08376C71E07F669D636FF8 /* EXPMatchers+beGreaterThanOrEqualTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; 201BF9C605852822CA5A65ADE282A310 /* EXPMatcherHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = C22221B3B6D1F46AB81218794BF7243C /* EXPMatcherHelpers.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; 204D694B03BFF3B244A6AB73FACFFC43 /* Expecta-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A4579B877C302F516E9CEE77766372 /* Expecta-dummy.m */; }; + 2300683BC248DC13DDE27B871347E36F /* UIDevice-Hardware.m in Sources */ = {isa = PBXBuildFile; fileRef = 2E1EFA4A5C5A3BB8B30E776CD7840F06 /* UIDevice-Hardware.m */; }; 2589E797E7DCBCCB5080894C0A27D866 /* FBSnapshotTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = EDE0D6A47393B29719A2BF4340A993CE /* FBSnapshotTestCase.m */; }; 260BC7EED9289AF321A6F791964CE472 /* EXPMatchers+respondTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 158CEFBA77071AB835E435120F4CE616 /* EXPMatchers+respondTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2916A0606136A9DC67F2463AB230868B /* EXPMatchers+match.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BE7EA43918F8547CCF8A9EABF75B788 /* EXPMatchers+match.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -72,13 +72,10 @@ 66A27898E989A3FA5C15AA671C4536F0 /* EXPMatchers+beIdenticalTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 760BA7B5F09D477F128F7CD8D3AB7FF2 /* EXPMatchers+beIdenticalTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; 671AA9503523C7A2F6DCF02AE77BC839 /* UIImage+Snapshot.h in Headers */ = {isa = PBXBuildFile; fileRef = A0E1EDDA8A4867913953E0CBF82097C2 /* UIImage+Snapshot.h */; settings = {ATTRIBUTES = (Private, ); }; }; 67459AD239EF669A365519E06B45DCFE /* EXPExpect.h in Headers */ = {isa = PBXBuildFile; fileRef = 8F63B0FF272D1EB750D82F3EADA2D2CA /* EXPExpect.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 68DD7F771BF0B7D7002A590A /* UIDevice-Hardware.h in Headers */ = {isa = PBXBuildFile; fileRef = 68DD7F751BF0B7D7002A590A /* UIDevice-Hardware.h */; }; - 68DD7F781BF0B7D7002A590A /* UIDevice-Hardware.m in Sources */ = {isa = PBXBuildFile; fileRef = 68DD7F761BF0B7D7002A590A /* UIDevice-Hardware.m */; }; 69CBFF5B7699798C1340A06FBA5988D5 /* FBSnapshotTestCasePlatform.m in Sources */ = {isa = PBXBuildFile; fileRef = 18A4C7651D93EA7961A58155BBDF43CF /* FBSnapshotTestCasePlatform.m */; }; 6E1D978790705E137FDE439AA68DD3AA /* EXPFloatTuple.h in Headers */ = {isa = PBXBuildFile; fileRef = CD486E43B7465271EE4EBCB98E5DAF8D /* EXPFloatTuple.h */; settings = {ATTRIBUTES = (Public, ); }; }; 6EFC63A5CED45BB39FC79D87F2C47D6B /* EXPMatchers+beGreaterThan.h in Headers */ = {isa = PBXBuildFile; fileRef = A54AE821E3D5E7DF7DA3ED83AF9B4AF2 /* EXPMatchers+beGreaterThan.h */; settings = {ATTRIBUTES = (Public, ); }; }; 6F278423C8AE1DA47F35E374BB5B91EC /* EXPMatchers+beSupersetOf.m in Sources */ = {isa = PBXBuildFile; fileRef = C6C7CD39279BCFD392135DCF45F61F03 /* EXPMatchers+beSupersetOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; - 6F28952CD062ADAA1EB385D6BCCC5659 /* UIDevice-Utils-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D44ABFB12B1018557889D50492D0CD8F /* UIDevice-Utils-dummy.m */; }; 75399E81ACFAADD7E874BA0BD160D2F3 /* SpectaUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = FDE880572CC4AF9A3FB007D3FBAB3FC9 /* SpectaUtility.m */; }; 76CCABE79C04444450153424D7CE1DC1 /* EXPMatchers+beSupersetOf.h in Headers */ = {isa = PBXBuildFile; fileRef = 9ABA02BD58E16D9841A495FD86DF6334 /* EXPMatchers+beSupersetOf.h */; settings = {ATTRIBUTES = (Public, ); }; }; 76D337327C10A7555447B69AA1562647 /* EXPMatchers+beInstanceOf.m in Sources */ = {isa = PBXBuildFile; fileRef = 758C1F02B714A0821AE887BC00092EF6 /* EXPMatchers+beInstanceOf.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; @@ -109,6 +106,7 @@ A090E1335802D26E75D008CC54E3EBE7 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5089DA448F1CB0FB085C4E12AFDD53A2 /* XCTest.framework */; }; A1DCF9A9C12B7883BBEC2B985690A9F7 /* FBSnapshotTestCasePlatform.h in Headers */ = {isa = PBXBuildFile; fileRef = 768E0C437692539220C0D4D914229388 /* FBSnapshotTestCasePlatform.h */; settings = {ATTRIBUTES = (Public, ); }; }; A3DC83BB0E288EDF89084FFB1980185C /* SPTCompiledExample.m in Sources */ = {isa = PBXBuildFile; fileRef = C468A58BBD0142C1B15D5D1E99CD14D2 /* SPTCompiledExample.m */; }; + A59089E0699ACBB30963DB92E48854A7 /* UIDevice-Utils-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BA7C739EBEEA7D960063FF8B4E0890B5 /* UIDevice-Utils-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; AA74DDC33A9D58CB423CE35F9155E04D /* Specta.h in Headers */ = {isa = PBXBuildFile; fileRef = FB362E8DBE566CD58ABD4124535F2081 /* Specta.h */; settings = {ATTRIBUTES = (Public, ); }; }; AF1F46668D4591602887998C6E9C10AD /* EXPMatchers+beCloseTo.h in Headers */ = {isa = PBXBuildFile; fileRef = 99C6B238F553535C865A990AB217F102 /* EXPMatchers+beCloseTo.h */; settings = {ATTRIBUTES = (Public, ); }; }; AFC36A35DB6DBD37456BCEEFA2D36CEB /* SPTExampleGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = E5B05516F560C08699BF135F729DD5E4 /* SPTExampleGroup.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -128,9 +126,11 @@ CC77A00D63EF76241DA59ADE17239CA8 /* SPTSpec.h in Headers */ = {isa = PBXBuildFile; fileRef = BF701C1C8F03B74819BFFD19C9DEA426 /* SPTSpec.h */; settings = {ATTRIBUTES = (Public, ); }; }; CE3F4ECBB0BC095577D66AE50C8E604C /* EXPFloatTuple.m in Sources */ = {isa = PBXBuildFile; fileRef = 57AF203F6B98E185A822F5F0BC6DB151 /* EXPFloatTuple.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; D2E28E5A7A512DDF3CFDBDD4797A37BF /* SPTExample.h in Headers */ = {isa = PBXBuildFile; fileRef = E5970E5D763F65673B9F5F4C5D0A9D0F /* SPTExample.h */; settings = {ATTRIBUTES = (Public, ); }; }; + D3A85FBE1FC70EB0B88A41B2E5F29541 /* UIDevice-Utils-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D44ABFB12B1018557889D50492D0CD8F /* UIDevice-Utils-dummy.m */; }; D6838E42D9C50FC39B1D3006C0724E9C /* Expecta+Snapshots-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 26B782A5F5606BC64AF7B709A1D93B4E /* Expecta+Snapshots-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; D7F64744555CA8BE0EBC6BC7B03C4DF4 /* ExpectaObject+FBSnapshotTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7874ECE957DC7F80946CB43F9419C903 /* ExpectaObject+FBSnapshotTest.m */; }; D83677C54D2226C67886A525B0B46FBE /* EXPMatchers+beLessThanOrEqualTo.m in Sources */ = {isa = PBXBuildFile; fileRef = CD7582733015B7D005A247EF5856A0D6 /* EXPMatchers+beLessThanOrEqualTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; + D83F048CB9561B6DF737B300E25374F2 /* UIDevice-Hardware.h in Headers */ = {isa = PBXBuildFile; fileRef = F9B5CDA397F675B97BA15D078A432F99 /* UIDevice-Hardware.h */; settings = {ATTRIBUTES = (Public, ); }; }; D9826D759990C411D44776DFAF0705E1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CF01F310BCD4F2E114A0BB3796FAA47 /* Foundation.framework */; }; DA92B452878CE57702B5AD41415F8A1D /* Specta-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D657B34A1C94FBF176F35C1081FD8A9 /* Specta-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; DB30F82FB1BE083D9471B965FB500CA2 /* EXPMatchers+conformTo.m in Sources */ = {isa = PBXBuildFile; fileRef = 222277628576E6CB279473688BA88F01 /* EXPMatchers+conformTo.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; @@ -250,6 +250,7 @@ 2744A2542946D8DE61ED04D083BCEA56 /* FBSnapshotTestCase.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FBSnapshotTestCase.xcconfig; sourceTree = ""; }; 274B0E07010F236BE53B3B98CEC9AB62 /* FBSnapshotTestCase.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FBSnapshotTestCase.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 28980D1268BF5D8196D266D4FC2F50E4 /* EXPMatchers+beNil.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beNil.h"; path = "Expecta/Matchers/EXPMatchers+beNil.h"; sourceTree = ""; }; + 2E1EFA4A5C5A3BB8B30E776CD7840F06 /* UIDevice-Hardware.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "UIDevice-Hardware.m"; sourceTree = ""; }; 2F1E859E32D523B17CD8D94AED21A1D4 /* NSObject+Expecta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "NSObject+Expecta.h"; path = "Expecta/NSObject+Expecta.h"; sourceTree = ""; }; 2F645EBA093F9FF47932FF1D5CE54764 /* FBSnapshotTestCase-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FBSnapshotTestCase-prefix.pch"; sourceTree = ""; }; 306E137B97A38C22CEC1E6B27B33B78A /* EXPMatchers+endWith.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+endWith.h"; path = "Expecta/Matchers/EXPMatchers+endWith.h"; sourceTree = ""; }; @@ -289,8 +290,6 @@ 660ACC2F6A7CD0E4953EED9EF2E29A21 /* Pods-UIDevice-Utils_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-UIDevice-Utils_Tests.release.xcconfig"; sourceTree = ""; }; 66FBD6D9AC93874B4ADF2AB345283D25 /* UIDevice-Utils.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "UIDevice-Utils.modulemap"; sourceTree = ""; }; 6732C58C04F8341AD50DE36AEE2EBF41 /* SpectaUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SpectaUtility.h; path = Specta/Specta/SpectaUtility.h; sourceTree = ""; }; - 68DD7F751BF0B7D7002A590A /* UIDevice-Hardware.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIDevice-Hardware.h"; sourceTree = ""; }; - 68DD7F761BF0B7D7002A590A /* UIDevice-Hardware.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIDevice-Hardware.m"; sourceTree = ""; }; 69BE855C76546F434D61EAC92F2988BD /* EXPMatchers+respondTo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+respondTo.m"; path = "Expecta/Matchers/EXPMatchers+respondTo.m"; sourceTree = ""; }; 6A1F80FD765EB6D46AB2B2CDF719CFD7 /* EXPMatchers+match.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+match.m"; path = "Expecta/Matchers/EXPMatchers+match.m"; sourceTree = ""; }; 6B959D8DDAA2ED93C94CF628C922CD14 /* EXPMatchers+FBSnapshotTest.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXPMatchers+FBSnapshotTest.h"; sourceTree = ""; }; @@ -394,6 +393,7 @@ F4D72594F8CE888D5D75CAFE66A50D9C /* FBSnapshotTestCase.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FBSnapshotTestCase.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F6636C0229E54793FBCF41941077A50A /* EXPMatchers+beInstanceOf.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+beInstanceOf.h"; path = "Expecta/Matchers/EXPMatchers+beInstanceOf.h"; sourceTree = ""; }; F6ACA95F6EDBB1752AADF70C323E1E5F /* EXPMatchers+contain.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "EXPMatchers+contain.h"; path = "Expecta/Matchers/EXPMatchers+contain.h"; sourceTree = ""; }; + F9B5CDA397F675B97BA15D078A432F99 /* UIDevice-Hardware.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "UIDevice-Hardware.h"; sourceTree = ""; }; FB362E8DBE566CD58ABD4124535F2081 /* Specta.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = Specta.h; path = Specta/Specta/Specta.h; sourceTree = ""; }; FB93C123AC6F580DF978D60A8191F679 /* SpectaDSL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = SpectaDSL.h; path = Specta/Specta/SpectaDSL.h; sourceTree = ""; }; FBA78AD493C15517AB45ED930E51A1E0 /* EXPMatchers+raise.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "EXPMatchers+raise.m"; path = "Expecta/Matchers/EXPMatchers+raise.m"; sourceTree = ""; }; @@ -504,15 +504,6 @@ path = "../Target Support Files/FBSnapshotTestCase"; sourceTree = ""; }; - 28488B4CA465354A56F3E5E159F5E1DE /* Classes */ = { - isa = PBXGroup; - children = ( - 68DD7F751BF0B7D7002A590A /* UIDevice-Hardware.h */, - 68DD7F761BF0B7D7002A590A /* UIDevice-Hardware.m */, - ); - path = Classes; - sourceTree = ""; - }; 2D10E3A58DE1576CA21DF3FB7F432051 /* Support Files */ = { isa = PBXGroup; children = ( @@ -540,7 +531,7 @@ 4E42169BF828C42A337FC0DCF77F8041 /* UIDevice-Utils */ = { isa = PBXGroup; children = ( - F29EE3CA67DA10DDBA5515622A9F1E8F /* Pod */, + D56AC2BF9B7F96FA3AC9D225BA0E8EBB /* Pod */, D2C6C3B711FD7400D833A40BBE796901 /* Support Files */, ); name = "UIDevice-Utils"; @@ -700,6 +691,15 @@ name = Products; sourceTree = ""; }; + B1E1AB6006C74FFD73100C555DF8FE95 /* Classes */ = { + isa = PBXGroup; + children = ( + F9B5CDA397F675B97BA15D078A432F99 /* UIDevice-Hardware.h */, + 2E1EFA4A5C5A3BB8B30E776CD7840F06 /* UIDevice-Hardware.m */, + ); + path = Classes; + sourceTree = ""; + }; BA1F311D20F01C7F7D3FEE1487AB9592 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -788,6 +788,14 @@ path = "Expecta+Snapshots"; sourceTree = ""; }; + D56AC2BF9B7F96FA3AC9D225BA0E8EBB /* Pod */ = { + isa = PBXGroup; + children = ( + B1E1AB6006C74FFD73100C555DF8FE95 /* Classes */, + ); + path = Pod; + sourceTree = ""; + }; EC13DDF6CA2C4CAAA835ABE5DA3A731F /* Support Files */ = { isa = PBXGroup; children = ( @@ -802,14 +810,6 @@ path = "../Target Support Files/Specta"; sourceTree = ""; }; - F29EE3CA67DA10DDBA5515622A9F1E8F /* Pod */ = { - isa = PBXGroup; - children = ( - 28488B4CA465354A56F3E5E159F5E1DE /* Classes */, - ); - path = Pod; - sourceTree = ""; - }; F4013618912B558D4DF190A95A39EFD4 /* Support Files */ = { isa = PBXGroup; children = ( @@ -877,6 +877,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 558BB2C45D30377F63D71F61136E2379 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + D83F048CB9561B6DF737B300E25374F2 /* UIDevice-Hardware.h in Headers */, + A59089E0699ACBB30963DB92E48854A7 /* UIDevice-Utils-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 8A72671AE907171D5CF90179991C6096 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -955,15 +964,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - D46958FECD283F59D7DF6A5E0696E18F /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 68DD7F771BF0B7D7002A590A /* UIDevice-Hardware.h in Headers */, - 02BCC37E185865D4C5562246A4C71491 /* UIDevice-Utils-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; F11F3330C7588B6066427C7DF1E62999 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -1030,10 +1030,10 @@ isa = PBXNativeTarget; buildConfigurationList = F022156FF6E64E71FB59F62CC07A056C /* Build configuration list for PBXNativeTarget "UIDevice-Utils" */; buildPhases = ( - C0708785C297BD5E303119EECAE92737 /* Sources */, + 7E2A8D5473B648D9E7FEB6CEDD89C7FE /* Sources */, 09915E1D3FBCA5520698246640C5CEAC /* Frameworks */, 59CB6DA2D55EFB2637ADD1AF6EC87A32 /* Resources */, - D46958FECD283F59D7DF6A5E0696E18F /* Headers */, + 558BB2C45D30377F63D71F61136E2379 /* Headers */, ); buildRules = ( ); @@ -1206,6 +1206,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7E2A8D5473B648D9E7FEB6CEDD89C7FE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2300683BC248DC13DDE27B871347E36F /* UIDevice-Hardware.m in Sources */, + D3A85FBE1FC70EB0B88A41B2E5F29541 /* UIDevice-Utils-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 7F775ADE54479A2664DF0DFAE2A9B5F2 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -1266,15 +1275,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - C0708785C297BD5E303119EECAE92737 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 68DD7F781BF0B7D7002A590A /* UIDevice-Hardware.m in Sources */, - 6F28952CD062ADAA1EB385D6BCCC5659 /* UIDevice-Utils-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; DB9BA3203DA9CAD51D251AD385CBBEB7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; diff --git a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils.xcscheme b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils.xcscheme index 0411116..72602b1 100644 --- a/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils.xcscheme +++ b/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils.xcscheme @@ -14,7 +14,7 @@ buildForArchiving = "YES"> diff --git a/Example/Pods/Target Support Files/UIDevice-Utils/Info.plist b/Example/Pods/Target Support Files/UIDevice-Utils/Info.plist index 4ba5fa2..c3f6ee3 100644 --- a/Example/Pods/Target Support Files/UIDevice-Utils/Info.plist +++ b/Example/Pods/Target Support Files/UIDevice-Utils/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.1.0 + 0.1.1 CFBundleSignature ???? CFBundleVersion diff --git a/Example/Pods/Target Support Files/UIDevice-Utils/UIDevice-Utils-umbrella.h b/Example/Pods/Target Support Files/UIDevice-Utils/UIDevice-Utils-umbrella.h index 3eade13..1153cf3 100644 --- a/Example/Pods/Target Support Files/UIDevice-Utils/UIDevice-Utils-umbrella.h +++ b/Example/Pods/Target Support Files/UIDevice-Utils/UIDevice-Utils-umbrella.h @@ -1,5 +1,6 @@ #import +#import "UIDevice-Hardware.h" FOUNDATION_EXPORT double UIDevice_UtilsVersionNumber; FOUNDATION_EXPORT const unsigned char UIDevice_UtilsVersionString[]; diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist index 41520ed..169b6f7 100644 --- a/Example/Tests/Tests-Info.plist +++ b/Example/Tests/Tests-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType diff --git a/Example/UIDevice-Utils.xcodeproj/project.pbxproj b/Example/UIDevice-Utils.xcodeproj/project.pbxproj index a5ca601..68d1f11 100644 --- a/Example/UIDevice-Utils.xcodeproj/project.pbxproj +++ b/Example/UIDevice-Utils.xcodeproj/project.pbxproj @@ -13,8 +13,8 @@ 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; - 6003F59E195388D20070C39A /* UIDevice-UtisAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* UIDevice-UtisAppDelegate.m */; }; - 6003F5A7195388D20070C39A /* UIDevice-UtisViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* UIDevice-UtisViewController.m */; }; + 6003F59E195388D20070C39A /* UIDeviceUtisAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* UIDeviceUtisAppDelegate.m */; }; + 6003F5A7195388D20070C39A /* UIDeviceUtisViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* UIDeviceUtisViewController.m */; }; 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; @@ -47,10 +47,10 @@ 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 6003F59B195388D20070C39A /* UIDevice-Utils-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIDevice-Utils-Prefix.pch"; sourceTree = ""; }; - 6003F59C195388D20070C39A /* UIDevice-UtisAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIDevice-UtisAppDelegate.h"; sourceTree = ""; }; - 6003F59D195388D20070C39A /* UIDevice-UtisAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIDevice-UtisAppDelegate.m"; sourceTree = ""; }; - 6003F5A5195388D20070C39A /* UIDevice-UtisViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIDevice-UtisViewController.h"; sourceTree = ""; }; - 6003F5A6195388D20070C39A /* UIDevice-UtisViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "UIDevice-UtisViewController.m"; sourceTree = ""; }; + 6003F59C195388D20070C39A /* UIDeviceUtisAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIDeviceUtisAppDelegate.h; sourceTree = ""; }; + 6003F59D195388D20070C39A /* UIDeviceUtisAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIDeviceUtisAppDelegate.m; sourceTree = ""; }; + 6003F5A5195388D20070C39A /* UIDeviceUtisViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIDeviceUtisViewController.h; sourceTree = ""; }; + 6003F5A6195388D20070C39A /* UIDeviceUtisViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIDeviceUtisViewController.m; sourceTree = ""; }; 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 6003F5AE195388D20070C39A /* UIDevice-Utils_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UIDevice-Utils_Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; @@ -130,11 +130,11 @@ 6003F593195388D20070C39A /* Example for UIDevice-Utils */ = { isa = PBXGroup; children = ( - 6003F59C195388D20070C39A /* UIDevice-UtisAppDelegate.h */, - 6003F59D195388D20070C39A /* UIDevice-UtisAppDelegate.m */, + 6003F59C195388D20070C39A /* UIDeviceUtisAppDelegate.h */, + 6003F59D195388D20070C39A /* UIDeviceUtisAppDelegate.m */, 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, - 6003F5A5195388D20070C39A /* UIDevice-UtisViewController.h */, - 6003F5A6195388D20070C39A /* UIDevice-UtisViewController.m */, + 6003F5A5195388D20070C39A /* UIDeviceUtisViewController.h */, + 6003F5A6195388D20070C39A /* UIDeviceUtisViewController.m */, 6003F5A8195388D20070C39A /* Images.xcassets */, 6003F594195388D20070C39A /* Supporting Files */, ); @@ -244,7 +244,7 @@ isa = PBXProject; attributes = { CLASSPREFIX = "UIDevice-Utis"; - LastUpgradeCheck = 0510; + LastUpgradeCheck = 0710; ORGANIZATIONNAME = "Giuseppe Nucifora"; TargetAttributes = { 6003F5AD195388D20070C39A = { @@ -390,8 +390,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 6003F59E195388D20070C39A /* UIDevice-UtisAppDelegate.m in Sources */, - 6003F5A7195388D20070C39A /* UIDevice-UtisViewController.m in Sources */, + 6003F59E195388D20070C39A /* UIDeviceUtisAppDelegate.m in Sources */, + 6003F5A7195388D20070C39A /* UIDeviceUtisViewController.m in Sources */, 6003F59A195388D20070C39A /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -452,6 +452,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -516,6 +517,7 @@ GCC_PREFIX_HEADER = "UIDevice-Utils/UIDevice-Utils-Prefix.pch"; INFOPLIST_FILE = "UIDevice-Utils/UIDevice-Utils-Info.plist"; MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -531,6 +533,7 @@ GCC_PREFIX_HEADER = "UIDevice-Utils/UIDevice-Utils-Prefix.pch"; INFOPLIST_FILE = "UIDevice-Utils/UIDevice-Utils-Info.plist"; MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -553,6 +556,7 @@ "$(inherited)", ); INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIDevice-Utils_Example.app/UIDevice-Utils_Example"; WRAPPER_EXTENSION = xctest; @@ -572,6 +576,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; INFOPLIST_FILE = "Tests/Tests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIDevice-Utils_Example.app/UIDevice-Utils_Example"; WRAPPER_EXTENSION = xctest; diff --git a/Example/UIDevice-Utils.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils-Example.xcscheme b/Example/UIDevice-Utils.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils-Example.xcscheme index 6fd7fe4..f72f862 100644 --- a/Example/UIDevice-Utils.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils-Example.xcscheme +++ b/Example/UIDevice-Utils.xcodeproj/xcshareddata/xcschemes/UIDevice-Utils-Example.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -48,15 +48,18 @@ ReferencedContainer = "container:UIDevice-Utils.xcodeproj"> + + @@ -72,10 +75,10 @@ diff --git a/Example/UIDevice-Utils/Main.storyboard b/Example/UIDevice-Utils/Main.storyboard index a0ce542..4afb7bf 100644 --- a/Example/UIDevice-Utils/Main.storyboard +++ b/Example/UIDevice-Utils/Main.storyboard @@ -1,14 +1,14 @@ - + - + - + - + @@ -16,6 +16,7 @@ + diff --git a/Example/UIDevice-Utils/UIDevice-Utils-Info.plist b/Example/UIDevice-Utils/UIDevice-Utils-Info.plist index 18ebeec..6d3dcbd 100644 --- a/Example/UIDevice-Utils/UIDevice-Utils-Info.plist +++ b/Example/UIDevice-Utils/UIDevice-Utils-Info.plist @@ -9,7 +9,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.1.1 + 0.1.2 CFBundleSignature ???? CFBundleVersion - 0.1.1 + 0.1.2 LSRequiresIPhoneOS UIMainStoryboardFile diff --git a/Example/UIDevice-Utils/UIDevice-UtisViewController.m b/Example/UIDevice-Utils/UIDevice-UtisViewController.m deleted file mode 100644 index 7940323..0000000 --- a/Example/UIDevice-Utils/UIDevice-UtisViewController.m +++ /dev/null @@ -1,29 +0,0 @@ -// -// UIDevice-UtisViewController.m -// UIDevice-Utils -// -// Created by Giuseppe Nucifora on 11/09/2015. -// Copyright (c) 2015 Giuseppe Nucifora. All rights reserved. -// - -#import "UIDevice-UtisViewController.h" - -@interface UIDevice-UtisViewController () - -@end - -@implementation UIDevice-UtisViewController - -- (void)viewDidLoad -{ - [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. -} - -- (void)didReceiveMemoryWarning -{ - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -@end diff --git a/Example/UIDevice-Utils/UIDevice-UtisAppDelegate.h b/Example/UIDevice-Utils/UIDeviceUtisAppDelegate.h similarity index 66% rename from Example/UIDevice-Utils/UIDevice-UtisAppDelegate.h rename to Example/UIDevice-Utils/UIDeviceUtisAppDelegate.h index abdf560..d61706d 100644 --- a/Example/UIDevice-Utils/UIDevice-UtisAppDelegate.h +++ b/Example/UIDevice-Utils/UIDeviceUtisAppDelegate.h @@ -1,5 +1,5 @@ // -// UIDevice-UtisAppDelegate.h +// UIDeviceUtisAppDelegate.h // UIDevice-Utils // // Created by Giuseppe Nucifora on 11/09/2015. @@ -8,7 +8,7 @@ @import UIKit; -@interface UIDevice-UtisAppDelegate : UIResponder +@interface UIDeviceUtisAppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; diff --git a/Example/UIDevice-Utils/UIDevice-UtisAppDelegate.m b/Example/UIDevice-Utils/UIDeviceUtisAppDelegate.m similarity index 96% rename from Example/UIDevice-Utils/UIDevice-UtisAppDelegate.m rename to Example/UIDevice-Utils/UIDeviceUtisAppDelegate.m index 2791d83..1c40f02 100644 --- a/Example/UIDevice-Utils/UIDevice-UtisAppDelegate.m +++ b/Example/UIDevice-Utils/UIDeviceUtisAppDelegate.m @@ -6,9 +6,9 @@ // Copyright (c) 2015 Giuseppe Nucifora. All rights reserved. // -#import "UIDevice-UtisAppDelegate.h" +#import "UIDeviceUtisAppDelegate.h" -@implementation UIDevice-UtisAppDelegate +@implementation UIDeviceUtisAppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { diff --git a/Example/UIDevice-Utils/UIDevice-UtisViewController.h b/Example/UIDevice-Utils/UIDeviceUtisViewController.h similarity index 77% rename from Example/UIDevice-Utils/UIDevice-UtisViewController.h rename to Example/UIDevice-Utils/UIDeviceUtisViewController.h index 4f6174e..e255c28 100644 --- a/Example/UIDevice-Utils/UIDevice-UtisViewController.h +++ b/Example/UIDevice-Utils/UIDeviceUtisViewController.h @@ -8,6 +8,6 @@ @import UIKit; -@interface UIDevice-UtisViewController : UIViewController +@interface UIDeviceUtisViewController : UIViewController @end diff --git a/Example/UIDevice-Utils/UIDeviceUtisViewController.m b/Example/UIDevice-Utils/UIDeviceUtisViewController.m new file mode 100644 index 0000000..f8f9766 --- /dev/null +++ b/Example/UIDevice-Utils/UIDeviceUtisViewController.m @@ -0,0 +1,94 @@ +// +// UIDevice-UtisViewController.m +// UIDevice-Utils +// +// Created by Giuseppe Nucifora on 11/09/2015. +// Copyright (c) 2015 Giuseppe Nucifora. All rights reserved. +// + +#import "UIDeviceUtisViewController.h" +#import "UIDevice-Hardware.h" + +@interface UIDeviceUtisViewController () + +@end + +@implementation UIDeviceUtisViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + + switch ([[UIDevice currentDevice] deviceFamily]) { + case UIDeviceFamilyiPhone: { + NSLog(@"Device family iPhone"); + break; + } + case UIDeviceFamilyiPod: { + NSLog(@"Device family iPod"); + break; + } + case UIDeviceFamilyiPad: { + NSLog(@"Device family iPad"); + break; + } + case UIDeviceFamilyAppleTV: { + NSLog(@"Device family Apple TV"); + break; + } + case UIDeviceFamilyUnknown: { + NSLog(@"Device family unknown"); + break; + } + default: { + break; + } + } + + switch ([[UIDevice currentDevice] deviceInches]) { + case UIDeviceModelInches35: { + NSLog(@"Device inches 3.5"); + break; + } + case UIDeviceModelInches4: { + NSLog(@"Device inches 4"); + break; + } + case UIDeviceModelInches47: { + NSLog(@"Device inches 4.7"); + break; + } + case UIDeviceModelInches55: { + NSLog(@"Device inches 5.5"); + break; + } + case UIDeviceModelInches79: { + NSLog(@"Device inches 7.9"); + break; + } + case UIDeviceModelInches97: { + NSLog(@"Device inches 9.7"); + break; + } + case UIDeviceModelInches129: { + NSLog(@"Device inches 12.9"); + break; + } + case UIDeviceModelInchesUnKnown: { + NSLog(@"Device inches unknown"); + break; + } + default: { + break; + } + } +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Example/UIDevice-Utils/main.m b/Example/UIDevice-Utils/main.m index 05c2a8e..c3583f2 100644 --- a/Example/UIDevice-Utils/main.m +++ b/Example/UIDevice-Utils/main.m @@ -7,11 +7,11 @@ // @import UIKit; -#import "UIDevice-UtisAppDelegate.h" +#import "UIDeviceUtisAppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([UIDevice-UtisAppDelegate class])); + return UIApplicationMain(argc, argv, nil, NSStringFromClass([UIDeviceUtisAppDelegate class])); } } diff --git a/UIDevice-Utils.podspec b/UIDevice-Utils.podspec index 8f9be42..968f718 100644 --- a/UIDevice-Utils.podspec +++ b/UIDevice-Utils.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = "UIDevice-Utils" - s.version = "0.1.1" + s.version = "0.1.2" s.summary = "Category on UIDevice to distinguish between platforms." s.description = "Category to easy distinguish devices, family platform device, or device inches. Provide human-readable device names e.g. 'iPhone 6S Plus' or enums e.g. 'UIDeviceGenerationModeliPhone6SPlus'" s.homepage = "https://github.com/giuseppenucifora/UIDevice-Utils"