Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
mobile: need to include core package w/ gomobile bind
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderpick committed Apr 10, 2019
1 parent 1f1f9ce commit 6fb1e29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ jobs:
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
FLAGS="-X github.com/textileio/go-textile/common.GitSummary=${SUMMARY} -X github.com/textileio/go-textile/common.BuildDate=${DATE} -X github.com/textileio/go-textile/common.GitCommit=${COMMIT} -X github.com/textileio/go-textile/common.GitBranch=${CIRCLE_BRANCH} -X github.com/textileio/go-textile/common.GitState=clean"
gomobile init
gomobile bind -v -ldflags="-w $FLAGS" -target=ios github.com/textileio/go-textile/mobile
gomobile bind -v -ldflags="-w $FLAGS" -target=ios github.com/textileio/go-textile/mobile github.com/textileio/go-textile/core
- run:
name: build obj c protobuf bindings
command: |
Expand Down Expand Up @@ -523,7 +523,7 @@ jobs:
DATE=$(date --iso-8601=seconds)
FLAGS="-X github.com/textileio/go-textile/common.GitSummary=${SUMMARY} -X github.com/textileio/go-textile/common.BuildDate=${DATE} -X github.com/textileio/go-textile/common.GitCommit=${COMMIT} -X github.com/textileio/go-textile/common.GitBranch=${CIRCLE_BRANCH} -X github.com/textileio/go-textile/common.GitState=clean"
gomobile init
gomobile bind -v -ldflags="-w $FLAGS" -target=android -o=mobile.aar github.com/textileio/go-textile/mobile
gomobile bind -v -ldflags="-w $FLAGS" -target=android -o=mobile.aar github.com/textileio/go-textile/mobile github.com/textileio/go-textile/core
- run:
name: build java protobuf bindings
command: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ linux:

ios:
$(eval FLAGS := $$(shell govvv -flags -pkg github.com/textileio/go-textile/common))
gomobile bind -ldflags "-w $(FLAGS)" -v -target=ios github.com/textileio/go-textile/mobile
gomobile bind -ldflags "-w $(FLAGS)" -v -target=ios github.com/textileio/go-textile/mobile github.com/textileio/go-textile/core
mkdir -p mobile/dist/ios/ && cp -r Mobile.framework mobile/dist/ios/
rm -rf Mobile.framework

android:
$(eval FLAGS := $$(shell govvv -flags -pkg github.com/textileio/go-textile/common))
gomobile bind -ldflags "-w $(FLAGS)" -v -target=android -o mobile.aar github.com/textileio/go-textile/mobile
gomobile bind -ldflags "-w $(FLAGS)" -v -target=android -o mobile.aar github.com/textileio/go-textile/mobile github.com/textileio/go-textile/core
mkdir -p mobile/dist/android/ && mv mobile.aar mobile/dist/android/

protos:
Expand Down
3 changes: 1 addition & 2 deletions core/cafes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"encoding/hex"
"fmt"

"github.com/golang/protobuf/proto"

"gx/ipfs/QmXLwxifxwfc2bAwq6rdjbYqAsGzWsDE9RM5TWMGtykyj6/interface-go-ipfs-core"
"gx/ipfs/QmYVXrKrKHDC9FobgmcmshCDyWwdrfwfanNQN4oxJ9Fk3h/go-libp2p-peer"

"github.com/golang/protobuf/proto"
"github.com/textileio/go-textile/ipfs"
"github.com/textileio/go-textile/pb"
)
Expand Down

0 comments on commit 6fb1e29

Please sign in to comment.