InflationX / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
1.09k stars 82 forks source link

ViewPump shows deprecation error. #61

Open tateisu opened 1 year ago

tateisu commented 1 year ago

ViewPump new version shows deprecation error that suggests don't use global ViewPump instance.

mrfaa commented 1 year ago

Also here:

implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.1.1'

grafik

tateisu commented 1 year ago
 Caused by: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x1c
                                            at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:305)
                                            at android.content.res.Resources.getResourceEntryName(Resources.java:2412)
                                            at io.github.inflationx.calligraphy3.Calligraphy.matchesResourceIdName(Calligraphy.java:94)

also, maybe Calligraphy does not recognize resource ids in app package.

https://developer.android.com/build/releases/gradle-plugin

android.nonTransitiveRClass AGP 8.0 generates R classes for resources defined in the current module only.

roumenh commented 1 year ago

Maybe its already time to migrate to native solution instead of using 4 years old ancient library :) https://davidmigloz.medium.com/migrating-custom-fonts-from-calligraphy-to-android-fonts-3b635fd945dc