diff --git a/app/build.gradle b/app/build.gradle index 04e04e5..2856825 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "org.freenetproject.mobile" minSdkVersion 22 targetSdkVersion 30 - versionCode 305 - versionName '0.3.4-beta' + versionCode 306 + versionName '0.3.5-beta' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true @@ -54,7 +54,7 @@ dependencies { implementation 'com.google.guava:guava:24.1-jre' // Freenet dependencies - implementation ('com.github.freenet-mobile:node-wrapper:0.9') { + implementation ('com.github.freenet-mobile:node-wrapper:0.10') { exclude group: 'org.freenetproject', module: 'freenet-ext' exclude group: 'net.java.dev.jna', module: 'jna' exclude group: 'net.java.dev.jna', module: 'jna-platform' diff --git a/app/src/main/java/java/lang/management/ManagementFactory.java b/app/src/main/java/java/lang/management/ManagementFactory.java new file mode 100644 index 0000000..476351a --- /dev/null +++ b/app/src/main/java/java/lang/management/ManagementFactory.java @@ -0,0 +1,11 @@ +package java.lang.management; + +/** + * Overwriting ManagementFactory to be able to run on 1492 on android where these + * libraries are missing and probably are not going to be added anything soon. + */ +public class ManagementFactory { + public static ThreadMXBean getThreadMXBean() { + return new ThreadMXBean(); + } +} diff --git a/app/src/main/java/java/lang/management/ThreadMXBean.java b/app/src/main/java/java/lang/management/ThreadMXBean.java new file mode 100644 index 0000000..194dcfa --- /dev/null +++ b/app/src/main/java/java/lang/management/ThreadMXBean.java @@ -0,0 +1,4 @@ +package java.lang.management; + +public class ThreadMXBean { +}