1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-07 21:37:04 +09:00
anytype-heart/makefiles/ci-compile-ios-lib.mk
2025-02-17 18:16:51 -03:00

15 lines
758 B
Makefile

PUBLISH_GRADLE ?= 0
compile-ios-lib:
go install github.com/vektra/mockery/v2@v2.47.0
go install go.uber.org/mock/mockgen@v0.5.0
make test-deps
gomobile bind -tags "$(BUILD_TAG_NETWORK) nogrpcserver gomobile nowatchdog nosigar nomutexdeadlockdetector timetzdata rasterizesvg" -ldflags "$(FLAGS)" -v -target=ios -o Lib.xcframework github.com/anyproto/anytype-heart/clientlibrary/service github.com/anyproto/anytype-heart/core || true
mkdir -p dist/ios/
mv Lib.xcframework dist/ios/
go run cmd/iosrepack/main.go
mv dist/ios/Lib.xcframework .
gtar --exclude ".*" -czvf ios_framework.tar.gz Lib.xcframework protobuf json
@if [ "$(PUBLISH_GRADLE)" -eq 1 ]; then \
gradle publish; \
fi
mv ios_framework.tar.gz .release/ios_framework_$(VERSION).tar.gz