Skip to content

Commit

Permalink
fix: package corruption (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenthajeb authored Jan 25, 2024
1 parent 3df2eca commit 8ac88e6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 8 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ Maven:
<dependency>
<groupId>com.xendit</groupId>
<artifactId>xendit-android</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
<type>pom</type>
</dependency>
```

Gradle:
```
compile 'com.xendit:xendit-android:4.0.0'
compile 'com.xendit:xendit-android:4.1.0'
```

Ivy:
```
<dependency org='com.xendit' name='xendit-android' rev='4.0.0'>
<dependency org='com.xendit' name='xendit-android' rev='4.1.0'>
<artifact name='xendit-android' ext='pom' ></artifact>
</dependency>
```

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**:

Expand Down
37 changes: 35 additions & 2 deletions xendit-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 {
Expand All @@ -64,6 +64,7 @@ android {
buildFeatures {
buildConfig = true
}
buildToolsVersion '34.0.0'
}

dependencies {
Expand Down Expand Up @@ -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 <dependency> 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)
}
}
}
}
}

Expand Down Expand Up @@ -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 <dependency> 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)
}
}
}
}
}
}
Expand Down

0 comments on commit 8ac88e6

Please sign in to comment.