FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.25k stars 717 forks source link

minifyEnabled issue #454

Open abduroid opened 4 years ago

abduroid commented 4 years ago

Issue / Feature - Open EPUB from raw FolioReader version - 0.5.4

Steps to reproduce / Describe in detail -

  1. Set minifyEnabled true in release mode
  2. Build in release mode
  3. Run the built app

And app is not opening EPUB file

Here is the error message thrown on opening https://gist.github.com/abduqodirov/b216efc33837a125bdcffe1956145887

yashdevelops commented 4 years ago

help me !facing same issue. is it fixed ?

abduroid commented 4 years ago

help me !facing same issue. is it fixed ?

-ignorewarnings
-keep class * {
    public private *;
}

I've fixed the issue by adding these lines to my proguard rules file. I'm not sure whether better way to fix it, but I didn't have enough time to research deeper. Let me know if you find more accurate rule for proguard