Fix for PRs
diff --git a/lottie-compose/build.gradle b/lottie-compose/build.gradle
index 1aef61d..16f5ce5 100644
--- a/lottie-compose/build.gradle
+++ b/lottie-compose/build.gradle
@@ -40,8 +40,8 @@
mavenPublish {
targets {
uploadArchives {
- repositoryUsername = SONATYPE_USERNAME
- repositoryPassword = SONATYPE_PASSWORD
+ repositoryUsername = hasProperty('SONATYPE_USERNAME') ? SONATYPE_USERNAME : ""
+ repositoryPassword = hasProperty('SONATYPE_PASSWORD') ? SONATYPE_PASSWORD : ""
}
}
}
diff --git a/lottie/build.gradle b/lottie/build.gradle
index 40aa99e..fa46b51 100644
--- a/lottie/build.gradle
+++ b/lottie/build.gradle
@@ -31,8 +31,8 @@
mavenPublish {
targets {
uploadArchives {
- repositoryUsername = SONATYPE_USERNAME
- repositoryPassword = SONATYPE_PASSWORD
+ repositoryUsername = hasProperty('SONATYPE_USERNAME') ? SONATYPE_USERNAME : ""
+ repositoryPassword = hasProperty('SONATYPE_PASSWORD') ? SONATYPE_PASSWORD : ""
}
}
}