diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2020-02-27 13:09:39 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2020-02-27 17:14:20 -0800 |
commit | 206b9bde5ed9204de6ec18c0d37495db7c30aa09 (patch) | |
tree | 0049d4d6bd9195c194c0fe96665ba72c92f00da5 /platform/darwin/src/NSBundle+MGLAdditions.h | |
parent | bd252e16a3574efd11cca57917f52e6d1b2dd0a2 (diff) | |
download | qtlocation-mapboxgl-206b9bde5ed9204de6ec18c0d37495db7c30aa09.tar.gz |
[ios, macos] Deleted iOS/macOS map SDK sources, resources, scripts
Diffstat (limited to 'platform/darwin/src/NSBundle+MGLAdditions.h')
-rw-r--r-- | platform/darwin/src/NSBundle+MGLAdditions.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/platform/darwin/src/NSBundle+MGLAdditions.h b/platform/darwin/src/NSBundle+MGLAdditions.h deleted file mode 100644 index dcafefedec..0000000000 --- a/platform/darwin/src/NSBundle+MGLAdditions.h +++ /dev/null @@ -1,45 +0,0 @@ -#import <Foundation/Foundation.h> - -#import "MGLTypes.h" - -NS_ASSUME_NONNULL_BEGIN - -// Strings in the SDK targets must be retrieved from the framework bundle rather -// than the main bundle, which is usually the application bundle. Redefining -// these macros ensures that the framework bundle’s string tables are used at -// runtime yet tools like genstrings and Xcode can still find the localizable -// string identifiers. (genstrings has an -s option that would allow us to -// define our own macros, but Xcode’s Export Localization feature lacks support -// for it.) -// -// As a consequence of this approach, this header must be included in all SDK -// files that include localizable strings. - -#undef NSLocalizedString -#define NSLocalizedString(key, comment) \ - [[NSBundle mgl_frameworkBundle] localizedStringForKey:(key) value:@"" table:nil] - -#undef NSLocalizedStringFromTable -#define NSLocalizedStringFromTable(key, tbl, comment) \ - [[NSBundle mgl_frameworkBundle] localizedStringForKey:(key) value:@"" table:(tbl)] - -#undef NSLocalizedStringWithDefaultValue -#define NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) \ - [[NSBundle mgl_frameworkBundle] localizedStringForKey:(key) value:(val) table:(tbl)] - -FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLBundleNotFoundException; - -@interface NSBundle (MGLAdditions) - -/// Returns the bundle containing the SDK’s classes and Info.plist file. -+ (instancetype)mgl_frameworkBundle; - -+ (nullable NSString *)mgl_frameworkBundleIdentifier; - -+ (nullable NSDictionary<NSString *, id> *)mgl_frameworkInfoDictionary; - -+ (nullable NSString *)mgl_applicationBundleIdentifier; - -@end - -NS_ASSUME_NONNULL_END |