Hello, How can I fork Material3 separately? Currently, it is mixed with androidx. Is it easy to create my own copy?
k
Kirill Grouchnikov
08/21/2023, 4:32 AM
Separately from what? The full tree at
androidx/androidx
?
Also, what’s the end goal? Use that forked version as an internal dependency in your project? Publish it as a competing alternative? Something else?
w
wwalkingg
08/21/2023, 4:54 AM
Separated from androidx as an internal dependency. This is because many values in their Compose's Material3 are fixed and cannot be changed (the values stored in tokens are hardcoded).
We have been doing it this way all along, but the maintenance pressure is really too much. If Compose-Material3 were a separate GitHub repository, we wouldn't have this kind of issue, and it would also be easier to involve community members.
k
Kirill Grouchnikov
08/21/2023, 4:45 PM
Assuming you make XYZ changes only in the
compose/material3
module and not anywhere else in the
androidx
project, you would have the same rebase / maintenance issues, no matter if you fork the full repository, or just that hypothetical separate repository.