Brenton Bostick
5b5f9a069a
fix typos
3 years ago
Brenton Bostick
77c7f9133f
Migrate from ndk-build to CMake
3 years ago
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
3 years ago
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
3 years ago
Brenton Bostick
9ac2cfe611
Fix warning: suggest braces around initialization of subobject
3 years ago
Brenton Bostick
3b8c33d49a
fix typos in code
3 years ago
Brenton Bostick
f74a594e98
fix typos in comments and strings
3 years ago
Grant Limberg
b41e0910b0
Fun times in ~~cleveland~~ NDK-land
3 years ago
Grant Limberg
a8dde7b89b
update JNI to add new status code
4 years ago
Grant Limberg
7a626abf15
remove BondController.cpp from android makefile
4 years ago
Grant Limberg
86ff1e7cd2
another comparison fix
5 years ago
Grant Limberg
6b21a4f494
fix dns equality check in Android
5 years ago
Grant Limberg
3da8f5f053
freaking JNI
5 years ago
Grant Limberg
fbbcf292c6
forgot accessors
5 years ago
Grant Limberg
2851a9577c
JNI for dns configuration
5 years ago
Grant Limberg
7d8cfb1fee
more magic incantations to make crypto extensions work on Android/ARM64
6 years ago
Grant Limberg
8131680735
AES-NI enabled for Android ARM64
6 years ago
Grant Limberg
9e6dba9066
Enable AES-NI on Android X86-64
...
Need to find the magic incantation to enable it on ARM64 still
6 years ago
Grant Limberg
1bb1dfa87b
android changes
6 years ago
Grant Limberg
844725237d
Add new ZT_ result codes that were added
6 years ago
Grant Limberg
f8ba1962e6
fix equals() methods
6 years ago
Grant Limberg
87c75d033e
pt 2
7 years ago
Grant Limberg
71ae678930
Make things compile with Android NDK again
7 years ago
Grant Limberg
8828fc7520
some JNI error checking
8 years ago
Grant Limberg
f049740ae5
silence LOGV and LOGD in release builds for android
8 years ago
Grant Limberg
3d4a1b575e
Update Android NDK with uint64_t -> int64_t changes
9 years ago
Grant Limberg
bcf697cc2b
Wire up PortMapper in Android
...
Enables UPnP port mapping for Android client on networks with UPnP routers
9 years ago
Grant Limberg
69ae35494e
put the correct file extensions on data written to disk in JNI
9 years ago
Grant Limberg
512c3af4ea
fix packet sending functions
9 years ago
Grant Limberg
d8f1c3dff7
Update JNI code to reflect new ZeroTier API
9 years ago
Grant Limberg
952834f7f3
Let Android Studio determine debug/release build
9 years ago
Grant Limberg
5f611dad51
added orbit/deorbit methods to java Node implementation
9 years ago
Grant Limberg
1c5fdb8a0a
fix path checker initialization
9 years ago
Grant Limberg
de4b9e9a16
Added path checking interface for Java
9 years ago
Grant Limberg
855361b5b8
fix native end of JNI code for new thread data ptr
9 years ago
Grant Limberg
1520534660
fix some rediculousness in NDK-14
...
Apparently having -fPIC on the command line multiple times turns it back off
9 years ago
Grant Limberg
06c866ceb4
Android JNI fix
9 years ago
Grant Limberg
9ae49b5b85
Update JNI with new root terminology
9 years ago
Grant Limberg
923d3f1fe8
remove references to deleted source files in Android NDK build files
9 years ago
Grant Limberg
f149dd9401
fix Android NDK build
9 years ago
Grant Limberg
e41d71cd19
add implementations of compareTo() and equals() for VirtualNetworkRoute().
...
Android app was relying on these, but since they didn't exist, they didn't function properly
9 years ago
Grant Limberg
3c5e28a27d
use new ZT_Node_Callbacks struct in JNI
9 years ago
Grant Limberg
e1c930f1b7
update JNI wrapper to reflect removal of lastMulticastFrame and lastUnicastFrame from ZT_Peer struct
9 years ago
Grant Limberg
3a3fe272bb
add Revocation.cpp to android build
10 years ago
Grant Limberg
8809c6d122
link atomic library. seems to be required in the latest Android NDK
10 years ago
Grant Limberg
40d3993ceb
java code still needed to reflect PEER_ROLE_RELAY rename to PEER_ROLE_UPSTREAM
10 years ago
Grant Limberg
0564bb3b35
added missing copyright/license info from ZT_jniutils
10 years ago
Grant Limberg
d87f0293e3
Don't print a few error messages when they don't matter.
10 years ago
Grant Limberg
5fadd8bdd2
ZT_PEER_ROLE_RELAY -> ZT_PEER_ROLE_UPSTREAM in JNI glue
10 years ago
Grant Limberg
dccca7df1a
another couple of missing semicolons
10 years ago