diff --git a/README.md b/README.md index d7e9eb4..21d52ff 100755 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ SDVersion supports both iOS and Mac OS. Browse through the implementation of eac NSLog(@"You own an iPad Air 2 🌀!"); // Check for device screen size - if ([SDVersion deviceSize] == iPhone4inch) + if ([SDVersion deviceSize] == Screen4inch) NSLog(@"Your screen is 4 inches"); // Get device name @@ -96,13 +96,20 @@ CocoaPods is a dependency manager for Objective-C, which automates and simplifie iPadAir2 iPadMini3 + iPodTouch1Gen + iPodTouch2Gen + iPodTouch3Gen + iPodTouch4Gen + iPodTouch5Gen + iPodTouch6Gen + Simulator ### Targetable screen sizes - iPhone3Dot5inch - iPhone4inch - iPhone4Dot7inch - iPhone5Dot5inch + Screen3Dot5inch + Screen4inch + Screen4Dot7inch + Screen5Dot5inch ### Available iOS Version Finder methods iOSVersionEqualTo(@"v") //E.g: iOSVersionEqualTo(@"8.4.1") diff --git a/SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.pbxproj b/SDVersion-Demo/SDVersion.xcodeproj/project.pbxproj similarity index 77% rename from SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.pbxproj rename to SDVersion-Demo/SDVersion.xcodeproj/project.pbxproj index ff70196..6721b43 100755 --- a/SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.pbxproj +++ b/SDVersion-Demo/SDVersion.xcodeproj/project.pbxproj @@ -7,15 +7,15 @@ objects = { /* Begin PBXBuildFile section */ - 9A95DA991B853CFF00F96CB5 /* SDiPhoneVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A95DA951B853CFF00F96CB5 /* SDiPhoneVersion.m */; }; + 9A6DB5E91B8E82D00065EA11 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */; }; + 9A6DB5EA1B8E82D00065EA11 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */; }; + 9A6DB5EB1B8E82D00065EA11 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */; }; + 9A6DB5EC1B8E82D00065EA11 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */; }; + 9A6DB5EE1B8E82D00065EA11 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E61B8E82D00065EA11 /* main.m */; }; + 9A6DB5EF1B8E82D00065EA11 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5E81B8E82D00065EA11 /* ViewController.m */; }; + 9A6DB5F41B8E82E00065EA11 /* SDiOSVersionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */; }; + 9A95DA991B853CFF00F96CB5 /* SDiOSVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */; }; 9A95DA9C1B853CFF00F96CB5 /* SDMacVersion.m in Sources */ = {isa = PBXBuildFile; fileRef = 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */; }; - 9AA6624E19BFABFC0055042F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AA6624D19BFABFC0055042F /* main.m */; }; - 9AA6625119BFABFC0055042F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AA6625019BFABFC0055042F /* AppDelegate.m */; }; - 9AA6625419BFABFC0055042F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AA6625319BFABFC0055042F /* ViewController.m */; }; - 9AA6625719BFABFC0055042F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9AA6625519BFABFC0055042F /* Main.storyboard */; }; - 9AA6625919BFABFC0055042F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9AA6625819BFABFC0055042F /* Images.xcassets */; }; - 9AA6625C19BFABFC0055042F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9AA6625A19BFABFC0055042F /* LaunchScreen.xib */; }; - 9AA6626819BFABFC0055042F /* SDiPhoneVersionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AA6626719BFABFC0055042F /* SDiPhoneVersionTests.m */; }; E2D9751E1B8265DF00675936 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D9751D1B8265DF00675936 /* AppDelegate.m */; }; E2D975201B8265DF00675936 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D9751F1B8265DF00675936 /* main.m */; }; E2D975231B8265DF00675936 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D975221B8265DF00675936 /* ViewController.m */; }; @@ -30,7 +30,7 @@ containerPortal = 9AA6624019BFABFC0055042F /* Project object */; proxyType = 1; remoteGlobalIDString = 9AA6624719BFABFC0055042F; - remoteInfo = SDiPhoneVersion; + remoteInfo = SDiOSVersion; }; E2D9752E1B8265DF00675936 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -42,24 +42,24 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 9A95DA941B853CFF00F96CB5 /* SDiPhoneVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDiPhoneVersion.h; sourceTree = ""; }; - 9A95DA951B853CFF00F96CB5 /* SDiPhoneVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDiPhoneVersion.m; sourceTree = ""; }; + 9A6DB5DE1B8E82D00065EA11 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9A6DB5E11B8E82D00065EA11 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 9A6DB5E31B8E82D00065EA11 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 9A6DB5E51B8E82D00065EA11 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9A6DB5E61B8E82D00065EA11 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 9A6DB5E71B8E82D00065EA11 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 9A6DB5E81B8E82D00065EA11 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 9A6DB5F11B8E82E00065EA11 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDiOSVersionTests.m; sourceTree = ""; }; + 9A95DA941B853CFF00F96CB5 /* SDiOSVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDiOSVersion.h; sourceTree = ""; }; + 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDiOSVersion.m; sourceTree = ""; }; 9A95DA961B853CFF00F96CB5 /* SDMacVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDMacVersion.h; sourceTree = ""; }; 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDMacVersion.m; sourceTree = ""; }; 9A95DA981B853CFF00F96CB5 /* SDVersion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDVersion.h; sourceTree = ""; }; - 9AA6624819BFABFC0055042F /* SDiPhoneVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDiPhoneVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 9AA6624C19BFABFC0055042F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9AA6624D19BFABFC0055042F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 9AA6624F19BFABFC0055042F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 9AA6625019BFABFC0055042F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 9AA6625219BFABFC0055042F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 9AA6625319BFABFC0055042F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 9AA6625619BFABFC0055042F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 9AA6625819BFABFC0055042F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 9AA6625B19BFABFC0055042F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 9AA6626119BFABFC0055042F /* SDiPhoneVersionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDiPhoneVersionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 9AA6626619BFABFC0055042F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9AA6626719BFABFC0055042F /* SDiPhoneVersionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDiPhoneVersionTests.m; sourceTree = ""; }; + 9AA6624819BFABFC0055042F /* SDiOSVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDiOSVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDiOSVersionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; E2D975181B8265DF00675936 /* SDMacVersion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDMacVersion.app; sourceTree = BUILT_PRODUCTS_DIR; }; E2D9751B1B8265DF00675936 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; E2D9751C1B8265DF00675936 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -106,12 +106,37 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 9A6DB5DD1B8E82D00065EA11 /* SDiOSVersion */ = { + isa = PBXGroup; + children = ( + 9A6DB5DE1B8E82D00065EA11 /* AppDelegate.h */, + 9A6DB5DF1B8E82D00065EA11 /* AppDelegate.m */, + 9A6DB5E71B8E82D00065EA11 /* ViewController.h */, + 9A6DB5E81B8E82D00065EA11 /* ViewController.m */, + 9A6DB5E41B8E82D00065EA11 /* Images.xcassets */, + 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */, + 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */, + 9A6DB5E61B8E82D00065EA11 /* main.m */, + 9A6DB5E51B8E82D00065EA11 /* Info.plist */, + ); + path = SDiOSVersion; + sourceTree = ""; + }; + 9A6DB5F01B8E82E00065EA11 /* SDiOSVersionTests */ = { + isa = PBXGroup; + children = ( + 9A6DB5F11B8E82E00065EA11 /* Info.plist */, + 9A6DB5F21B8E82E00065EA11 /* SDiOSVersionTests.m */, + ); + path = SDiOSVersionTests; + sourceTree = ""; + }; 9A95DA931B853CFF00F96CB5 /* SDVersion */ = { isa = PBXGroup; children = ( 9A95DA981B853CFF00F96CB5 /* SDVersion.h */, - 9A95DA941B853CFF00F96CB5 /* SDiPhoneVersion.h */, - 9A95DA951B853CFF00F96CB5 /* SDiPhoneVersion.m */, + 9A95DA941B853CFF00F96CB5 /* SDiOSVersion.h */, + 9A95DA951B853CFF00F96CB5 /* SDiOSVersion.m */, 9A95DA961B853CFF00F96CB5 /* SDMacVersion.h */, 9A95DA971B853CFF00F96CB5 /* SDMacVersion.m */, ); @@ -122,8 +147,8 @@ isa = PBXGroup; children = ( 9A95DA931B853CFF00F96CB5 /* SDVersion */, - 9AA6624A19BFABFC0055042F /* SDiPhoneVersion */, - 9AA6626419BFABFC0055042F /* SDiPhoneVersionTests */, + 9A6DB5DD1B8E82D00065EA11 /* SDiOSVersion */, + 9A6DB5F01B8E82E00065EA11 /* SDiOSVersionTests */, E2D975191B8265DF00675936 /* SDMacVersion */, E2D975301B8265DF00675936 /* SDMacVersionTests */, 9AA6624919BFABFC0055042F /* Products */, @@ -133,55 +158,14 @@ 9AA6624919BFABFC0055042F /* Products */ = { isa = PBXGroup; children = ( - 9AA6624819BFABFC0055042F /* SDiPhoneVersion.app */, - 9AA6626119BFABFC0055042F /* SDiPhoneVersionTests.xctest */, + 9AA6624819BFABFC0055042F /* SDiOSVersion.app */, + 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */, E2D975181B8265DF00675936 /* SDMacVersion.app */, E2D9752D1B8265DF00675936 /* SDMacVersionTests.xctest */, ); name = Products; sourceTree = ""; }; - 9AA6624A19BFABFC0055042F /* SDiPhoneVersion */ = { - isa = PBXGroup; - children = ( - 9AA6624F19BFABFC0055042F /* AppDelegate.h */, - 9AA6625019BFABFC0055042F /* AppDelegate.m */, - 9AA6625219BFABFC0055042F /* ViewController.h */, - 9AA6625319BFABFC0055042F /* ViewController.m */, - 9AA6625519BFABFC0055042F /* Main.storyboard */, - 9AA6625819BFABFC0055042F /* Images.xcassets */, - 9AA6624B19BFABFC0055042F /* Supporting Files */, - ); - path = SDiPhoneVersion; - sourceTree = ""; - }; - 9AA6624B19BFABFC0055042F /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 9AA6625A19BFABFC0055042F /* LaunchScreen.xib */, - 9AA6624C19BFABFC0055042F /* Info.plist */, - 9AA6624D19BFABFC0055042F /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 9AA6626419BFABFC0055042F /* SDiPhoneVersionTests */ = { - isa = PBXGroup; - children = ( - 9AA6626719BFABFC0055042F /* SDiPhoneVersionTests.m */, - 9AA6626519BFABFC0055042F /* Supporting Files */, - ); - path = SDiPhoneVersionTests; - sourceTree = ""; - }; - 9AA6626519BFABFC0055042F /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 9AA6626619BFABFC0055042F /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; E2D975191B8265DF00675936 /* SDMacVersion */ = { isa = PBXGroup; children = ( @@ -225,9 +209,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 9AA6624719BFABFC0055042F /* SDiPhoneVersion */ = { + 9AA6624719BFABFC0055042F /* SDiOSVersion */ = { isa = PBXNativeTarget; - buildConfigurationList = 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiPhoneVersion" */; + buildConfigurationList = 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersion" */; buildPhases = ( 9AA6624419BFABFC0055042F /* Sources */, 9AA6624519BFABFC0055042F /* Frameworks */, @@ -237,14 +221,14 @@ ); dependencies = ( ); - name = SDiPhoneVersion; - productName = SDiPhoneVersion; - productReference = 9AA6624819BFABFC0055042F /* SDiPhoneVersion.app */; + name = SDiOSVersion; + productName = SDiOSVersion; + productReference = 9AA6624819BFABFC0055042F /* SDiOSVersion.app */; productType = "com.apple.product-type.application"; }; - 9AA6626019BFABFC0055042F /* SDiPhoneVersionTests */ = { + 9AA6626019BFABFC0055042F /* SDiOSVersionTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiPhoneVersionTests" */; + buildConfigurationList = 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersionTests" */; buildPhases = ( 9AA6625D19BFABFC0055042F /* Sources */, 9AA6625E19BFABFC0055042F /* Frameworks */, @@ -255,9 +239,9 @@ dependencies = ( 9AA6626319BFABFC0055042F /* PBXTargetDependency */, ); - name = SDiPhoneVersionTests; - productName = SDiPhoneVersionTests; - productReference = 9AA6626119BFABFC0055042F /* SDiPhoneVersionTests.xctest */; + name = SDiOSVersionTests; + productName = SDiOSVersionTests; + productReference = 9AA6626119BFABFC0055042F /* SDiOSVersionTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; E2D975171B8265DF00675936 /* SDMacVersion */ = { @@ -301,7 +285,7 @@ 9AA6624019BFABFC0055042F /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0600; + LastUpgradeCheck = 0640; ORGANIZATIONNAME = "Sebastian Dobrincu"; TargetAttributes = { 9AA6624719BFABFC0055042F = { @@ -320,7 +304,7 @@ }; }; }; - buildConfigurationList = 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDiPhoneVersion" */; + buildConfigurationList = 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDVersion" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -333,8 +317,8 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 9AA6624719BFABFC0055042F /* SDiPhoneVersion */, - 9AA6626019BFABFC0055042F /* SDiPhoneVersionTests */, + 9AA6624719BFABFC0055042F /* SDiOSVersion */, + 9AA6626019BFABFC0055042F /* SDiOSVersionTests */, E2D975171B8265DF00675936 /* SDMacVersion */, E2D9752C1B8265DF00675936 /* SDMacVersionTests */, ); @@ -346,9 +330,9 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9AA6625719BFABFC0055042F /* Main.storyboard in Resources */, - 9AA6625C19BFABFC0055042F /* LaunchScreen.xib in Resources */, - 9AA6625919BFABFC0055042F /* Images.xcassets in Resources */, + 9A6DB5EC1B8E82D00065EA11 /* Images.xcassets in Resources */, + 9A6DB5EA1B8E82D00065EA11 /* LaunchScreen.xib in Resources */, + 9A6DB5EB1B8E82D00065EA11 /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -382,10 +366,10 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9A95DA991B853CFF00F96CB5 /* SDiPhoneVersion.m in Sources */, - 9AA6625419BFABFC0055042F /* ViewController.m in Sources */, - 9AA6625119BFABFC0055042F /* AppDelegate.m in Sources */, - 9AA6624E19BFABFC0055042F /* main.m in Sources */, + 9A6DB5E91B8E82D00065EA11 /* AppDelegate.m in Sources */, + 9A6DB5EE1B8E82D00065EA11 /* main.m in Sources */, + 9A6DB5EF1B8E82D00065EA11 /* ViewController.m in Sources */, + 9A95DA991B853CFF00F96CB5 /* SDiOSVersion.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -393,7 +377,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 9AA6626819BFABFC0055042F /* SDiPhoneVersionTests.m in Sources */, + 9A6DB5F41B8E82E00065EA11 /* SDiOSVersionTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -421,7 +405,7 @@ /* Begin PBXTargetDependency section */ 9AA6626319BFABFC0055042F /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 9AA6624719BFABFC0055042F /* SDiPhoneVersion */; + target = 9AA6624719BFABFC0055042F /* SDiOSVersion */; targetProxy = 9AA6626219BFABFC0055042F /* PBXContainerItemProxy */; }; E2D9752F1B8265DF00675936 /* PBXTargetDependency */ = { @@ -432,20 +416,20 @@ /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ - 9AA6625519BFABFC0055042F /* Main.storyboard */ = { + 9A6DB5E01B8E82D00065EA11 /* LaunchScreen.xib */ = { isa = PBXVariantGroup; children = ( - 9AA6625619BFABFC0055042F /* Base */, + 9A6DB5E11B8E82D00065EA11 /* Base */, ); - name = Main.storyboard; + name = LaunchScreen.xib; sourceTree = ""; }; - 9AA6625A19BFABFC0055042F /* LaunchScreen.xib */ = { + 9A6DB5E21B8E82D00065EA11 /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( - 9AA6625B19BFABFC0055042F /* Base */, + 9A6DB5E31B8E82D00065EA11 /* Base */, ); - name = LaunchScreen.xib; + name = Main.storyboard; sourceTree = ""; }; E2D975261B8265DF00675936 /* Main.storyboard */ = { @@ -545,7 +529,7 @@ CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; IBSC_WARNINGS = YES; - INFOPLIST_FILE = SDiPhoneVersion/Info.plist; + INFOPLIST_FILE = SDiOSVersion/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -560,7 +544,7 @@ ASSETCATALOG_WARNINGS = NO; CODE_SIGN_IDENTITY = ""; IBSC_WARNINGS = YES; - INFOPLIST_FILE = SDiPhoneVersion/Info.plist; + INFOPLIST_FILE = SDiOSVersion/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -580,10 +564,10 @@ "DEBUG=1", "$(inherited)", ); - INFOPLIST_FILE = SDiPhoneVersionTests/Info.plist; + INFOPLIST_FILE = SDiOSVersionTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiPhoneVersion.app/SDiPhoneVersion"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiOSVersion.app/SDiOSVersion"; }; name = Debug; }; @@ -595,10 +579,10 @@ "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", ); - INFOPLIST_FILE = SDiPhoneVersionTests/Info.plist; + INFOPLIST_FILE = SDiOSVersionTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiPhoneVersion.app/SDiPhoneVersion"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDiOSVersion.app/SDiOSVersion"; }; name = Release; }; @@ -687,7 +671,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDiPhoneVersion" */ = { + 9AA6624319BFABFC0055042F /* Build configuration list for PBXProject "SDVersion" */ = { isa = XCConfigurationList; buildConfigurations = ( 9AA6626919BFABFC0055042F /* Debug */, @@ -696,7 +680,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiPhoneVersion" */ = { + 9AA6626B19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersion" */ = { isa = XCConfigurationList; buildConfigurations = ( 9AA6626C19BFABFC0055042F /* Debug */, @@ -705,7 +689,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiPhoneVersionTests" */ = { + 9AA6626E19BFABFC0055042F /* Build configuration list for PBXNativeTarget "SDiOSVersionTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 9AA6626F19BFABFC0055042F /* Debug */, diff --git a/SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SDVersion-Demo/SDVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 57% rename from SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to SDVersion-Demo/SDVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 3efdd15..2d88a31 100755 --- a/SDVersion-Demo/SDiPhoneVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/SDVersion-Demo/SDVersion.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:/Users/Seby/SDVersion/SDVersion-Demo/SDVersion.xcodeproj"> diff --git a/SDVersion-Demo/SDVersion/SDVersion.h b/SDVersion-Demo/SDVersion/SDVersion.h index cafa921..f31fc5b 100755 --- a/SDVersion-Demo/SDVersion/SDVersion.h +++ b/SDVersion-Demo/SDVersion/SDVersion.h @@ -9,8 +9,8 @@ #define SDVersion_h #if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) - #import "SDiPhoneVersion.h" - #define SDVersion SDiPhoneVersion + #import "SDiOSVersion.h" + #define SDVersion SDiOSVersion #else #import "SDMacVersion.h" #define SDVersion SDMacVersion diff --git a/SDVersion-Demo/SDVersion/SDiPhoneVersion.h b/SDVersion-Demo/SDVersion/SDiOSVersion.h similarity index 62% rename from SDVersion-Demo/SDVersion/SDiPhoneVersion.h rename to SDVersion-Demo/SDVersion/SDiOSVersion.h index f4b0b4b..eadd7ca 100755 --- a/SDVersion-Demo/SDVersion/SDiPhoneVersion.h +++ b/SDVersion-Demo/SDVersion/SDiOSVersion.h @@ -1,5 +1,5 @@ // -// SDiPhoneVersion.h +// SDiOSVersion.h // SDVersion // // Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. @@ -10,10 +10,10 @@ #import #import -#define stringFromDeviceVersion(v) [@{@(3):@"iPhone 4", @(4):@"iPhone 4S", @(5):@"iPhone 5", @(6):@"iPhone 5C", @(7):@"iPhone 5S", @(8):@"iPhone 6", @(9): @"iPhone 6 Plus", @(10):@"iPad 1", @(11):@"iPad 2", @(12):@"iPad Mini", @(13):@"iPad 3", @(14):@"iPad 4", @(15):@"iPad Air", @(16):@"iPad Mini 2", @(17):@"iPad Air 2", @(18):@"iPad Mini 3", @(0):@"Simulator"} objectForKey:[NSNumber numberWithInteger:v]] +#define stringFromDeviceVersion(v) [@{@(3):@"iPhone 4", @(4):@"iPhone 4S", @(5):@"iPhone 5", @(6):@"iPhone 5C", @(7):@"iPhone 5S", @(8):@"iPhone 6", @(9): @"iPhone 6 Plus", @(10):@"iPad 1", @(11):@"iPad 2", @(12):@"iPad Mini", @(13):@"iPad 3", @(14):@"iPad 4", @(15):@"iPad Air", @(16):@"iPad Mini 2", @(17):@"iPad Air 2", @(18):@"iPad Mini 3", @(19):@"iPod Touch 1st Gen", @(20):@"iPod Touch 2nd Gen", @(21):@"iPod Touch 3rd Gen", @(22):@"iPod Touch 4th Gen", @(23):@"iPod Touch 5th Gen", @(24):@"iPod Touch 6th Gen", @(0):@"Simulator"} objectForKey:[NSNumber numberWithInteger:v]] #define stringFromDeviceSize(v) [@{@(0):@"Unknown Size", @(1):@"3.5 inch", @(2):@"4 inch", @(3):@"4.7 inch", @(4):@"5.5 inch"} objectForKey:[NSNumber numberWithInteger:v]] -@interface SDiPhoneVersion : NSObject +@interface SDiOSVersion : NSObject #define iOSVersionEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) #define iOSVersionGreaterThan(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) @@ -22,32 +22,40 @@ #define iOSVersionLessThanOrEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) typedef NS_ENUM(NSInteger, DeviceVersion){ - iPhone4 = 3, - iPhone4S = 4, - iPhone5 = 5, - iPhone5C = 6, - iPhone5S = 7, - iPhone6 = 8, - iPhone6Plus = 9, - - iPad1 = 10, - iPad2 = 11, - iPadMini = 12, - iPad3 = 13, - iPad4 = 14, - iPadAir = 15, - iPadMini2 = 16, - iPadAir2 = 17, - iPadMini3 = 18, - Simulator = 0 + iPhone4 = 3, + iPhone4S = 4, + iPhone5 = 5, + iPhone5C = 6, + iPhone5S = 7, + iPhone6 = 8, + iPhone6Plus = 9, + + iPad1 = 10, + iPad2 = 11, + iPadMini = 12, + iPad3 = 13, + iPad4 = 14, + iPadAir = 15, + iPadMini2 = 16, + iPadAir2 = 17, + iPadMini3 = 18, + + iPodTouch1Gen = 19, + iPodTouch2Gen = 20, + iPodTouch3Gen = 21, + iPodTouch4Gen = 22, + iPodTouch5Gen = 23, + iPodTouch6Gen = 24, + + Simulator = 0 }; typedef NS_ENUM(NSInteger, DeviceSize){ - UnknownSize = 0, - iPhone3Dot5inch = 1, - iPhone4inch = 2, - iPhone4Dot7inch = 3, - iPhone5Dot5inch = 4 + UnknownSize = 0, + Screen3Dot5inch = 1, + Screen4inch = 2, + Screen4Dot7inch = 3, + Screen5Dot5inch = 4 }; +(DeviceVersion)deviceVersion; diff --git a/SDVersion-Demo/SDVersion/SDiPhoneVersion.m b/SDVersion-Demo/SDVersion/SDiOSVersion.m similarity index 85% rename from SDVersion-Demo/SDVersion/SDiPhoneVersion.m rename to SDVersion-Demo/SDVersion/SDiOSVersion.m index 71be8fb..31642a0 100755 --- a/SDVersion-Demo/SDVersion/SDiPhoneVersion.m +++ b/SDVersion-Demo/SDVersion/SDiOSVersion.m @@ -1,13 +1,13 @@ // -// SDiPhoneVersion.m +// SDiOSVersion.m // SDVersion // -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // -#import "SDiPhoneVersion.h" +#import "SDiOSVersion.h" -@implementation SDiPhoneVersion +@implementation SDiOSVersion +(NSDictionary*)deviceNamesByCode { @@ -61,7 +61,14 @@ +(NSDictionary*)deviceNamesByCode { @"iPad5,3" :[NSNumber numberWithInteger:iPadAir2], @"iPad5,4" :[NSNumber numberWithInteger:iPadAir2], - + //iPods + @"iPod1,1" :[NSNumber numberWithInteger:iPodTouch1Gen], + @"iPod2,1" :[NSNumber numberWithInteger:iPodTouch2Gen], + @"iPod3,1" :[NSNumber numberWithInteger:iPodTouch3Gen], + @"iPod4,1" :[NSNumber numberWithInteger:iPodTouch4Gen], + @"iPod5,1" :[NSNumber numberWithInteger:iPodTouch5Gen], + @"iPod7,1" :[NSNumber numberWithInteger:iPodTouch6Gen] + }; }); @@ -82,7 +89,7 @@ +(DeviceVersion)deviceVersion { +(DeviceSize)deviceSize { CGFloat screenHeight = 0; - + if (iOSVersionGreaterThan(@"8")) { UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; @@ -95,14 +102,14 @@ +(DeviceSize)deviceSize { screenHeight = [[UIScreen mainScreen] bounds].size.height; if (screenHeight == 480) - return iPhone3Dot5inch; + return Screen3Dot5inch; else if(screenHeight == 568) - return iPhone4inch; + return Screen4inch; else if(screenHeight == 667){ - if ([UIScreen mainScreen].scale > 2.9) return iPhone5Dot5inch; - return iPhone4Dot7inch; + if ([UIScreen mainScreen].scale > 2.9) return Screen5Dot5inch; + return Screen4Dot7inch; }else if(screenHeight == 736) - return iPhone5Dot5inch; + return Screen5Dot5inch; else return UnknownSize; } diff --git a/SDVersion-Demo/SDiPhoneVersion/AppDelegate.h b/SDVersion-Demo/SDiOSVersion/AppDelegate.h similarity index 56% rename from SDVersion-Demo/SDiPhoneVersion/AppDelegate.h rename to SDVersion-Demo/SDiOSVersion/AppDelegate.h index b409ec3..51751b1 100755 --- a/SDVersion-Demo/SDiPhoneVersion/AppDelegate.h +++ b/SDVersion-Demo/SDiOSVersion/AppDelegate.h @@ -1,9 +1,8 @@ // // AppDelegate.h -// SDiPhoneVersion +// SDiOSVersion // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import diff --git a/SDVersion-Demo/SDiPhoneVersion/AppDelegate.m b/SDVersion-Demo/SDiOSVersion/AppDelegate.m similarity index 93% rename from SDVersion-Demo/SDiPhoneVersion/AppDelegate.m rename to SDVersion-Demo/SDiOSVersion/AppDelegate.m index 7d1e096..e145893 100755 --- a/SDVersion-Demo/SDiPhoneVersion/AppDelegate.m +++ b/SDVersion-Demo/SDiOSVersion/AppDelegate.m @@ -1,9 +1,8 @@ // // AppDelegate.m -// SDiPhoneVersion +// SDiOSVersion // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import "AppDelegate.h" diff --git a/SDVersion-Demo/SDiPhoneVersion/Base.lproj/LaunchScreen.xib b/SDVersion-Demo/SDiOSVersion/Base.lproj/LaunchScreen.xib similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Base.lproj/LaunchScreen.xib rename to SDVersion-Demo/SDiOSVersion/Base.lproj/LaunchScreen.xib diff --git a/SDVersion-Demo/SDiPhoneVersion/Base.lproj/Main.storyboard b/SDVersion-Demo/SDiOSVersion/Base.lproj/Main.storyboard similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Base.lproj/Main.storyboard rename to SDVersion-Demo/SDiOSVersion/Base.lproj/Main.storyboard diff --git a/SDVersion-Demo/SDiPhoneVersion/Images.xcassets/AppIcon.appiconset/Contents.json b/SDVersion-Demo/SDiOSVersion/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Images.xcassets/AppIcon.appiconset/Contents.json rename to SDVersion-Demo/SDiOSVersion/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/SDVersion-Demo/SDiPhoneVersion/Images.xcassets/logo.imageset/Contents.json b/SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/Contents.json similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Images.xcassets/logo.imageset/Contents.json rename to SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/Contents.json diff --git a/SDVersion-Demo/SDiPhoneVersion/Images.xcassets/logo.imageset/logo.png b/SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/logo.png similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Images.xcassets/logo.imageset/logo.png rename to SDVersion-Demo/SDiOSVersion/Images.xcassets/logo.imageset/logo.png diff --git a/SDVersion-Demo/SDiPhoneVersion/Info.plist b/SDVersion-Demo/SDiOSVersion/Info.plist similarity index 100% rename from SDVersion-Demo/SDiPhoneVersion/Info.plist rename to SDVersion-Demo/SDiOSVersion/Info.plist diff --git a/SDVersion-Demo/SDiPhoneVersion/ViewController.h b/SDVersion-Demo/SDiOSVersion/ViewController.h similarity index 64% rename from SDVersion-Demo/SDiPhoneVersion/ViewController.h rename to SDVersion-Demo/SDiOSVersion/ViewController.h index 582ca08..1eae78b 100755 --- a/SDVersion-Demo/SDiPhoneVersion/ViewController.h +++ b/SDVersion-Demo/SDiOSVersion/ViewController.h @@ -1,9 +1,8 @@ // // ViewController.h -// SDiPhoneVersion +// SDiOSVersion // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import diff --git a/SDVersion-Demo/SDiPhoneVersion/ViewController.m b/SDVersion-Demo/SDiOSVersion/ViewController.m similarity index 54% rename from SDVersion-Demo/SDiPhoneVersion/ViewController.m rename to SDVersion-Demo/SDiOSVersion/ViewController.m index dd62cf5..ac19a17 100755 --- a/SDVersion-Demo/SDiPhoneVersion/ViewController.m +++ b/SDVersion-Demo/SDiOSVersion/ViewController.m @@ -1,9 +1,8 @@ // // ViewController.m -// SDiPhoneVersion +// SDiOSVersion // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import "ViewController.h" @@ -15,25 +14,27 @@ - (void)viewDidLoad { [super viewDidLoad]; // Get device name as NSString - self.iphoneVersionLabel.text = [self.iphoneVersionLabel.text stringByAppendingString:stringFromDeviceVersion([SDVersion deviceVersion])]; + self.iphoneVersionLabel.text = [self.iphoneVersionLabel.text stringByAppendingString:stringFromDeviceVersion([SDiOSVersion deviceVersion])]; // Get device size using string conversion - self.iphoneSizeLabel.text = [self.iphoneSizeLabel.text stringByAppendingString:[NSString stringWithFormat:@"%@", stringFromDeviceSize([SDVersion deviceSize])]]; + self.iphoneSizeLabel.text = [self.iphoneSizeLabel.text stringByAppendingString:[NSString stringWithFormat:@"%@", stringFromDeviceSize([SDiOSVersion deviceSize])]]; // Check for device model - if ([SDVersion deviceVersion] == iPhone6) + if ([SDiOSVersion deviceVersion] == iPhone6) NSLog(@"You got the iPhone 6. Nice!"); - else if ([SDVersion deviceVersion] == iPhone5S) + else if ([SDiOSVersion deviceVersion] == iPhone5S) NSLog(@"You got the iPhone 5S. Good device!"); + else if ([SDiOSVersion deviceVersion] == iPodTouch6Gen) + NSLog(@"The latest iPod Touch. Cool! ❄️") // Check for device screen size - if ([SDVersion deviceSize] == iPhone3Dot5inch) + if ([SDiOSVersion deviceSize] == Screen3Dot5inch) NSLog(@"Your screen is 3.5 inches"); - else if ([SDVersion deviceSize] == iPhone4inch) + else if ([SDiOSVersion deviceSize] == Screen4inch) NSLog(@"Your screen size is 4 inches"); - else if([SDVersion deviceSize] == iPhone4Dot7inch) + else if([SDiOSVersion deviceSize] == Screen4Dot7inch) NSLog(@"Your screen size is 4.7 inches"); - else if([SDVersion deviceSize] == iPhone5Dot5inch) + else if([SDiOSVersion deviceSize] == Screen5Dot5inch) NSLog(@"Your screen size is 5.5 inches"); //Check for iOS Version diff --git a/SDVersion-Demo/SDiPhoneVersion/main.m b/SDVersion-Demo/SDiOSVersion/main.m similarity index 63% rename from SDVersion-Demo/SDiPhoneVersion/main.m rename to SDVersion-Demo/SDiOSVersion/main.m index 2f4e29c..2046cf4 100755 --- a/SDVersion-Demo/SDiPhoneVersion/main.m +++ b/SDVersion-Demo/SDiOSVersion/main.m @@ -1,9 +1,8 @@ // // main.m -// SDiPhoneVersion +// SDiOSVersion // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import diff --git a/SDVersion-Demo/SDiPhoneVersionTests/Info.plist b/SDVersion-Demo/SDiOSVersionTests/Info.plist similarity index 100% rename from SDVersion-Demo/SDiPhoneVersionTests/Info.plist rename to SDVersion-Demo/SDiOSVersionTests/Info.plist diff --git a/SDVersion-Demo/SDiPhoneVersionTests/SDiPhoneVersionTests.m b/SDVersion-Demo/SDiOSVersionTests/SDiOSVersionTests.m similarity index 73% rename from SDVersion-Demo/SDiPhoneVersionTests/SDiPhoneVersionTests.m rename to SDVersion-Demo/SDiOSVersionTests/SDiOSVersionTests.m index bcc8cc3..1d05e36 100755 --- a/SDVersion-Demo/SDiPhoneVersionTests/SDiPhoneVersionTests.m +++ b/SDVersion-Demo/SDiOSVersionTests/SDiOSVersionTests.m @@ -1,19 +1,18 @@ // -// SDiPhoneVersionTests.m -// SDiPhoneVersionTests +// SDiOSVersionTests.m +// SDiOSVersionTests // -// Created by Sebastian Dobrincu on 10/09/14. -// Copyright (c) 2014 Sebastian Dobrincu. All rights reserved. +// Copyright (c) 2015 Sebastian Dobrincu. All rights reserved. // #import #import -@interface SDiPhoneVersionTests : XCTestCase +@interface SDiOSVersionTests : XCTestCase @end -@implementation SDiPhoneVersionTests +@implementation SDiOSVersionTests - (void)setUp { [super setUp]; diff --git a/SDVersion.podspec b/SDVersion.podspec index 08a3b6e..5fd66be 100755 --- a/SDVersion.podspec +++ b/SDVersion.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| # s.name = "SDVersion" - s.version = "2.1.4" + s.version = "2.2" s.summary = "Objective-C library for detecting running device model and screen size." s.homepage = "https://github.com/sebyddd/SDVersion" s.screenshots = "https://dl.dropboxusercontent.com/s/5ddx58dsex25x57/sdversion-logo.png?dl=0" @@ -28,7 +28,7 @@ Pod::Spec.new do |s| s.platform = :osx s.ios.deployment_target = '7.0' s.osx.deployment_target = '10.9' - s.ios.source_files = "SDVersion/SDiPhoneVersion/*.{h,m}" + s.ios.source_files = "SDVersion/SDiOSVersion/*.{h,m}" s.osx.source_files = "SDVersion/SDMacVersion/*.{h,m}" s.source = { :git => 'https://github.com/sebyddd/SDVersion.git', :tag => "#{s.version}" } s.source_files = "SDVersion/*.{h,m}"