Git Product home page Git Product logo

Comments (3)

fredszaq avatar fredszaq commented on August 17, 2024 1

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.

fredszaq avatar fredszaq commented on August 17, 2024

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.

oligamiq avatar oligamiq commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.