From 83ec1593e78131165bfa9ce3d40166e37fd511b7 Mon Sep 17 00:00:00 2001 From: Gabriel Peal Date: Mon, 13 Feb 2023 22:59:07 -0800 Subject: [PATCH] v6.0.0 --- build.gradle | 4 ++-- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- lottie-compose/build.gradle | 7 +++++++ lottie/build.gradle | 6 ++++++ .../java/com/airbnb/lottie/value/LottieValueCallback.java | 2 +- upload_release.sh | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 553265fced..7fa614c8f5 100644 --- a/build.gradle +++ b/build.gradle @@ -28,9 +28,9 @@ buildscript { } dependencies { classpath 'org.ajoberstar.grgit:grgit-gradle:4.1.1' - classpath 'com.android.tools.build:gradle:7.0.4' + classpath 'com.android.tools.build:gradle:7.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" - classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.24.0' classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.5.30' } } diff --git a/gradle.properties b/gradle.properties index 24de3cc900..5cabffb91e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=6.0.0-SNAPSHOT +VERSION_NAME=6.0.0 GROUP=com.airbnb.android POM_DESCRIPTION=Lottie is an animation library that renders Adobe After Effects animations natively in realtime. diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a254e..e750102e09 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/lottie-compose/build.gradle b/lottie-compose/build.gradle index 21f3d2d5ae..e4cb06713a 100644 --- a/lottie-compose/build.gradle +++ b/lottie-compose/build.gradle @@ -1,3 +1,5 @@ +import com.vanniktech.maven.publish.SonatypeHost + plugins { id 'com.android.library' id 'kotlin-android' @@ -36,6 +38,11 @@ android { } } +mavenPublishing { + publishToMavenCentral(SonatypeHost.DEFAULT) + signAllPublications() +} + dependencies { api project(':lottie') implementation "androidx.compose.foundation:foundation:$composeVersion" diff --git a/lottie/build.gradle b/lottie/build.gradle index 8ba8dcfe7d..2cc26bae2e 100644 --- a/lottie/build.gradle +++ b/lottie/build.gradle @@ -1,3 +1,4 @@ +import com.vanniktech.maven.publish.SonatypeHost import net.ltgt.gradle.errorprone.CheckSeverity plugins { @@ -30,6 +31,11 @@ android { } } +mavenPublishing { + publishToMavenCentral(SonatypeHost.DEFAULT) + signAllPublications() +} + dependencies { implementation "androidx.appcompat:appcompat:$appcompatVersion" // Do not upgrade to 2.0 because it will bring in Kotlin as a transitive dependency. diff --git a/lottie/src/main/java/com/airbnb/lottie/value/LottieValueCallback.java b/lottie/src/main/java/com/airbnb/lottie/value/LottieValueCallback.java index 1cf5d2053e..602700095f 100644 --- a/lottie/src/main/java/com/airbnb/lottie/value/LottieValueCallback.java +++ b/lottie/src/main/java/com/airbnb/lottie/value/LottieValueCallback.java @@ -14,7 +14,7 @@ * * If your dynamic property does the following, you must call {@link LottieAnimationView#invalidate()} or * {@link LottieDrawable#invalidateSelf()} each time you want to update this value. - * 1. Use {@link com.airbnb.lottie.RenderMode.SOFTWARE} + * 1. Use {@link com.airbnb.lottie.RenderMode#SOFTWARE} * 2. Rendering a static image (the animation is either paused or there are no values * changing within the animation itself) * When using software rendering, Lottie caches the internal rendering bitmap. Whenever the animation changes diff --git a/upload_release.sh b/upload_release.sh index aa08990eb5..b1dd6028e9 100755 --- a/upload_release.sh +++ b/upload_release.sh @@ -4,4 +4,4 @@ if [ "$git_branch" != "master" ]; then echo "You must run this from master!" exit 1 fi -./gradlew clean lottie:assembleRelease lottie-compose:assembleRelease lottie:publish lottie-compose:publish -DORG_GRADLE_PROJECT_mavenCentralUsername="${SONATYPE_USERNAME}" -DORG_GRADLE_PROJECT_mavenCentralPassword="${SONATYPE_PASSWORD}" --rerun-tasks --no-parallel --no-configuration-cache \ No newline at end of file +./gradlew clean lottie:assembleRelease lottie-compose:assembleRelease lottie:publish lottie-compose:publish --rerun-tasks --no-parallel --no-configuration-cache --stacktrace