| .. | ||
| Sources | ||
| Tests | ||
| README.md | ||
| Tests-Crypto+Search-Go | ||
| Tests-Crypto+VPN-patched-Go | ||
| Tests-Crypto-Go | ||
| Tests-Crypto-patched-Go | ||
Crypto
This repo is a wrapper around Crypto.framework to allow its usage as standalone package. Frameworks for different architectures are packed into one Xcframework. This is a pre-compiled version and it complied from repo GopenPGP
Build instructions
-
Read and complete the prerequisites build tool readme
-
clone the build tool
git clone https://github.com/ProtonMail/gomobile-build-tool.git gomobile-build-tool -
complie the crypto with build config file. build configuration doc
-
command:
cd gomobile-build-tool make build cfg=../ProtonCore/vender/Crypto/build-config.json #then wait the compile process to be finished -
After the compile process is completed. you will find the new xcframework in output folder
gomobile-build-tool/out/Crypto.xcframework. -
Update this repo Update framework
Common issues
-
Err: The output of
go versiondoes not match the one in your configurationFind out what go version you have installed by running the command:
go versionopen the build-config.json and modify the"go_version"to match your local go version. For example change it to "go_version":"1.16.6".
Update framework
In order to update the build of Crypto.framework inside this pod:
- drop-in a new build of Crypto.xcframework into the repo
$COREROOT/vender/Crypto/ - update version in
$COREROOT/ProtonCore-Crypto.podspecso all the dependant pods will know they need to re-fetch it - tag the commit accordingly
Important: CocaPods supports xcframeworks starting v1.9, older versions will fail to install xcframework as a dependency. CocoaPods has a bug (https://github.com/CocoaPods/CocoaPods/issues/9525) that does not let Xcode see simulator binary of xcframewrok correctly. Temporary workaround is to manually change the order of framework search paths in xcconfig files. Until that bug is fixed, please use v1.0.0 of this pod or install xcframework manually.