Skip to content

Add cmake code for performance module #707

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gwaldvogel
Copy link

Description

As discussed in #671 this PR provides some basic CMake and gradle code to compile the performance module.


Testing

I have currently only tested the Android and iOS binaries within our internal project.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

@google-cla google-cla bot added the cla: yes label Oct 20, 2021
@jonsimantov
Copy link
Contributor

Thanks for sending this! Since Performance is not officially supported in the C++ SDK yet, I'd like to ensure that this is not included in builds by default, so could you change the default setting to reflect that? Developers who want to include it can specify -DFIREBASE_INCLUDE_PERFORMANCE=TRUE.

Also, could you ensure that the stub build compiles on at least one desktop platform (e.g. Mac)?

@@ -52,6 +52,9 @@ option(FIREBASE_INCLUDE_INSTALLATIONS
option(FIREBASE_INCLUDE_MESSAGING
"Include the Firebase Cloud Messaging library."
${FIREBASE_INCLUDE_LIBRARY_DEFAULT})
option(FIREBASE_INCLUDE_PERFORMANCE
"Include the Firebase Performance library."
${FIREBASE_INCLUDE_LIBRARY_DEFAULT})
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you make the default setting false for this? Since it's not officially supported, users should have to explicitly opt in to include this module (at least for now).

@@ -14,6 +14,7 @@ target 'GetPods' do
pod 'Firebase/Functions', '8.8.0'
pod 'Firebase/Installations', '8.8.0'
pod 'Firebase/Messaging', '8.8.0'
pod 'Firebase/Performance', '8.8.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you update this to the latest version, 8.9.1? (also resolve the merge conflict in this file)

@@ -0,0 +1,143 @@
# Copyright 2019 Google
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: 2021, as that was when the file was created

@@ -17,6 +17,7 @@ include ':app',
':installations',
':messaging',
':messaging:messaging_java',
':performance',
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd also like to ensure that this isn't included in Android builds by default; I think the simplest way is to leave this line commented-out? (You can add a note to the readme about how to enable it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants