dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
155 stars 43 forks source link

[jnigen] README structure doesn't provide a simple getting started flow #1640

Open stuartmorgan opened 4 weeks ago

stuartmorgan commented 4 weeks ago

Coming to jnigen for the first time, the README didn't help me get started quickly. In general what I would want to see is an overview of what it is, enough info to get started, and then the setup and commands I need to run.

The current flow is:

High level, I think swapping out what's shown for Dart in the example, and the adding a top-level "Usage" or similar right after the example that has the requirements and basic command to run would help a lot. The a lot of the caveats could move below that.

stuartmorgan commented 3 weeks ago

It would also be good to mention in the setup/usage section that the project needs to add jni. I assumed it would be a transitive dependency, so hit Fatal: package:jni was not found. almost immediately.