summaryrefslogtreecommitdiff
path: root/platform/darwin/src/NSBundle+MGLAdditions.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/NSBundle+MGLAdditions.h')
-rw-r--r--platform/darwin/src/NSBundle+MGLAdditions.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/darwin/src/NSBundle+MGLAdditions.h b/platform/darwin/src/NSBundle+MGLAdditions.h
new file mode 100644
index 0000000000..52ef7fbfa7
--- /dev/null
+++ b/platform/darwin/src/NSBundle+MGLAdditions.h
@@ -0,0 +1,24 @@
+#import <Foundation/Foundation.h>
+
+#import "MGLTypes.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+void mgl_linkBundleCategory();
+
+@interface NSBundle (MGLAdditions)
+
+/// Returns the bundle containing the SDK’s classes and Info.plist file.
++ (instancetype)mgl_frameworkBundle;
+
++ (nullable NSString *)mgl_frameworkBundleIdentifier;
+
++ (nullable NS_DICTIONARY_OF(NSString *, id) *)mgl_frameworkInfoDictionary;
+
+/// The relative path to the directory containing the SDK’s resource files, or
+/// `nil` if the files are located directly within the bundle’s root directory.
+@property (readonly, copy, nullable) NSString *mgl_resourcesDirectory;
+
+@end
+
+NS_ASSUME_NONNULL_END