Skip to content

Commit fb350fa

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
docs: add Examples section with 12 spoiler examples + E2E tests
README.md gets a new Examples section with collapsible <details> blocks: NDK-native (complete runnable programs): - Record from microphone (AAudio) - Take a picture from camera (Camera2 + ImageReader) - List available sensors - Check thermal status - Query GPU capabilities (EGL + GLES2) - Probe available media codecs - Read device configuration - Decode an image file Cross-project sketches (noting which library to use): - Get GPS coordinates (jni/location) - Connect to WiFi AP (jni/net/wifi) - Send a notification (jni/app/notification) - Query battery status (aidl) E2E tests (tests/e2e/examples_test.go) verify the NDK examples compile and run correctly on an Android emulator. Run with: make e2e-examples-test
1 parent 3229e05 commit fb350fa

4 files changed

Lines changed: 1022 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FIXTURE_MODULES := $(notdir $(wildcard tools/pkg/specgen/testdata/*/))
1717
NDK_SYSROOT := $(NDK_PATH)/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
1818
C2FFI_BIN ?= c2ffi
1919

20-
.PHONY: all capi specs idiomatic clean regen fixtures test lint check-examples e2e e2e-build e2e-examples e2e-audio ndkcli ndkcli-commands
20+
.PHONY: all capi specs idiomatic clean regen fixtures test lint check-examples e2e e2e-build e2e-examples e2e-examples-test e2e-audio ndkcli ndkcli-commands
2121

2222
all: specs capi idiomatic
2323

@@ -108,6 +108,10 @@ e2e: e2e-build
108108
e2e-examples:
109109
./tests/e2e/run-examples.sh
110110

111+
# Run examples E2E Go test on Android emulator (requires running emulator + NDK)
112+
e2e-examples-test:
113+
./tests/e2e/run-examples-test.sh
114+
111115
# Run audio recording E2E test (requires running emulator with audio + NDK)
112116
e2e-audio:
113117
./tests/e2e/run-audio-e2e.sh

0 commit comments

Comments
 (0)