java - Proguard configuration for Android Support v4 22.2.0 -
after updating dependencies on gradle android build use com.android.support:support-v4:22.2.0
local maven extras repository (within sdk), proguard started throwing these problems.
warning: android.support.v4.app.dialogfragment: can't find referenced class android.support.v4.app.dialogfragment$dialogstyle warning: android.support.v4.app.fragmenttransaction: can't find referenced class android.support.v4.app.fragmenttransaction$transit warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$resolvedlayoutdirectionmode warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$layoutdirectionmode warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$layertype warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$accessibilityliveregion warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$importantforaccessibility warning: android.support.v4.view.viewcompat: can't find referenced class android.support.v4.view.viewcompat$overscroll warning: android.support.v4.widget.drawerlayout: can't find referenced class android.support.v4.widget.drawerlayout$edgegravity warning: android.support.v4.widget.drawerlayout: can't find referenced class android.support.v4.widget.drawerlayout$lockmode warning: android.support.v4.widget.drawerlayout: can't find referenced class android.support.v4.widget.drawerlayout$state warning: there 11 unresolved references classes or interfaces. may need add missing library jars or update versions. if code works fine without missing classes, can suppress warnings '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
simply adding -dontwarn android.support.v4.**
solves problem, i'd more specific/elegant solution, ignoring problems on support.v4 package
can tell rules should added, these classes/@interfaces correctly processed proguard?
the solution have mentioned, i.e -dontwarn android.support.v4.**
. taken <path-to-android-sdk>/tools/proguard/proguard-android.txt
, says:
# support library contains references newer platform versions. # don't warn in case app linking against older # platform version. know them, , safe. -dontwarn android.support.**
Comments
Post a Comment