PreviewActivity in their release builds and/or worried about the APK size
impact caused by ui-tooling now have the option to add ui-tooling-preview as
an implementation API and ui-tooling as debugImplementation. PreviewActivity
won't then be part of the release APK, and its size shouldn't increase too
much, since ui-tooling-preview should be much smaller than ui-tooling.
✅ 1
Albert Chang
08/30/2021, 12:39 AM
ui-tooling contains PreviewActivity which is defined in AndroidManifest.xml so it won't be stripped by R8.
✅ 1
a
adjpd
08/30/2021, 12:59 AM
Thanks Albert.
It's open source, Sergei. I have no desire to obfuscate it. But if it helps performance I'll give it a go. Performance seems fine currently, however.