@@ -46,15 +46,22 @@ jobs:
4646 onesignal-app-id : ${{ vars.APPIUM_ONESIGNAL_APP_ID }}
4747 onesignal-api-key : ${{ secrets.APPIUM_ONESIGNAL_API_KEY }}
4848
49- - name : Build release APK
49+ - name : Build debug APK
5050 working-directory : examples/demo/android
51- run : ./gradlew assembleRelease --quiet --console=plain --warning-mode=summary
51+ # Use the debug variant: Capacitor only calls
52+ # WebView.setWebContentsDebuggingEnabled(true) when BuildConfig.DEBUG
53+ # is true, which Appium needs to enter the WEBVIEW context (CSS /
54+ # data-testid selectors). Release APKs error with
55+ # "Failed to get sockets matching: @webview_devtools_remote_.*".
56+ # -PciSingleAbi → arm64-v8a-only APK; BrowserStack devices are all
57+ # arm64-v8a, so dropping other ABIs trims size with no test impact.
58+ run : ./gradlew assembleDebug -PciSingleAbi --quiet --console=plain --warning-mode=summary
5259
5360 - name : Upload APK
5461 uses : actions/upload-artifact@v7
5562 with :
5663 name : demo-apk
57- path : examples/demo/android/app/build/outputs/apk/release /app-release .apk
64+ path : examples/demo/android/app/build/outputs/apk/debug /app-arm64-v8a-debug .apk
5865 retention-days : 1
5966 compression-level : 0
6067
9299
93100 - name : Build signed IPA
94101 working-directory : examples/demo/ios/App
102+ # Release builds are fine for Appium because capacitor.config.ts sets
103+ # `ios.webContentsDebuggingEnabled: true`, which forces
104+ # WKWebView.isInspectable=true so the WEBVIEW_* context (and
105+ # data-testid selectors) remain available in Release IPAs.
95106 run : |
96107 xcodebuild archive \
97108 -project App.xcodeproj \
@@ -138,7 +149,7 @@ jobs:
138149 with :
139150 platform : android
140151 app-artifact : demo-apk
141- app-filename : app-release .apk
152+ app-filename : app-arm64-v8a-debug .apk
142153 sdk-type : capacitor
143154 build-name : capacitor-android-${{ github.ref_name }}-${{ github.run_number }}
144155
0 commit comments