Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(performance): add missing methods (e. g. setAttribute(...), getAttribute(...)) #770

Merged
merged 16 commits into from
Dec 12, 2024

Conversation

ebarooni
Copy link
Contributor

@ebarooni ebarooni commented Dec 7, 2024

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).
  • I have read and followed the pull request guidelines.

Close #505

Implement all method definitions on the web.
Change return of getAttributes on the web.
Implement all methods on ios.
@ebarooni ebarooni linked an issue Dec 7, 2024 that may be closed by this pull request
11 tasks
Copy link

pkg-pr-new bot commented Dec 7, 2024

Open in Stackblitz

@capacitor-firebase/analytics

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/analytics@770

@capacitor-firebase/app

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/app@770

@capacitor-firebase/app-check

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/app-check@770

@capacitor-firebase/authentication

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/authentication@770

@capacitor-firebase/crashlytics

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/crashlytics@770

@capacitor-firebase/firestore

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/firestore@770

@capacitor-firebase/functions

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/functions@770

@capacitor-firebase/messaging

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/messaging@770

@capacitor-firebase/performance

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/performance@770

@capacitor-firebase/remote-config

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/remote-config@770

@capacitor-firebase/storage

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/storage@770

commit: 5f8523b

@ebarooni ebarooni requested a review from robingenz December 7, 2024 23:31
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good already!

packages/performance/src/definitions.ts Outdated Show resolved Hide resolved
packages/performance/src/definitions.ts Show resolved Hide resolved
packages/performance/src/definitions.ts Outdated Show resolved Hide resolved
packages/performance/src/definitions.ts Show resolved Hide resolved
packages/performance/src/definitions.ts Show resolved Hide resolved
@ebarooni ebarooni marked this pull request as ready for review December 9, 2024 23:17
@ebarooni ebarooni requested a review from robingenz December 9, 2024 23:35
.changeset/chilly-seahorses-design.md Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/ios/Plugin/FirebasePerformance.swift Outdated Show resolved Hide resolved
packages/performance/src/definitions.ts Outdated Show resolved Hide resolved
Remove classes and update types.
@ebarooni ebarooni requested a review from robingenz December 10, 2024 18:20
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test the changes using the https://github.com/robingenz/capacitor-firebase-plugin-demo project. You just need to add your own Firebase configuration files. I will soon create a separate sample project for each plugin for testing, so that this will be easier in the future.

robingenz and others added 5 commits December 11, 2024 20:44
Refactor helper methods into separate class.
Remove record implementation from android.
Remove record implementation from ios.
Update method definitions.ts for record.
@ebarooni ebarooni requested a review from robingenz December 11, 2024 20:10
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few final changes.

Remove none return type from methods.
@ebarooni ebarooni requested a review from robingenz December 12, 2024 07:36
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, these are the latest changes, I promise. :D

packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
packages/performance/src/web.ts Outdated Show resolved Hide resolved
Remove throwing error when trace does not exist.
@ebarooni ebarooni requested a review from robingenz December 12, 2024 08:18
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@robingenz robingenz merged commit 1cfcf18 into main Dec 12, 2024
2 checks passed
@robingenz robingenz deleted the feat/issue-505 branch December 12, 2024 08:20
@github-actions github-actions bot mentioned this pull request Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(performance): add missing methods (e. g. setAttribute(...), getAttribute(...))
2 participants