Brenton Bostick
82749e4442
ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp
2023-03-02 07:19:49 -06:00
Brenton Bostick
7890185e81
ANDROID-48: add ZT_jnicache.cpp
2023-03-02 07:19:49 -06:00
Brenton Bostick
71fc0dd097
add LOG_TAG defines
2023-03-02 07:19:49 -06:00
Brenton Bostick
8373a0fa60
add GETENV macro
2023-03-02 07:19:49 -06:00
Brenton Bostick
21264baaae
update to use unique error codes
2023-03-02 07:19:49 -06:00
Brenton Bostick
703f9290c9
fix missing DeleteLocalRef in loops
2023-03-02 07:19:49 -06:00
Brenton Bostick
dd1b52c7d9
fix ANDROID-35: memory leak
2023-03-02 07:19:49 -06:00
Brenton Bostick
01003617cd
fix ANDROID-51: fieldName is uninitialized
2023-03-02 07:19:49 -06:00
Brenton Bostick
bfe4bc2894
fix typo
2023-03-02 07:19:49 -06:00
Brenton Bostick
1c88037ea0
fix typos in JNI method signatures
2023-03-02 07:19:49 -06:00
Brenton Bostick
0027e6bdab
fix typo in log message
2023-03-02 07:19:49 -06:00
Brenton Bostick
87edbb2d3a
fix ANDROID-50: RESULT_ERROR_BAD_PARAMETER typo
2023-03-02 07:19:49 -06:00
Brenton Bostick
5be92a96df
cleanup
2023-03-02 07:19:49 -06:00
Brenton Bostick
0733af5239
move extern "C"
...
only JNI functions need to be exported
2023-03-02 07:19:49 -06:00
Brenton Bostick
216ed8c8ea
fix headers
...
use recommended headers and remove unused headers
2023-03-02 07:19:49 -06:00
Brenton Bostick
58e3b8c5ad
add StringUtils
2023-03-02 07:19:49 -06:00
Brenton Bostick
d31f238be0
fix typos ( #1843 )
2023-01-11 19:42:30 +01:00
Grant Limberg
065f42af1d
Merge pull request #1807 from zerotier/cleanup/typos
...
fix typos
2022-12-05 08:34:53 -08:00
Brenton Bostick
5b5f9a069a
fix typos
2022-12-05 11:29:21 -05:00
Brenton Bostick
77c7f9133f
Migrate from ndk-build to CMake
2022-12-05 10:34:12 -05:00
Brenton Bostick
475281935e
Remove unused flags for arm64-v8a
...
Through using ndk-build, -Wno-unused-command-line-argument is passed in
somewhere in the pipeline and hides this warning.
The warning can be turned on with:
APP_CPPFLAGS := -Wunused-command-line-argument ...
and then when building, you can see:
C/C++: clang++: warning: argument unused during compilation: '-mfloat-abi=softfp' [-Wunused-command-line-argument]
C/C++: clang++: warning: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument]
C/C++: clang++: warning: argument unused during compilation: '-maes' [-Wunused-command-line-argument]
These are unused because both floating-point and NEON are required in
all standard ARMv8 implementations. [1] [2]
[1] https://developer.arm.com/documentation/den0024/a/AArch64-Floating-point-and-NEON
[2] https://stackoverflow.com/a/29891469
2022-12-05 10:34:12 -05:00
Brenton Bostick
cdf248b1e2
Fix build problem related to unified headers
...
Since NDKr15 (released 2017), unified headers are used by default [1]
Remove -isystem option that was passing bad values to command-line.
The actual value being passed to command-line was:
```
-isystem DK/sysroot/usr/include/RIPLE
```
because of using $NDK and $TRIPLE instead of $(NDK) and $(TRIPLE)
But regardless, $NDK and $TRIPLE were never actually defined values and were just
place-holders mentioned in [1]
[1] https://android.googlesource.com/platform/ndk/+/ndk-release-r16/docs/UnifiedHeaders.md
2022-12-05 10:34:12 -05:00
Brenton Bostick
9ac2cfe611
Fix warning: suggest braces around initialization of subobject
2022-12-01 08:35:31 -05:00
Brenton Bostick
3b8c33d49a
fix typos in code
2022-11-28 09:23:58 -05:00
Brenton Bostick
f74a594e98
fix typos in comments and strings
2022-11-28 09:23:45 -05:00
Grant Limberg
b41e0910b0
Fun times in ~~cleveland~~ NDK-land
2022-11-09 11:11:10 -08:00
Grant Limberg
a8dde7b89b
update JNI to add new status code
2022-03-04 14:28:25 -08:00
Grant Limberg
7a626abf15
remove BondController.cpp from android makefile
2021-10-28 12:37:36 -07:00
Grant Limberg
86ff1e7cd2
another comparison fix
2020-11-24 14:12:30 -08:00
Grant Limberg
6b21a4f494
fix dns equality check in Android
2020-11-24 13:51:00 -08:00
Grant Limberg
3da8f5f053
freaking JNI
2020-10-21 16:08:19 -07:00
Grant Limberg
fbbcf292c6
forgot accessors
2020-10-21 15:06:50 -07:00
Grant Limberg
2851a9577c
JNI for dns configuration
2020-10-21 14:18:29 -07:00
Adam Ierymenko
24769219b5
Merge branch 'dev'
2020-10-08 18:08:24 -04:00
Grant Limberg
7d8cfb1fee
more magic incantations to make crypto extensions work on Android/ARM64
2020-09-22 10:28:31 -07:00
Grant Limberg
8131680735
AES-NI enabled for Android ARM64
2020-09-22 08:04:16 -07:00
Grant Limberg
9e6dba9066
Enable AES-NI on Android X86-64
...
Need to find the magic incantation to enable it on ARM64 still
2020-09-21 18:05:25 -07:00
Grant Limberg
1bb1dfa87b
android changes
2020-06-18 09:32:00 -07:00
Grant Limberg
844725237d
Add new ZT_ result codes that were added
2020-05-18 10:31:17 -07:00
Grant Limberg
f8ba1962e6
fix equals() methods
2020-05-14 15:08:37 -07:00
Grant Limberg
87c75d033e
pt 2
2019-04-22 11:36:14 -07:00
Grant Limberg
71ae678930
Make things compile with Android NDK again
2019-04-22 11:35:35 -07:00
Grant Limberg
8828fc7520
some JNI error checking
2018-02-12 09:29:44 -08:00
Grant Limberg
f049740ae5
silence LOGV and LOGD in release builds for android
2018-02-07 15:53:23 -08:00
Grant Limberg
3d4a1b575e
Update Android NDK with uint64_t -> int64_t changes
2017-10-03 11:25:26 -07:00
Grant Limberg
bcf697cc2b
Wire up PortMapper in Android
...
Enables UPnP port mapping for Android client on networks with UPnP routers
2017-07-17 16:16:25 -07:00
Grant Limberg
69ae35494e
put the correct file extensions on data written to disk in JNI
2017-07-12 13:36:22 -07:00
Grant Limberg
512c3af4ea
fix packet sending functions
2017-07-12 13:12:45 -07:00
Grant Limberg
d8f1c3dff7
Update JNI code to reflect new ZeroTier API
2017-07-12 11:34:53 -07:00
Grant Limberg
952834f7f3
Let Android Studio determine debug/release build
2017-05-23 14:56:29 -07:00