This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ios): use xcframework to include slices for all arch/flavor comb…
…inations (#224) * feat(ios): include xcframework vs framework * build(ios): remove .framework, add .xcframework The xcframework structure allows for all execution architectures on all execution types to be supported, vs the single arch for all types limitations of the previous framework structure Co-authored-by: Mike Hardy <github@mikehardy.net>
- Loading branch information
Showing
26 changed files
with
434 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-maccatalyst</string> | ||
<key>LibraryPath</key> | ||
<string>NotifeeCore.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>maccatalyst</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_armv7</string> | ||
<key>LibraryPath</key> | ||
<string>NotifeeCore.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>armv7</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_i386_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>NotifeeCore.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>i386</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+966 KB
ios/NotifeeCore.xcframework/ios-arm64_armv7/NotifeeCore.framework/NotifeeCore
Binary file not shown.
86 changes: 86 additions & 0 deletions
86
...e.xcframework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/Headers/NotifeeCore.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// | ||
// NotifeeCore.h | ||
// NotifeeCore | ||
// | ||
// Copyright © 2020 Invertase. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
//! Project version number for NotifeeCore. | ||
FOUNDATION_EXPORT double NotifeeCoreVersionNumber; | ||
|
||
//! Project version string for NotifeeCore. | ||
FOUNDATION_EXPORT const unsigned char NotifeeCoreVersionString[]; | ||
|
||
// Import all the public headers of your framework using statements like #import <NotifeeCore/PublicHeader.h> | ||
// #import <NotifeeCore/Example.h> | ||
// END public headers import | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
typedef void (^notifeeMethodVoidBlock)(NSError *_Nullable); | ||
|
||
typedef void (^notifeeMethodNSDictionaryBlock)(NSError *_Nullable, NSDictionary *_Nullable); | ||
|
||
typedef void (^notifeeMethodNSArrayBlock)(NSError *_Nullable, NSArray *_Nullable); | ||
|
||
typedef void (^notifeeMethodBooleanBlock)(NSError *_Nullable, BOOL); | ||
|
||
typedef void (^notifeeMethodNSIntegerBlock)(NSError *_Nullable, NSInteger); | ||
|
||
typedef NS_ENUM(NSInteger, NotifeeCoreNotificationType) { | ||
NotifeeCoreNotificationTypeAll = 0, | ||
NotifeeCoreNotificationTypeDisplayed = 1, | ||
NotifeeCoreNotificationTypeTrigger = 2 | ||
}; | ||
|
||
typedef NS_ENUM(NSInteger, NotifeeCoreEventType) { | ||
NotifeeCoreEventTypeDismissed = 0, | ||
NotifeeCoreEventTypeDelivered = 3, | ||
NotifeeCoreEventTypeTriggerNotificationCreated = 7, | ||
}; | ||
|
||
@class NotifeeCore; | ||
|
||
@protocol NotifeeCoreDelegate <NSObject> | ||
@optional | ||
- (void) didReceiveNotifeeCoreEvent:(NSDictionary *_Nonnull)event; | ||
@end | ||
|
||
@interface NotifeeCore : NSObject | ||
|
||
+ (void)setCoreDelegate:(id <NotifeeCoreDelegate>)coreDelegate; | ||
|
||
+ (void)cancelNotification:(NSString *)notificationId withNotificationType: (NSInteger)notificationType withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)cancelAllNotifications:(NSInteger)notificationType | ||
withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)displayNotification:(NSDictionary *)notification withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)createTriggerNotification:(NSDictionary *)notification withTrigger: (NSDictionary *)trigger withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getTriggerNotificationIds:(notifeeMethodNSArrayBlock)block; | ||
|
||
+ (void)requestPermission:(NSDictionary *)permissions withBlock:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)getNotificationCategories:(notifeeMethodNSArrayBlock)block; | ||
|
||
+ (void)setNotificationCategories:(NSArray<NSDictionary *> *)categories withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getNotificationSettings:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)getInitialNotification:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)setBadgeCount:(NSInteger)count withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getBadgeCount:(notifeeMethodNSIntegerBlock)block; | ||
|
||
+ (void)incrementBadgeCount:(NSInteger)incrementBy withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)decrementBadgeCount:(NSInteger)decrementBy withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Binary file added
BIN
+740 Bytes
ios/NotifeeCore.xcframework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/Info.plist
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...cframework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module NotifeeCore { | ||
umbrella header "NotifeeCore.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
Binary file added
BIN
+1.42 MB
...NotifeeCore.xcframework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/NotifeeCore
Binary file not shown.
Binary file added
BIN
+157 Bytes
...mework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file added
BIN
+12 Bytes
...ork/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/_CodeSignature/CodeRequirements
Binary file not shown.
Binary file added
BIN
+205 Bytes
...k/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/_CodeSignature/CodeRequirements-1
Binary file not shown.
132 changes: 132 additions & 0 deletions
132
...mework/ios-arm64_i386_x86_64-simulator/NotifeeCore.framework/_CodeSignature/CodeResources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>files</key> | ||
<dict> | ||
<key>Headers/NotifeeCore.h</key> | ||
<data> | ||
IriPMUbF8yGl8NwezC6oVSU1JI8= | ||
</data> | ||
<key>Info.plist</key> | ||
<data> | ||
L/jfhngEvWGkHvmQ8Phg1vZe/FM= | ||
</data> | ||
<key>Modules/module.modulemap</key> | ||
<data> | ||
MofbqSkyMhKzIThesvSW+evCWII= | ||
</data> | ||
</dict> | ||
<key>files2</key> | ||
<dict> | ||
<key>Headers/NotifeeCore.h</key> | ||
<dict> | ||
<key>hash</key> | ||
<data> | ||
IriPMUbF8yGl8NwezC6oVSU1JI8= | ||
</data> | ||
<key>hash2</key> | ||
<data> | ||
H4nTleBI43WtYeV33EmBdpiJp+I4ci2c+2RcBKEOzn8= | ||
</data> | ||
</dict> | ||
<key>Modules/module.modulemap</key> | ||
<dict> | ||
<key>hash</key> | ||
<data> | ||
MofbqSkyMhKzIThesvSW+evCWII= | ||
</data> | ||
<key>hash2</key> | ||
<data> | ||
L+h3g7appet4YlYpsfktwVg9oRvUvqNvmOEKc9fcWLQ= | ||
</data> | ||
</dict> | ||
</dict> | ||
<key>rules</key> | ||
<dict> | ||
<key>^.*</key> | ||
<true/> | ||
<key>^.*\.lproj/</key> | ||
<dict> | ||
<key>optional</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>1000</real> | ||
</dict> | ||
<key>^.*\.lproj/locversion.plist$</key> | ||
<dict> | ||
<key>omit</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>1100</real> | ||
</dict> | ||
<key>^Base\.lproj/</key> | ||
<dict> | ||
<key>weight</key> | ||
<real>1010</real> | ||
</dict> | ||
<key>^version.plist$</key> | ||
<true/> | ||
</dict> | ||
<key>rules2</key> | ||
<dict> | ||
<key>.*\.dSYM($|/)</key> | ||
<dict> | ||
<key>weight</key> | ||
<real>11</real> | ||
</dict> | ||
<key>^(.*/)?\.DS_Store$</key> | ||
<dict> | ||
<key>omit</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>2000</real> | ||
</dict> | ||
<key>^.*</key> | ||
<true/> | ||
<key>^.*\.lproj/</key> | ||
<dict> | ||
<key>optional</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>1000</real> | ||
</dict> | ||
<key>^.*\.lproj/locversion.plist$</key> | ||
<dict> | ||
<key>omit</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>1100</real> | ||
</dict> | ||
<key>^Base\.lproj/</key> | ||
<dict> | ||
<key>weight</key> | ||
<real>1010</real> | ||
</dict> | ||
<key>^Info\.plist$</key> | ||
<dict> | ||
<key>omit</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>20</real> | ||
</dict> | ||
<key>^PkgInfo$</key> | ||
<dict> | ||
<key>omit</key> | ||
<true/> | ||
<key>weight</key> | ||
<real>20</real> | ||
</dict> | ||
<key>^embedded\.provisionprofile$</key> | ||
<dict> | ||
<key>weight</key> | ||
<real>20</real> | ||
</dict> | ||
<key>^version\.plist$</key> | ||
<dict> | ||
<key>weight</key> | ||
<real>20</real> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
Empty file.
1 change: 1 addition & 0 deletions
1
ios/NotifeeCore.xcframework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
1 change: 1 addition & 0 deletions
1
ios/NotifeeCore.xcframework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Modules |
1 change: 1 addition & 0 deletions
1
ios/NotifeeCore.xcframework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/NotifeeCore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/NotifeeCore |
1 change: 1 addition & 0 deletions
1
ios/NotifeeCore.xcframework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Resources |
86 changes: 86 additions & 0 deletions
86
...ework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Versions/A/Headers/NotifeeCore.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// | ||
// NotifeeCore.h | ||
// NotifeeCore | ||
// | ||
// Copyright © 2020 Invertase. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
//! Project version number for NotifeeCore. | ||
FOUNDATION_EXPORT double NotifeeCoreVersionNumber; | ||
|
||
//! Project version string for NotifeeCore. | ||
FOUNDATION_EXPORT const unsigned char NotifeeCoreVersionString[]; | ||
|
||
// Import all the public headers of your framework using statements like #import <NotifeeCore/PublicHeader.h> | ||
// #import <NotifeeCore/Example.h> | ||
// END public headers import | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
typedef void (^notifeeMethodVoidBlock)(NSError *_Nullable); | ||
|
||
typedef void (^notifeeMethodNSDictionaryBlock)(NSError *_Nullable, NSDictionary *_Nullable); | ||
|
||
typedef void (^notifeeMethodNSArrayBlock)(NSError *_Nullable, NSArray *_Nullable); | ||
|
||
typedef void (^notifeeMethodBooleanBlock)(NSError *_Nullable, BOOL); | ||
|
||
typedef void (^notifeeMethodNSIntegerBlock)(NSError *_Nullable, NSInteger); | ||
|
||
typedef NS_ENUM(NSInteger, NotifeeCoreNotificationType) { | ||
NotifeeCoreNotificationTypeAll = 0, | ||
NotifeeCoreNotificationTypeDisplayed = 1, | ||
NotifeeCoreNotificationTypeTrigger = 2 | ||
}; | ||
|
||
typedef NS_ENUM(NSInteger, NotifeeCoreEventType) { | ||
NotifeeCoreEventTypeDismissed = 0, | ||
NotifeeCoreEventTypeDelivered = 3, | ||
NotifeeCoreEventTypeTriggerNotificationCreated = 7, | ||
}; | ||
|
||
@class NotifeeCore; | ||
|
||
@protocol NotifeeCoreDelegate <NSObject> | ||
@optional | ||
- (void) didReceiveNotifeeCoreEvent:(NSDictionary *_Nonnull)event; | ||
@end | ||
|
||
@interface NotifeeCore : NSObject | ||
|
||
+ (void)setCoreDelegate:(id <NotifeeCoreDelegate>)coreDelegate; | ||
|
||
+ (void)cancelNotification:(NSString *)notificationId withNotificationType: (NSInteger)notificationType withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)cancelAllNotifications:(NSInteger)notificationType | ||
withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)displayNotification:(NSDictionary *)notification withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)createTriggerNotification:(NSDictionary *)notification withTrigger: (NSDictionary *)trigger withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getTriggerNotificationIds:(notifeeMethodNSArrayBlock)block; | ||
|
||
+ (void)requestPermission:(NSDictionary *)permissions withBlock:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)getNotificationCategories:(notifeeMethodNSArrayBlock)block; | ||
|
||
+ (void)setNotificationCategories:(NSArray<NSDictionary *> *)categories withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getNotificationSettings:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)getInitialNotification:(notifeeMethodNSDictionaryBlock)block; | ||
|
||
+ (void)setBadgeCount:(NSInteger)count withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)getBadgeCount:(notifeeMethodNSIntegerBlock)block; | ||
|
||
+ (void)incrementBadgeCount:(NSInteger)incrementBy withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
+ (void)decrementBadgeCount:(NSInteger)decrementBy withBlock:(notifeeMethodVoidBlock)block; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
6 changes: 6 additions & 0 deletions
6
...rk/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Versions/A/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module NotifeeCore { | ||
umbrella header "NotifeeCore.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
Binary file added
BIN
+971 KB
...ore.xcframework/ios-arm64_x86_64-maccatalyst/NotifeeCore.framework/Versions/A/NotifeeCore
Binary file not shown.
Oops, something went wrong.