airbnb / DeepLinkDispatch

A simple, annotation-based library for making deep link handling better on Android
http://nerds.airbnb.com/deeplinkdispatch/
4.37k stars 407 forks source link

Fix issue with chunk length #292

Closed rossbacher closed 4 years ago

rossbacher commented 4 years ago

The Java/Kotlin compiler saves the string constant in a Modified UTF-8 byte array which has to be 16 bit addressable. This PR adds a function that will chunk any given string based on it's Modified UTF-8 byte array representation.

This will allow us to have as few chunks as possible and also not accidentally creating a chrunk that is larger than the max size allowed in code.