mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-06-04 03:21:23 +00:00
feat(android): initialize Android project with Gradle configuration, build scripts, and main application structure for MeshChatX
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import sys
|
||||
|
||||
def start_server(port=8000):
|
||||
try:
|
||||
from meshchatx.meshchat import main
|
||||
|
||||
sys.argv = [
|
||||
'meshchat',
|
||||
'--headless',
|
||||
'--host', '127.0.0.1',
|
||||
'--port', str(port),
|
||||
'--no-https'
|
||||
]
|
||||
|
||||
main()
|
||||
except Exception as e:
|
||||
print(f"Error starting MeshChatX server: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user