@react-native-firebase/messaging 23.8.0 → 23.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +1197 -0
  2. package/RNFBMessaging.podspec +50 -0
  3. package/android/.editorconfig +10 -0
  4. package/android/build.gradle +149 -0
  5. package/android/lint.xml +5 -0
  6. package/android/settings.gradle +1 -0
  7. package/android/src/main/AndroidManifest.xml +43 -0
  8. package/android/src/main/java/io/invertase/firebase/messaging/JsonConvert.java +127 -0
  9. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingHeadlessService.java +30 -0
  10. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingModule.java +332 -0
  11. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingPackage.java +41 -0
  12. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java +66 -0
  13. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingSerializer.java +225 -0
  14. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingService.java +37 -0
  15. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStore.java +15 -0
  16. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreHelper.java +23 -0
  17. package/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingStoreImpl.java +97 -0
  18. package/android/src/main/res/values/colors.xml +143 -0
  19. package/app.plugin.js +1 -0
  20. package/dist/commonjs/version.js +1 -1
  21. package/dist/module/version.js +1 -1
  22. package/dist/typescript/commonjs/lib/namespaced.d.ts +1 -1
  23. package/dist/typescript/commonjs/lib/version.d.ts +1 -1
  24. package/dist/typescript/module/lib/namespaced.d.ts +1 -1
  25. package/dist/typescript/module/lib/version.d.ts +1 -1
  26. package/ios/RNFBMessaging/RNFBMessaging+AppDelegate.h +54 -0
  27. package/ios/RNFBMessaging/RNFBMessaging+AppDelegate.m +251 -0
  28. package/ios/RNFBMessaging/RNFBMessaging+FIRMessagingDelegate.h +31 -0
  29. package/ios/RNFBMessaging/RNFBMessaging+FIRMessagingDelegate.m +70 -0
  30. package/ios/RNFBMessaging/RNFBMessaging+NSNotificationCenter.h +29 -0
  31. package/ios/RNFBMessaging/RNFBMessaging+NSNotificationCenter.m +173 -0
  32. package/ios/RNFBMessaging/RNFBMessaging+UNUserNotificationCenter.h +37 -0
  33. package/ios/RNFBMessaging/RNFBMessaging+UNUserNotificationCenter.m +185 -0
  34. package/ios/RNFBMessaging/RNFBMessagingModule.h +26 -0
  35. package/ios/RNFBMessaging/RNFBMessagingModule.m +431 -0
  36. package/ios/RNFBMessaging/RNFBMessagingSerializer.h +32 -0
  37. package/ios/RNFBMessaging/RNFBMessagingSerializer.m +235 -0
  38. package/ios/RNFBMessaging.xcodeproj/project.pbxproj +384 -0
  39. package/ios/RNFBMessaging.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
  40. package/lib/version.ts +1 -1
  41. package/package.json +5 -15
  42. package/plugin/build/android/index.d.ts +2 -0
  43. package/plugin/build/android/index.js +5 -0
  44. package/plugin/build/android/setupFirebaseNotifationIcon.d.ts +8 -0
  45. package/plugin/build/android/setupFirebaseNotifationIcon.js +62 -0
  46. package/plugin/build/index.d.ts +3 -0
  47. package/plugin/build/index.js +16 -0
  48. package/plugin/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,235 @@
1
+ /**
2
+ * Copyright (c) 2016-present Invertase Limited & Contributors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this library except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ */
17
+
18
+ #import "RNFBMessagingSerializer.h"
19
+ #import <React/RCTConvert.h>
20
+
21
+ @implementation RNFBMessagingSerializer
22
+
23
+ + (NSData *)APNSTokenDataFromNSString:(NSString *)token {
24
+ NSString *string = [token lowercaseString];
25
+ NSMutableData *data = [NSMutableData new];
26
+ unsigned char whole_byte;
27
+ char byte_chars[3] = {'\0', '\0', '\0'};
28
+ NSUInteger i = 0;
29
+ NSUInteger length = string.length;
30
+ while (i < length - 1) {
31
+ char c = [string characterAtIndex:i++];
32
+ if (c < '0' || (c > '9' && c < 'a') || c > 'f') continue;
33
+ byte_chars[0] = c;
34
+ byte_chars[1] = [string characterAtIndex:i++];
35
+ whole_byte = strtol(byte_chars, NULL, 16);
36
+ [data appendBytes:&whole_byte length:1];
37
+ }
38
+ return data;
39
+ }
40
+
41
+ + (NSString *)APNSTokenFromNSData:(NSData *)tokenData {
42
+ const char *data = [tokenData bytes];
43
+
44
+ NSMutableString *token = [NSMutableString string];
45
+ for (NSInteger i = 0; i < tokenData.length; i++) {
46
+ [token appendFormat:@"%02.2hhX", data[i]];
47
+ }
48
+
49
+ return [token copy];
50
+ }
51
+
52
+ + (NSDictionary *)notificationToDict:(UNNotification *)notification {
53
+ return [self remoteMessageUserInfoToDict:notification.request.content.userInfo];
54
+ }
55
+
56
+ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {
57
+ NSMutableDictionary *message = [[NSMutableDictionary alloc] init];
58
+ NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
59
+ NSMutableDictionary *notification = [[NSMutableDictionary alloc] init];
60
+ NSMutableDictionary *notificationIOS = [[NSMutableDictionary alloc] init];
61
+
62
+ // message.data
63
+ for (id key in userInfo) {
64
+ // message.messageId
65
+ if ([key isEqualToString:@"gcm.message_id"] || [key isEqualToString:@"google.message_id"] ||
66
+ [key isEqualToString:@"message_id"]) {
67
+ message[@"messageId"] = userInfo[key];
68
+ continue;
69
+ }
70
+
71
+ // message.messageType
72
+ if ([key isEqualToString:@"message_type"]) {
73
+ message[@"messageType"] = userInfo[key];
74
+ continue;
75
+ }
76
+
77
+ // message.collapseKey
78
+ if ([key isEqualToString:@"collapse_key"]) {
79
+ message[@"collapseKey"] = userInfo[key];
80
+ continue;
81
+ }
82
+
83
+ // message.from
84
+ if ([key isEqualToString:@"from"] || [key isEqualToString:@"google.c.sender.id"]) {
85
+ message[@"from"] = userInfo[key];
86
+ continue;
87
+ }
88
+
89
+ // message.sentTime
90
+ if ([key isEqualToString:@"google.c.a.ts"]) {
91
+ message[@"sentTime"] = userInfo[key];
92
+ continue;
93
+ }
94
+
95
+ // message.to
96
+ if ([key isEqualToString:@"to"] || [key isEqualToString:@"google.to"]) {
97
+ message[@"to"] = userInfo[key];
98
+ continue;
99
+ }
100
+
101
+ // build data dict from remaining keys but skip keys that shouldn't be included in data
102
+ if ([key isEqualToString:@"aps"] || [key hasPrefix:@"gcm."] || [key hasPrefix:@"google."]) {
103
+ continue;
104
+ }
105
+ data[key] = userInfo[key];
106
+ }
107
+ message[@"data"] = data;
108
+
109
+ if (userInfo[@"aps"] != nil) {
110
+ NSDictionary *apsDict = userInfo[@"aps"];
111
+ // message.category
112
+ if (apsDict[@"category"] != nil) {
113
+ message[@"category"] = apsDict[@"category"];
114
+ }
115
+
116
+ // message.threadId
117
+ if (apsDict[@"thread-id"] != nil) {
118
+ message[@"threadId"] = apsDict[@"thread-id"];
119
+ }
120
+
121
+ // message.contentAvailable
122
+ if (apsDict[@"content-available"] != nil) {
123
+ message[@"contentAvailable"] = @([RCTConvert BOOL:apsDict[@"content-available"]]);
124
+ }
125
+
126
+ // message.mutableContent
127
+ if (apsDict[@"mutable-content"] != nil && [apsDict[@"mutable-content"] intValue] == 1) {
128
+ message[@"mutableContent"] = @([RCTConvert BOOL:apsDict[@"mutable-content"]]);
129
+ }
130
+
131
+ // iOS only
132
+ // message.notification.ios.badge
133
+ if (apsDict[@"badge"] != nil) {
134
+ notificationIOS[@"badge"] = apsDict[@"badge"];
135
+ }
136
+
137
+ // message.notification.*
138
+ if (apsDict[@"alert"] != nil) {
139
+ // can be a string or dictionary
140
+ if ([apsDict[@"alert"] isKindOfClass:[NSString class]]) {
141
+ // message.notification.title
142
+ notification[@"title"] = apsDict[@"alert"];
143
+ } else if ([apsDict[@"alert"] isKindOfClass:[NSDictionary class]]) {
144
+ NSDictionary *apsAlertDict = apsDict[@"alert"];
145
+
146
+ // message.notification.title
147
+ if (apsAlertDict[@"title"] != nil) {
148
+ notification[@"title"] = apsAlertDict[@"title"];
149
+ }
150
+
151
+ // message.notification.titleLocKey
152
+ if (apsAlertDict[@"title-loc-key"] != nil) {
153
+ notification[@"titleLocKey"] = apsAlertDict[@"title-loc-key"];
154
+ }
155
+
156
+ // message.notification.titleLocArgs
157
+ if (apsAlertDict[@"title-loc-args"] != nil) {
158
+ notification[@"titleLocArgs"] = apsAlertDict[@"title-loc-args"];
159
+ }
160
+
161
+ // message.notification.body
162
+ if (apsAlertDict[@"body"] != nil) {
163
+ notification[@"body"] = apsAlertDict[@"body"];
164
+ }
165
+
166
+ // message.notification.bodyLocKey
167
+ if (apsAlertDict[@"loc-key"] != nil) {
168
+ notification[@"bodyLocKey"] = apsAlertDict[@"loc-key"];
169
+ }
170
+
171
+ // message.notification.bodyLocArgs
172
+ if (apsAlertDict[@"loc-args"] != nil) {
173
+ notification[@"bodyLocArgs"] = apsAlertDict[@"loc-args"];
174
+ }
175
+
176
+ // iOS only
177
+ // message.notification.ios.subtitle
178
+ if (apsAlertDict[@"subtitle"] != nil) {
179
+ notificationIOS[@"subtitle"] = apsAlertDict[@"subtitle"];
180
+ }
181
+
182
+ // iOS only
183
+ // message.notification.ios.subtitleLocKey
184
+ if (apsAlertDict[@"subtitle-loc-key"] != nil) {
185
+ notificationIOS[@"subtitleLocKey"] = apsAlertDict[@"subtitle-loc-key"];
186
+ }
187
+
188
+ // iOS only
189
+ // message.notification.ios.subtitleLocArgs
190
+ if (apsAlertDict[@"subtitle-loc-args"] != nil) {
191
+ notificationIOS[@"subtitleLocArgs"] = apsAlertDict[@"subtitle-loc-args"];
192
+ }
193
+ }
194
+ }
195
+
196
+ // message.notification.ios.sound
197
+ if (apsDict[@"sound"] != nil) {
198
+ if ([apsDict[@"sound"] isKindOfClass:[NSString class]]) {
199
+ // message.notification.ios.sound
200
+ notification[@"sound"] = apsDict[@"sound"];
201
+ } else if ([apsDict[@"sound"] isKindOfClass:[NSDictionary class]]) {
202
+ NSDictionary *apsSoundDict = apsDict[@"sound"];
203
+ NSMutableDictionary *notificationIOSSound = [[NSMutableDictionary alloc] init];
204
+
205
+ // message.notification.ios.sound.name String
206
+ if (apsSoundDict[@"name"] != nil) {
207
+ notificationIOSSound[@"name"] = apsSoundDict[@"name"];
208
+ }
209
+
210
+ // message.notification.ios.sound.critical Boolean
211
+ if (apsSoundDict[@"critical"] != nil) {
212
+ notificationIOSSound[@"critical"] = @([RCTConvert BOOL:apsSoundDict[@"critical"]]);
213
+ }
214
+
215
+ // message.notification.ios.sound.volume Number
216
+ if (apsSoundDict[@"volume"] != nil) {
217
+ notificationIOSSound[@"volume"] = apsSoundDict[@"volume"];
218
+ }
219
+
220
+ // message.notification.ios.sound
221
+ notificationIOS[@"sound"] = notificationIOSSound;
222
+ }
223
+ }
224
+ }
225
+ if ([notificationIOS count] > 0) {
226
+ notification[@"ios"] = notificationIOS;
227
+ }
228
+ if ([notification count] > 0) {
229
+ message[@"notification"] = notification;
230
+ }
231
+
232
+ return message;
233
+ }
234
+
235
+ @end
@@ -0,0 +1,384 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 48;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 2744B98621F45429004F8E3F /* RNFBMessagingModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 2744B98521F45429004F8E3F /* RNFBMessagingModule.m */; };
11
+ 27F24640242AA29F0098906C /* RNFBMessaging+UNUserNotificationCenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F2463F242AA29E0098906C /* RNFBMessaging+UNUserNotificationCenter.m */; };
12
+ 27F24643242AA2EE0098906C /* RNFBMessaging+AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F24642242AA2EE0098906C /* RNFBMessaging+AppDelegate.m */; };
13
+ 27F24646242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F24645242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.m */; };
14
+ 27F2464D242AA7330098906C /* RNFBMessaging+NSNotificationCenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F2464C242AA7330098906C /* RNFBMessaging+NSNotificationCenter.m */; };
15
+ 37D60F7424E647BF00E44930 /* RNFBMessaging+UNNotificationServiceExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 37D60F7324E647BF00E44930 /* RNFBMessaging+UNNotificationServiceExtension.m */; };
16
+ DA446E5222CA48690066A0A3 /* RNFBMessagingSerializer.m in Sources */ = {isa = PBXBuildFile; fileRef = DA446E5122CA48690066A0A3 /* RNFBMessagingSerializer.m */; };
17
+ /* End PBXBuildFile section */
18
+
19
+ /* Begin PBXCopyFilesBuildPhase section */
20
+ 2744B98021F45429004F8E3F /* CopyFiles */ = {
21
+ isa = PBXCopyFilesBuildPhase;
22
+ buildActionMask = 2147483647;
23
+ dstPath = "";
24
+ dstSubfolderSpec = 16;
25
+ files = (
26
+ );
27
+ runOnlyForDeploymentPostprocessing = 0;
28
+ };
29
+ /* End PBXCopyFilesBuildPhase section */
30
+
31
+ /* Begin PBXFileReference section */
32
+ 2744B98221F45429004F8E3F /* libRNFBMessaging.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFBMessaging.a; sourceTree = BUILT_PRODUCTS_DIR; };
33
+ 2744B98421F45429004F8E3F /* RNFBMessagingModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBMessagingModule.h; path = RNFBMessaging/RNFBMessagingModule.h; sourceTree = SOURCE_ROOT; };
34
+ 2744B98521F45429004F8E3F /* RNFBMessagingModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBMessagingModule.m; path = RNFBMessaging/RNFBMessagingModule.m; sourceTree = SOURCE_ROOT; };
35
+ 27F2463E242AA29E0098906C /* RNFBMessaging+UNUserNotificationCenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNFBMessaging+UNUserNotificationCenter.h"; sourceTree = "<group>"; };
36
+ 27F2463F242AA29E0098906C /* RNFBMessaging+UNUserNotificationCenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RNFBMessaging+UNUserNotificationCenter.m"; sourceTree = "<group>"; };
37
+ 27F24641242AA2EE0098906C /* RNFBMessaging+AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNFBMessaging+AppDelegate.h"; sourceTree = "<group>"; };
38
+ 27F24642242AA2EE0098906C /* RNFBMessaging+AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RNFBMessaging+AppDelegate.m"; sourceTree = "<group>"; };
39
+ 27F24644242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNFBMessaging+FIRMessagingDelegate.h"; sourceTree = "<group>"; };
40
+ 27F24645242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RNFBMessaging+FIRMessagingDelegate.m"; sourceTree = "<group>"; };
41
+ 27F2464B242AA7330098906C /* RNFBMessaging+NSNotificationCenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNFBMessaging+NSNotificationCenter.h"; sourceTree = "<group>"; };
42
+ 27F2464C242AA7330098906C /* RNFBMessaging+NSNotificationCenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RNFBMessaging+NSNotificationCenter.m"; sourceTree = "<group>"; };
43
+ 37D60F7124E6465300E44930 /* RNFBMessaging+UNNotificationServiceExtension.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNFBMessaging+UNNotificationServiceExtension.h"; sourceTree = "<group>"; };
44
+ 37D60F7324E647BF00E44930 /* RNFBMessaging+UNNotificationServiceExtension.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RNFBMessaging+UNNotificationServiceExtension.m"; sourceTree = "<group>"; };
45
+ DA446E5022CA485C0066A0A3 /* RNFBMessagingSerializer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNFBMessagingSerializer.h; sourceTree = "<group>"; };
46
+ DA446E5122CA48690066A0A3 /* RNFBMessagingSerializer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBMessagingSerializer.m; sourceTree = "<group>"; };
47
+ /* End PBXFileReference section */
48
+
49
+ /* Begin PBXFrameworksBuildPhase section */
50
+ 2744B97F21F45429004F8E3F /* Frameworks */ = {
51
+ isa = PBXFrameworksBuildPhase;
52
+ buildActionMask = 2147483647;
53
+ files = (
54
+ );
55
+ runOnlyForDeploymentPostprocessing = 0;
56
+ };
57
+ /* End PBXFrameworksBuildPhase section */
58
+
59
+ /* Begin PBXGroup section */
60
+ 2744B97521F452B8004F8E3F /* Products */ = {
61
+ isa = PBXGroup;
62
+ children = (
63
+ 2744B98221F45429004F8E3F /* libRNFBMessaging.a */,
64
+ );
65
+ name = Products;
66
+ sourceTree = "<group>";
67
+ };
68
+ 2744B98321F45429004F8E3F /* RNFBMessaging */ = {
69
+ isa = PBXGroup;
70
+ children = (
71
+ 37D60F7324E647BF00E44930 /* RNFBMessaging+UNNotificationServiceExtension.m */,
72
+ 37D60F7124E6465300E44930 /* RNFBMessaging+UNNotificationServiceExtension.h */,
73
+ 2744B98421F45429004F8E3F /* RNFBMessagingModule.h */,
74
+ 2744B98521F45429004F8E3F /* RNFBMessagingModule.m */,
75
+ DA446E5022CA485C0066A0A3 /* RNFBMessagingSerializer.h */,
76
+ DA446E5122CA48690066A0A3 /* RNFBMessagingSerializer.m */,
77
+ 27F2463E242AA29E0098906C /* RNFBMessaging+UNUserNotificationCenter.h */,
78
+ 27F2463F242AA29E0098906C /* RNFBMessaging+UNUserNotificationCenter.m */,
79
+ 27F24641242AA2EE0098906C /* RNFBMessaging+AppDelegate.h */,
80
+ 27F24642242AA2EE0098906C /* RNFBMessaging+AppDelegate.m */,
81
+ 27F24644242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.h */,
82
+ 27F24645242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.m */,
83
+ 27F2464B242AA7330098906C /* RNFBMessaging+NSNotificationCenter.h */,
84
+ 27F2464C242AA7330098906C /* RNFBMessaging+NSNotificationCenter.m */,
85
+ );
86
+ path = RNFBMessaging;
87
+ sourceTree = "<group>";
88
+ };
89
+ 3323F52AAFE26B7384BE4DE3 = {
90
+ isa = PBXGroup;
91
+ children = (
92
+ 2744B98321F45429004F8E3F /* RNFBMessaging */,
93
+ 2744B97521F452B8004F8E3F /* Products */,
94
+ );
95
+ sourceTree = "<group>";
96
+ };
97
+ /* End PBXGroup section */
98
+
99
+ /* Begin PBXNativeTarget section */
100
+ 2744B98121F45429004F8E3F /* RNFBMessaging */ = {
101
+ isa = PBXNativeTarget;
102
+ buildConfigurationList = 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBMessaging" */;
103
+ buildPhases = (
104
+ 2744B97E21F45429004F8E3F /* Sources */,
105
+ 2744B97F21F45429004F8E3F /* Frameworks */,
106
+ 2744B98021F45429004F8E3F /* CopyFiles */,
107
+ );
108
+ buildRules = (
109
+ );
110
+ dependencies = (
111
+ );
112
+ name = RNFBMessaging;
113
+ productName = RNFBMessaging;
114
+ productReference = 2744B98221F45429004F8E3F /* libRNFBMessaging.a */;
115
+ productType = "com.apple.product-type.library.static";
116
+ };
117
+ /* End PBXNativeTarget section */
118
+
119
+ /* Begin PBXProject section */
120
+ 3323F95273A95DB34F55C6D7 /* Project object */ = {
121
+ isa = PBXProject;
122
+ attributes = {
123
+ CLASSPREFIX = RNFBMessaging;
124
+ LastUpgradeCheck = 1010;
125
+ ORGANIZATIONNAME = Invertase;
126
+ TargetAttributes = {
127
+ 2744B98121F45429004F8E3F = {
128
+ CreatedOnToolsVersion = 10.1;
129
+ ProvisioningStyle = Automatic;
130
+ };
131
+ };
132
+ };
133
+ buildConfigurationList = 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBMessaging" */;
134
+ compatibilityVersion = "Xcode 8.0";
135
+ developmentRegion = English;
136
+ hasScannedForEncodings = 0;
137
+ knownRegions = (
138
+ English,
139
+ en,
140
+ );
141
+ mainGroup = 3323F52AAFE26B7384BE4DE3;
142
+ productRefGroup = 2744B97521F452B8004F8E3F /* Products */;
143
+ projectDirPath = "";
144
+ projectRoot = "";
145
+ targets = (
146
+ 2744B98121F45429004F8E3F /* RNFBMessaging */,
147
+ );
148
+ };
149
+ /* End PBXProject section */
150
+
151
+ /* Begin PBXSourcesBuildPhase section */
152
+ 2744B97E21F45429004F8E3F /* Sources */ = {
153
+ isa = PBXSourcesBuildPhase;
154
+ buildActionMask = 2147483647;
155
+ files = (
156
+ 2744B98621F45429004F8E3F /* RNFBMessagingModule.m in Sources */,
157
+ 27F24643242AA2EE0098906C /* RNFBMessaging+AppDelegate.m in Sources */,
158
+ 37D60F7424E647BF00E44930 /* RNFBMessaging+UNNotificationServiceExtension.m in Sources */,
159
+ 27F24640242AA29F0098906C /* RNFBMessaging+UNUserNotificationCenter.m in Sources */,
160
+ DA446E5222CA48690066A0A3 /* RNFBMessagingSerializer.m in Sources */,
161
+ 27F2464D242AA7330098906C /* RNFBMessaging+NSNotificationCenter.m in Sources */,
162
+ 27F24646242AA30E0098906C /* RNFBMessaging+FIRMessagingDelegate.m in Sources */,
163
+ );
164
+ runOnlyForDeploymentPostprocessing = 0;
165
+ };
166
+ /* End PBXSourcesBuildPhase section */
167
+
168
+ /* Begin XCBuildConfiguration section */
169
+ 2744B98921F45429004F8E3F /* Debug */ = {
170
+ isa = XCBuildConfiguration;
171
+ buildSettings = {
172
+ ALWAYS_SEARCH_USER_PATHS = NO;
173
+ CLANG_ANALYZER_NONNULL = YES;
174
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
175
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
176
+ CLANG_CXX_LIBRARY = "libc++";
177
+ CLANG_ENABLE_MODULES = YES;
178
+ CLANG_ENABLE_OBJC_ARC = YES;
179
+ CLANG_ENABLE_OBJC_WEAK = YES;
180
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
181
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
182
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
183
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
184
+ CODE_SIGN_IDENTITY = "iPhone Developer";
185
+ CODE_SIGN_STYLE = Automatic;
186
+ COPY_PHASE_STRIP = NO;
187
+ DEBUG_INFORMATION_FORMAT = dwarf;
188
+ GCC_C_LANGUAGE_STANDARD = gnu11;
189
+ GCC_DYNAMIC_NO_PIC = NO;
190
+ GCC_OPTIMIZATION_LEVEL = 0;
191
+ GCC_PREPROCESSOR_DEFINITIONS = (
192
+ "DEBUG=1",
193
+ "$(inherited)",
194
+ );
195
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
196
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
197
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
198
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
199
+ MTL_FAST_MATH = YES;
200
+ OTHER_LDFLAGS = "-ObjC";
201
+ PRODUCT_NAME = "$(TARGET_NAME)";
202
+ SDKROOT = iphoneos;
203
+ SKIP_INSTALL = YES;
204
+ TARGETED_DEVICE_FAMILY = "1,2";
205
+ };
206
+ name = Debug;
207
+ };
208
+ 2744B98A21F45429004F8E3F /* Release */ = {
209
+ isa = XCBuildConfiguration;
210
+ buildSettings = {
211
+ ALWAYS_SEARCH_USER_PATHS = NO;
212
+ CLANG_ANALYZER_NONNULL = YES;
213
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
214
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
215
+ CLANG_CXX_LIBRARY = "libc++";
216
+ CLANG_ENABLE_MODULES = YES;
217
+ CLANG_ENABLE_OBJC_ARC = YES;
218
+ CLANG_ENABLE_OBJC_WEAK = YES;
219
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
220
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
221
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
222
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
223
+ CODE_SIGN_IDENTITY = "iPhone Developer";
224
+ CODE_SIGN_STYLE = Automatic;
225
+ COPY_PHASE_STRIP = NO;
226
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
227
+ ENABLE_NS_ASSERTIONS = NO;
228
+ GCC_C_LANGUAGE_STANDARD = gnu11;
229
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
230
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
231
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
232
+ MTL_ENABLE_DEBUG_INFO = NO;
233
+ MTL_FAST_MATH = YES;
234
+ OTHER_LDFLAGS = "-ObjC";
235
+ PRODUCT_NAME = "$(TARGET_NAME)";
236
+ SDKROOT = iphoneos;
237
+ SKIP_INSTALL = YES;
238
+ TARGETED_DEVICE_FAMILY = "1,2";
239
+ VALIDATE_PRODUCT = YES;
240
+ };
241
+ name = Release;
242
+ };
243
+ 3323F77D701E1896E6D239CF /* Release */ = {
244
+ isa = XCBuildConfiguration;
245
+ buildSettings = {
246
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
247
+ CLANG_WARN_BOOL_CONVERSION = YES;
248
+ CLANG_WARN_COMMA = YES;
249
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
250
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
251
+ CLANG_WARN_EMPTY_BODY = YES;
252
+ CLANG_WARN_ENUM_CONVERSION = YES;
253
+ CLANG_WARN_INFINITE_RECURSION = YES;
254
+ CLANG_WARN_INT_CONVERSION = YES;
255
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
256
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
257
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
258
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
259
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
260
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
261
+ CLANG_WARN_UNREACHABLE_CODE = YES;
262
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
263
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
264
+ FRAMEWORK_SEARCH_PATHS = (
265
+ "$(inherited)",
266
+ "${BUILT_PRODUCTS_DIR}/**",
267
+ "${SRCROOT}/../../../ios/Firebase/**",
268
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
269
+ "$(SRCROOT)/../../../ios/Pods/FirebaseMessaging/Frameworks",
270
+ "$(SRCROOT)/../../../tests/ios/Pods/FirebaseMessaging/Frameworks",
271
+ );
272
+ GCC_NO_COMMON_BLOCKS = YES;
273
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
274
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
275
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
276
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
277
+ GCC_WARN_UNUSED_FUNCTION = YES;
278
+ GCC_WARN_UNUSED_VARIABLE = YES;
279
+ HEADER_SEARCH_PATHS = (
280
+ "$(inherited)",
281
+ "$(REACT_SEARCH_PATH)/React/**",
282
+ "$(SRCROOT)/../../react-native/React/**",
283
+ "$(SRCROOT)/../../react-native-firebase/ios/**",
284
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
285
+ "${SRCROOT}/../../../ios/Firebase/**",
286
+ "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
287
+ "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
288
+ "$(SRCROOT)/../../../node_modules/react-native/React/**",
289
+ "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
290
+ "$(SRCROOT)/../../../packages/app/ios/**",
291
+ );
292
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
293
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
294
+ MACH_O_TYPE = staticlib;
295
+ OTHER_LDFLAGS = "$(inherited)";
296
+ PRODUCT_NAME = "$(TARGET_NAME)";
297
+ SKIP_INSTALL = YES;
298
+ };
299
+ name = Release;
300
+ };
301
+ 3323F7E33E1559A2B9826720 /* Debug */ = {
302
+ isa = XCBuildConfiguration;
303
+ buildSettings = {
304
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
305
+ CLANG_WARN_BOOL_CONVERSION = YES;
306
+ CLANG_WARN_COMMA = YES;
307
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
308
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
309
+ CLANG_WARN_EMPTY_BODY = YES;
310
+ CLANG_WARN_ENUM_CONVERSION = YES;
311
+ CLANG_WARN_INFINITE_RECURSION = YES;
312
+ CLANG_WARN_INT_CONVERSION = YES;
313
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
314
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
315
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
316
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
317
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
318
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
319
+ CLANG_WARN_UNREACHABLE_CODE = YES;
320
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
321
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
322
+ ENABLE_TESTABILITY = YES;
323
+ FRAMEWORK_SEARCH_PATHS = (
324
+ "$(inherited)",
325
+ "${BUILT_PRODUCTS_DIR}/**",
326
+ "${SRCROOT}/../../../ios/Firebase/**",
327
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
328
+ "$(SRCROOT)/../../../ios/Pods/FirebaseMessaging/Frameworks",
329
+ );
330
+ GCC_NO_COMMON_BLOCKS = YES;
331
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
332
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
333
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
334
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
335
+ GCC_WARN_UNUSED_FUNCTION = YES;
336
+ GCC_WARN_UNUSED_VARIABLE = YES;
337
+ HEADER_SEARCH_PATHS = (
338
+ "$(inherited)",
339
+ "$(REACT_SEARCH_PATH)/React/**",
340
+ "$(SRCROOT)/../../react-native/React/**",
341
+ "$(SRCROOT)/../../react-native-firebase/ios/**",
342
+ "$(FIREBASE_SEARCH_PATH)/Firebase/**",
343
+ "${SRCROOT}/../../../ios/Firebase/**",
344
+ "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
345
+ "${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
346
+ "$(SRCROOT)/../../../node_modules/react-native/React/**",
347
+ "$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
348
+ "$(SRCROOT)/../../../packages/app/ios/**",
349
+ );
350
+ IPHONEOS_DEPLOYMENT_TARGET = 10.0;
351
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
352
+ MACH_O_TYPE = staticlib;
353
+ ONLY_ACTIVE_ARCH = YES;
354
+ OTHER_LDFLAGS = "$(inherited)";
355
+ PRODUCT_NAME = "$(TARGET_NAME)";
356
+ SKIP_INSTALL = YES;
357
+ };
358
+ name = Debug;
359
+ };
360
+ /* End XCBuildConfiguration section */
361
+
362
+ /* Begin XCConfigurationList section */
363
+ 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBMessaging" */ = {
364
+ isa = XCConfigurationList;
365
+ buildConfigurations = (
366
+ 2744B98921F45429004F8E3F /* Debug */,
367
+ 2744B98A21F45429004F8E3F /* Release */,
368
+ );
369
+ defaultConfigurationIsVisible = 0;
370
+ defaultConfigurationName = Release;
371
+ };
372
+ 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBMessaging" */ = {
373
+ isa = XCConfigurationList;
374
+ buildConfigurations = (
375
+ 3323F7E33E1559A2B9826720 /* Debug */,
376
+ 3323F77D701E1896E6D239CF /* Release */,
377
+ );
378
+ defaultConfigurationIsVisible = 0;
379
+ defaultConfigurationName = Release;
380
+ };
381
+ /* End XCConfigurationList section */
382
+ };
383
+ rootObject = 3323F95273A95DB34F55C6D7 /* Project object */;
384
+ }
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>FILEHEADER</key>
6
+ <string>
7
+ /**
8
+ * Copyright (c) 2016-present Invertase Limited &amp; Contributors
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
11
+ * you may not use this library except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ *
22
+ */</string>
23
+ </dict>
24
+ </plist>
package/lib/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '23.8.0';
2
+ export const version = '23.8.2';