Closed Rexee closed 3 months ago
I agree. These should be re-written. Feel like sending a PR? Thanks for the issue and sorry for the delay!
I confirm solution 2 works fine as a workaround
Hey @matteinn Thanks for your solution! I will add this to the ProGuard file: https://github.com/ocpsoft/prettytime/blob/master/core/src/main/resources/META-INF/proguard/prettytime.pro
These 2 locales "org.ocpsoft.prettytime.i18n.Resources_fi" and "org.ocpsoft.prettytime.i18n.Resources_ja" use reflection to get unit names:
As result, if we use Proguard, then there will be crashes because Proguard will obfuscate names of these classes. There is 2 possible solutions:
-keep public class * implements org.ocpsoft.prettytime.TimeUnit
I think Solution 1 is more correct, but Solution 2 is more easy