-
Notifications
You must be signed in to change notification settings - Fork 9
build: add make android
heuristics [WPB-19444]
#1382
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
Merged
Merged
+114
−65
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62e6cc7
to
a53cb98
Compare
We can name the actual library files built by those commands, so use those instead of stamp files.
This isn't perfect--if we adjust `~/.cargo/config.toml`, for example, then we really should rebuild Rust stuff, and Make won't know about it--but in the vast majority of cases, this is going to call cargo only when it actually needs to.
The [docs] are pretty unspecific about what specific circumstances actually require rebuilding the `uniffi-bindgen` binary, and in testing I haven't been able to isolate any specific cases other than it not existing yet. So this adjusts things to always use the existing binary, if it exists. Should make caching easier on CI as well, at least in principle. [docs]: https://mozilla.github.io/uniffi-rs/0.29/tutorial/foreign_language_bindings.html
We don't need a step letting us explicitly build `core-crypto-ffi`; we'll just invoke `cargo` directly if we want that. Depending on the `release-build` step was messing with our build process, as well: it was marked as phony, meaning that everything downstream was marked as dirty even if cargo had decided that it was all fine. Getting rid of it means that make knows what file to actually look at, and can rebuild or not based on that. Also we have the `$(UNIFFI_BINDGEN)` variable, so use it.
Depending on the `.PHONY`'d "pretty" names means that everything downstream gets rerun every time: precisely what we do not want.
- do not touch stamps (they are pointless now) - use vars not step names so phony doesn't pollute downstream - add a mode check so we will not get false negatives with gradle - android target builds all depend on rust sources - android target builds use the env check as an "order-only" prerequisite order-only prereqs run without marking the target as dirty, meaning that it's ok if they are phony; their running does not pollute downstream.
Having an `android` target which built the target binaries but then did not run gradle on them was kind of pointless. `android-test` was not actually running any tests. Take these two facts together, and it made more sense to consolidate.
b97dd45
to
35c799f
Compare
cf3225b
to
2ce31a2
Compare
make android-test
heuristics [WPB-19444]make android
heuristics [WPB-19444]
2ce31a2
to
ffa813e
Compare
ffa813e
to
313813a
Compare
istankovic
reviewed
Aug 20, 2025
SimonThormeyer
approved these changes
Aug 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
istankovic
reviewed
Aug 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new in this PR
PR Submission Checklist for internal contributors
SQPIT-764
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.