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

Gradle Plugin: support Gradle isolated projects #6748

Open
cymerio opened this issue Mar 8, 2025 · 4 comments
Open

Gradle Plugin: support Gradle isolated projects #6748

cymerio opened this issue Mar 8, 2025 · 4 comments
Assignees
Labels

Comments

@cymerio
Copy link

cymerio commented Mar 8, 2025

What feature would you like to see?

At the moment there are four exceptions when you enable org.gradle.unsafe.isolated-projects=true, all pointing at the usage of findProperty to retrieve these properties:

  • com.google.firebase.crashlytics.buildtools
  • com.google.firebase.crashlytics.fakeId
  • com.google.firebase.crashlytics.fakeOutput
  • com.google.firebase.crashlytics.logDebug

I believe these can be changed to providers.gradleProperty(...) to solve the issue.

How would you use it?

Isolated projects would improve performance of the "sync" step in Android Studio:
https://docs.gradle.org/current/userguide/isolated_projects.html

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@cymerio cymerio changed the title Support Gradle Isolated Projects Gradle Plugin: support Gradle isolated projects Mar 8, 2025
@mrober mrober self-assigned this Mar 10, 2025
@mrober
Copy link
Contributor

mrober commented Mar 14, 2025

Thanks for reporting this @cymerio. Those properties are for our automated tests only. I didn't realize they were violating project isolation. I will find another way to set up the tests.

@liutikas
Copy link

You don't need to remove these, you just need to move from findProperty to providers.gradleProperty as noted in the OP.

The issue is that findProperty is recursive and calls to all parent projects, causing the IP violation.

@liutikas
Copy link

Similar issues are there in FirebasePerfPlugin

com.google.firebase.perf.plugin.FirebasePerfPlugin.apply(FirebasePerfPlugin.java:111)

and

com.google.firebase.perf.plugin.InstrumentationFlagState.fetchProjectPropertyValue(InstrumentationFlagState.java:78)

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

No branches or pull requests

5 participants