Skip to content

Enable the JVM IR backend.#670

Merged
colinrtwhite merged 3 commits into
masterfrom
colin/ir
Mar 3, 2021
Merged

Enable the JVM IR backend.#670
colinrtwhite merged 3 commits into
masterfrom
colin/ir

Conversation

@colinrtwhite
Copy link
Copy Markdown
Member

@colinrtwhite colinrtwhite commented Feb 14, 2021

https://blog.jetbrains.com/kotlin/2021/02/the-jvm-backend-is-in-beta-let-s-make-it-stable-together/

Blocked by: https://youtrack.jetbrains.com/issue/KT-44993 (or a similar inline bug). This bug is fixed in Kotlin 1.5.0. Worked around the issue by removing internal for the function that was causing the issue.

}

public class coil/size/OriginalSize$Creator : android/os/Parcelable$Creator {
public final class coil/size/OriginalSize$Creator : android/os/Parcelable$Creator {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly this is not a binary incompatible change, however classes that extend this class with throw a VerifyError when instantiated. Assuming the Kotlin team has taken this into account.

public static final field VIDEO_FRAME_OPTION_KEY Ljava/lang/String;
public fun <init> (Landroid/content/Context;)V
public fun fetch (Lcoil/bitmap/BitmapPool;Ljava/lang/Object;Lcoil/size/Size;Lcoil/decode/Options;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final synthetic fun fetch$suspendImpl (Lcoil/fetch/VideoFrameFetcher;Lcoil/bitmap/BitmapPool;Ljava/lang/Object;Lcoil/size/Size;Lcoil/decode/Options;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bug in 1.4.31 that this is declared public, but it can't be called by Java and it's a Kotlin implementation detail so I wouldn't consider it part of the public API.

@colinrtwhite colinrtwhite merged commit 7f2bab6 into master Mar 3, 2021
@colinrtwhite colinrtwhite deleted the colin/ir branch March 3, 2021 20:06
colinrtwhite added a commit that referenced this pull request Oct 5, 2022
* Enable the JVM IR backend.

* Update API.

* Work around bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant