Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit d4acb68

Browse files
Upgrade Firebase iOS SDK to 5.5.0 #833
1 parent 8da197c commit d4acb68

10 files changed

Lines changed: 206 additions & 240 deletions

publish/scripts/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function writePodFile(result) {
295295
}
296296
try {
297297
fs.writeFileSync(directories.ios + '/Podfile',
298-
`pod 'Firebase/Core', '~> 5.1.0'
298+
`pod 'Firebase/Core', '~> 5.5.0'
299299
pod 'Firebase/Auth'
300300
301301
# Realtime DB

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-plugin-firebase",
3-
"version": "6.4.1",
3+
"version": "6.5.0",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

src/platforms/ios/typings/objc!FirebaseAuth.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ declare const enum FIRAuthErrorCode {
292292

293293
KeychainError = 17995,
294294

295-
InternalError = 17999
295+
InternalError = 17999,
296+
297+
MalformedJWT = 18000
296298
}
297299

298300
declare var FIRAuthErrorDomain: string;

src/platforms/ios/typings/objc!FirebaseCore.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ declare class FIRApp extends NSObject {
3030

3131
static new(): FIRApp; // inherited from NSObject
3232

33+
dataCollectionDefaultEnabled: boolean;
34+
3335
readonly name: string;
3436

3537
readonly options: FIROptions;

src/platforms/ios/typings/objc!FirebaseFirestore.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ declare class FIRDocumentReference extends NSObject {
8080

8181
setDataMergeCompletion(documentData: NSDictionary<string, any>, merge: boolean, completion: (p1: NSError) => void): void;
8282

83+
setDataMergeFields(documentData: NSDictionary<string, any>, mergeFields: NSArray<any>): void;
84+
85+
setDataMergeFieldsCompletion(documentData: NSDictionary<string, any>, mergeFields: NSArray<any>, completion: (p1: NSError) => void): void;
86+
8387
updateData(fields: NSDictionary<any, any>): void;
8488

8589
updateDataCompletion(fields: NSDictionary<any, any>, completion: (p1: NSError) => void): void;
@@ -129,6 +133,10 @@ declare class FIRFieldValue extends NSObject {
129133

130134
static alloc(): FIRFieldValue; // inherited from NSObject
131135

136+
static fieldValueForArrayRemove(elements: NSArray<any>): FIRFieldValue;
137+
138+
static fieldValueForArrayUnion(elements: NSArray<any>): FIRFieldValue;
139+
132140
static fieldValueForDelete(): FIRFieldValue;
133141

134142
static fieldValueForServerTimestamp(): FIRFieldValue;
@@ -302,6 +310,8 @@ declare class FIRQuery extends NSObject {
302310

303311
queryStartingAtValues(fieldValues: NSArray<any>): FIRQuery;
304312

313+
queryWhereFieldArrayContains(field: string, value: any): FIRQuery;
314+
305315
queryWhereFieldIsEqualTo(field: string, value: any): FIRQuery;
306316

307317
queryWhereFieldIsGreaterThan(field: string, value: any): FIRQuery;
@@ -312,6 +322,8 @@ declare class FIRQuery extends NSObject {
312322

313323
queryWhereFieldIsLessThanOrEqualTo(field: string, value: any): FIRQuery;
314324

325+
queryWhereFieldPathArrayContains(path: FIRFieldPath, value: any): FIRQuery;
326+
315327
queryWhereFieldPathIsEqualTo(path: FIRFieldPath, value: any): FIRQuery;
316328

317329
queryWhereFieldPathIsGreaterThan(path: FIRFieldPath, value: any): FIRQuery;
@@ -412,6 +424,8 @@ declare class FIRTransaction extends NSObject {
412424

413425
setDataForDocumentMerge(data: NSDictionary<string, any>, document: FIRDocumentReference, merge: boolean): FIRTransaction;
414426

427+
setDataForDocumentMergeFields(data: NSDictionary<string, any>, document: FIRDocumentReference, mergeFields: NSArray<any>): FIRTransaction;
428+
415429
updateDataForDocument(fields: NSDictionary<any, any>, document: FIRDocumentReference): FIRTransaction;
416430
}
417431

@@ -431,6 +445,8 @@ declare class FIRWriteBatch extends NSObject {
431445

432446
setDataForDocumentMerge(data: NSDictionary<string, any>, document: FIRDocumentReference, merge: boolean): FIRWriteBatch;
433447

448+
setDataForDocumentMergeFields(data: NSDictionary<string, any>, document: FIRDocumentReference, mergeFields: NSArray<any>): FIRWriteBatch;
449+
434450
updateDataForDocument(fields: NSDictionary<any, any>, document: FIRDocumentReference): FIRWriteBatch;
435451
}
436452

src/platforms/ios/typings/objc!FirebaseInstanceID.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ declare class FIRInstanceID extends NSObject {
1313

1414
getIDWithHandler(handler: (p1: string, p2: NSError) => void): void;
1515

16+
instanceIDWithHandler(handler: (p1: FIRInstanceIDResult, p2: NSError) => void): void;
17+
1618
token(): string;
1719

1820
tokenWithAuthorizedEntityScopeOptionsHandler(authorizedEntity: string, scope: string, options: NSDictionary<any, any>, handler: (p1: string, p2: NSError) => void): void;
@@ -35,6 +37,19 @@ declare const enum FIRInstanceIDError {
3537
InvalidRequest = 7
3638
}
3739

40+
declare class FIRInstanceIDResult extends NSObject implements NSCopying {
41+
42+
static alloc(): FIRInstanceIDResult; // inherited from NSObject
43+
44+
static new(): FIRInstanceIDResult; // inherited from NSObject
45+
46+
readonly instanceID: string;
47+
48+
readonly token: string;
49+
50+
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
51+
}
52+
3853
declare var kFIRInstanceIDScopeFirebaseMessaging: string;
3954

4055
declare var kFIRInstanceIDTokenRefreshNotification: string;

src/platforms/ios/typings/objc!FirebaseMLModelInterpreter.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ declare class FIRModelDownloadConditions extends NSObject implements NSCopying {
3939

4040
static new(): FIRModelDownloadConditions; // inherited from NSObject
4141

42-
readonly isIdleRequired: boolean;
42+
readonly canDownloadInBackground: boolean;
4343

4444
readonly isWiFiRequired: boolean;
4545

46-
constructor(o: { wiFiRequired: boolean; idleRequired: boolean; });
46+
constructor(o: { isWiFiRequired: boolean; canDownloadInBackground: boolean; });
4747

4848
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
4949

50-
initWithWiFiRequiredIdleRequired(isWiFiRequired: boolean, isIdleRequired: boolean): this;
50+
initWithIsWiFiRequiredCanDownloadInBackground(isWiFiRequired: boolean, canDownloadInBackground: boolean): this;
5151
}
5252

5353
declare const enum FIRModelElementType {
@@ -91,6 +91,8 @@ declare class FIRModelInterpreter extends NSObject {
9191

9292
static new(): FIRModelInterpreter; // inherited from NSObject
9393

94+
statsCollectionEnabled: boolean;
95+
9496
inputIndexForOpCompletion(opName: string, completion: (p1: number, p2: NSError) => void): void;
9597

9698
outputIndexForOpCompletion(opName: string, completion: (p1: number, p2: NSError) => void): void;

0 commit comments

Comments
 (0)