.so does not end up in .apk if project inside workspace
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system, mobile
Research direction
Reproduce the setup with android_project, libsomething, libsomething2, and the workspace Cargo.toml, using the cargo configuration shown in the issue. Compare the workspace target location with the rustJniLibs folder and the working android/app/build.gradle example. Done means the selected libsomething.so is copied into rustJniLibs without compiling unrelated workspace members.
Written by the indexing model from the issue text.
Description
If you have
android_project
libsomething
libsomething2
Cargo.toml
and Cargo.toml happens to be a workspace for libsomething and libsomething2, then
cargo {
module = "../../../libsomething"
libname = "something"
verbose = true
apiLevel = 21
profile = 'release'
targets = ["arm64"]
}
will compile the libs but the libsomething.so does not end up in the rustJniLibs folder, probably because the target folder is not inside libsomething but at the root workspace.
I don't want to compile the entire workspace, just this lib, that's why I point to just it. If I pointed to the workspace, it would probably work, but the workspace contains non android things.
Fully working example: https://github.com/lattice0/flutter_workspace/blob/master/flutter_bug/android/app/build.gradle#L66
What could be done here? I really need this stuff to be in a workspace otherwise rust-analyzer goes completely crazy.
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/rust-android-gradle
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/rust-android-gradle#174 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mozilla/rust-android-gradle#166 · 1 comment · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/rust-android-gradle#163 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mozilla/rust-android-gradle#158 · 7 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mozilla/rust-android-gradle#152 · 1 comment ·
All issues in mozilla/rust-android-gradle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
recloudstream/cloudstream#3226 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Kotlin/kotlinx.serialization#3277 · 2 reactions ·
Maintainers usually reply within 1 day