Skip to content

A bridge module for Fyne based mobile apps and libraries that rely on gomobile

Notifications You must be signed in to change notification settings

fyne-io/gomobile-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A bridge module for Fyne based mobile apps and libraries that rely on gomobile

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages