Comments (3)
Hi @nziq53 ! We've discussed a bit with @kali about this and concluded that support for JVM applications is not something that seem wise to add inside dinghy, given that tools like cargo apk
or xbuild
already exist and do exactly that.
Dinghy first goal has always been to be able to test code written for posix like platforms on embedded platforms. In your use case the code you're writing is definitely expecting way more than a posix platform (ie it need to be run inside a process containing an android JVM). One implementation that could be done in dinghy could be to wrap cargo apk
or xtools
to support these use case, but we fail to see the added value this would bring compared to directly call those specialised tools.
from dinghy.
Hi @nziq53 !
Do you have some code somewhere I can take a look at ?
That being said, it looks like ndk_context
needs a quite different approach from what we're doing with dinghy. ndk_context
needs an android app VM to initialize whereas dinghy only spawns regular Linux processes on the target device.
Not sure the approach of spawning an app VM it something that is desirable for dinghy. If we do add it it should be behind a flag I guess. But then again we would in that case probably do the same thing that cargo apk / xbuild does.
from dinghy.
@fredszaq
Glad to see a positive response!
Me too. I think must use flag .
my creating repo is https://github.com/nziq53/nickname
my running code on dinghy is: https://github.com/nziq53/nickname/tree/main/examples/common
my running code on cargo-apk: https://github.com/nziq53/nickname/tree/main/examples/android
my test workflow is this: https://github.com/nziq53/nickname/blob/04c30c31a77cb5df3f2e08bd3a4af49c9f4ed39a/.github/workflows/run.yml#L47C17-L47C125
my code on android is: https://github.com/nziq53/nickname/tree/main/rust/android
from dinghy.
Related Issues (20)
- No device support directory for iOS version 12.5 HOT 3
- deploy to iOS devices with ios-deploy HOT 2
- Duplicate executable file in ios *.app folder
- On the use `std::fs::ReadDir.next()` HOT 3
- Maintain CHANGELOG HOT 2
- tvOS simulator support HOT 1
- watchOS simulator support
- copy libc++_shared.so for Android tests HOT 2
- `undefined symbol: ANativeWindow_setBuffersGeometry` with visual tests using `wgpu` HOT 4
- Getting files generated by tests back? HOT 3
- Add macOS M1 binary to release CI HOT 2
- Use `xcrun devicectl` to deploy to iOS devices. HOT 2
- Dinghy hangs on macOS-14 runner HOT 1
- OpenHarmony support(ohos) HOT 1
- Support cargo-dinghy as a cargo test runner HOT 4
- Provide an example how to measure (code coverage) profiling data and save it on the host
- Run test on iOS failed: No such file or directory (os error 2) HOT 5
- xcrun: error: unable to find utility "devicectl", not a developer tool or in PATH HOT 6
- About the build performance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dinghy.