Skip to content

Commit 69a2c0e

Browse files
potential fixes
1 parent b2b5af0 commit 69a2c0e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/capacitor/example-app/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
android:label="@string/app_name"
88
android:roundIcon="@mipmap/ic_launcher_round"
99
android:supportsRtl="true"
10-
android:theme="@style/AppTheme">
10+
android:theme="@style/AppTheme"
11+
android:usesCleartextTraffic="true">
1112

1213
<activity
1314
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation|density"

packages/capacitor/vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class CapacitorBrowserProvider implements BrowserProvider {
7676

7777
async openPage(_sessionId: string, url: string, _options?: { parallel: boolean }) {
7878
const serverUrl = serverUrlForPlatform(url);
79+
console.log(`Opening Capacitor app with Vitest URL: ${serverUrl}`);
7980

8081
// Ensure the target app spawning webviews is up-to-date with the current Vitest server URL.
8182
const buildResult = spawnSync('npx', ['cap', 'sync'], {
@@ -89,6 +90,8 @@ class CapacitorBrowserProvider implements BrowserProvider {
8990
if (buildResult.status !== 0) {
9091
throw new Error(`cap sync failed with exit code ${buildResult.status}`);
9192
}
93+
console.log(`Launching ${environment.platform} Capacitor app on ${environment.target}`);
94+
9295
const app = spawn('npx', ['cap', 'run', environment.platform, '--target', environment.target, '--no-sync'], {
9396
cwd: EXAMPLE_APP_DIR,
9497
env: {

0 commit comments

Comments
 (0)