upgrade gecko

This commit is contained in:
Fabian Freund
2025-11-16 05:54:19 +01:00
parent 56cc6ffe55
commit 4025543558
3 changed files with 27 additions and 9 deletions
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
buildscript {
ext.kotlin_version = "2.1.20"
ext.mozillaComponentsVersion = '144.0.2'
ext.mozillaComponentsVersion = '145.0'
repositories {
google()
@@ -21,7 +21,6 @@ import mozilla.components.feature.addons.AddonManagerException
import mozilla.components.feature.addons.ui.translateName
import mozilla.components.support.utils.ext.getParcelableExtraCompat
import eu.weblibre.flutter_mozilla_components.R
import mozilla.components.feature.addons.R as MozComp
/**
* An activity to show the details of a installed add-on.
@@ -62,7 +61,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
scope.launch(Dispatchers.Main) {
Toast.makeText(
baseContext,
MozComp.string.mozac_feature_addons_failed_to_query_extensions,
R.string.mozac_feature_addons_failed_to_query_extensions,
Toast.LENGTH_SHORT,
).show()
}
@@ -97,14 +96,14 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
switch.setState(true)
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_successfully_enabled, addon.translateName(this)),
getString(R.string.mozac_feature_addons_successfully_enabled, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
},
onError = {
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_failed_to_enable, addon.translateName(this)),
getString(R.string.mozac_feature_addons_failed_to_enable, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
},
@@ -116,14 +115,14 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
switch.setState(false)
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_successfully_disabled, addon.translateName(this)),
getString(R.string.mozac_feature_addons_successfully_disabled, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
},
onError = {
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_failed_to_disable, addon.translateName(this)),
getString(R.string.mozac_feature_addons_failed_to_disable, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
},
@@ -180,7 +179,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
onSuccess = {
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_successfully_uninstalled, addon.translateName(this)),
getString(R.string.mozac_feature_addons_successfully_uninstalled, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
finish()
@@ -188,7 +187,7 @@ class InstalledAddonDetailsActivity : AppCompatActivity() {
onError = { _, _ ->
Toast.makeText(
this,
getString(MozComp.string.mozac_feature_addons_failed_to_uninstall, addon.translateName(this)),
getString(R.string.mozac_feature_addons_failed_to_uninstall, addon.translateName(this)),
Toast.LENGTH_SHORT,
).show()
},
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
<!-- Text shown after successfully enabled an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_successfully_enabled" >Successfully enabled %1$s</string>
<!-- Text shown after failed to enable an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_failed_to_enable">Failed to enable %1$s</string>
<!-- Text shown after successfully disabled an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_successfully_disabled">Successfully disabled %1$s</string>
<!-- Text shown after failed to disable an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_failed_to_disable">Failed to disable %1$s</string>
<!-- Text shown after successfully uninstalled an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_successfully_uninstalled">Successfully uninstalled %1$s</string>
<!-- Text shown after failed to uninstall an add-on. %1$s is the add-on name. -->
<string name="mozac_feature_addons_failed_to_uninstall">Failed to uninstall %1$s</string>
<!-- Error shown when something unexpected happened while trying to get the extension list from the server -->
<string name="mozac_feature_addons_failed_to_query_extensions">Failed to query extensions!</string>
</resources>