-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from skydoves/feature/coil3
Implement coil3 module and support KMP
- Loading branch information
Showing
39 changed files
with
1,214 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...dscapist-app/src/main/kotlin/com/skydoves/benchmark/landscapist/app/CoilImage3Profiles.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Designed and developed by 2020-2023 skydoves (Jaewoong Eum) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.skydoves.benchmark.landscapist.app | ||
|
||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.unit.dp | ||
import com.skydoves.landscapist.ImageOptions | ||
import com.skydoves.landscapist.coil3.CoilImage | ||
import com.skydoves.landscapist.components.LocalImageComponent | ||
|
||
@Composable | ||
fun Coil3ImageProfiles() { | ||
CoilImage( | ||
modifier = Modifier.size(120.dp), | ||
imageModel = { | ||
"https://user-images.githubusercontent.com/" + | ||
"24237865/75087936-5c1d9f80-553e-11ea-81d3-a912634dd8f7.jpg" | ||
}, | ||
previewPlaceholder = painterResource(id = R.drawable.poster), | ||
component = LocalImageComponent.current, | ||
imageOptions = ImageOptions(tag = "CoilImage"), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
public final class com/skydoves/landscapist/coil3/CoilImageKt { | ||
public static final fun CoilImage (Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Lcom/skydoves/landscapist/components/ImageComponent;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun CoilImage (Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Lcom/skydoves/landscapist/components/ImageComponent;Lkotlin/jvm/functions/Function0;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;III)V | ||
} | ||
|
||
public abstract class com/skydoves/landscapist/coil3/CoilImageState : com/skydoves/landscapist/ImageState { | ||
public static final field $stable I | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Failure : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public fun <init> (Lcoil3/Image;Ljava/lang/Throwable;)V | ||
public final fun component1 ()Lcoil3/Image; | ||
public final fun component2 ()Ljava/lang/Throwable; | ||
public final fun copy (Lcoil3/Image;Ljava/lang/Throwable;)Lcom/skydoves/landscapist/coil3/CoilImageState$Failure; | ||
public static synthetic fun copy$default (Lcom/skydoves/landscapist/coil3/CoilImageState$Failure;Lcoil3/Image;Ljava/lang/Throwable;ILjava/lang/Object;)Lcom/skydoves/landscapist/coil3/CoilImageState$Failure; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getErrorImage ()Lcoil3/Image; | ||
public final fun getReason ()Ljava/lang/Throwable; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Loading : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/CoilImageState$Loading; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$None : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/CoilImageState$None; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Success : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public fun <init> (Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;)V | ||
public final fun component1 ()Lcoil3/Image; | ||
public final fun component2 ()Lcom/skydoves/landscapist/DataSource; | ||
public final fun copy (Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;)Lcom/skydoves/landscapist/coil3/CoilImageState$Success; | ||
public static synthetic fun copy$default (Lcom/skydoves/landscapist/coil3/CoilImageState$Success;Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;ILjava/lang/Object;)Lcom/skydoves/landscapist/coil3/CoilImageState$Success; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getDataSource ()Lcom/skydoves/landscapist/DataSource; | ||
public final fun getImage ()Lcoil3/Image; | ||
public final fun getImageBitmap (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/graphics/ImageBitmap; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageStateKt { | ||
public static final fun toCoilImageState (Lcom/skydoves/landscapist/ImageLoadState;)Lcom/skydoves/landscapist/coil3/CoilImageState; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/ComposableSingletons$CoilImageKt { | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/ComposableSingletons$CoilImageKt; | ||
public static field lambda-1 Lkotlin/jvm/functions/Function3; | ||
public static field lambda-2 Lkotlin/jvm/functions/Function3; | ||
public fun <init> ()V | ||
public final fun getLambda-1$coil3_release ()Lkotlin/jvm/functions/Function3; | ||
public final fun getLambda-2$coil3_release ()Lkotlin/jvm/functions/Function3; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/LocalCoilProviderKt { | ||
public static final fun getLocalCoilImageLoader ()Landroidx/compose/runtime/ProvidableCompositionLocal; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/RememberCoilImageStateKt { | ||
public static final fun rememberCoilImageState (Lcom/skydoves/landscapist/coil3/CoilImageState;Ljava/lang/Object;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/MutableState; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
public final class com/skydoves/landscapist/coil3/CoilImageKt { | ||
public static final fun CoilImage (Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Lcom/skydoves/landscapist/components/ImageComponent;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun CoilImage (Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Lcom/skydoves/landscapist/components/ImageComponent;Lkotlin/jvm/functions/Function0;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function5;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;III)V | ||
} | ||
|
||
public abstract class com/skydoves/landscapist/coil3/CoilImageState : com/skydoves/landscapist/ImageState { | ||
public static final field $stable I | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Failure : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public fun <init> (Lcoil3/Image;Ljava/lang/Throwable;)V | ||
public final fun component1 ()Lcoil3/Image; | ||
public final fun component2 ()Ljava/lang/Throwable; | ||
public final fun copy (Lcoil3/Image;Ljava/lang/Throwable;)Lcom/skydoves/landscapist/coil3/CoilImageState$Failure; | ||
public static synthetic fun copy$default (Lcom/skydoves/landscapist/coil3/CoilImageState$Failure;Lcoil3/Image;Ljava/lang/Throwable;ILjava/lang/Object;)Lcom/skydoves/landscapist/coil3/CoilImageState$Failure; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getErrorImage ()Lcoil3/Image; | ||
public final fun getReason ()Ljava/lang/Throwable; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Loading : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/CoilImageState$Loading; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$None : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/CoilImageState$None; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageState$Success : com/skydoves/landscapist/coil3/CoilImageState { | ||
public static final field $stable I | ||
public fun <init> (Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;)V | ||
public final fun component1 ()Lcoil3/Image; | ||
public final fun component2 ()Lcom/skydoves/landscapist/DataSource; | ||
public final fun copy (Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;)Lcom/skydoves/landscapist/coil3/CoilImageState$Success; | ||
public static synthetic fun copy$default (Lcom/skydoves/landscapist/coil3/CoilImageState$Success;Lcoil3/Image;Lcom/skydoves/landscapist/DataSource;ILjava/lang/Object;)Lcom/skydoves/landscapist/coil3/CoilImageState$Success; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getDataSource ()Lcom/skydoves/landscapist/DataSource; | ||
public final fun getImage ()Lcoil3/Image; | ||
public final fun getImageBitmap (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/graphics/ImageBitmap; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/CoilImageStateKt { | ||
public static final fun toCoilImageState (Lcom/skydoves/landscapist/ImageLoadState;)Lcom/skydoves/landscapist/coil3/CoilImageState; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/ComposableSingletons$CoilImageKt { | ||
public static final field INSTANCE Lcom/skydoves/landscapist/coil3/ComposableSingletons$CoilImageKt; | ||
public static field lambda-1 Lkotlin/jvm/functions/Function3; | ||
public static field lambda-2 Lkotlin/jvm/functions/Function3; | ||
public fun <init> ()V | ||
public final fun getLambda-1$coil3 ()Lkotlin/jvm/functions/Function3; | ||
public final fun getLambda-2$coil3 ()Lkotlin/jvm/functions/Function3; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/LocalCoilProviderKt { | ||
public static final fun getLocalCoilImageLoader ()Landroidx/compose/runtime/ProvidableCompositionLocal; | ||
} | ||
|
||
public final class com/skydoves/landscapist/coil3/RememberCoilImageStateKt { | ||
public static final fun rememberCoilImageState (Lcom/skydoves/landscapist/coil3/CoilImageState;Ljava/lang/Object;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/MutableState; | ||
} | ||
|
Oops, something went wrong.