Skip to content

Commit

Permalink
v1.5.3
Browse files Browse the repository at this point in the history
restartOnPlay added
  • Loading branch information
ismail committed Feb 23, 2024
1 parent 954ce59 commit 4540ce4
Show file tree
Hide file tree
Showing 38 changed files with 67 additions and 20,928 deletions.
20 changes: 2 additions & 18 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)

Expand All @@ -20,19 +16,13 @@ kotlin {
publishLibraryVariants("release")
}

jvm("desktop")
jvm()

js {
browser()
binaries.executable()
}

// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// browser()
// binaries.executable()
// }

listOf(
iosX64(),
iosArm64(),
Expand Down Expand Up @@ -89,7 +79,6 @@ kotlin {
val iosSimulatorArm64Main by getting

val iosMain by creating {
dependsOn(commonMain)
dependsOn(skiaMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
Expand All @@ -99,7 +88,7 @@ kotlin {
}
}

val desktopMain by getting {
val jvmMain by getting {
dependsOn(skiaMain)
dependencies {
implementation(libs.ktor.client.java)
Expand All @@ -113,11 +102,6 @@ kotlin {
}
}

// val wasmJsMain by getting {
// dependsOn(skiaMain)
// }


}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kottieComposition

import KottieCompositionSpec
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package kottieComposition

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.airbnb.lottie.LottieComposition
import com.airbnb.lottie.compose.animateLottieCompositionAsState
import kottieAnimationState.KottieAnimationState
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package kottieComposition

import androidx.compose.runtime.Composable
import com.airbnb.lottie.compose.LottieCompositionSpec
import com.airbnb.lottie.compose.rememberLottieComposition
import kottieComposition.kottieComposition


@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kottieComposition

import KottieCompositionSpec
import androidx.compose.runtime.Composable
import org.jetbrains.compose.resources.ExperimentalResourceApi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import kottie.lib.generated.resources.Res
package kottieComposition

import kotlin.jvm.JvmInline


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package kottieComposition

import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import kottieAnimationState.KottieAnimationState
Expand All @@ -9,5 +11,5 @@ expect fun animateKottieCompositionAsState(
speed: Float = 1f,
iterations: Int = 1,
isPlaying: Boolean = true,
restartOnPlay: Boolean = false
restartOnPlay: Boolean = true
): State<KottieAnimationState>
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package kottieComposition

import androidx.compose.runtime.Composable


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package utils

object KottieConstants {
val IterateForever = Int.MAX_VALUE
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kottieComposition

import KottieCompositionSpec
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package kottieComposition

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.State
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kottieComposition

import androidx.compose.runtime.Composable
import kotlinx.cinterop.ExperimentalForeignApi
import kottieComposition.kottieComposition
import lottie.lottieComposition.LottieCompositionSpec
import lottie.lottieComposition.rememberLottieComposition

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kottieComposition

import KottieCompositionSpec
import skiaComposition.SkiaCompositionSpec
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package kottieComposition

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.State
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kottieComposition

import skiaComposition.SkiaCompositionSpec
import androidx.compose.runtime.Composable
import kottieComposition.kottieComposition
import skiaComposition.rememberSkiaComposition

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package kottieComposition

import KottieCompositionSpec
import skiaComposition.SkiaCompositionSpec
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package kottieComposition

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.State
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package kottieComposition

import skiaComposition.SkiaCompositionSpec
import androidx.compose.runtime.Composable
import kottieComposition.KottieCompositionSpec
import kottieComposition.kottieComposition
import skiaComposition.rememberSkiaComposition

Expand Down

This file was deleted.

21 changes: 0 additions & 21 deletions lib/src/wasmJsMain/kotlin/kottieAnimation.wasmJs.kt

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions lib/src/wasmJsMain/kotlin/rememberkottieComposition.wasmJs.kt

This file was deleted.

10 changes: 2 additions & 8 deletions sample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ plugins {
kotlin {
androidTarget()

jvm("desktop")

// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// browser()
// binaries.executable()
// }
jvm()

js {
browser()
Expand Down Expand Up @@ -69,7 +63,7 @@ kotlin {
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}
val desktopMain by getting {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.common)
}
Expand Down
Loading

0 comments on commit 4540ce4

Please sign in to comment.