Skip to content

Commit

Permalink
add support for watchOS and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cci-rmirza committed Nov 5, 2020
1 parent bde2cdd commit 3f7004c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
28 changes: 18 additions & 10 deletions Localize_Swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
343A6DF01D152E5A0081AA37 /* Localize_Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = 3433F2501C518B38003AE34D /* Localize_Swift.h */; settings = {ATTRIBUTES = (Public, ); }; };
344169471C67539300B93D28 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 344169461C67539300B93D28 /* Foundation.framework */; };
345D5906251F83910088CBEC /* IBDesignable+Localize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 345D5905251F83910088CBEC /* IBDesignable+Localize.swift */; };
3DD357EA2554132D00064D7A /* IBDesignable+Localize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 345D5905251F83910088CBEC /* IBDesignable+Localize.swift */; };
3DD357F02554133400064D7A /* IBDesignable+Localize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 345D5905251F83910088CBEC /* IBDesignable+Localize.swift */; };
3DD357F62554133500064D7A /* IBDesignable+Localize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 345D5905251F83910088CBEC /* IBDesignable+Localize.swift */; };
68973D661DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
68973D671DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
68973D681DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
Expand Down Expand Up @@ -392,6 +395,7 @@
buildActionMask = 2147483647;
files = (
68973D6C1DA7AB140076F08A /* String+LocalizedBundleTableName.swift in Sources */,
3DD357F62554133500064D7A /* IBDesignable+Localize.swift in Sources */,
68973D671DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */,
343A6DD11D1529560081AA37 /* Localize.swift in Sources */,
68A520051DA6D5FD00F43D9E /* String+LocalizeTableName.swift in Sources */,
Expand All @@ -403,6 +407,7 @@
buildActionMask = 2147483647;
files = (
68973D6D1DA7AB140076F08A /* String+LocalizedBundleTableName.swift in Sources */,
3DD357F02554133400064D7A /* IBDesignable+Localize.swift in Sources */,
68973D681DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */,
343A6DDF1D152B1B0081AA37 /* Localize.swift in Sources */,
68A520061DA6D5FD00F43D9E /* String+LocalizeTableName.swift in Sources */,
Expand All @@ -414,6 +419,7 @@
buildActionMask = 2147483647;
files = (
68973D6E1DA7AB140076F08A /* String+LocalizedBundleTableName.swift in Sources */,
3DD357EA2554132D00064D7A /* IBDesignable+Localize.swift in Sources */,
68973D691DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */,
343A6DEC1D152E5A0081AA37 /* Localize.swift in Sources */,
68A520071DA6D5FD00F43D9E /* String+LocalizeTableName.swift in Sources */,
Expand Down Expand Up @@ -480,7 +486,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -535,7 +541,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -559,7 +565,8 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Localize_Swift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
"IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 13.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.roymarmelstein.Localize-Swift";
Expand All @@ -582,7 +589,8 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Localize_Swift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
"IPHONEOS_DEPLOYMENT_TARGET[sdk=macosx*]" = 13.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.roymarmelstein.Localize-Swift";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -626,7 +634,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.14;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.roymarmelstein.Localize-Swift";
PRODUCT_NAME = Localize_Swift;
Expand All @@ -650,7 +658,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.14;
PRODUCT_BUNDLE_IDENTIFIER = "com.roymarmelstein.Localize-Swift";
PRODUCT_NAME = Localize_Swift;
SDKROOT = macosx;
Expand Down Expand Up @@ -681,7 +689,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
TVOS_DEPLOYMENT_TARGET = 13.0;
};
name = Debug;
};
Expand All @@ -705,7 +713,7 @@
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.0;
TVOS_DEPLOYMENT_TARGET = 13.0;
};
name = Release;
};
Expand All @@ -731,7 +739,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
WATCHOS_DEPLOYMENT_TARGET = 6.0;
};
name = Debug;
};
Expand All @@ -755,7 +763,7 @@
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
WATCHOS_DEPLOYMENT_TARGET = 6.0;
};
name = Release;
};
Expand Down
4 changes: 3 additions & 1 deletion Sources/UI/IBDesignable+Localize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
//

import Foundation
import UIKit

// MARK: - UILabel localize Key extention for language in story board

#if !os(watchOS) && !os(macOS)
import UIKit
@IBDesignable public extension UILabel {
@IBInspectable var localizeKey: String? {
set {
Expand Down Expand Up @@ -90,3 +91,4 @@ import UIKit
}
}
}
#endif

0 comments on commit 3f7004c

Please sign in to comment.