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

Commit 6142ec1

Browse files
bump
1 parent 9f4ee48 commit 6142ec1

File tree

9 files changed

+34
-25
lines changed

9 files changed

+34
-25
lines changed

demo-ng/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-angular": "~8.0.3",
2626
"nativescript-camera": "~4.5.0",
2727
"nativescript-imagepicker": "~6.3.0",
28-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.1.tgz",
28+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.2.tgz",
2929
"nativescript-theme-core": "~1.0.6",
3030
"reflect-metadata": "~0.1.13",
3131
"rxjs": "~6.5.2",

demo-push/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"dependencies": {
12-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.1.tgz",
12+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.2.tgz",
1313
"nativescript-theme-core": "~1.0.6",
1414
"nativescript-unit-test-runner": "0.7.0",
1515
"tns-core-modules": "~6.3.2"

demo-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"dependencies": {
17-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.1.tgz",
17+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.2.tgz",
1818
"nativescript-theme-core": "~1.0.6",
1919
"nativescript-vue": "~2.4.0",
2020
"tns-core-modules": "~6.3.2"

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"firebase-functions": "^2.0.5",
13-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.1.tgz",
13+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-10.5.2.tgz",
1414
"nativescript-theme-core": "^1.0.4",
1515
"nativescript-unit-test-runner": "0.7.0",
1616
"tns-core-modules": "~6.3.2"

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": "10.5.1",
3+
"version": "10.5.2",
44
"description": "Fire. Base. Firebase!",
55
"main": "firebase",
66
"typings": "index.d.ts",

src/performance/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
import * as perf from "./performance";
2+
23
export const performance = perf;

src/performance/performance.android.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export class FirebaseTrace {
4747
}
4848

4949
export class FirebaseHttpMetric {
50-
constructor(private nativeHttpMetric: com.google.firebase.perf.metrics.HttpMetric) {}
50+
constructor(private nativeHttpMetric: com.google.firebase.perf.metrics.HttpMetric) {
51+
}
5152

5253
setRequestPayloadSize(size: number) {
5354
this.nativeHttpMetric.setRequestPayloadSize(size);

src/performance/performance.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
export declare class FirebaseTrace {
22
setValue(attribute: string, value: string): void;
3+
34
getValue(attribute: string): string;
5+
46
getAttributes(): { [field: string]: any };
7+
58
removeAttribute(attribute: string): void;
9+
610
incrementMetric(metric: string, by: number): void;
11+
712
stop(): void;
813
}
914

1015
export declare function startTrace(name: string): FirebaseTrace;
1116

1217
export declare class FirebaseHttpMetric {
1318
setRequestPayloadSize(size: number): void;
19+
1420
setHttpResponseCode(responseCode: number): void;
21+
1522
stop(): void;
1623
}
1724

src/performance/performance.ios.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,35 @@ export class FirebaseHttpMetric {
4444
}
4545

4646
setRequestPayloadSize(size: number) {
47-
this.nativeHttpMetric.requestPayloadSize = size;
47+
this.nativeHttpMetric.requestPayloadSize = size;
4848
}
4949

5050
setHttpResponseCode(responseCode: number) {
51-
this.nativeHttpMetric.responseCode = responseCode;
51+
this.nativeHttpMetric.responseCode = responseCode;
5252
}
5353

5454
stop(): void {
55-
this.nativeHttpMetric.stop();
55+
this.nativeHttpMetric.stop();
5656
}
5757
}
5858

5959
function getHttpMethodFromString(method: string): FIRHTTPMethod {
6060
switch (method) {
61-
case 'GET':
62-
return FIRHTTPMethod.GET;
63-
case 'PUT':
64-
return FIRHTTPMethod.PUT;
65-
case 'POST':
66-
return FIRHTTPMethod.POST;
67-
case 'DELETE':
68-
return FIRHTTPMethod.DELETE;
69-
case 'HEAD':
70-
return FIRHTTPMethod.HEAD;
71-
case 'PATCH':
72-
return FIRHTTPMethod.PATCH;
73-
case 'OPTIONS':
74-
return FIRHTTPMethod.OPTIONS;
75-
default:
76-
return null;
61+
case 'GET':
62+
return FIRHTTPMethod.GET;
63+
case 'PUT':
64+
return FIRHTTPMethod.PUT;
65+
case 'POST':
66+
return FIRHTTPMethod.POST;
67+
case 'DELETE':
68+
return FIRHTTPMethod.DELETE;
69+
case 'HEAD':
70+
return FIRHTTPMethod.HEAD;
71+
case 'PATCH':
72+
return FIRHTTPMethod.PATCH;
73+
case 'OPTIONS':
74+
return FIRHTTPMethod.OPTIONS;
75+
default:
76+
return null;
7777
}
7878
}

0 commit comments

Comments
 (0)