Skip to content

Commit

Permalink
Upgrade a bunch of dependencies (#2472)
Browse files Browse the repository at this point in the history
Fixes #2471
  • Loading branch information
gpeal committed Mar 3, 2024
1 parent f0f24b9 commit fef8d36
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions build.gradle
Expand Up @@ -33,14 +33,6 @@ allprojects {
kotlinOptions.jvmTarget = targetJavaVersion.toString()
}
}
["com.android.library", "com.android.application"].forEach { androidPlugin ->
pluginManager.withPlugin(androidPlugin) {
android {
sourceCompatibility targetJavaVersion
targetCompatibility targetJavaVersion
}
}
}
}

ext {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
@@ -1,5 +1,6 @@
package com.airbnb.lottie.animation.keyframe;

import android.annotation.SuppressLint;
import androidx.annotation.FloatRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
Expand All @@ -16,7 +17,9 @@
* @param <A> Animation type
*/
public abstract class BaseKeyframeAnimation<K, A> {

public interface AnimationListener {

void onValueChanged();
}

Expand Down Expand Up @@ -116,6 +119,7 @@ protected float getInterpolatedCurrentKeyframeProgress() {
return keyframe.interpolator.getInterpolation(getLinearCurrentKeyframeProgress());
}

@SuppressLint("Range")
@FloatRange(from = 0f, to = 1f)
private float getStartDelayProgress() {
if (cachedStartDelayProgress == -1f) {
Expand All @@ -124,6 +128,7 @@ private float getStartDelayProgress() {
return cachedStartDelayProgress;
}

@SuppressLint("Range")
@FloatRange(from = 0f, to = 1f)
float getEndProgress() {
if (cachedEndProgress == -1f) {
Expand Down Expand Up @@ -196,6 +201,7 @@ private static <T> KeyframesWrapper<T> wrap(List<? extends Keyframe<T>> keyframe
}

private interface KeyframesWrapper<T> {

boolean isEmpty();

boolean isValueChanged(float progress);
Expand All @@ -212,6 +218,7 @@ private interface KeyframesWrapper<T> {
}

private static final class EmptyKeyframeWrapper<T> implements KeyframesWrapper<T> {

@Override
public boolean isEmpty() {
return true;
Expand Down Expand Up @@ -244,6 +251,7 @@ public boolean isCachedValueEnabled(float progress) {
}

private static final class SingleKeyframeWrapper<T> implements KeyframesWrapper<T> {

@NonNull
private final Keyframe<T> keyframe;
private float cachedInterpolatedProgress = -1f;
Expand Down Expand Up @@ -288,6 +296,7 @@ public boolean isCachedValueEnabled(float progress) {
}

private static final class KeyframesWrapperImpl<T> implements KeyframesWrapper<T> {

private final List<? extends Keyframe<T>> keyframes;
@NonNull
private Keyframe<T> currentKeyframe;
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Expand Up @@ -11,6 +11,8 @@ plugins {
//// # available:'0.60.1'
//// # available:'0.60.2'
//// # available:'0.60.3'
//// # available:'0.60.4'
//// # available:'0.60.5'
}

dependencyResolutionManagement {
Expand Down

0 comments on commit fef8d36

Please sign in to comment.