Conversation

[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.
1
1
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
Replying to and
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.
2
Replying to
Minify works (strips 7 mb), but error: "Resource shrinker cannot be used for libraries". And without ShrinkResources true" 'kotlin' folder still exists in final APK (it is present only if MinSDK set to 28, with 26 isn't). So I'm guessing it's SDK issue.
1