linkedin / dexmaker

A utility for doing compile or runtime code generation targeting Android's Dalvik VM
Apache License 2.0
1.86k stars 248 forks source link

Make generated jar files read-only after creation #181

Closed topjohnwu closed 2 years ago

topjohnwu commented 2 years ago

In a future version of Android(^1), dynamically loaded dex files cannot be writable to the loading process. This affects Mockito in instrumentation tests, as dex bytecode is generated and loaded at runtime.

I also took the liberty and updated the gradle project and dependencies. Please let me know if this is unwanted and I can remove those changes.

^1: https://android-review.googlesource.com/q/topic:ro_java_dcl

topjohnwu commented 2 years ago

@cckroets this is the only change currently planned that would affect dexmaker (at least for now). A release would be appreciated!