Skip to content

Commit d0997a7

Browse files
committed
Move + rewrite bridge_example for PythonBridge API
bridge_example used to live alongside the serious_python_bridge plugin (itself slated for deletion in Phase 2). With the v1.2.0 keyed-handlers model and the new PythonBridge class in serious_python/lib/, the example no longer needs serious_python_bridge — it depends only on serious_python. Changes: - git mv src/serious_python_bridge/example → src/serious_python/example/bridge_example - pubspec drops serious_python_bridge; depends only on ../.. - lib/main.dart uses PythonBridge() / bridge.port / bridge.close() - app/src/main.py reads BRIDGE_EXAMPLE_PORT env var and calls the new 2-arg set_enqueue_handler_func(port, handler) - integration_test exercises the same round-trip without the 8-byte handshake dance — Python knows its port from the env var the moment the interpreter starts - README rewritten to reflect new architecture - pubspec.lock gitignored (regenerates on path-deps anyway) test-bridge-build.yml stripped to just the darwin example jobs pointed at the new path. The obsolete cibuildwheel + NDK + linux/windows/android example jobs will return as each platform plugin gets ported to download pre-built libdart_bridge binaries.
1 parent 1092769 commit d0997a7

133 files changed

Lines changed: 278 additions & 829 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-bridge-build.yml

Lines changed: 10 additions & 497 deletions
Large diffs are not rendered by default.

src/serious_python_bridge/example/.gitignore renamed to src/serious_python/example/bridge_example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ app.*.map.json
4747
# serious_python packaging artifacts (built by `dart run serious_python:main package`)
4848
/app/app.zip
4949
/app/app.zip.hash
50+
pubspec.lock
File renamed without changes.
Lines changed: 41 additions & 0 deletions

src/serious_python_bridge/example/analysis_options.yaml renamed to src/serious_python/example/bridge_example/analysis_options.yaml

File renamed without changes.

src/serious_python_bridge/example/android/.gitignore renamed to src/serious_python/example/bridge_example/android/.gitignore

File renamed without changes.

src/serious_python_bridge/example/android/app/build.gradle.kts renamed to src/serious_python/example/bridge_example/android/app/build.gradle.kts

File renamed without changes.

src/serious_python_bridge/example/android/app/src/debug/AndroidManifest.xml renamed to src/serious_python/example/bridge_example/android/app/src/debug/AndroidManifest.xml

File renamed without changes.

src/serious_python_bridge/example/android/app/src/main/AndroidManifest.xml renamed to src/serious_python/example/bridge_example/android/app/src/main/AndroidManifest.xml

File renamed without changes.

src/serious_python_bridge/example/android/app/src/main/kotlin/com/flet/serious_python_bridge_example/MainActivity.kt renamed to src/serious_python/example/bridge_example/android/app/src/main/kotlin/com/flet/serious_python_bridge_example/MainActivity.kt

File renamed without changes.

0 commit comments

Comments
 (0)