capacitor
capacitor copied to clipboard
feat: add cap build android --debug option
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
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.
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