Skip to content

Commit

Permalink
Merge pull request #3911 from owncloud/bump/kotlin_gradle
Browse files Browse the repository at this point in the history
Bump kotlin version to 1.8.10
  • Loading branch information
abelgardep authored Feb 14, 2023
2 parents a6b8264 + 2473c6b commit d1dad3f
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
androidxLegacy = "1.0.0"

// Kotlin
orgJetbrainsKotlin = "1.7.20"
orgJetbrainsKotlin = "1.8.10"
orgJetbrainsKotlinx = "1.6.4"

// Koin
Expand All @@ -37,7 +37,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.3.1"
classpath "com.android.tools.build:gradle:7.4.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$orgJetbrainsKotlin"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
implementation project(':owncloudData')

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$orgJetbrainsKotlinx"

// Android X
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import com.owncloud.android.testutil.OC_BASIC_USERNAME
import com.owncloud.android.testutil.OC_SERVER_INFO
import com.owncloud.android.utils.CONFIGURATION_SERVER_URL
import com.owncloud.android.utils.CONFIGURATION_SERVER_URL_INPUT_VISIBILITY
import com.owncloud.android.utils.NO_MDM_RESTRICTION_YET
import com.owncloud.android.utils.matchers.assertVisibility
import com.owncloud.android.utils.matchers.isDisplayed
import com.owncloud.android.utils.matchers.isEnabled
Expand Down Expand Up @@ -172,7 +173,7 @@ class LoginActivityTest {
) {
every { mdmProvider.getBrandingBoolean(CONFIGURATION_SERVER_URL_INPUT_VISIBILITY, R.bool.show_server_url_input) } returns showServerUrlInput
every { mdmProvider.getBrandingString(CONFIGURATION_SERVER_URL, R.string.server_url) } returns serverUrl
every { mdmProvider.getBrandingString(MdmProvider.NO_MDM_RESTRICTION_YET, R.string.webfinger_lookup_server) } returns webfingerLookupServer
every { mdmProvider.getBrandingString(NO_MDM_RESTRICTION_YET, R.string.webfinger_lookup_server) } returns webfingerLookupServer
every { ocContextProvider.getBoolean(R.bool.use_login_background_image) } returns showLoginBackGroundImage
every { ocContextProvider.getBoolean(R.bool.show_welcome_link) } returns showWelcomeLink
every { ocContextProvider.getString(R.string.account_type) } returns accountType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ import com.owncloud.android.presentation.security.SecurityEnforced
import com.owncloud.android.presentation.settings.SettingsActivity
import com.owncloud.android.providers.ContextProvider
import com.owncloud.android.providers.MdmProvider
import com.owncloud.android.providers.MdmProvider.Companion.NO_MDM_RESTRICTION_YET
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog
import com.owncloud.android.utils.CONFIGURATION_OAUTH2_OPEN_ID_SCOPE
import com.owncloud.android.utils.CONFIGURATION_SERVER_URL
import com.owncloud.android.utils.CONFIGURATION_SERVER_URL_INPUT_VISIBILITY
import com.owncloud.android.utils.NO_MDM_RESTRICTION_YET
import com.owncloud.android.utils.PreferenceUtils
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ class FileDetailsFragment : FileFragment() {
}

private fun updateLayoutForRunningTransfer(workInfo: WorkInfo) {
val safeFile = fileDetailsViewModel.getCurrentFile() ?: return
fileDetailsViewModel.getCurrentFile() ?: return

showProgressView(isTransferGoingOn = true)
binding.fdProgressText.text = if (workInfo.isDownload()) {
getString(R.string.downloader_download_in_progress_ticker, safeFile.fileName)
getString(R.string.downloader_download_in_progress_ticker)
} else { // Transfer is upload (?)
getString(R.string.uploader_upload_in_progress_ticker, safeFile.fileName)
getString(R.string.uploader_upload_in_progress_ticker)
}
binding.fdProgressBar.apply {
isIndeterminate = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import com.owncloud.android.presentation.security.biometric.BiometricActivity
import com.owncloud.android.presentation.security.passcode.PassCodeActivity
import com.owncloud.android.presentation.security.pattern.PatternActivity
import com.owncloud.android.providers.MdmProvider
import com.owncloud.android.providers.MdmProvider.Companion.NO_MDM_RESTRICTION_YET
import com.owncloud.android.utils.CONFIGURATION_LOCK_DELAY_TIME
import com.owncloud.android.utils.NO_MDM_RESTRICTION_YET

class SettingsSecurityViewModel(
private val preferencesProvider: SharedPreferencesProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,4 @@ class MdmProvider(
}

private fun isMdmFlavor() = BuildConfig.FLAVOR == MDM_FLAVOR

companion object {
// Use this key if only interested in setup value. When all keys added to MDM, remove this
const val NO_MDM_RESTRICTION_YET = "NO_MDM_RESTRICTION_YET"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class WorkManagerProvider(
.build()

WorkManager.getInstance(context)
.enqueueUniquePeriodicWork(OldLogsCollectorWorker.OLD_LOGS_COLLECTOR_WORKER, ExistingPeriodicWorkPolicy.REPLACE, oldLogsCollectorWorker)
.enqueueUniquePeriodicWork(OldLogsCollectorWorker.OLD_LOGS_COLLECTOR_WORKER, ExistingPeriodicWorkPolicy.UPDATE, oldLogsCollectorWorker)
}

fun enqueueAvailableOfflinePeriodicWorker() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
private SortOptionsView mSortOptionsView;
private SearchView mSearchView;

private ConstraintLayout mEmptyListView;
private View mEmptyListView;
private ImageView mEmptyListImage;
private TextView mEmptyListTitle;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ package com.owncloud.android.utils

import androidx.annotation.StringDef

// Use this key if only interested in setup value. When all keys added to MDM, remove this
const val NO_MDM_RESTRICTION_YET = "NO_MDM_RESTRICTION_YET"

const val CONFIGURATION_LOCK_DELAY_TIME = "lock_delay_time_configuration"
const val CONFIGURATION_SERVER_URL = "server_url_configuration"
const val CONFIGURATION_SERVER_URL_INPUT_VISIBILITY = "server_url_input_visibility_configuration"
const val CONFIGURATION_ALLOW_SCREENSHOTS = "allow_screenshots_configuration"
const val CONFIGURATION_OAUTH2_OPEN_ID_SCOPE = "oauth2_open_id_scope"

@StringDef(
NO_MDM_RESTRICTION_YET,
CONFIGURATION_LOCK_DELAY_TIME,
CONFIGURATION_SERVER_URL,
CONFIGURATION_SERVER_URL_INPUT_VISIBILITY,
Expand Down
2 changes: 1 addition & 1 deletion owncloudData/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies {
api project(":owncloud-android-library:owncloudComLibrary")

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$orgJetbrainsKotlinx"

// Room
Expand Down
2 changes: 1 addition & 1 deletion owncloudDomain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
implementation "androidx.appcompat:appcompat:$androidxAppcompat"

// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$orgJetbrainsKotlinx"

// Dependencies for unit tests
Expand Down
2 changes: 1 addition & 1 deletion owncloudTestUtil/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ dependencies {
implementation project(':owncloudDomain')
implementation project(':owncloud-android-library:owncloudComLibrary')

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$orgJetbrainsKotlin"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$orgJetbrainsKotlin"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$androidxLifecycle"
}

0 comments on commit d1dad3f

Please sign in to comment.