Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the JVM IR backend. #670

Merged
merged 3 commits into from
Mar 3, 2021
Merged

Enable the JVM IR backend. #670

merged 3 commits into from
Mar 3, 2021

Conversation

colinrtwhite
Copy link
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.

@@ -660,7 +676,7 @@ public final class coil/size/OriginalSize : coil/size/Size {
public fun writeToParcel (Landroid/os/Parcel;I)V
}

public class coil/size/OriginalSize$Creator : android/os/Parcelable$Creator {
public final class coil/size/OriginalSize$Creator : android/os/Parcelable$Creator {
Copy link
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.

@@ -4,6 +4,7 @@ public abstract class coil/fetch/VideoFrameFetcher : coil/fetch/Fetcher {
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
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