kaushikgodhani / vocsy_epub_viewer

Apache License 2.0
29 stars 68 forks source link

Crash app when read epub file #54

Closed umeshshende closed 2 months ago

umeshshende commented 9 months ago

It is working in debug apk but same not working in release apk

     VocsyEpub.open(path,
          lastLocation: EpubLocator.fromJson({
            "bookId": bookid,
            "href": href,
            "created": created,
            "locations": {"cfi": location},
          }));
YashVanani commented 4 months ago

I'm encountering an issue with my release APK. While it works fine in debug mode, it crashes on any Android version when running the release build.

jalakamkiran commented 4 months ago

I found the issue the problem is its not able to parse the material color to hex code and send to the method channel.

image

The fix is simple we just have to replace the Util.getHexCodeColor function with a static hex code for other devs to work.

Meaninwhile , @kaushikgodhani I can rise a PR if you are ok to fix this issue permanantly. Let me know on the same.

rafaeuw commented 4 months ago

i have the same issue. @jalakamkiran. if you could, it would be nice if you could send the fix for this error in the issue.

djoks commented 2 months ago

i have the same issue. @jalakamkiran. if you could, it would be nice if you could send the fix for this error in the issue.

Check and let me know if this works: https://github.com/kaushikgodhani/vocsy_epub_viewer/pull/60

CC: @kaushikgodhani

kaushikgodhani commented 2 months ago

SORRY FOR DELAY

PLEASE CHECK THIS NEW VERSION "vocsy_epub_viewer: ^3.0.0" AND GIVE YOUR REVIEW. THANK YOU @djoks