Realm-java: 4.3.0 adds kotlin stdlib into project

Created on 5 Dec 2017  路  7Comments  路  Source: realm/realm-java

After update from 4.2.0, I found that my project had a dependency on kotlin stdlib.

Well, I'm glad that kotlin became official language for Android Development, but isn't it too soon? :)
I guess, that is a bug and kotlin + extensions must be optional.

Version of Realm and tooling

Realm version(s): 4.3.0
Realm sync feature enabled: no
Android Studio version: 3.0.1

T-Bug

Most helpful comment

I can reproduce this. It's a really embarrassing bug 馃槩 . There will be a 4.3.1 fixing this tomorrow.

All 7 comments

It should only do that if you already include Kotlin?

But you can disable it by adding this to your build.gradle:

```
android {
...
}
realm {
kotlinExtensionsEnabled = false
}

I do not use kotlin in project. Also, there is no Kotlin classes in apk when I build it with 4.2.0.
With kotlinExtensionsEnabled = false I also have Kotlin classes in output apk. I'll try to create example project.

Here is an example project: RealmKotlinExample.zip
And here is an APK analyzer result of assembleDebug output:
apk

I can reproduce this. It's a really embarrassing bug 馃槩 . There will be a 4.3.1 fixing this tomorrow.

Fixed by #5592

4.3.1 has been released with a fix for this

Thanks! Now it works properly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nolanamy picture nolanamy  路  3Comments

Merlin1993 picture Merlin1993  路  3Comments

tloshi picture tloshi  路  3Comments

gpulido picture gpulido  路  3Comments

David-Kuper picture David-Kuper  路  3Comments