From 8ac88e636a86fd3ab2e106681ea96ec5ac9f87a6 Mon Sep 17 00:00:00 2001 From: Jeb Date: Thu, 25 Jan 2024 12:48:57 +0700 Subject: [PATCH] fix: package corruption (#113) --- CHANGELOG.md | 8 ++++++-- README.md | 8 ++++---- xendit-android/build.gradle | 37 +++++++++++++++++++++++++++++++++++-- 3 files changed, 45 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d12cddf..a183100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # CHANGELOG -## 4.0.0 (2024-01-22) -- Update to use Andriod API Version 34 (Android 14) +## 4.1.0 (2024-01-25) +- Fix package corruption issues on 4.0.0. + + +## 4.0.0 (2024-01-22) - Package Corrupted. Use latest version instead +- Update to use Andriod API Version 34 (Android 14). This package is corrupted ## 3.8.5 (2023-07-04) - Chore: Upgrade sentry-android to 6.24.0 diff --git a/README.md b/README.md index c7bfd67..cd33b45 100644 --- a/README.md +++ b/README.md @@ -31,24 +31,24 @@ Maven: com.xendit xendit-android - 4.0.0 + 4.1.0 pom ``` Gradle: ``` -compile 'com.xendit:xendit-android:4.0.0' +compile 'com.xendit:xendit-android:4.1.0' ``` Ivy: ``` - + ``` -For more information, visit https://central.sonatype.dev/artifact/com.xendit/xendit-android/3.8.5/versions +For more information, visit https://central.sonatype.dev/artifact/com.xendit/xendit-android/4.1.0/versions **Note**: diff --git a/xendit-android/build.gradle b/xendit-android/build.gradle index 6598296..08996a5 100644 --- a/xendit-android/build.gradle +++ b/xendit-android/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.jfrog.bintray' apply plugin: 'signing' group 'com.xendit' -version '4.0.0' +version '4.1.0' ext { bintrayOrg = 'xendit' @@ -38,7 +38,7 @@ android { minSdkVersion 21 targetSdkVersion 34 versionCode 1 - versionName '4.0.0' + versionName '4.1.0' testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' } buildTypes { @@ -64,6 +64,7 @@ android { buildFeatures { buildConfig = true } + buildToolsVersion '34.0.0' } dependencies { @@ -170,6 +171,22 @@ publishing { email = developerEmail } } + + withXml { + def dependenciesNode = asNode().appendNode('dependencies') + + // Iterate over the implementation dependencies (we don't want the test ones), + // adding a node for each + configurations.implementation.allDependencies.each { + // Ensure dependencies such as fileTree are not included in the pom. + if (it.name != 'unspecified') { + def dependencyNode = dependenciesNode.appendNode('dependency') + dependencyNode.appendNode('groupId', it.group) + dependencyNode.appendNode('artifactId', it.name) + dependencyNode.appendNode('version', it.version) + } + } + } } } @@ -205,6 +222,22 @@ publishing { email = developerEmail } } + + withXml { + def dependenciesNode = asNode().appendNode('dependencies') + + // Iterate over the implementation dependencies (we don't want the test ones), + // adding a node for each + configurations.implementation.allDependencies.each { + // Ensure dependencies such as fileTree are not included in the pom. + if (it.name != 'unspecified') { + def dependencyNode = dependenciesNode.appendNode('dependency') + dependencyNode.appendNode('groupId', it.group) + dependencyNode.appendNode('artifactId', it.name) + dependencyNode.appendNode('version', it.version) + } + } + } } } }