-
Notifications
You must be signed in to change notification settings - Fork 50
Use Java instead of Kotlin? #228
Description
I'm not sure about this, as I may be doing something else that is non-ideal, but it appears to have added about 2.6 MB to my final .aab file. (from 17.3 to 19.6 MB).
I just got this jni-0.22 branch to work with my Android app. I ended up simply adding the CertificateVerifier.kt file directly to my project, since that was easier - required fewer modifications to my gradle files. The class files for that are only a about 25K, so I'm guessing the size change is that it pulled in the Kotlin stdlib. Before this I had only a few .java files in my Android project, for a main activity and a couple other shims/connectors for help via JNI.
Kotlin is great and any normal Android project is going to use it. But when writing the app mainly in Rust like I am, it's not needed.
And 2.6 MB is probably nothing these days, but for Rust, where you can be very lean and mean, it might be nice to be a perfectionist here... ?