Skip to content

Commit

Permalink
Java 11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gregko committed Oct 9, 2021
1 parent 1530de0 commit b84886c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Add it in your root build.gradle at the end of repositories:
Add the dependency your own app's build gradle:

dependencies {
debugImplementation 'com.github.gregko:Mini-WebDAV-server-for-Android:v1.6.3'
debugImplementation 'com.github.gregko:Mini-WebDAV-server-for-Android:v1.6.4'
}

Then make yourself a discrete debug only button or menu item (or as I did - a long press action...)
Expand Down
4 changes: 2 additions & 2 deletions WdServerLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

if (true || BuildConfig.DEBUG) { // added true here to actually use the server in release mode for my own work
if (true /* BuildConfig.DEBUG*/) { // added true here to actually use the server in release mode for my own work
Button b = findViewById(R.id.manage_server);
b.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down
1 change: 1 addition & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jdk: openjdk11

0 comments on commit b84886c

Please sign in to comment.