Skip to content

Commit dca9488

Browse files
committed
release: fix R8 missing class javax.lang.model.element.Element via dontwarn for ARouter
1 parent ce528aa commit dca9488

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@
222222
-keep class * implements com.alibaba.android.arouter.facade.template.ISyringe{*;}
223223
# If using byType argument injection, keep the classes injected
224224
-keep class * implements com.alibaba.android.arouter.facade.template.IProvider
225+
# ARouter RouteMeta.rawType references javax.lang.model.element.Element which is JDK-only
226+
# (compile-time javax) and not available on Android runtime. R8 will fail with "Missing class"
227+
# unless we ignore the warning.
228+
-dontwarn javax.lang.model.**
229+
-dontwarn com.alibaba.android.arouter.**
225230

226231
# ============ Room ProGuard Rules ============
227232

0 commit comments

Comments
 (0)