Skip to content

Commit

Permalink
standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed May 28, 2024
1 parent 58dc6d6 commit da3e642
Show file tree
Hide file tree
Showing 228 changed files with 19,534 additions and 1,778 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ xcuserdata
*.gpg
*.pgp
*.psd
kotlins-js-store
kotlins-js-store
.kotlin
8 changes: 2 additions & 6 deletions compottie/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.android.library)
alias(libs.plugins.compose)
alias(libs.plugins.composeCompiler)
alias(libs.plugins.dokka)
alias(libs.plugins.serialization)
id("maven-publish")
Expand Down Expand Up @@ -55,14 +56,12 @@ kotlin {
commonMain.dependencies {
implementation(compose.foundation)
implementation(compose.animation)
implementation(libs.serialization)
}

val desktopMain by getting
val wasmJsMain by getting

androidMain.dependencies {
api(libs.lottie.android)
}


val skikoMain by creating {
Expand All @@ -72,9 +71,6 @@ kotlin {
macosMain.get().dependsOn(this)
jsMain.get().dependsOn(this)
wasmJsMain.dependsOn(this)
dependencies {
implementation(libs.serialization)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.airbnb.lottie;

@Deprecated
public interface Cancellable {
void cancel();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.airbnb.lottie;

import android.graphics.Typeface;

/**
* Delegate to handle the loading of fonts that are not packaged in the assets of your app or don't
* have the same file name.
*
* @see LottieDrawable#setFontAssetDelegate(FontAssetDelegate)
*/
@SuppressWarnings({"unused", "WeakerAccess"}) public class FontAssetDelegate {

/**
* Override this if you want to return a Typeface from a font family.
*/
public Typeface fetchFont(String fontFamily) {
return null;
}

/**
* Override this if you want to return a Typeface from a font family and style.
*/
public Typeface fetchFont(String fontFamily, String fontStyle, String fontName) {
return null;
}

/**
* Override this if you want to specify the asset path for a given font family.
*/
public String getFontPath(String fontFamily) {
return null;
}

/**
* Override this if you want to specify the asset path for a given font family and style.
*/
public String getFontPath(String fontFamily, String fontStyle, String fontName) {
return null;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.airbnb.lottie;

import android.graphics.Bitmap;

import androidx.annotation.Nullable;

/**
* Delegate to handle the loading of bitmaps that are not packaged in the assets of your app.
*
* @see LottieDrawable#setImageAssetDelegate(ImageAssetDelegate)
*/
public interface ImageAssetDelegate {
@Nullable Bitmap fetchBitmap(LottieImageAsset asset);
}
Loading

0 comments on commit da3e642

Please sign in to comment.