From 7bd21774fd6822daea1397beca9e5e26459d6762 Mon Sep 17 00:00:00 2001 From: Fabio Insolia Date: Mon, 27 Nov 2023 16:16:43 +0000 Subject: [PATCH] Push both builds --- .github/workflows/push-build.yml | 12 +++++++++++- .../checkout/checkout_android/CheckoutActivity.java | 1 - .../main/java/com/checkout/api/CheckoutApiClient.kt | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-build.yml b/.github/workflows/push-build.yml index ef167883..26617a55 100644 --- a/.github/workflows/push-build.yml +++ b/.github/workflows/push-build.yml @@ -36,8 +36,11 @@ jobs: ~/.gradle/caches ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - - name: Assembling ${{ inputs.module }} with Gradle + - name: Assemble Debug ${{ inputs.module }} with Gradle run: ./gradlew :${{ inputs.module }}:assembleDebug + + - name: Assemble Release ${{ inputs.module }} with Gradle + run: ./gradlew :${{ inputs.module }}:assembleRelease # Upload Artifact Build # Noted For Output [main_project_module]/build/outputs/apk/debug/ - name: Upload APK Debug - ${{ env.repository_name }} @@ -45,3 +48,10 @@ jobs: with: name: ${{ env.date_today }} - ${{ env.repository_name }} - APK(s) debug generated path: ${{ inputs.module }}/build/outputs/apk/debug/ + # Upload Artifact Build + # Noted For Output [main_project_module]/build/outputs/apk/debug/ + - name: Upload APK Release - ${{ env.repository_name }} + uses: actions/upload-artifact@v3 + with: + name: ${{ env.date_today }} - ${{ env.repository_name }} - APK(s) release generated + path: ${{ inputs.module }}/build/outputs/apk/release/ diff --git a/app/src/main/java/checkout/checkout_android/CheckoutActivity.java b/app/src/main/java/checkout/checkout_android/CheckoutActivity.java index 3876cf08..9de3643a 100644 --- a/app/src/main/java/checkout/checkout_android/CheckoutActivity.java +++ b/app/src/main/java/checkout/checkout_android/CheckoutActivity.java @@ -37,7 +37,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { }); } - private void initItemUI(String name, long price, @DrawableRes int imageResource, Button cvvToknizationButton) { TextView itemName = findViewById(R.id.text_item_name); ImageView itemImage = findViewById(R.id.image_item_image); diff --git a/checkout/src/main/java/com/checkout/api/CheckoutApiClient.kt b/checkout/src/main/java/com/checkout/api/CheckoutApiClient.kt index 36972b10..804d80e9 100644 --- a/checkout/src/main/java/com/checkout/api/CheckoutApiClient.kt +++ b/checkout/src/main/java/com/checkout/api/CheckoutApiClient.kt @@ -20,6 +20,7 @@ internal class CheckoutApiClient( logger.log(LoggingEvent(ApiClientEventType.INITIALIZE)) } + override fun createToken(request: CardTokenRequest) = tokenRepository.sendCardTokenRequest(request) override fun createToken(request: GooglePayTokenRequest) = tokenRepository.sendGooglePayTokenRequest(request)