Bug 1967292 - Update ktlint to version 1.6.0. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D250064
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
e0a00e5f7d
commit
ba9d7aea61
@@ -6,8 +6,6 @@ lint = "31.10.0"
|
|||||||
python-envs-plugin = "0.0.31"
|
python-envs-plugin = "0.0.31"
|
||||||
maven-ant-tasks = "2.1.3"
|
maven-ant-tasks = "2.1.3"
|
||||||
androidsvg = "1.4"
|
androidsvg = "1.4"
|
||||||
detekt = "1.23.8"
|
|
||||||
ktlint = "1.5.0"
|
|
||||||
zxing = "3.5.3"
|
zxing = "3.5.3"
|
||||||
disklrucache = "2.0.2"
|
disklrucache = "2.0.2"
|
||||||
leakcanary = "2.14"
|
leakcanary = "2.14"
|
||||||
@@ -78,6 +76,11 @@ kotlin = "2.1.21" # remember to change ksp-plugin
|
|||||||
ksp-plugin = "2.1.21-2.0.1"
|
ksp-plugin = "2.1.21-2.0.1"
|
||||||
serialization = "1.8.1"
|
serialization = "1.8.1"
|
||||||
|
|
||||||
|
# Linter versions
|
||||||
|
detekt = "1.23.8"
|
||||||
|
ktlint = "1.6.0"
|
||||||
|
spotless = "7.0.2"
|
||||||
|
|
||||||
# Mozilla versions
|
# Mozilla versions
|
||||||
apilint = "0.5.4"
|
apilint = "0.5.4"
|
||||||
mozilla-glean = "64.2.0"
|
mozilla-glean = "64.2.0"
|
||||||
@@ -102,7 +105,6 @@ okio = "3.11.0"
|
|||||||
sentry = "8.12.0"
|
sentry = "8.12.0"
|
||||||
|
|
||||||
commons-exec = "1.3"
|
commons-exec = "1.3"
|
||||||
spotless = "7.0.2"
|
|
||||||
tomlj = "1.1.0"
|
tomlj = "1.1.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import androidx.annotation.VisibleForTesting
|
|||||||
const val INPUT_HANDLING_UNKNOWN = -1
|
const val INPUT_HANDLING_UNKNOWN = -1
|
||||||
|
|
||||||
// The below top-level values are following the same from [org.mozilla.geckoview.PanZoomController]
|
// The below top-level values are following the same from [org.mozilla.geckoview.PanZoomController]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The content has no scrollable element.
|
* The content has no scrollable element.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -173,11 +173,6 @@ class SponsoredContentsDaoTest {
|
|||||||
assertEquals(sponsoredContent3.url, impressions[1].url)
|
assertEquals(sponsoredContent3.url, impressions[1].url)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets an executor to be used for database transactions.
|
|
||||||
* Needs to be used along with "runTest" to ensure waiting for transactions to finish but
|
|
||||||
* not hang tests.
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
* Sets an executor to be used for database transactions.
|
* Sets an executor to be used for database transactions.
|
||||||
* Needs to be used along with "runTest" to ensure waiting for transactions to finish but
|
* Needs to be used along with "runTest" to ensure waiting for transactions to finish but
|
||||||
|
|||||||
@@ -74,8 +74,7 @@ object AppAndSystemHelper {
|
|||||||
suspend fun bookmarks() = bookmarksStorage.getTree(BookmarkRoot.Mobile.id)?.children
|
suspend fun bookmarks() = bookmarksStorage.getTree(BookmarkRoot.Mobile.id)?.children
|
||||||
fun getPermissionAllowID(): String {
|
fun getPermissionAllowID(): String {
|
||||||
Log.i(TAG, "getPermissionAllowID: Trying to get the permission button resource ID based on API.")
|
Log.i(TAG, "getPermissionAllowID: Trying to get the permission button resource ID based on API.")
|
||||||
return when
|
return when (Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
|
||||||
(Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {
|
|
||||||
true -> {
|
true -> {
|
||||||
Log.i(TAG, "getPermissionAllowID: Getting the permission button resource ID for API ${Build.VERSION.SDK_INT}.")
|
Log.i(TAG, "getPermissionAllowID: Getting the permission button resource ID for API ${Build.VERSION.SDK_INT}.")
|
||||||
"com.android.permissioncontroller"
|
"com.android.permissioncontroller"
|
||||||
|
|||||||
@@ -87,8 +87,7 @@ fun CookieBannerReducerItem(
|
|||||||
shape = RectangleShape,
|
shape = RectangleShape,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (cookieBannerReducerStatus !is CookieBannerReducerStatus.CookieBannerUnsupportedSiteRequestWasSubmitted
|
if (cookieBannerReducerStatus !is CookieBannerReducerStatus.CookieBannerUnsupportedSiteRequestWasSubmitted) {
|
||||||
) {
|
|
||||||
rowModifier = rowModifier.then(
|
rowModifier = rowModifier.then(
|
||||||
Modifier.clickable(
|
Modifier.clickable(
|
||||||
interactionSource = remember { MutableInteractionSource() },
|
interactionSource = remember { MutableInteractionSource() },
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ class PrivacySecuritySettingsFragment :
|
|||||||
getString(R.string.preference_security_biometric_summary2, appName)
|
getString(R.string.preference_security_biometric_summary2, appName)
|
||||||
|
|
||||||
// Remove the biometric toggle if the software or hardware do not support it
|
// Remove the biometric toggle if the software or hardware do not support it
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || !requireContext().canUseBiometricFeature()
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || !requireContext().canUseBiometricFeature()) {
|
||||||
) {
|
|
||||||
biometricPreference?.let { preferenceScreen.removePreference(it) }
|
biometricPreference?.let { preferenceScreen.removePreference(it) }
|
||||||
}
|
}
|
||||||
if (!FocusNimbus.features.onboarding.value().isCfrEnabled ||
|
if (!FocusNimbus.features.onboarding.value().isCfrEnabled ||
|
||||||
|
|||||||
Reference in New Issue
Block a user