[TalkBack FOSS] I've changed MinSDKVersion from 26 to 28 and 'kotlin' folder start to appear inside APK increasing it by 7 mb, although app is wrote (yet) in pure Java. Any idea? Thanks.
Conversation
Replying to
Make sure you're looking at a release build instead of a debug build. assembleRelease will build only the release build instead of both release and debug. It's possible that bytecode optimization isn't set up properly by the build system so it's not stripping unused stuff away.
1
1
They're missing setup for proguard-android-optimize.txt and a custom proguard-rules.pro is necessary. It's likely they missed that as part of open sourcing it. That would be wanted for the GrapheneOS TalkBack too and wouldn't require much review like code improvements.
1
1
They're missing this kind of setup to minify / optimize the code and strip unused resources:
github.com/GrapheneOS/Aud
You should try setting that up. Note that our apps are all using Gradle's Kotlin DSL now rather than the Groovy DSL. Shouldn't bother migrating TalkBack though.
2
2
The advantage of the Kotlin DSL is having a nicer language with static typing so you get help with avoiding errors in the build system. Not worth migrating TalkBack since it will make upstream releases much harder to incorporate in the future. Also an issue for making changes.

