Fix embedded bridge and adapt to changes in core code: - Add `EmbeddedBridgeSettings` so it can be used in settings. - Add `AIOBridge` and `TwistedBridge` wrappers. - Fix callbacks, instead of logging them (and breaking the errback chain), they are now raised using `BridgeException` like in other bridges. - Ensure that a singleton `Bridge` is used between backend and frontend. - Init backend on first call to `bridge_connect`. - Add Python 3.14 fix (as it is normally done in Launcher which is not run with with `embedded`, we have to do it there). - Track generated files.
20 lines
846 B
Python
20 lines
846 B
Python
#!/usr/bin/env python3
|
|
|
|
|
|
# Libervia: an XMPP client
|
|
# Copyright (C) 2009-2026 Jérôme Poisson (goffi@goffi.org)
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
from libervia.backend.bridge.embedded import bridge, TwistedBridge, AIOBridge
|