Move gomobile package to mobile

This commit is contained in:
Ivan Danyliuk
2018-11-10 22:59:48 +01:00
parent eeddf4c3ca
commit 6550360a85
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
gomobile:
gomobile bind -target=ios -o txqr.framework
gomobile bind -target=ios -o txqr.framework github.com/divan/txqr/mobile
+17
View File
@@ -0,0 +1,17 @@
package txqr // package should have this name to work properly with gomobile
import (
"github.com/divan/txqr/protocol"
)
// Decoder implements txqr wrapper around protocol decoder.
type Decoder struct {
*protocol.Decoder
}
// NewDecoder creats new txqr decoder.
func NewDecoder() *Decoder {
return &Decoder{
Decoder: protocol.NewDecoder(),
}
}