2026-11-18 13:00:20 +08:00
|
|
|
// OpenChamber Native is a lightweight OpenChamber client for phones, written
|
|
|
|
|
// in Go with MyGo's native UI.
|
2026-11-16 09:09:09 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2026-11-18 13:00:20 +08:00
|
|
|
"log"
|
|
|
|
|
|
|
|
|
|
"github.com/egoist/mygo"
|
2026-11-16 09:09:09 +08:00
|
|
|
"github.com/openchamber/openchamber-native/internal/appui"
|
|
|
|
|
|
2026-11-18 13:00:20 +08:00
|
|
|
// The TTS plugin: its Kotlin is compiled into the app by mygo build.
|
|
|
|
|
_ "github.com/openchamber/openchamber-native/internal/tts"
|
2026-11-16 09:09:09 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2026-11-18 13:00:20 +08:00
|
|
|
app := appui.New(nil)
|
|
|
|
|
mygo.App.WhenReady(app.Ready)
|
|
|
|
|
if err := mygo.App.Run(); err != nil {
|
|
|
|
|
log.Fatal(err)
|
|
|
|
|
}
|
2026-11-16 09:09:09 +08:00
|
|
|
}
|