Skip to content

Commit

Permalink
Update fred to 1492 (#105)
Browse files Browse the repository at this point in the history
* Update fred to 1492
  • Loading branch information
desyncr authored Nov 14, 2021
1 parent 57f3e4c commit 4be0b0e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/java/java/lang/management/ManagementFactory.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
4 changes: 4 additions & 0 deletions app/src/main/java/java/lang/management/ThreadMXBean.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang.management;

public class ThreadMXBean {
}

0 comments on commit 4be0b0e

Please sign in to comment.