Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix R8 rules to avoid crash when downloading Emoji Font #1312

Merged
merged 1 commit into from Jun 9, 2019

Conversation

connyduck
Copy link
Collaborator

@connyduck connyduck commented Jun 8, 2019

Seems R8 is optimizing away too much and the AsyncTask was missing methods. This also explains why it worked in a debug build.
cc @C1710

@connyduck connyduck requested a review from charlag June 8, 2019 07:17
@connyduck connyduck mentioned this pull request Jun 8, 2019
Copy link
Collaborator

@charlag charlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And that bug with autodispose does not occur anymore? Should be okay then.

@@ -94,9 +94,10 @@

-dontwarn com.google.errorprone.annotations.*

# work around a bug in proguard
# see https://sourceforge.net/p/proguard/bugs/729/
-keepnames public interface com.uber.autodispose.lifecycle.CorrespondingEventsFunction { *; }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This old rule can be removed as apparently R8 does not have this problem like ProGuard did

@connyduck connyduck merged commit d8f7845 into master Jun 9, 2019
pandasoft0 added a commit to roma-apps/roma-android that referenced this pull request Jun 10, 2019
* 2019 Emoji Update (tuskyapp#1261)

* Updated EmojiCompat support:
- Fonts are now updatable
  - Old fonts will automatically be deleted
- Noto Emoji is supported
- New library version

* It will now (hopefully) only look through the emoji font directory if it exists...

* Added a noto emoji icon for Android <=6;
Font files and their version relation are only loaded once now.

* Small bugfix for the noto emoji icon

* Changed the initial size of the existingFontFiles list to a constant value

* Bugfixes
Old files are now (really) deleted
The latest version is used as the actuall font
Further optimizations

* Emoji font update triggers restart dialog

* Resized the Noto icon;
(Hopefully) fixed EmojiCompat (again)

* Redesign report activity (tuskyapp#1295)

* Report activity core

* Implement navigation

* Implement navigation

* Update strings

* Revert manifest formatting

* Implement Done page

* Add landscape layout

* Implement Note fragment

* Create component

* Implement simple status adapter

* Format code

* Add date/time to report statuses

* Refactor status view holder

* Refactor code

* Refactor ViewPager

* Replace MaterialButton with Button

* Remove unneeded string

* Update Text and Check views style

* Remove old ReportActivity and rename Report2Activity to ReportActivity

* Hide "report to remote instance" checkbox for local accounts

* Add account, hashtag and links click handler

* Add media preview

* Add sensitive content support

* Add status expand/collapse support

* Update adapter to user adapterPosition instead of stored status

* Updated checked change handling

* Add polls support to report screen

* Add copyright

* Set buttonTint at CheckBox

* Exclude reblogs from statuses for reports

* Change final page check mark size

* Update report note screen

* Fix typos

* Remove unused params from api endpoint

* Replace .visibility with show()/hide()

* Replace Date().time with System.currentTime...

* Add line spacing

* Fix close button tint issue

* Updated status adapter

* fix r8 rules to avoid crash when downloading Emoji Font (tuskyapp#1312)

* Fix after merge

* Update Dagger & other deps (tuskyapp#1315)

* update dagger

* update remaining deps

* Fix after merge

* Fix after merge

* Update Android injector, move chat to components

* Version: 7.4.86
@connyduck connyduck deleted the fix-r8-rules branch July 16, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants