Eventbus: Embed R8 rules in JAR

Created on 21 Jul 2020  路  4Comments  路  Source: greenrobot/EventBus

Most helpful comment

Once we do, yes. However, it's R8 that uses this file, not Gradle.
https://twitter.com/jakewharton/status/1004401938467876865

All 4 comments

EventBus is not distributed as an Android library (AAR), so that won't work.

But we could embed them using a meta-inf file similar to https://github.com/objectbox/objectbox-java/commit/92f3cd54a40ebea753886c480ef4c0094743e8ca

If proguard rule is embeded in META-INF directory, can gradle build system refer to this file?

Once we do, yes. However, it's R8 that uses this file, not Gradle.
https://twitter.com/jakewharton/status/1004401938467876865

This proposal is necessary because it is in step with The Times. Hope the official adoption update!

Was this page helpful?
0 / 5 - 0 ratings