Ayrx / axmldecoder

Decoder for the binary XML format used by Android.
Apache License 2.0
20 stars 10 forks source link

Fix deku dependency and add the option to iterate over the entire examples directory at once #10

Closed battleoverflow closed 1 year ago

battleoverflow commented 1 year ago

It seems like one of the dependencies (deku) needs to be updated to support a working version of funty, which is a direct dependency of bitvec. So I bumped the deku version to 0.16, which satisfies the requirement.

error: failed to select a version for the requirement `funty = "~1.2"`
candidate versions found which didn't match: 2.0.0, 1.1.0, 1.0.1, ...

required by package `bitvec v0.22.1`
    ... which satisfies dependency `bitvec = "^0.22.1"` of package `deku v0.12.6`
    ... which satisfies dependency `deku = "^0.12.4"` of package `axmldecoder v0.4.0`

I also included some updates to the axmldecoder-printer binary to allow for non-argument parsing. Now if running the binary without providing an argument, it'll run against all files in the examples directory.

Examples

Running the binary alone should return everything under the examples directory:

./axmldecoder-printer

Providing an argument should work the same as before:

./axmldecoder-printer ../examples/AndroidManifest.xml
Ayrx commented 1 year ago

Cheers for this, will cut a new release shortly :)