vanniktech/Emoji

SmileysAndPeopleCategoryChunk2 constructor is too big for task instrumentationTestsWithCoverage when using gradle 7.2.2

bmarty opened this issue · 0 comments

Thank you for filing an issue. If this is a bug that you want to report, please take the time to provide some information:

  • Version of the library: 0.15.0
  • Affected devices: Android
  • Affected versions: all

Screenshot(s) showing the issue and reproduction steps are appreciated.


The library is working fine, and APK compilation is OK, but when compiling the project with ./gradlew instrumentationTestsWithCoverage, we observe the error:

org.objectweb.asm.MethodTooLargeException: Method too large: com/vanniktech/emoji/google/category/SmileysAndPeopleCategoryChunk2. ()V

I think the file good be split into 2 distinct chunks to fix this issue. I will provide a quick PR.

See more details in element-hq/element-android#6929 (comment). Changing gradle from 7.1.3 to 7.2.2 on this PR is creating the issue. When reverting to 7.1.3, we do not observe the issue.