Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 864 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 864 Bytes

Gomobile Bridge

The Fyne toolkit provides it's own mobile packaging tools which are based on gomobile. Because of this applications that import gomobile (directly or through a dependency) may not compile when targetting mobile devices. Or they may not work as expected if one of the libraries expects gomobile to be loaded.

The gomobile-bridge tool solves this problem by simulating a gomobile API for fyne mobile apps. This enabled libraries to access the same APIs and yet call the equivalent APIs in the Fyne ecosystem. To make use of this simply add the following line to your go.mod file.

replace golang.org/x/mobile => github.com/fyne-io/gomobile-bridge v0.1.0

And then update your module info with:

go mod tidy

If you have a vendor directory it then you should update those files using the vendor command:

go mod vendor