mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
* TVM instructions: SECP256K1_XONLY_PUBKEY_TWEAK_ADD, SETCONTCTRMANY(X) * Add tests for xonly_pubkey_tweak_add * added secp256k1 as submodule, since we need extrakeys feature of secp256k1 * cleanup * add ton_crypto_core secp256k1 dependency * adjust Dockerfile, android and wasm builds * adjust nix build * test windows build with SECP256K1_ENABLE_MODULE_EXTRAKEYS * test windows build with SECP256K1_ENABLE_MODULE_EXTRAKEYS * adjust android build * adjust emscripten build * adjust emscripten build * try macos-13 * emscripten build adjustments * windows build adjustments * final corrections --------- Co-authored-by: neodix <neodix@ton.org> |
||
---|---|---|
.. | ||
src/drinkless/org/ton | ||
test | ||
third_party | ||
AddIntDef.php | ||
build-all.sh | ||
build.sh | ||
CMakeLists.txt | ||
export.sh | ||
native-lib.cpp | ||
README.md | ||
test.sh |
Generation of Tonlib libraries for Android OS
Tl;dr Download the latest version of Tonlib libraries for Android from TON release page or check the artifacts from Android JNI GitHub action.
Compile Tonlib for Android manually
Prerequisite: installed Java and set environment variable JAVA_HOME.
git clone --recursive https://github.com/ton-blockchain/ton.git
cd ton
cp assembly/android/build-android-tonlib.sh .
chmod +x build-android-tonlib.sh
sudo -E ./build-android-tonlib.sh
Generation of Tonlib libraries for iOS in Xcode
- Clone repository https://github.com/labraburn/tonlib-xcframework
- Open repository directory in Terminal
- Run command:
swift run builder --output ./build --clean
- Run command:
echo ./build/TON.xcframework/* | xargs -n 1 cp -R ./Resources/Headers
- Import OpenSSL.xcframework and TON.xcframework in XCode in section "Frameworks, Libraries, and Embedded Content"
- Now you can start using Tonlib client by importing it in C or Objective-C source files:
#import <tonlib/tonlib_client_json.h>
Generation of Tonlib libraries for Desktop applications
You can use Tonlib compiled in an ordinary way for desktop applications. If you use Java you can load the library using JNA.
The latest Tonlib library can be found among other TON artifacts either on TON release page or inside the appropriate GitHub action.