Skip to content

Commit

Permalink
fix(mobile): make generate only local
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Aug 2, 2019
1 parent addb1eb commit 88e4ca0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
14 changes: 7 additions & 7 deletions client/ios/Berty.xcodeproj/xcshareddata/xcschemes/adhoc.xcscheme
Expand Up @@ -7,13 +7,13 @@
buildImplicitDependencies = "YES">
<PreActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "# Type a script or drag a script file from your workspace to insert its path.&#10;echo &quot;.environment&quot; &gt; /tmp/envfile&#10;">
</ActionContent>
</ExecutionAction>
</PreActions>
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "# Type a script or drag a script file from your workspace to insert its path.&#10;echo &quot;.environment&quot; &gt; /tmp/envfile&#10;">
</ActionContent>
</ExecutionAction>
</PreActions>
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down
Expand Up @@ -3,7 +3,7 @@
LastUpgradeVersion = "0620"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
parallelizeBuildables = "NO"
buildImplicitDependencies = "YES">
<PreActions>
<ExecutionAction
Expand Down
6 changes: 3 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions core/platform/mobile/Makefile
Expand Up @@ -64,17 +64,21 @@ deps-osx:

.PHONY: deps
deps: ios-deploy gomobile gobind
[ ! -z "$$CIRCLE_JOB" ] || (cd $(PWD)/../.. && make generate)

.PHONY: gomobile
gomobile: $(GOPATH)/src/golang.org/x/mobile/cmd/gomobile

.PHONY: gobind
gobind: $(GOPATH)/src/golang.org/x/mobile/cmd/gobind

$(GOPATH)/src/golang.org/x/mobile/cmd/%:
$(GOPATH)/src/golang.org/x/mobile/cmd/gomobile $(GOPATH)/src/golang.org/x/mobile/cmd/gobind:
cd $(GOPATH)/src/golang.org/x/mobile && git checkout -- . || true
GO111MODULE=off go get -u $(patsubst $(GOPATH)/src/%,%,$@)
GO111MODULE=off go get -u $(GOPATH)/src/golang.org/x/mobile/cmd/gomobile
GO111MODULE=off go get -u $(GOPATH)/src/golang.org/x/mobile/cmd/gobind
patch -N $(GOPATH)/src/golang.org/x/mobile/cmd/gomobile/env.go $(BUILD_PATCH_PATH)/gomobile-env-flag.diff || (rm -rf $(GOPATH)/src/golang.org/x/mobile && false)
cd $(GOPATH)/src/golang.org/x/mobile && GO111MODULE=off go install -v ./cmd/...
gomobile init -v

ifeq ($(UNAME_S),Darwin)
IOS_DEPLOY = $(shell which ios-deploy || echo '/usr/local/bin/ios-deploy')
Expand Down

0 comments on commit 88e4ca0

Please sign in to comment.