Revert "Update link branches to main" (#146880)

Reverts flutter/flutter#146558

Causes failure
This commit is contained in:
Pierre-Louis
2024-04-17 13:25:18 +02:00
committed by GitHub
parent f2be9bcad5
commit 33a9643b5d
41 changed files with 53 additions and 118 deletions

View File

@@ -77,7 +77,7 @@ The planes are planned as follows:
- **Plane 0x01**: The unprintable plane. This plane contains logical keys that
are defined by the [Chromium key
list](https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/main/ui/events/keycodes/dom/dom_key_data.inc)
list](https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/master/ui/events/keycodes/dom/dom_key_data.inc)
and do not generate Unicode characters. The value is defined as the macro
value defined by the Chromium key list. Examples are CapsLock (0x105),
ArrowUp (0x304), F1 (0x801), Hiragata (0x716), and TVPower (0xD4B).

View File

@@ -39,7 +39,7 @@ Future<String> getChromiumKeys() async {
/// Get contents of the file that contains the key codes in Android source.
Future<String> getAndroidKeyCodes() async {
final Uri keyCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/native/+/main/include/android/keycodes.h?format=TEXT');
final Uri keyCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/native/+/master/include/android/keycodes.h?format=TEXT');
return utf8.decode(base64.decode(await http.read(keyCodesUri)));
}
@@ -55,7 +55,7 @@ Future<String> getWindowsKeyCodes() async {
/// common keyboards. Other than some special keyboards and game pads, this
/// should be OK.
Future<String> getAndroidScanCodes() async {
final Uri scanCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/base/+/main/data/keyboards/Generic.kl?format=TEXT');
final Uri scanCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/base/+/master/data/keyboards/Generic.kl?format=TEXT');
return utf8.decode(base64.decode(await http.read(scanCodesUri)));
}