Skip to content

Commit

Permalink
Use java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 14, 2024
1 parent 73674d0 commit d502d7d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
9 changes: 5 additions & 4 deletions owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies {
implementation libs.androidx.work.runtime.ktx
implementation(libs.androidx.browser) { because "CustomTabs required for OAuth2 and OIDC" }
implementation(libs.androidx.enterprise.feedback) { because "MDM feedback" }
//noinspection UseTomlInstead
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'

// Image loading
Expand Down Expand Up @@ -73,6 +74,7 @@ dependencies {
// Timber
implementation libs.timber

//noinspection UseTomlInstead
implementation 'com.github.hannesa2:edgeDetect:1.0'

// Tests
Expand Down Expand Up @@ -123,12 +125,11 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = '17'
}

sourceSets {
Expand Down
9 changes: 9 additions & 0 deletions owncloudComLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,14 @@ android {
includeAndroidResources = true
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

namespace 'com.owncloud.android.lib'
}
11 changes: 5 additions & 6 deletions owncloudData/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ android {
}
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

sourceSets {
Expand Down
11 changes: 5 additions & 6 deletions owncloudDomain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ android {
}
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

sourceSets {
Expand Down
4 changes: 2 additions & 2 deletions owncloudTestUtil/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
namespace "com.owncloud.android.testutil"

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down

0 comments on commit d502d7d

Please sign in to comment.