This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #12289 Implement the common part from Biometric in ac
- Loading branch information
Showing
570 changed files
with
16,272 additions
and
4,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: "⌛ Performance issue" | ||
about: Create a performance issue if the app is slow or it uses too much memory, disk space, battery, or network data | ||
title: "" | ||
labels: "performance" | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Steps to reproduce | ||
|
||
### Expected behavior | ||
|
||
### Actual behavior | ||
|
||
### Device information | ||
|
||
* Android device: ? | ||
* App (fenix, focus, ...): ? | ||
* App version: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
components/browser/awesomebar/src/main/res/values-ast/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Description for the button to accept the search suggestion and continue editing the search. --> | ||
<string name="mozac_browser_awesomebar_edit_suggestion">Aceutar y editar la suxerencia</string> | ||
<string name="mozac_browser_awesomebar_edit_suggestion">Aceptar y editar la suxerencia</string> | ||
</resources> |
5 changes: 5 additions & 0 deletions
5
components/browser/awesomebar/src/main/res/values-skr/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!-- Description for the button to accept the search suggestion and continue editing the search. --> | ||
<string name="mozac_browser_awesomebar_edit_suggestion">تجویز کوں قبول کرو تے تبدیلی کرو</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/ext/Address.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* 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/. */ | ||
|
||
package mozilla.components.browser.engine.gecko.ext | ||
|
||
import mozilla.components.concept.storage.Address | ||
import org.mozilla.geckoview.Autocomplete | ||
|
||
/** | ||
* Converts a GeckoView [Autocomplete.Address] to an Android Components [Address]. | ||
*/ | ||
fun Autocomplete.Address.toAddress() = Address( | ||
guid = guid ?: "", | ||
givenName = givenName, | ||
additionalName = additionalName, | ||
familyName = familyName, | ||
organization = organization, | ||
streetAddress = streetAddress, | ||
addressLevel3 = addressLevel3, | ||
addressLevel2 = addressLevel2, | ||
addressLevel1 = addressLevel1, | ||
postalCode = postalCode, | ||
country = country, | ||
tel = tel, | ||
email = email | ||
) | ||
|
||
/** | ||
* Converts an Android Components [Address] to a GeckoView [Autocomplete.Address]. | ||
*/ | ||
fun Address.toAutocompleteAddress() = Autocomplete.Address.Builder() | ||
.guid(guid) | ||
.givenName(givenName) | ||
.additionalName(additionalName) | ||
.familyName(familyName) | ||
.organization(organization) | ||
.streetAddress(streetAddress) | ||
.addressLevel3(addressLevel3) | ||
.addressLevel2(addressLevel2) | ||
.addressLevel1(addressLevel1) | ||
.postalCode(postalCode) | ||
.country(country) | ||
.tel(tel) | ||
.email(email) | ||
.build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/ext/GeckoChoice.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* 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/. */ | ||
|
||
package mozilla.components.browser.engine.gecko.ext | ||
|
||
import mozilla.components.browser.engine.gecko.prompt.GeckoChoice | ||
import mozilla.components.concept.engine.prompt.Choice | ||
|
||
/** | ||
* Converts a GeckoView [GeckoChoice] to an Android Components [Choice]. | ||
*/ | ||
private fun GeckoChoice.toChoice(): Choice { | ||
val choiceChildren = items?.map { it.toChoice() }?.toTypedArray() | ||
// On the GeckoView docs states that label is a @NonNull, but on run-time | ||
// we are getting null values | ||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1771149 | ||
@Suppress("USELESS_ELVIS") | ||
return Choice(id, !disabled, label ?: "", selected, separator, choiceChildren) | ||
} | ||
|
||
/** | ||
* Convert an array of [GeckoChoice] to Choice array. | ||
* @return array of Choice | ||
*/ | ||
fun convertToChoices( | ||
geckoChoices: Array<out GeckoChoice> | ||
): Array<Choice> = geckoChoices.map { geckoChoice -> | ||
val choice = geckoChoice.toChoice() | ||
choice | ||
}.toTypedArray() |
Oops, something went wrong.
eaf92d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh! Looks like an error! Details
Failed to fetch task artifact
public/github/customCheckRunText.md
for GitHub integration.Make sure the artifact exists on the worker or other location.
eaf92d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh! Looks like an error! Details
Failed to fetch task artifact
public/github/customCheckRunText.md
for GitHub integration.Make sure the artifact exists on the worker or other location.