Commit d0997a7
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
- .github/workflows
- src
- serious_python_bridge/example
- app/src
- integration_test
- lib
- serious_python/example/bridge_example
- android
- app
- src
- debug
- main
- kotlin/com/flet/serious_python_bridge_example
- res
- drawable-v21
- drawable
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values-night
- values
- profile
- gradle/wrapper
- app/src
- integration_test
- ios
- Flutter
- Runner.xcodeproj
- project.xcworkspace
- Runner.xcworkspace
- RunnerTests
- Runner
- Assets.xcassets
- AppIcon.appiconset
- LaunchImage.imageset
- Base.lproj
- lib
- linux
- flutter
- runner
- macos
- Flutter
- Runner.xcodeproj
- Runner.xcworkspace
- RunnerTests
- Runner
- Assets.xcassets/AppIcon.appiconset
- Base.lproj
- Configs
- windows
- flutter
- runner
- resources
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
File renamed without changes.
0 commit comments