diff --git a/app/build.gradle b/app/build.gradle index fc1e67b1d8..ffdf886849 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,8 +22,8 @@ android { applicationId 'com.infomaniak.mail' minSdk 25 targetSdk 34 - versionCode 1_00_016_01 - versionName '1.0.16' + versionCode 1_00_017_01 + versionName '1.0.17' testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' setProperty "archivesBaseName", "infomaniak-mail-$versionName ($versionCode)" diff --git a/app/src/main/java/com/infomaniak/mail/utils/Extensions.kt b/app/src/main/java/com/infomaniak/mail/utils/Extensions.kt index fafd82ebe2..5e847a2c08 100644 --- a/app/src/main/java/com/infomaniak/mail/utils/Extensions.kt +++ b/app/src/main/java/com/infomaniak/mail/utils/Extensions.kt @@ -511,13 +511,16 @@ fun Fragment.getStringWithBoldArg(@StringRes resId: Int, arg: String): Spanned { return Html.fromHtml(getString(resId, "$coloredArg"), Html.FROM_HTML_MODE_LEGACY) } -fun Context.isUserAlreadySynchronized(): Boolean { - val accountManager = AccountManager.get(this) - val accounts = accountManager.getAccountsByType("infomaniak.com.sync") - val account = accounts.find { accountManager.getUserData(it, "user_name") == AccountUtils.currentUser?.login } - - return account != null -} +// TODO Does not work, needs to be fixed +// fun Context.isUserAlreadySynchronized(): Boolean { +// val accountManager = AccountManager.get(this) +// val accounts = accountManager.getAccountsByType("infomaniak.com.sync") +// val account = accounts.find { accountManager.getUserData(it, "user_name") == AccountUtils.currentUser?.login } +// +// return account != null +// } + +fun Context.isUserAlreadySynchronized(): Boolean = false fun Context.getLoginActivityIntent(args: LoginActivityArgs? = null, shouldClearStack: Boolean = false): Intent { return Intent(this, LoginActivity::class.java).apply { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2aa5b3d9ec..53fcea6725 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ flexbox = "3.0.0" googleServices = "4.3.15" hiltAndroid = "2.48.1" hiltAndroidx = "1.0.0" -jsoup = "1.16.1" +jsoup = "1.16.2" junitJupiterEngine = "5.10.0" kapt = "1.8.22" kotlin = "1.8.22"