commit 9fc64f347ea6ea402eb37d811cb4f214af7c3a28
parent 24a30635e34c7333fa756459648b69c1c690c135
Author: julianharty <julianharty@gmail.com>
Date: Tue, 16 Jul 2024 11:32:22 +0100
Adding the changes made to enable the local network scheduler to run.
Fixed bug where passing NULL for the options parameter caused a native crash.
Diffstat:
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/android_studio/app/src/main/AndroidManifest.xml b/android_studio/app/src/main/AndroidManifest.xml
@@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
diff --git a/android_studio/app/src/main/cpp/native-lib.cpp b/android_studio/app/src/main/cpp/native-lib.cpp
@@ -84,13 +84,19 @@ Java_org_gnu_gnunet_MainActivity_stringFromJNI(
"8081",
NULL
};
+
+
+ static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_OPTION_END
+ };
+
std::string tmp_file = GNUNET_DISK_mktemp ("test");
LOGD ("Temp file is here: %s", tmp_file.c_str());
GNUNET_PROGRAM_run (1,
argvx,
"native-lib",
"native-lib",
- NULL,
+ options,
&run,
NULL);
std::string hello = "Hello from C++. Temp file is here: " + tmp_file;
diff --git a/android_studio/distribution/libgnunetutil/lib/arm64-v8a/libgnunetutil.so b/android_studio/distribution/libgnunetutil/lib/arm64-v8a/libgnunetutil.so
Binary files differ.