Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ jobs:
METRO_PORT: 8081
ANDROID_AVD: webgpu-agent
ANDROID_SYSTEM_IMAGE: system-images;android-35;default;x86_64
ANDROID_PACKAGE: com.microsoft.reacttestapp
ANDROID_PACKAGE: com.reactnativewebgpu.example
AGENT_OUTPUT: ${{ github.workspace }}/agent-output
steps:
# The pull request's head when a number is given. The build then runs
Expand Down Expand Up @@ -389,7 +389,9 @@ jobs:
ok=0; for i in 1 2 3 4 5; do adb wait-for-device install -r apps/example/android/app/build/outputs/apk/debug/app-debug.apk && ok=1 && break; echo "adb install failed (attempt $i)"; sleep 5; done; [ "$ok" = 1 ]
curl -sf --max-time 900 -o /dev/null \
"http://localhost:$METRO_PORT/index.bundle?platform=android&dev=true&lazy=true&minify=false"
adb shell am start -W -n "$ANDROID_PACKAGE/.MainActivity"
# The activity keeps react-native-test-app's own package name: the
# application id is the example's, the Java namespace is not.
adb shell am start -W -n "$ANDROID_PACKAGE/com.microsoft.reacttestapp.MainActivity"
sleep 20
adb exec-out screencap -p > "$AGENT_OUTPUT/launch.png"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ jobs:
adb reverse tcp:8081 tcp:8081
nohup adb logcat > logcat.txt 2>&1 &
adb install -r apps/example/android/app/build/outputs/apk/debug/app-debug.apk
adb shell monkey -p com.microsoft.reacttestapp 1
adb shell monkey -p com.reactnativewebgpu.example 1
cd packages/webgpu && yarn test

# Same purpose as the iOS upload above: missing snapshots written on this
Expand Down
1 change: 1 addition & 0 deletions apps/example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}
},
"android": {
"package": "com.reactnativewebgpu.example",
"permissions": [
{ "android:name": "android.permission.INTERNET" },
{ "android:name": "android.permission.CAMERA" },
Expand Down
2 changes: 2 additions & 0 deletions apps/example/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const project = (() => {
return configureProjects({
android: {
sourceDir: "android",
// The Java namespace of react-native-test-app's app module, where
// BuildConfig lives (the application id is set in app.json).
packageName: "com.microsoft.reacttestapp"
},
ios: {
Expand Down
Loading