From fb4bce17462223cd7b56ce8cd3acb5010feb0307 Mon Sep 17 00:00:00 2001 From: Mac Adamarczuk Date: Tue, 7 Sep 2021 10:21:34 +0100 Subject: [PATCH] US632063: fix artifact generation in bitrise (#148) --- CHANGELOG.md | 5 +++-- access-checkout/gradle/upload.gradle | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf026cf7..6e5dc316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,14 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### Unreleased +### [v2.2.0](https://github.com/Worldpay/access-checkout-android/releases/tag/v2.2.0) - 2021-09-07 #### Added - Ability to enable Pan formatting by calling `enablePanFormatting()` when building `CardValidationConfig` #### Changed - All Pans that are entered will be formatted by default. All card brands except for Amex will be formatted as `XXXX-XXXX-XXXX-XXXX`. Amex will be formatted as `XXXX-XXXXXX-XXXXX`. +- Sanitise `BaseUrl` configuration value to remove trailing forward slashes, so that `http://localhost/` becomes `http://localhost` -### [v2.1.0](https://github.com/Worldpay/access-checkout-android/releases/tag/v2.1.0) - 2020-03-15 +### [v2.1.0](https://github.com/Worldpay/access-checkout-android/releases/tag/v2.1.0) - 2021-03-15 #### Added - Ability to specify the card brands to support for validation, all other card brands will no longer be valid during card validation diff --git a/access-checkout/gradle/upload.gradle b/access-checkout/gradle/upload.gradle index a14c0d4e..08058fc9 100644 --- a/access-checkout/gradle/upload.gradle +++ b/access-checkout/gradle/upload.gradle @@ -67,10 +67,10 @@ artifacts { } afterEvaluate { - def filePrefix = "$buildDir/outputs/aar/$archivesBaseName" + def filePrefix = "$buildDir/outputs/aar/access-checkout" def fileSuffix = "aar" def originalFile = file("$filePrefix-release.$fileSuffix") - def renamedFile = "$filePrefix-$version.$fileSuffix" + def renamedFile = "$filePrefix-android-$version.$fileSuffix" tasks.named("assembleRelease").configure { doLast { originalFile.renameTo(renamedFile)