[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-quickjs-tart] branch master updated (5e1d4e9 -> a683200)
From: |
gnunet |
Subject: |
[taler-quickjs-tart] branch master updated (5e1d4e9 -> a683200) |
Date: |
Thu, 21 Mar 2024 18:53:02 +0100 |
This is an automated email from the git hooks/post-receive script.
ivan-avalos pushed a change to branch master
in repository quickjs-tart.
from 5e1d4e9 android: bump qtart to 0.9.4a
new 01125a1 android: implement native interface with curl
new 3568a24 android: update Android command line tools
new a683200 android: bump qtart version to 0.9.4a+p1
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
QuickJS-android/gradle.properties | 2 +-
.../qtart/src/main/java/net/taler/qtart/TalerWalletCore.kt | 5 +++++
cross/build-android.sh | 2 +-
docker-android/install.sh | 2 +-
taler_wallet_core_lib.c | 7 +++++++
taler_wallet_core_lib.h | 9 +++++++++
6 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/QuickJS-android/gradle.properties
b/QuickJS-android/gradle.properties
index 9b322b2..8fc7d50 100644
--- a/QuickJS-android/gradle.properties
+++ b/QuickJS-android/gradle.properties
@@ -2,7 +2,7 @@ android.useAndroidX=true
GROUP=net.taler
POM_ARTIFACT_ID=qtart
-VERSION_NAME=0.9.4a
+VERSION_NAME=0.9.4a+p1
POM_NAME=QuickjsTart
POM_DESCRIPTION=QuickJS runtime for Taler
diff --git
a/QuickJS-android/qtart/src/main/java/net/taler/qtart/TalerWalletCore.kt
b/QuickJS-android/qtart/src/main/java/net/taler/qtart/TalerWalletCore.kt
index 9923f19..237d555 100644
--- a/QuickJS-android/qtart/src/main/java/net/taler/qtart/TalerWalletCore.kt
+++ b/QuickJS-android/qtart/src/main/java/net/taler/qtart/TalerWalletCore.kt
@@ -64,6 +64,7 @@ class TalerWalletCore {
fun TALER_WALLET_run(twi: Pointer): Int
fun TALER_WALLET_join(twi: Pointer)
fun TALER_start_redirect_std(logfn: TALER_LogFn, cls: Pointer)
+ fun TALER_set_curl_http_client(twi: Pointer)
}
private val walletInstance: Pointer =
TalerNative.INSTANCE.TALER_WALLET_create()
@@ -99,6 +100,10 @@ class TalerWalletCore {
TalerNative.INSTANCE.TALER_WALLET_send_request(walletInstance, request)
}
+ fun setCurlHttpClient() {
+ TalerNative.INSTANCE.TALER_set_curl_http_client(walletInstance)
+ }
+
fun run() {
TalerNative.INSTANCE.TALER_WALLET_run(walletInstance)
}
diff --git a/cross/build-android.sh b/cross/build-android.sh
index 2676dd3..ded3816 100755
--- a/cross/build-android.sh
+++ b/cross/build-android.sh
@@ -74,7 +74,7 @@ cat > $CROSSFILE <<EOF
[binaries]
c = '$CLANG_NAME-clang'
cmake = 'false'
-ar = '$TOOLS_NAME-ar'
+ar = 'llvm-ar'
as = '$TOOLS_NAME-as'
ranlib = '$TOOLS_NAME-ranlib'
ld = '$TOOLS_NAME-ld'
diff --git a/docker-android/install.sh b/docker-android/install.sh
index 85e6002..134511f 100755
--- a/docker-android/install.sh
+++ b/docker-android/install.sh
@@ -22,7 +22,7 @@ npm install -g pnpm@8.6.3
# Install Android SDK Manager
wget --no-verbose -O cmdline-tools.zip \
-
https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip
+
https://dl.google.com/android/repository/commandlinetools-linux-11479570_latest.zip
unzip cmdline-tools.zip
rm cmdline-tools.zip
mkdir -p ${ANDROID_HOME}/cmdline-tools
diff --git a/taler_wallet_core_lib.c b/taler_wallet_core_lib.c
index d18e20b..73f27f2 100644
--- a/taler_wallet_core_lib.c
+++ b/taler_wallet_core_lib.c
@@ -335,6 +335,13 @@ TALER_set_http_client_implementation(struct
TALER_WALLET_Instance *twi,
twi->http_impl = impl;
}
+void
+TALER_set_curl_http_client(struct TALER_WALLET_Instance *twi)
+{
+ struct JSHttpClientImplementation *client = js_curl_http_client_create();
+ TALER_set_http_client_implementation(twi, client);
+}
+
#pragma mark -
struct JSHttpClientImplementation *
TALER_pack_http_client_implementation(JSHttpReqCreateFn req_create,
diff --git a/taler_wallet_core_lib.h b/taler_wallet_core_lib.h
index 13b8bef..e260f82 100644
--- a/taler_wallet_core_lib.h
+++ b/taler_wallet_core_lib.h
@@ -163,6 +163,15 @@ void
TALER_set_http_client_implementation(struct TALER_WALLET_Instance *twi,
struct JSHttpClientImplementation *impl);
+/**
+ * Set the reference CuRL-based HTTP client implementation as the one
+ * to be used by the wallet.
+ *
+ * @param twi wallet-core instance
+ */
+void
+TALER_set_curl_http_client(struct TALER_WALLET_Instance *twi);
+
#pragma mark -
/**
* Build JSHttpClientImplementation struct for native HTTP client
implementation to be used by the wallet.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-quickjs-tart] branch master updated (5e1d4e9 -> a683200),
gnunet <=