Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Aug 11, 2023

This PR updates the gradle build file for the android_embedding_bundle cipd package to fetch license information about the dependencies listed under tools/androidx/files.json. The README file for the android_embedding_bundle now explains how to fetch the license information and make sure it's correct in the cipd package.

This PR also pulls a new version of android_embedding_dependencies that includes a LICENSE file.

It turns out that Flutter does not re-ship anything from the embedding bundle to Flutter end-users. These dependencies are only used to create a classpath against which we build the Android embedder and in-tree tests. I've updated docs/comments to clarify that since I was initially confused about how these were used.

I'm not adding a test that compares the license info fetched from maven against a checked-in golden, yet. Still thinking about the most effective way to do that in combination with the steps in the README.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@zanderso zanderso force-pushed the android-deps-license branch 3 times, most recently from 7e2fd03 to 5dd469b Compare August 11, 2023 21:23
@zanderso zanderso requested review from Hixie and reidbaker August 14, 2023 15:24
3. Run `./generate.sh`.
1. Update `tools/androidx/files.json`. (This file includes the Maven
dependencies used to build Flutter apps).
1. `cd` into this directory.
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 spell out the directory? It is nice when following instructions that have not been run in a while to be super specific.

Suggested change
1. `cd` into this directory.
1. `cd` into `tools/androidx` directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@Hixie
Copy link
Contributor

Hixie commented Aug 14, 2023

This implementation matches my understanding of the advice we were given. I'll let @reidbaker give the actual approval since he has a better understanding of the subtleties of the relevant code.

@zanderso zanderso force-pushed the android-deps-license branch from 5dd469b to 44e6519 Compare August 14, 2023 20:28
@zanderso zanderso merged commit 1d63eec into flutter:main Aug 14, 2023
@zanderso zanderso deleted the android-deps-license branch August 14, 2023 22:15
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 14, 2023
gaaclarke pushed a commit to gaaclarke/engine that referenced this pull request Aug 30, 2023
This PR updates the gradle build file for the android_embedding_bundle
cipd package to fetch license information about the dependencies listed
under `tools/androidx/files.json`. The README file for the
android_embedding_bundle now explains how to fetch the license
information and make sure it's correct in the cipd package.

This PR also pulls a new version of android_embedding_dependencies that
includes a `LICENSE` file.

It turns out that Flutter does not re-ship anything from the embedding
bundle to Flutter end-users. These dependencies are only used to create
a classpath against which we build the Android embedder and in-tree
tests. I've updated docs/comments to clarify that since I was initially
confused about how these were used.

I'm not adding a test that compares the license info fetched from maven
against a checked-in golden, yet. Still thinking about the most
effective way to do that in combination with the steps in the README.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants