capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

feat: add cap build android --debug option

Open distante opened this issue 2 years ago • 2 comments

Feature Request

Description

I am trying to implement Appium tests, for this, before running the test I need to build a debug APK with the latest code base, which currently is not possible since cap build android always asks for signing information

Platform(s)

Android

Preferred Solution

allow to run cap build android --debug

Alternatives

I could try to run the gradlew code myself from a script...?

Additional Context

distante avatar Nov 02 '23 14:11 distante

This seems reasonable to me.

I assume you've figured out how to run gradlew yourself by now, but if you haven't: we use gradlew :app:assembleDebug from the android project directory.

We probably wouldn't end up using your proposed --debug flag because we can't pass arbitrary gradle tasks to build and we can upload to Firebase AppDistribution with gradlew :app:assembleDebug :app:appDistributionUploadDebug, but I can see the value in the flag for those who don't need the additional customization.

terencehonles avatar Nov 30 '23 18:11 terencehonles

This is right what I'm looking for in 2024 to be able to send a test apk Edit: I had to grab it from android/app/build/intermediates/apk/debug/app-debug.apk after a successful run

matheo avatar Jul 03 '24 04:07 matheo