Skip to content

Commit

Permalink
Merge pull request #270 from skydoves/refactor/stableholder
Browse files Browse the repository at this point in the history
Change StableHolder to a data class
  • Loading branch information
skydoves authored Apr 30, 2023
2 parents 1199443 + 5f87f8c commit 610f587
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dokka = "1.7.20"
jvmTarget = "17"
nexusPlugin = "1.3.0"
kotlinxCoroutines = "1.6.4"
kotlinBinaryCompatibility = "0.13.0"
kotlinBinaryCompatibility = "0.13.1"
androidGradlePlugin = "8.0.0-rc01"
androidxActivity = "1.4.0"
androidxMaterial = "1.6.0"
Expand Down
5 changes: 5 additions & 0 deletions landscapist/api/landscapist.api
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ public final class com/skydoves/landscapist/StableHolder {
public static final field $stable I
public fun <init> (Ljava/lang/Object;)V
public final fun component1 ()Ljava/lang/Object;
public final fun copy (Ljava/lang/Object;)Lcom/skydoves/landscapist/StableHolder;
public static synthetic fun copy$default (Lcom/skydoves/landscapist/StableHolder;Ljava/lang/Object;ILjava/lang/Object;)Lcom/skydoves/landscapist/StableHolder;
public fun equals (Ljava/lang/Object;)Z
public final fun getValue ()Ljava/lang/Object;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

public abstract interface class com/skydoves/landscapist/components/ImageComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ import androidx.compose.runtime.Stable

@Stable
@InternalLandscapistApi
public class StableHolder<T>(public val value: T) {
public operator fun component1(): T = value
}
public data class StableHolder<T>(public val value: T)

0 comments on commit 610f587

Please sign in to comment.