Skip to content

Commit 9256473

Browse files
committed
feat(ios): update Firebase iOS to 7.5.0, remove instance ID methods
1 parent 5903b78 commit 9256473

File tree

782 files changed

+60811
-8574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

782 files changed

+60811
-8574
lines changed

README.md

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Read the [Firebase-Core](https://github.com/hansemannn/titanium-firebase#install
2828

2929
Configure Firebase without additional parameters.
3030

31-
Returns `false` if it was already configured or if there was an error. Calling `deleteInstanceId()` can be used to re-configure it.
31+
Returns `false` if it was already configured or if there was an error.
3232

3333
##### `configure(parameters)`
3434

@@ -58,39 +58,6 @@ Or you can configure Firebase without a file by passing these parameters:
5858
| `logLevel` | `LOG_LEVEL_* [ERROR\|WARNING\|NOTICE\|INFO\|DEBUG]` | | iOS
5959
| `applicationID` | String | Analytics | Android
6060

61-
##### `fetchInstanceID(callback)` (iOS)
62-
63-
Returns a result of app instance identifier InstanceID and a Firebase Messaging scoped token.
64-
65-
The callback receives an object containing this fields:
66-
67-
| Key | Type | Description | Platform |
68-
| - | - | - | - |
69-
| `fcmToken` | String | The current FCM token | *
70-
| `error` | String | The localized error message, if set | *
71-
72-
##### `deleteInstanceId(callback)` (iOS)
73-
74-
Delete the current `instanceId` (invalidating all tokens).
75-
76-
The callback receives an object containing this fields:
77-
78-
| Key | Type | Description | Platform |
79-
| - | - | - | - |
80-
| `success` | Boolean | `true` if the deletion succeeded | *
81-
| `error` | String | The localized error message, if set | *
82-
83-
##### `deleteToken(authorizedEntity, scope, callback)` (iOS)
84-
85-
Delete the token of the provided `authorizedEntity` and `scope`. See the [Firebase docs](https://firebase.google.com/docs/reference/android/com/google/firebase/iid/FirebaseInstanceId#deleteToken(java.lang.String,%20java.lang.String)) for details.
86-
87-
The callback receives an object containing this fields:
88-
89-
| Key | Type | Description | Platform |
90-
| - | - | - | - |
91-
| `success` | Boolean | `true` if the deletion succeeded | *
92-
| `error` | String | The localized error message | *
93-
9461
## Examples
9562

9663
```js

ios/Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "7.3.0"
2-
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseProtobufBinary.json" "7.3.0"
1+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" "7.4.0"
2+
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseProtobufBinary.json" "7.5.0"

ios/Classes/FirebaseCoreModule.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,4 @@
1313

1414
- (void)setLogLevel:(NSNumber *)logLevel;
1515

16-
- (void)fetchInstanceID:(id)callback;
17-
18-
- (void)deleteInstanceId:(id)callback;
19-
20-
- (void)deleteToken:(id)arguments;
21-
2216
@end

ios/Classes/FirebaseCoreModule.m

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -104,56 +104,6 @@ - (void)setLogLevel:(NSNumber *)logLevel
104104
[[FIRConfiguration sharedInstance] setLoggerLevel:[TiUtils intValue:logLevel]];
105105
}
106106

107-
- (void)fetchInstanceID:(id)callback
108-
{
109-
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback);
110-
111-
[[FIRInstanceID instanceID] instanceIDWithHandler:^(FIRInstanceIDResult * _Nullable result, NSError * _Nullable error) {
112-
[callback call:@[@{ @"fcmToken": result.token, @"error": (error.localizedDescription) ?: [NSNull null] }] thisObject:self];
113-
}];
114-
}
115-
116-
- (void)deleteInstanceId:(id)callback
117-
{
118-
ENSURE_SINGLE_ARG_OR_NIL(callback, KrollCallback);
119-
120-
[[FIRInstanceID instanceID] deleteIDWithHandler:^(NSError *error) {
121-
if (callback != nil) {
122-
NSDictionary *dict = nil;
123-
if (error != nil) {
124-
dict = @{ @"success": @(NO), @"error": [error localizedDescription] };
125-
} else {
126-
dict = @{ @"success": @(YES) };
127-
}
128-
[callback call:@[dict] thisObject:nil];
129-
}
130-
}];
131-
}
132-
133-
- (void)deleteToken:(id)arguments
134-
{
135-
NSString *authorizedEntity;
136-
ENSURE_ARG_AT_INDEX(authorizedEntity, arguments, 0, NSString);
137-
138-
NSString *scope;
139-
ENSURE_ARG_AT_INDEX(scope, arguments, 1, NSString);
140-
141-
KrollCallback *callback;
142-
ENSURE_ARG_OR_NIL_AT_INDEX(callback, arguments, 2, KrollCallback);
143-
144-
[[FIRInstanceID instanceID] deleteTokenWithAuthorizedEntity:authorizedEntity scope:scope handler:^(NSError *error) {
145-
if (callback != nil) {
146-
NSDictionary *dict = nil;
147-
if (error != nil) {
148-
dict = @{ @"success": @(NO), @"error": [error localizedDescription] };
149-
} else {
150-
dict = @{ @"success": @(YES) };
151-
}
152-
[callback call:@[dict] thisObject:nil];
153-
}
154-
}];
155-
}
156-
157107
#pragma mark Constants
158108

159109
MAKE_SYSTEM_PROP(LOG_LEVEL_ERROR, FIRLoggerLevelError);

ios/carthage.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

ios/manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this is your module manifest and used by Titanium
33
# during compilation, packaging, distribution, etc.
44
#
5-
version: 4.0.0
5+
version: 5.0.0
66
apiversion: 2
77
architectures: arm64 x86_64
88
description: titanium-firebase-core
-32.6 KB
Binary file not shown.

ios/platform/Firebase.framework/Headers/Firebase.h

Lines changed: 0 additions & 136 deletions
This file was deleted.

ios/platform/Firebase.framework/Modules/module.modulemap

Lines changed: 0 additions & 4 deletions
This file was deleted.
-1.63 MB
Binary file not shown.

0 commit comments

Comments
 (0)