diff --git a/.swift-version b/.swift-version index 9f55b2c..819e07a 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -3.0 +5.0 diff --git a/Device.podspec b/Device.podspec index 233f3a5..b074783 100644 --- a/Device.podspec +++ b/Device.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Device" - s.version = "3.1.2" + s.version = "4.0.0" s.summary = "Light weight tool for detecting the current device and screen size written in swift." s.description = "Swift library for detecting the running device's model and screen size. With the newer  devices, developers have more work to do. This library simplifies their job by allowing them to get information about the running device and easily target the ones they want." diff --git a/Device.xcodeproj/project.pbxproj b/Device.xcodeproj/project.pbxproj index b639b2a..259c365 100644 --- a/Device.xcodeproj/project.pbxproj +++ b/Device.xcodeproj/project.pbxproj @@ -359,6 +359,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -516,7 +517,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -538,7 +539,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -598,6 +599,7 @@ PRODUCT_BUNDLE_IDENTIFIER = Ekhoo.Device; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -647,6 +649,7 @@ PRODUCT_BUNDLE_IDENTIFIER = Ekhoo.Device; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 5.0; VALIDATE_PRODUCT = YES; }; name = Release; @@ -670,7 +673,7 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -693,7 +696,7 @@ PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; @@ -718,7 +721,7 @@ PRODUCT_NAME = Device; SDKROOT = macosx; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -744,7 +747,7 @@ PRODUCT_NAME = Device; SDKROOT = macosx; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -764,7 +767,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "Ekhoo.Device.Example-macOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -782,7 +785,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "Ekhoo.Device.Example-macOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/README.md b/README.md index f6adb1a..a5ad63d 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,9 @@ func myFunc() { } ``` +## Extensions +* [DeviceLayout](https://github.com/cruisediary/DeviceLayout) - 📱AutoLayout can be set differently for each device + # Author Lucas Ortis: - me@lucas-ortis.com