@capacitor-firebase/performance 7.5.0 → 8.0.0

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.
@@ -11,9 +11,9 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '14.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'FirebasePerformance', '~> 11.7.0'
16
+ s.dependency 'FirebasePerformance', '~> 12.7.0'
17
17
  s.swift_version = '5.1'
18
18
  s.static_framework = true
19
19
  end
package/Package.swift CHANGED
@@ -3,15 +3,15 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapacitorFirebasePerformance",
6
- platforms: [.iOS(.v14)],
6
+ platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapacitorFirebasePerformance",
10
10
  targets: ["FirebasePerformancePlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
14
- .package(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "11.7.0"))
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
14
+ .package(url: "https://github.com/firebase/firebase-ios-sdk.git", .upToNextMajor(from: "12.7.0"))
15
15
  ],
16
16
  targets: [
17
17
  .target(
package/README.md CHANGED
@@ -8,6 +8,16 @@ Unofficial Capacitor plugin for [Firebase Performance Monitoring](https://fireba
8
8
  </a>
9
9
  </div>
10
10
 
11
+ ## Compatibility
12
+
13
+ | Plugin Version | Capacitor Version | Status |
14
+ | -------------- | ----------------- | -------------- |
15
+ | 8.x.x | >=8.x.x | Active support |
16
+ | 7.x.x | 7.x.x | Deprecated |
17
+ | 6.x.x | 6.x.x | Deprecated |
18
+ | 5.x.x | 5.x.x | Deprecated |
19
+ | 1.x.x | 4.x.x | Deprecated |
20
+
11
21
  ## Installation
12
22
 
13
23
  ```bash
@@ -25,7 +35,7 @@ See [Add the Performance Monitoring plugin to your app](https://firebase.google.
25
35
 
26
36
  If needed, you can define the following project variable in your app’s `variables.gradle` file to change the default version of the dependency:
27
37
 
28
- - `$firebasePerfVersion` version of `com.google.firebase:firebase-perf` (default: `21.0.4`)
38
+ - `$firebasePerfVersion` version of `com.google.firebase:firebase-perf` (default: `22.0.4`)
29
39
 
30
40
  This can be useful if you encounter dependency conflicts with other plugins in your project.
31
41
 
@@ -1,9 +1,9 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
6
- firebasePerfVersion = project.hasProperty('firebasePerfVersion') ? rootProject.ext.firebasePerfVersion : '21.0.4'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
+ firebasePerfVersion = project.hasProperty('firebasePerfVersion') ? rootProject.ext.firebasePerfVersion : '22.0.4'
7
7
  }
8
8
 
9
9
  buildscript {
@@ -12,18 +12,18 @@ buildscript {
12
12
  mavenCentral()
13
13
  }
14
14
  dependencies {
15
- classpath 'com.android.tools.build:gradle:8.7.2'
15
+ classpath 'com.android.tools.build:gradle:8.13.0'
16
16
  }
17
17
  }
18
18
 
19
19
  apply plugin: 'com.android.library'
20
20
 
21
21
  android {
22
- namespace "io.capawesome.capacitorjs.plugins.firebase.performance"
23
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
22
+ namespace = "io.capawesome.capacitorjs.plugins.firebase.performance"
23
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
24
24
  defaultConfig {
25
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
26
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
25
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
26
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
27
27
  versionCode 1
28
28
  versionName "1.0"
29
29
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -35,7 +35,7 @@ android {
35
35
  }
36
36
  }
37
37
  lintOptions {
38
- abortOnError false
38
+ abortOnError = false
39
39
  }
40
40
  compileOptions {
41
41
  sourceCompatibility JavaVersion.VERSION_21
@@ -224,7 +224,7 @@ export interface GetAttributesResult {
224
224
  /**
225
225
  * @since 6.3.0
226
226
  */
227
- export declare type RemoveAttributeOptions = GetAttributeOptions;
227
+ export type RemoveAttributeOptions = GetAttributeOptions;
228
228
  /**
229
229
  * @since 6.3.0
230
230
  */
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAqB5E,MAAM,OAAO,sBACX,SAAQ,SAAS;IADnB;;QAMU,WAAM,GAAoD,EAAE,CAAC;IAsHvE,CAAC;IApH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B,CAAC,qBAAqB,CAAC,CAAC;SAC/D;QACD,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,EACrB,SAAS,EACT,UAAU,EACV,GAAG,GACc;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;SAC/D;QACD,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,EACrB,SAAS,EACT,UAAU,GACO;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;SAC/D;QACD,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;IAChD,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,EAClB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,GACO;QACd,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC3C,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;;AAvHuB,4CAAqB,GAC3C,iDAAiD,CAAC","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport type { PerformanceTrace } from 'firebase/performance';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\n\nimport type {\n FirebasePerformancePlugin,\n GetAttributeOptions,\n GetAttributeResult,\n GetAttributesOptions,\n GetAttributesResult,\n GetMetricOptions,\n GetMetricResult,\n IncrementMetricOptions,\n IsEnabledResult,\n PutAttributeOptions,\n PutMetricOptions,\n RecordOptions,\n RemoveAttributeOptions,\n SetEnabledOptions,\n StartTraceOptions,\n StopTraceOptions,\n} from './definitions';\n\nexport class FirebasePerformanceWeb\n extends WebPlugin\n implements FirebasePerformancePlugin\n{\n private static readonly ERROR_TRACE_NOT_FOUND =\n 'No trace was found with the provided traceName.';\n private traces: { [key: string]: PerformanceTrace | undefined } = {};\n\n public async startTrace(options: StartTraceOptions): Promise<void> {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n\n public async stopTrace(options: StopTraceOptions): Promise<void> {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n\n public async incrementMetric(options: IncrementMetricOptions): Promise<void> {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n\n public async setEnabled(options: SetEnabledOptions): Promise<void> {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n\n public async isEnabled(): Promise<IsEnabledResult> {\n const perf = getPerformance();\n const result: IsEnabledResult = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n\n public async putAttribute({\n traceName,\n attribute,\n value,\n }: PutAttributeOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n\n public async getAttribute({\n traceName,\n attribute,\n }: GetAttributeOptions): Promise<GetAttributeResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getAttribute(attribute) ?? null };\n }\n\n public async getAttributes({\n traceName,\n }: GetAttributesOptions): Promise<GetAttributesResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n\n public async removeAttribute({\n traceName,\n attribute,\n }: RemoveAttributeOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n\n public async putMetric({\n traceName,\n metricName,\n num,\n }: PutMetricOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n\n public async getMetric({\n traceName,\n metricName,\n }: GetMetricOptions): Promise<GetMetricResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n\n public async record({\n traceName,\n startTime,\n duration,\n options,\n }: RecordOptions): Promise<void> {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAqB5E,MAAM,OAAO,sBACX,SAAQ,SAAS;IADnB;;QAMU,WAAM,GAAoD,EAAE,CAAC;IAsHvE,CAAC;IApHQ,KAAK,CAAC,UAAU,CAAC,OAA0B;QAChD,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,C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C,SAAS,CAAC,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,EACrB,SAAS,EACT,UAAU,EACV,GAAG,GACc;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;QAChE,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,EACrB,SAAS,EACT,UAAU,GACO;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;IAChD,CAAC;IAEM,KAAK,CAAC,MAAM,CAAC,EAClB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,GACO;QACd,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC3C,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;;AAvHuB,4CAAqB,GAC3C,iDAAiD,AADN,CACO","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport type { PerformanceTrace } from 'firebase/performance';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\n\nimport type {\n FirebasePerformancePlugin,\n GetAttributeOptions,\n GetAttributeResult,\n GetAttributesOptions,\n GetAttributesResult,\n GetMetricOptions,\n GetMetricResult,\n IncrementMetricOptions,\n IsEnabledResult,\n PutAttributeOptions,\n PutMetricOptions,\n RecordOptions,\n RemoveAttributeOptions,\n SetEnabledOptions,\n StartTraceOptions,\n StopTraceOptions,\n} from './definitions';\n\nexport class FirebasePerformanceWeb\n extends WebPlugin\n implements FirebasePerformancePlugin\n{\n private static readonly ERROR_TRACE_NOT_FOUND =\n 'No trace was found with the provided traceName.';\n private traces: { [key: string]: PerformanceTrace | undefined } = {};\n\n public async startTrace(options: StartTraceOptions): Promise<void> {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n\n public async stopTrace(options: StopTraceOptions): Promise<void> {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n\n public async incrementMetric(options: IncrementMetricOptions): Promise<void> {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n\n public async setEnabled(options: SetEnabledOptions): Promise<void> {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n\n public async isEnabled(): Promise<IsEnabledResult> {\n const perf = getPerformance();\n const result: IsEnabledResult = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n\n public async putAttribute({\n traceName,\n attribute,\n value,\n }: PutAttributeOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n\n public async getAttribute({\n traceName,\n attribute,\n }: GetAttributeOptions): Promise<GetAttributeResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getAttribute(attribute) ?? null };\n }\n\n public async getAttributes({\n traceName,\n }: GetAttributesOptions): Promise<GetAttributesResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n\n public async removeAttribute({\n traceName,\n attribute,\n }: RemoveAttributeOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n\n public async putMetric({\n traceName,\n metricName,\n num,\n }: PutMetricOptions): Promise<void> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n\n public async getMetric({\n traceName,\n metricName,\n }: GetMetricOptions): Promise<GetMetricResult> {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n\n public async record({\n traceName,\n startTime,\n duration,\n options,\n }: RecordOptions): Promise<void> {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\n"]}
@@ -59,7 +59,7 @@ class FirebasePerformanceWeb extends core.WebPlugin {
59
59
  if (!trace) {
60
60
  throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);
61
61
  }
62
- return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== undefined ? _a : null };
62
+ return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };
63
63
  }
64
64
  async getAttributes({ traceName, }) {
65
65
  const trace = this.traces[traceName];
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst FirebasePerformance = registerPlugin('FirebasePerformance', {\n web: () => import('./web').then(m => new m.FirebasePerformanceWeb()),\n});\nexport * from './definitions';\nexport { FirebasePerformance };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\nexport class FirebasePerformanceWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.traces = {};\n }\n async startTrace(options) {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n async stopTrace(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n async incrementMetric(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n async setEnabled(options) {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n async isEnabled() {\n const perf = getPerformance();\n const result = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n async putAttribute({ traceName, attribute, value, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n async getAttribute({ traceName, attribute, }) {\n var _a;\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };\n }\n async getAttributes({ traceName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n async removeAttribute({ traceName, attribute, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n async putMetric({ traceName, metricName, num, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n async getMetric({ traceName, metricName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n async record({ traceName, startTime, duration, options, }) {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\nFirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND = 'No trace was found with the provided traceName.';\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","getPerformance","createTrace"],"mappings":";;;;;AACK,MAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;AAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;AACxE,CAAC;;ACDM,MAAM,sBAAsB,SAASC,cAAS,CAAC;AACtD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,MAAM,GAAG,EAAE;AACxB;AACA,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,MAAM,IAAI,GAAGC,0BAAc,EAAE;AACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;AAC1D,QAAQ,KAAK,CAAC,KAAK,EAAE;AACrB,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,KAAK;AAC9C;AACA,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;AAC7B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC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I,CAAC,MAAM,CAAC,SAAS,CAAC;AAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;AACzE;AACA,QAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;AACxC;AACA,IAAI,MAAM,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,EAAE;AAChD,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;AAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;AACzE;AACA,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;AACrD;AACA,IAAI,MAAM,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE;AAC/D,QAAQ,MAAM,IAAI,GAAGA,0BAAc,EAAE;AACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,SAAS,CAAC;AAClD,QAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;AAClD;AACA;AACA,sBAAsB,CAAC,qBAAqB,GAAG,iDAAiD;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst FirebasePerformance = registerPlugin('FirebasePerformance', {\n web: () => import('./web').then(m => new m.FirebasePerformanceWeb()),\n});\nexport * from './definitions';\nexport { FirebasePerformance };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\nexport class FirebasePerformanceWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.traces = {};\n }\n async startTrace(options) {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n async stopTrace(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n async incrementMetric(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n async setEnabled(options) {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n async isEnabled() {\n const perf = getPerformance();\n const result = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n async putAttribute({ traceName, attribute, value, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n async getAttribute({ traceName, attribute, }) {\n var _a;\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };\n }\n async getAttributes({ traceName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n async removeAttribute({ traceName, attribute, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n async putMetric({ traceName, metricName, num, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n async getMetric({ traceName, metricName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n async record({ traceName, startTime, duration, options, }) {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\nFirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND = 'No trace was found with the provided traceName.';\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","getPerformance","createTrace"],"mappings":";;;;;AACK,MAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;AAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;AACxE,CAAC;;ACDM,MAAM,sBAAsB,SAASC,cAAS,CAAC;AACtD,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,MAAM,GAAG,EAAE;AACxB,IAAI;AACJ,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,MAAM,IAAI,GAAGC,0BAAc,EAAE;AACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;AAC1D,QAAQ,KAAK,CAAC,KAAK,EAAE;AACrB,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,KAAK;AAC9C,IAAI;AACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;AAC7B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;AACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;AACzE,QAAQ;AACR,QAAQ,KAAK,CAAC,IAAI,EAAE;AACpB,Q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MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;AACzE,QAAQ;AACR,QAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;AACxC,IAAI;AACJ,IAAI,MAAM,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,EAAE;AAChD,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;AAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;AACzE,QAAQ;AACR,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;AACrD,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE;AAC/D,QAAQ,MAAM,IAAI,GAAGA,0BAAc,EAAE;AACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,SAAS,CAAC;AAClD,QAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;AAClD,IAAI;AACJ;AACA,sBAAsB,CAAC,qBAAqB,GAAG,iDAAiD;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -57,7 +57,7 @@ var capacitorFirebasePerformance = (function (exports, core, performance) {
57
57
  if (!trace) {
58
58
  throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);
59
59
  }
60
- return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== undefined ? _a : null };
60
+ return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };
61
61
  }
62
62
  async getAttributes({ traceName, }) {
63
63
  const trace = this.traces[traceName];
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst FirebasePerformance = registerPlugin('FirebasePerformance', {\n web: () => import('./web').then(m => new m.FirebasePerformanceWeb()),\n});\nexport * from './definitions';\nexport { FirebasePerformance };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\nexport class FirebasePerformanceWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.traces = {};\n }\n async startTrace(options) {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n async stopTrace(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n async incrementMetric(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n async setEnabled(options) {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n async isEnabled() {\n const perf = getPerformance();\n const result = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n async putAttribute({ traceName, attribute, value, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n async getAttribute({ traceName, attribute, }) {\n var _a;\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };\n }\n async getAttributes({ traceName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n async removeAttribute({ traceName, attribute, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n async putMetric({ traceName, metricName, num, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n async getMetric({ traceName, metricName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n async record({ traceName, startTime, duration, options, }) {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\nFirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND = 'No trace was found with the provided traceName.';\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","getPerformance","createTrace"],"mappings":";;;AACK,UAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;IAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;IACxE,CAAC;;ICDM,MAAM,sBAAsB,SAASC,cAAS,CAAC;IACtD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;IAC3B,QAAQ,IAAI,CAAC,MAAM,GAAG,EAAE;IACxB;IACA,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;IAC9B,QAAQ,MAAM,IAAI,GAAGC,0BAAc,EAAE;IACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IAC1D,QAAQ,KAAK,CAAC,KAAK,EAAE;IACrB,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,KAAK;IAC9C;IACA,IAAI,MAAM,SAAS,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S,EAAE,UAAU,EAAE,GAAG,GAAG,EAAE;IACrD,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;IACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;IACzE;IACA,QAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IACxC;IACA,IAAI,MAAM,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,EAAE;IAChD,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;IACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;IACzE;IACA,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;IACrD;IACA,IAAI,MAAM,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE;IAC/D,QAAQ,MAAM,IAAI,GAAGA,0BAAc,EAAE;IACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,SAAS,CAAC;IAClD,QAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;IAClD;IACA;IACA,sBAAsB,CAAC,qBAAqB,GAAG,iDAAiD;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst FirebasePerformance = registerPlugin('FirebasePerformance', {\n web: () => import('./web').then(m => new m.FirebasePerformanceWeb()),\n});\nexport * from './definitions';\nexport { FirebasePerformance };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport { trace as createTrace, getPerformance } from 'firebase/performance';\nexport class FirebasePerformanceWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.traces = {};\n }\n async startTrace(options) {\n const perf = getPerformance();\n const trace = createTrace(perf, options.traceName);\n trace.start();\n this.traces[options.traceName] = trace;\n }\n async stopTrace(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.stop();\n delete this.traces[options.traceName];\n }\n async incrementMetric(options) {\n const trace = this.traces[options.traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.incrementMetric(options.metricName, options.incrementBy);\n }\n async setEnabled(options) {\n const perf = getPerformance();\n perf.instrumentationEnabled = options.enabled;\n perf.dataCollectionEnabled = options.enabled;\n }\n async isEnabled() {\n const perf = getPerformance();\n const result = {\n enabled: perf.instrumentationEnabled || perf.dataCollectionEnabled,\n };\n return result;\n }\n async putAttribute({ traceName, attribute, value, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putAttribute(attribute, value);\n return;\n }\n async getAttribute({ traceName, attribute, }) {\n var _a;\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: (_a = trace.getAttribute(attribute)) !== null && _a !== void 0 ? _a : null };\n }\n async getAttributes({ traceName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { attributes: trace.getAttributes() };\n }\n async removeAttribute({ traceName, attribute, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.removeAttribute(attribute);\n }\n async putMetric({ traceName, metricName, num, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n trace.putMetric(metricName, num);\n }\n async getMetric({ traceName, metricName, }) {\n const trace = this.traces[traceName];\n if (!trace) {\n throw new Error(FirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND);\n }\n return { value: trace.getMetric(metricName) };\n }\n async record({ traceName, startTime, duration, options, }) {\n const perf = getPerformance();\n const trace = createTrace(perf, traceName);\n trace.record(startTime, duration, options);\n }\n}\nFirebasePerformanceWeb.ERROR_TRACE_NOT_FOUND = 'No trace was found with the provided traceName.';\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin","getPerformance","createTrace"],"mappings":";;;AACK,UAAC,mBAAmB,GAAGA,mBAAc,CAAC,qBAAqB,EAAE;IAClE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sBAAsB,EAAE,CAAC;IACxE,CAAC;;ICDM,MAAM,sBAAsB,SAASC,cAAS,CAAC;IACtD,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;IAC3B,QAAQ,IAAI,CAAC,MAAM,GAAG,EAAE;IACxB,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;IAC9B,QAAQ,MAAM,IAAI,GAAGC,0BAAc,EAAE;IACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC;IAC1D,QAAQ,KAAK,CAAC,KAAK,EAAE;IACrB,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,KAAK;IAC9C,IAAI;IACJ,IAAI,MAAM,SAAS,CAAC,OAAO,EAAE;IAC7B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;IACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;IACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAA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AAM,CAAC,SAAS,CAAC;IAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;IACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;IACzE,QAAQ;IACR,QAAQ,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IACxC,IAAI;IACJ,IAAI,MAAM,SAAS,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,EAAE;IAChD,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC5C,QAAQ,IAAI,CAAC,KAAK,EAAE;IACpB,YAAY,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,qBAAqB,CAAC;IACzE,QAAQ;IACR,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE;IACrD,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE;IAC/D,QAAQ,MAAM,IAAI,GAAGA,0BAAc,EAAE;IACrC,QAAQ,MAAM,KAAK,GAAGC,iBAAW,CAAC,IAAI,EAAE,SAAS,CAAC;IAClD,QAAQ,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC;IAClD,IAAI;IACJ;IACA,sBAAsB,CAAC,qBAAqB,GAAG,iDAAiD;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-firebase/performance",
3
- "version": "7.5.0",
3
+ "version": "8.0.0",
4
4
  "description": "Capacitor plugin for Firebase Performance Monitoring.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -58,25 +58,25 @@
58
58
  "prepublishOnly": "npm run build"
59
59
  },
60
60
  "devDependencies": {
61
- "@capacitor/android": "7.0.0",
62
- "@capacitor/cli": "7.0.0",
63
- "@capacitor/core": "7.0.0",
64
- "@capacitor/docgen": "0.3.0",
65
- "@capacitor/ios": "7.0.0",
61
+ "@capacitor/android": "8.0.0",
62
+ "@capacitor/cli": "8.0.0",
63
+ "@capacitor/core": "8.0.0",
64
+ "@capacitor/docgen": "0.3.1",
65
+ "@capacitor/ios": "8.0.0",
66
66
  "@ionic/eslint-config": "0.4.0",
67
67
  "@ionic/swiftlint-config": "2.0.0",
68
68
  "eslint": "8.57.0",
69
69
  "firebase": "11.2.0",
70
70
  "prettier": "3.4.2",
71
71
  "prettier-plugin-java": "2.6.7",
72
- "rimraf": "6.0.1",
73
- "rollup": "4.30.1",
72
+ "rimraf": "6.1.2",
73
+ "rollup": "4.53.3",
74
74
  "swiftlint": "2.0.0",
75
- "typescript": "4.1.5"
75
+ "typescript": "5.9.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@capacitor/core": ">=7.0.0",
79
- "firebase": "^11.2.0"
78
+ "@capacitor/core": ">=8.0.0",
79
+ "firebase": "^12.6.0"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "firebase": {