Skip to content

Commit dbb81d7

Browse files
authored
Feature/v1.8.0 (#15)
* Added Mac M1 support * intel support * automatic suffix * abi.encode_internal_message * Version 1.8.0
1 parent 52f3530 commit dbb81d7

21 files changed

+162
-44
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Release Notes
22
All notable changes to this project will be documented in this file.
33

4+
## 1.8.0 Feb 20, 2021
5+
6+
### Featured
7+
- Support for TON-Client (1.8.0 Feb 11, 2021)
8+
g
9+
10+
## 1.7.0 Feb 20, 2021
11+
12+
### Featured
13+
- Support for TON-Client (1.7.0 Feb 9, 2021)
14+
15+
416
## 1.6.3 Feb 8, 2021
517

618
### Featured

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ Instead, a thin C wrapper is implemented. The wrapper translates Java calls into
1919

2020
## Compatibility
2121

22-
The current version is compatible with Freeton client v1.6.3, JDK 1.8+ and Scala 2.12.
22+
The current version is compatible with Freeton client v1.8.0, JDK 1.8+ and Scala 2.12.
2323

24-
We use CI on Linux Focal Fossa and MacOs X hosts to run our tests.
24+
We use CI on Linux Focal Fossa and MacOs X hosts (Intel and M1) to run our tests.
2525

2626
Following systems confirmed to be compatible:
2727
- Arch Linux (manjaro 5.6.16)
2828
- Ubuntu Linux (bionic 18-04)
2929
- Windows 10 x64
3030
- MacOs X (Catalina 10.15)
31+
- macOs (Big Sur 11.2)
3132
- OpenJDK 8
3233
- OpenJDK 11
3334
- OpenJDK 16

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "freeton-sdk-client-scala-binding"
22

3-
version := "1.6.3-M1"
3+
version := "1.8.0-M1"
44

55
organization := "com.dancingcode"
66

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 1.4.1
1+
sbt.version = 1.4.7

src/main/c/build_mac_os_x.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash -eE
22

33
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
4+
export LIBS="../resources"
5+
6+
7+
ARCH=$(echo 'System.getProperty("os.arch")' | scala | grep arch | cut -f 2 -d'=' | sed 's/[[:space:]]//g')
8+
export SUFFIX=$ARCH # "x86_64" # "aarch64"
49

510
gcc \
611
-dynamiclib \
@@ -9,13 +14,14 @@ gcc \
914
-I$JAVA_HOME/include/darwin \
1015
-I$JAVA_HOME/include/linux \
1116
*.c \
12-
-o $LIBS/libTonSdkClientJniBinding.dylib \
17+
-o "$LIBS/libTonSdkClientJniBinding_$SUFFIX.dylib" \
1318
-L$LIBS \
14-
-lton_client \
19+
-l"ton_client_$SUFFIX" \
1520
-Wl,-rpath,.
1621

1722
cd $LIBS
1823

19-
install_name_tool -change "libton_client.dylib" @loader_path/libton_client.dylib "libTonSdkClientJniBinding.dylib"
24+
install_name_tool -change "libton_client_$SUFFIX.dylib" "@loader_path/libton_client_$SUFFIX.dylib" "libTonSdkClientJniBinding_$SUFFIX.dylib"
25+
install_name_tool -change "@loader_path/libton_client.dylib" "@loader_path/libton_client_$SUFFIX.dylib" "libTonSdkClientJniBinding_$SUFFIX.dylib"
2026

2127
cd -
49.9 KB
Binary file not shown.

src/main/resources/libTonSdkClientJniBinding.dylib renamed to src/main/resources/libTonSdkClientJniBinding_x86_64.dylib

49.3 KB
Binary file not shown.
640 KB
Binary file not shown.
13.8 MB
Binary file not shown.
13.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)