text
stringlengths
6
13.6M
id
stringlengths
13
176
metadata
dict
__index_level_0__
int64
0
1.69k
{ "scriptCategory": "English-like", "timeOfDayFormat": "HH:mm", "openAppDrawerTooltip": "ะะฐะฒะธะณะฐั†ั‹ะฝ ั†ััะธะนะณ ะฝััั…", "backButtonTooltip": "ะ‘ัƒั†ะฐั…", "closeButtonTooltip": "ะฅะฐะฐั…", "deleteButtonTooltip": "ะฃัั‚ะณะฐั…", "nextMonthTooltip": "ะ”ะฐั€ะฐะฐั… ัะฐั€", "previousMonthTooltip": "ำจะผะฝำฉั… ัะฐั€", "nextPageTooltip": "ะ”ะฐั€ะฐะฐั… ั…ัƒัƒะดะฐั", "previousPageTooltip": "ำจะผะฝำฉั… ั…ัƒัƒะดะฐั", "firstPageTooltip": "ะญั…ะฝะธะน ั…ัƒัƒะดะฐั", "lastPageTooltip": "ะกาฏาฏะปะธะนะฝ ั…ัƒัƒะดะฐั", "showMenuTooltip": "ะฆััะธะนะณ ั…ะฐั€ัƒัƒะปะฐั…", "aboutListTileTitle": "$applicationName-ะฝ ั‚ัƒั…ะฐะน", "licensesPageTitle": "ะ›ะธั†ะตะฝะท", "pageRowsInfoTitle": "$rowCount-ะฝ $firstRowโ€“$lastRow", "pageRowsInfoTitleApproximate": "ะžะนั€ะพะปั†ะพะพะณะพะพั€ $rowCount-ะฝ $firstRowโ€“$lastRow", "rowsPerPageTitle": "ะฅัƒัƒะดัะฐะฝ ะดะฐั…ัŒ ะผำฉั€ะธะนะฝ ั‚ะพะพ:", "tabLabel": "$tabCount-ะฝ $tabIndex-ั€ ั‚ะฐะฑ", "selectedRowCountTitleZero": "ะ‘ะธั‡ะปัะณ ัะพะฝะณะพะพะณาฏะน ะฑะฐะนะฝะฐ", "selectedRowCountTitleOne": "1 ะทาฏะนะป ัะพะฝะณะพัะพะฝ", "selectedRowCountTitleOther": "$selectedRowCount ะทาฏะนะป ัะพะฝะณะพัะพะฝ", "cancelButtonLabel": "ะฆัƒั†ะปะฐั…", "closeButtonLabel": "ะฅะฐะฐั…", "continueButtonLabel": "าฎั€ะณัะปะถะปาฏาฏะปัั…", "copyButtonLabel": "ะฅัƒัƒะปะฐั…", "cutButtonLabel": "ะขะฐัะปะฐั…", "scanTextButtonLabel": "ะขะตะบัั‚ะธะนะณ ัะบะฐะฝ ั…ะธะนั…", "okButtonLabel": "OK", "pasteButtonLabel": "ะ‘ัƒัƒะปะณะฐั…", "selectAllButtonLabel": "ะ‘าฏะณะดะธะนะณ ัะพะฝะณะพั…", "viewLicensesButtonLabel": "ะ›ะธั†ะตะฝะท ั…ะฐั€ะฐั…", "anteMeridiemAbbreviation": "ำจะ“ะ›ำจำจ", "postMeridiemAbbreviation": "ะžะ ะžะ™", "timePickerHourModeAnnouncement": "ะฆะฐะณ ัะพะฝะณะพะฝะพ ัƒัƒ", "timePickerMinuteModeAnnouncement": "ะœะธะฝัƒั‚ ัะพะฝะณะพะฝะพ ัƒัƒ", "modalBarrierDismissLabel": "าฎะป ั…ัั€ัะณััั…", "signedInLabel": "ะัะฒั‚ัั€ััะฝ", "hideAccountsLabel": "ะ‘าฏั€ั‚ะณัะปาฏาฏะดะธะนะณ ะฝัƒัƒั…", "showAccountsLabel": "ะ‘าฏั€ั‚ะณัะปาฏาฏะดะธะนะณ ั…ะฐั€ัƒัƒะปะฐั…", "drawerLabel": "ะะฐะฒะธะณะฐั†ั‹ะฝ ั†ัั", "popupMenuLabel": "ะŸะพะฟะฐะฟ ั†ัั", "dialogLabel": "ะฅะฐั€ะธะปั†ะฐั… ั†ะพะฝั…", "alertDialogLabel": "ะกัั€ัะผะถะปาฏาฏะปัะณ", "searchFieldLabel": "ะฅะฐะนั…", "reorderItemToStart": "ะญั…ะปัะป ั€าฏาฏ ะทำฉำฉั…", "reorderItemToEnd": "ะขำฉะณัะณำฉะป ั€าฏาฏ ะทำฉำฉั…", "reorderItemUp": "ะ”ัััˆ ะทำฉำฉั…", "reorderItemDown": "ะ”ะพะพัˆ ะทำฉำฉั…", "reorderItemLeft": "ะ—าฏาฏะฝ ั‚ะธะนัˆ ะทำฉำฉั…", "reorderItemRight": "ะ‘ะฐั€ัƒัƒะฝ ั‚ะธะนัˆ ะทำฉำฉั…", "expandedIconTapHint": "ะ‘ัƒัƒะปะณะฐั…", "collapsedIconTapHint": "ะ”ัะปะณัั…", "remainingTextFieldCharacterCountZero": "No characters remaining", "remainingTextFieldCharacterCountOne": "1 ั‚ัะผะดัะณั‚ าฏะปะดััะฝ", "remainingTextFieldCharacterCountOther": "$remainingCount ั‚ัะผะดัะณั‚ าฏะปะดััะฝ", "refreshIndicatorSemanticLabel": "ะกัั€ะณััั…", "moreButtonTooltip": "ะ‘ัƒัะฐะด", "dateSeparator": ".", "dateHelpText": "ะถะถะถะถ.ัั.ำฉำฉ", "selectYearSemanticsLabel": "ะ–ะธะป ัะพะฝะณะพั…", "unspecifiedDate": "ะžะณะฝะพะพ", "unspecifiedDateRange": "ะฅัƒะณะฐั†ะฐะฐะฝั‹ ะธะฝั‚ะตั€ะฒะฐะป", "dateInputLabel": "ะžะณะฝะพะพ ะพั€ัƒัƒะปะฐั…", "dateRangeStartLabel": "ะญั…ะปัั… ะพะณะฝะพะพ", "dateRangeEndLabel": "ะ”ัƒัƒัะฐั… ะพะณะฝะพะพ", "dateRangeStartDateSemanticLabel": "ะญั…ะปัั… ะพะณะฝะพะพ $fullDate", "dateRangeEndDateSemanticLabel": "ะ”ัƒัƒัะฐั… ะพะณะฝะพะพ $fullDate", "invalidDateFormatLabel": "ะ‘ัƒั€ัƒัƒ ั„ะพั€ะผะฐั‚ ะฑะฐะนะฝะฐ.", "invalidDateRangeLabel": "ะ‘ัƒั€ัƒัƒ ะธะฝั‚ะตั€ะฒะฐะป ะฑะฐะนะฝะฐ.", "dateOutOfRangeLabel": "ะ˜ะฝั‚ะตั€ะฒะฐะปะฐะฐั ะณะฐะดัƒัƒั€ ะฑะฐะนะฝะฐ.", "saveButtonLabel": "ะฅะฐะดะณะฐะปะฐั…", "datePickerHelpText": "ะžะณะฝะพะพ ัะพะฝะณะพั…", "dateRangePickerHelpText": "ะฅัƒะณะฐั†ะฐะฐะฝั‹ ะธะฝั‚ะตั€ะฒะฐะป ัะพะฝะณะพั…", "calendarModeButtonLabel": "ะšะฐะปะตะฝะดะฐั€ัŒ ะปัƒัƒ ััะปะณัั…", "inputDateModeButtonLabel": "ะžั€ะพะปั‚ ั€ัƒัƒ ััะปะณัั…", "timePickerDialHelpText": "ะฅัƒะณะฐั†ะฐะฐ ัะพะฝะณะพั…", "timePickerInputHelpText": "ะฅัƒะณะฐั†ะฐะฐ ะพั€ัƒัƒะปะฐั…", "timePickerHourLabel": "ะฆะฐะณ", "timePickerMinuteLabel": "ะœะธะฝัƒั‚", "invalidTimeLabel": "ะฆะฐะณะธะนะณ ะทำฉะฒ ะพั€ัƒัƒะปะฝะฐ ัƒัƒ", "dialModeButtonLabel": "ะฆะฐะณ ัะพะฝะณะพะณั‡ ะณะพั€ะธะผ ั€ัƒัƒ ััะปะณัั…", "inputTimeModeButtonLabel": "ะขะตะบัั‚ ะพั€ัƒัƒะปะฐั… ะณะพั€ะธะผ ั€ัƒัƒ ััะปะณัั…", "licensesPackageDetailTextZero": "No licenses", "licensesPackageDetailTextOne": "1 ะปะธั†ะตะฝะท", "licensesPackageDetailTextOther": "$licenseCount ะปะธั†ะตะฝะท", "keyboardKeyAlt": "Alt", "keyboardKeyAltGraph": "AltGr", "keyboardKeyBackspace": "Backspace", "keyboardKeyCapsLock": "Caps Lock", "keyboardKeyChannelDown": "Channel Down", "keyboardKeyChannelUp": "Channel Up", "keyboardKeyControl": "Ctrl", "keyboardKeyDelete": "Del", "keyboardKeyEject": "Eject", "keyboardKeyEnd": "End", "keyboardKeyEscape": "Esc", "keyboardKeyFn": "Fn", "keyboardKeyHome": "ะ“ัั€", "keyboardKeyInsert": "ะžั€ัƒัƒะปะฐั…", "keyboardKeyMeta": "ะœะตั‚ะฐ", "keyboardKeyNumLock": "Num Lock", "keyboardKeyNumpad1": "Num 1", "keyboardKeyNumpad2": "Num 2", "keyboardKeyNumpad3": "Num 3", "keyboardKeyNumpad4": "Num 4", "keyboardKeyNumpad5": "Num 5", "keyboardKeyNumpad6": "Num 6", "keyboardKeyNumpad7": "Num 7", "keyboardKeyNumpad8": "Num 8", "keyboardKeyNumpad9": "Num 9", "keyboardKeyNumpad0": "Num 0", "keyboardKeyNumpadAdd": "Num +", "keyboardKeyNumpadComma": "Num ,", "keyboardKeyNumpadDecimal": "Num .", "keyboardKeyNumpadDivide": "Num /", "keyboardKeyNumpadEnter": "Num Enter", "keyboardKeyNumpadEqual": "Num =", "keyboardKeyNumpadMultiply": "Num *", "keyboardKeyNumpadParenLeft": "Num (", "keyboardKeyNumpadParenRight": "Num )", "keyboardKeyNumpadSubtract": "Num -", "keyboardKeyPageDown": "PgDown", "keyboardKeyPageUp": "PgUp", "keyboardKeyPower": "ะัะฐะฐั…/ัƒะฝั‚ั€ะฐะฐั… ั‚ะพะฒั‡", "keyboardKeyPowerOff": "ะฃะฝั‚ั€ะฐะฐั…", "keyboardKeyPrintScreen": "Print Screen", "keyboardKeyScrollLock": "Scroll Lock", "keyboardKeySelect": "ะกะพะฝะณะพั…", "keyboardKeySpace": "Space", "keyboardKeyMetaMacOs": "ะขัƒัˆะฐะฐะป", "keyboardKeyMetaWindows": "Win", "menuBarMenuLabel": "ะฆััะฝะธะน ั‚ะฐะปะฑะฐั€ั‹ะฝ ั†ัั", "currentDateLabel": "ำจะฝำฉำฉะดำฉั€", "scrimLabel": "ะกะบั€ะธะผ", "bottomSheetLabel": "ะ”ะพะพะด ั…าฏัะฝัะณั‚", "scrimOnTapHint": "$modalRouteContentName-ะณ ั…ะฐะฐั…", "keyboardKeyShift": "Shift", "expansionTileExpandedHint": "ั…ัƒั€ะฐะฐั…ั‹ะฝ ั‚ัƒะปะด ั…ะพั‘ั€ ั‚ะพะฒัˆะธะฝะพ ัƒัƒ", "expansionTileCollapsedHint": "ะดัะปะณัั…ะธะนะฝ ั‚ัƒะปะด ั…ะพั‘ั€ ั‚ะพะฒัˆะธะฝะพ ัƒัƒ", "expansionTileExpandedTapHint": "ะฅัƒั€ะฐะฐั…", "expansionTileCollapsedTapHint": "ะ˜ะปาฏาฏ ะดัะปะณัั€ัะฝะณาฏะน ะฐะฒะฐั… ะฑะพะป ะดัะปะณัะฝั าฏาฏ", "expandedHint": "ะฅัƒั€ะฐะฐัะฐะฝ", "collapsedHint": "ะ”ัะปะณัััะฝ", "menuDismissLabel": "ะฆััะธะนะณ ั…ะฐะฐั…", "lookUpButtonLabel": "ะ”ัััˆัั ั…ะฐั€ะฐั…", "searchWebButtonLabel": "ะ’ะตะฑััั ั…ะฐะนั…", "shareButtonLabel": "ะฅัƒะฒะฐะฐะปั†ะฐั…...", "clearButtonTooltip": "Clear text", "selectedDateLabel": "Selected" }
flutter/packages/flutter_localizations/lib/src/l10n/material_mn.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/material_mn.arb", "repo_id": "flutter", "token_count": 3487 }
900
{ "scriptCategory": "English-like", "timeOfDayFormat": "H:mm", "openAppDrawerTooltip": "เทƒเถ‚เถ เทเถฝเถฑ เถธเท™เถฑเท”เท€ เท€เท’เท€เท˜เถญ เถšเถปเถฑเทŠเถฑ", "backButtonTooltip": "เถ†เถดเทƒเท”", "closeButtonTooltip": "เท€เทƒเถฑเทŠเถฑ", "deleteButtonTooltip": "เถธเถšเถฑเทŠเถฑ", "nextMonthTooltip": "เถŠเท…เถŸ เถธเทเทƒเถบ", "previousMonthTooltip": "เถดเท™เถป เถธเทเทƒเถบ", "nextPageTooltip": "เถŠเท…เถŸ เถดเท’เถงเท”เท€", "previousPageTooltip": "เถดเท™เถป เถดเท’เถงเท”เท€", "firstPageTooltip": "เถดเท…เถธเท” เถดเท’เถงเท”เท€", "lastPageTooltip": "เถ…เท€เทƒเถฑเทŠ เถดเท’เถงเท”เท€", "showMenuTooltip": "เถธเท™เถฑเท”เท€ เถดเท™เถฑเทŠเท€เถฑเทŠเถฑ", "aboutListTileTitle": "$applicationName เถœเทเถฑ", "licensesPageTitle": "เถถเถฝเถดเถญเทŠโ€เถป", "pageRowsInfoTitle": "$rowCountเถฑเทŠ $firstRowโ€“$lastRow", "pageRowsInfoTitleApproximate": "$rowCountเถšเท’เถฑเทŠ เถดเถธเถซ $firstRowโ€“$lastRow", "rowsPerPageTitle": "เถดเท’เถงเท”เท€เถšเถง เถดเทšเท…เท’:", "tabLabel": "เถงเทเถถ $tabIndexเถšเท’เถฑเทŠ $tabCount", "selectedRowCountTitleOne": "เถ…เถบเท’เถญเถธ 1เถšเทŠ เถญเทเถปเถฑ เถฝเถฏเท“", "selectedRowCountTitleOther": "เถ…เถบเท’เถญเถธ $selectedRowCountเถšเทŠ เถญเทเถปเถฑ เถฝเถฏเท“", "cancelButtonLabel": "เถ…เท€เถฝเถ‚เถœเท” เถšเถปเถฑเทŠเถฑ", "closeButtonLabel": "เท€เทƒเถฑเทŠเถฑ", "continueButtonLabel": "เถ‰เถฏเท’เถปเท’เถบเถง เถบเถฑเทŠเถฑ", "copyButtonLabel": "เถดเท’เถงเถดเถญเทŠ เถšเถปเถฑเทŠเถฑ", "cutButtonLabel": "เถšเถดเถฑเทŠเถฑ", "scanTextButtonLabel": "เถดเท™เท… เทƒเทŠเถšเท‘เถฑเทŠ เถšเถปเถฑเทŠเถฑ", "okButtonLabel": "เท„เถปเท’", "pasteButtonLabel": "เถ…เถฝเท€เถฑเทŠเถฑ", "selectAllButtonLabel": "เทƒเท’เถบเถฝเทŠเถฝ เถญเทเถปเถฑเทŠเถฑ", "viewLicensesButtonLabel": "เถถเถฝเถดเถญเทŠโ€เถป เถถเถฝเถฑเทŠเถฑ", "anteMeridiemAbbreviation": "เถดเท™.เท€.", "postMeridiemAbbreviation": "เถด.เท€.", "timePickerHourModeAnnouncement": "เถดเทเถบ เถœเถซเถฑ เถญเทเถปเถฑเทŠเถฑ", "timePickerMinuteModeAnnouncement": "เถธเท’เถฑเท’เถญเทŠเถญเท” เถœเถซเถฑ เถญเทเถปเถฑเทŠเถฑ", "modalBarrierDismissLabel": "เถ‰เท€เถญ เถฝเถฑเทŠเถฑ", "signedInLabel": "เถดเท”เถปเถฑ เถฝเถฏเท“", "hideAccountsLabel": "เถœเท’เถซเท”เถธเทŠ เทƒเถŸเท€เถฑเทŠเถฑ", "showAccountsLabel": "เถœเท’เถซเท”เถธเทŠ เถดเท™เถฑเทŠเท€เถฑเทŠเถฑ", "drawerLabel": "เทƒเถ‚เถ เทเถฝเถฑ เถธเท™เถฑเท”เท€", "popupMenuLabel": "เถ‹เถญเทŠเถดเถญเถฑ เถธเท™เถฑเท”เท€", "dialogLabel": "เทƒเถ‚เท€เทเถฏเถบ", "alertDialogLabel": "เถ‡เถŸเท€เท“เถธ", "searchFieldLabel": "เทƒเท™เท€เท“เถธ", "reorderItemToStart": "เถ†เถปเถธเทŠเถทเถบ เท€เท™เถญ เถบเถฑเทŠเถฑ", "reorderItemToEnd": "เถ…เท€เทƒเทเถฑเถบเถง เถบเถฑเทŠเถฑ", "reorderItemUp": "เถ‰เท„เท…เถง เถœเท™เถฑ เถบเถฑเทŠเถฑ", "reorderItemDown": "เถดเท„เท…เถง เถœเท™เถฑ เถบเถฑเทŠเถฑ", "reorderItemLeft": "เท€เถธเถง เถœเท™เถฑ เถบเถฑเทŠเถฑ", "reorderItemRight": "เถฏเถšเท”เถซเถง เถœเท™เถฑ เถบเถฑเทŠเถฑ", "expandedIconTapHint": "เท„เถšเท”เท…เถฑเทŠเถฑ", "collapsedIconTapHint": "เถฏเท’เถœ เท„เถปเท’เถฑเทŠเถฑ", "remainingTextFieldCharacterCountOne": "เถ…เถฑเท”เถฝเถšเท”เถซเท” 1เถšเทŠ เถ‰เถญเท’เถปเท’เถบ", "remainingTextFieldCharacterCountOther": "เถ…เถฑเท”เถฝเถšเท”เถซเท” $remainingCountเถšเทŠ เถ‰เถญเท’เถปเท’เถบ", "refreshIndicatorSemanticLabel": "เถฑเทเท€เท”เถธเทŠ เถšเถปเถฑเทŠเถฑ", "moreButtonTooltip": "เถญเท€", "dateSeparator": ".", "dateHelpText": "mm.dd.yyyy", "selectYearSemanticsLabel": "เท€เถปเทŠเท‚เถบ เถญเทœเทŠเถปเถฑเทŠเถฑ", "unspecifiedDate": "เถฏเท’เถฑเถบ", "unspecifiedDateRange": "เถฏเท’เถฑ เถดเถปเทเทƒเถบ", "dateInputLabel": "เถฏเท’เถฑเถบ เถ‡เถญเท”เท…เท” เถšเถปเถฑเทŠเถฑ", "dateRangeStartLabel": "เถ†เถปเถธเทŠเถทเถš เถฏเท’เถฑเถบ", "dateRangeEndLabel": "เถ…เท€เทƒเถฑเทŠ เท€เถฑ เถฏเท’เถฑเถบ", "dateRangeStartDateSemanticLabel": "เถ†เถปเถธเทŠเถทเถš เถฏเท’เถฑเถบ $fullDate", "dateRangeEndDateSemanticLabel": "เถ…เท€เทƒเถฑเทŠ เท€เถฑ เถฏเท’เถฑเถบ $fullDate", "invalidDateFormatLabel": "เถ…เท€เถฝเถ‚เถœเท” เถ†เถšเท˜เถญเท’เถบเถšเท’.", "invalidDateRangeLabel": "เถ…เท€เถฝเถ‚เถœเท” เถดเถปเทเทƒเถบเถšเท’.", "dateOutOfRangeLabel": "เถดเถปเทเทƒเถบเท™เถฑเทŠ เถดเท’เถงเถญ.", "saveButtonLabel": "เทƒเท”เถปเถšเท’เถฑเทŠเถฑ", "datePickerHelpText": "เถฏเท’เถฑเถบ เถญเทเถปเถฑเทŠเถฑ", "dateRangePickerHelpText": "เถดเถปเทเทƒเถบ เถญเทเถปเถฑเทŠเถฑ", "calendarModeButtonLabel": "เถฏเท’เถฑ เถฏเถปเทŠเทเถฑเถบ เท€เท™เถญ เถธเทเถปเท” เท€เถฑเทŠเถฑ", "inputDateModeButtonLabel": "เถ†เถฏเทเถฑเถบ เท€เท™เถญ เถธเทเถปเท” เท€เถฑเทŠเถฑ", "timePickerDialHelpText": "เท€เทšเถฝเทเท€ เถญเทเถปเถฑเทŠเถฑ", "timePickerInputHelpText": "เถšเทเถฝเถบ เถ‡เถญเท”เท…เท” เถšเถปเถฑเทŠเถฑ", "timePickerHourLabel": "เถดเทเถบ", "timePickerMinuteLabel": "เถธเท’เถฑเท’เถญเทŠเถญเท”", "invalidTimeLabel": "เท€เถฝเถ‚เถœเท” เท€เทšเถฝเทเท€เถšเทŠ เถ‡เถญเท”เท…เท” เถšเถปเถฑเทŠเถฑ", "dialModeButtonLabel": "เถฉเถบเถฝเถฑ เถญเทเถปเถš เถดเทŠโ€เถปเถšเทเถปเถบเถง เถธเทเถปเท” เถšเถปเถฑเทŠเถฑ", "inputTimeModeButtonLabel": "เถดเท™เท… เถ†เถฏเทเถฑ เถดเทŠโ€เถปเถšเทเถปเถบเถง เถธเทเถปเท” เถšเถปเถฑเทŠเถฑ", "licensesPackageDetailTextZero": "No licenses", "licensesPackageDetailTextOne": "เถถเถฝเถดเถญเทŠโ€เถป 1", "licensesPackageDetailTextOther": "เถถเถฝเถดเถญเทŠโ€เถป $licenseCount", "keyboardKeyAlt": "Alt", "keyboardKeyAltGraph": "AltGr", "keyboardKeyBackspace": "Backspace", "keyboardKeyCapsLock": "Caps Lock", "keyboardKeyChannelDown": "Channel Down", "keyboardKeyChannelUp": "Channel Up", "keyboardKeyControl": "Ctrl", "keyboardKeyDelete": "Del", "keyboardKeyEject": "Eject", "keyboardKeyEnd": "End", "keyboardKeyEscape": "Esc", "keyboardKeyFn": "Fn", "keyboardKeyHome": "Home", "keyboardKeyInsert": "Insert", "keyboardKeyMeta": "Meta", "keyboardKeyNumLock": "Num Lock", "keyboardKeyNumpad1": "Num 1", "keyboardKeyNumpad2": "Num 2", "keyboardKeyNumpad3": "Num 3", "keyboardKeyNumpad4": "Num 4", "keyboardKeyNumpad5": "Num 5", "keyboardKeyNumpad6": "Num 6", "keyboardKeyNumpad7": "Num 7", "keyboardKeyNumpad8": "Num 8", "keyboardKeyNumpad9": "Num 9", "keyboardKeyNumpad0": "Num 0", "keyboardKeyNumpadAdd": "Num +", "keyboardKeyNumpadComma": "Num ,", "keyboardKeyNumpadDecimal": "Num .", "keyboardKeyNumpadDivide": "Num /", "keyboardKeyNumpadEnter": "Num Enter", "keyboardKeyNumpadEqual": "Num =", "keyboardKeyNumpadMultiply": "Num *", "keyboardKeyNumpadParenLeft": "Num (", "keyboardKeyNumpadParenRight": "Num )", "keyboardKeyNumpadSubtract": "Num -", "keyboardKeyPageDown": "PgDown", "keyboardKeyPageUp": "PgUp", "keyboardKeyPower": "Power", "keyboardKeyPowerOff": "Power Off", "keyboardKeyPrintScreen": "Print Screen", "keyboardKeyScrollLock": "Scroll Lock", "keyboardKeySelect": "Select", "keyboardKeySpace": "Space", "keyboardKeyMetaMacOs": "Command", "keyboardKeyMetaWindows": "Win", "menuBarMenuLabel": "เถธเท™เถฑเท” เถญเท“เถปเท” เถธเท™เถฑเท”เท€", "currentDateLabel": "เถ…เถฏ", "scrimLabel": "เทƒเทŠเถšเทŠโ€เถปเท’เถธเทŠ", "bottomSheetLabel": "เถดเท„เท…เถธ เถดเถญเทŠโ€เถปเถบ", "scrimOnTapHint": "$modalRouteContentName เท€เทƒเถฑเทŠเถฑ", "keyboardKeyShift": "Shift", "expansionTileExpandedHint": "เท„เทเถšเท’เท…เท€เท“เถธเถง เถฏเท™เท€เถปเถšเทŠ เถญเถงเทŠเถงเท” เถšเถปเถฑเทŠเถฑ", "expansionTileCollapsedHint": "เท€เท’เท„เท’เถฏเท”เท€เท“เถธเถง เถฏเท™เท€เถปเถšเทŠ เถญเถงเทŠเถงเท” เถšเถปเถฑเทŠเถฑ", "expansionTileExpandedTapHint": "เท„เถšเท”เท…เถฑเทŠเถฑ", "expansionTileCollapsedTapHint": "เท€เทเถฉเท’ เท€เท’เทƒเทŠเถญเถป เทƒเถณเท„เท เถดเท”เท…เท”เถฝเทŠ เถšเถปเถฑเทŠเถฑ", "expandedHint": "เท„เถšเท”เท…เถฑ เถฝเถฏเท’", "collapsedHint": "เถฏเท’เถœ เท„เถปเท’เถฑ เถฝเถฏเท’", "menuDismissLabel": "เถธเท™เถฑเท”เท€ เถ…เทƒเทŠ เถšเถปเถฑเทŠเถฑ", "lookUpButtonLabel": "เถ‹เถฉ เถถเถฝเถฑเทŠเถฑ", "searchWebButtonLabel": "เท€เท™เถถเถบ เทƒเทœเถบเถฑเทŠเถฑ", "shareButtonLabel": "เถถเท™เถฏเท เถœเถฑเทŠเถฑ...", "clearButtonTooltip": "Clear text", "selectedDateLabel": "Selected" }
flutter/packages/flutter_localizations/lib/src/l10n/material_si.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/material_si.arb", "repo_id": "flutter", "token_count": 4819 }
901
{ "scriptCategory": "English-like", "timeOfDayFormat": "HH:mm", "openAppDrawerTooltip": "MแปŸ menu di chuyแปƒn", "backButtonTooltip": "Quay lแบกi", "closeButtonTooltip": "ฤรณng", "deleteButtonTooltip": "Xรณa", "nextMonthTooltip": "Thรกng sau", "previousMonthTooltip": "Thรกng trฦฐแป›c", "nextPageTooltip": "Trang tiแบฟp theo", "previousPageTooltip": "Trang trฦฐแป›c", "firstPageTooltip": "Trang ฤ‘แบงu", "lastPageTooltip": "Trang cuแป‘i", "showMenuTooltip": "Hiแปƒn thแป‹ menu", "aboutListTileTitle": "Giแป›i thiแป‡u vแป $applicationName", "licensesPageTitle": "Giแบฅy phรฉp", "pageRowsInfoTitle": "$firstRowโ€“$lastRow trong tแป•ng sแป‘ $rowCount", "pageRowsInfoTitleApproximate": "$firstRowโ€“$lastRow trong tแป•ng sแป‘ khoแบฃng $rowCount", "rowsPerPageTitle": "Sแป‘ hร ng mแป—i trang:", "tabLabel": "Tab $tabIndex trong tแป•ng sแป‘ $tabCount", "selectedRowCountTitleOne": "ฤรฃ chแปn 1 mแปฅc", "selectedRowCountTitleOther": "ฤรฃ chแปn $selectedRowCount mแปฅc", "cancelButtonLabel": "Huแปท", "closeButtonLabel": "ฤรณng", "continueButtonLabel": "Tiแบฟp tแปฅc", "copyButtonLabel": "Sao chรฉp", "cutButtonLabel": "Cแบฏt", "scanTextButtonLabel": "Quรฉt vฤƒn bแบฃn", "okButtonLabel": "OK", "pasteButtonLabel": "Dรกn", "selectAllButtonLabel": "Chแปn tแบฅt cแบฃ", "viewLicensesButtonLabel": "Xem giแบฅy phรฉp", "anteMeridiemAbbreviation": "SรNG", "postMeridiemAbbreviation": "CHIแป€U", "timePickerHourModeAnnouncement": "Chแปn giแป", "timePickerMinuteModeAnnouncement": "Chแปn phรบt", "modalBarrierDismissLabel": "Bแป qua", "signedInLabel": "ฤรฃ ฤ‘ฤƒng nhแบญp", "hideAccountsLabel": "แบจn tร i khoแบฃn", "showAccountsLabel": "Hiแปƒn thแป‹ tร i khoแบฃn", "drawerLabel": "Menu di chuyแปƒn", "popupMenuLabel": "Menu bแบญt lรชn", "dialogLabel": "Hแป™p thoแบกi", "alertDialogLabel": "Thรดng bรกo", "searchFieldLabel": "Tรฌm kiแบฟm", "reorderItemToStart": "Di chuyแปƒn lรชn ฤ‘แบงu danh sรกch", "reorderItemToEnd": "Di chuyแปƒn xuแป‘ng cuแป‘i danh sรกch", "reorderItemUp": "Di chuyแปƒn lรชn", "reorderItemDown": "Di chuyรชฬ‰n xuรดฬng", "reorderItemLeft": "Di chuyแปƒn sang trรกi", "reorderItemRight": "Di chuyแปƒn sang phแบฃi", "expandedIconTapHint": "Thu gแปn", "collapsedIconTapHint": "MแปŸ rแป™ng", "remainingTextFieldCharacterCountOne": "Coฬ€n laฬฃi 1 kรฝ tแปฑ", "remainingTextFieldCharacterCountOther": "Coฬ€n laฬฃi $remainingCount kรฝ tแปฑ", "refreshIndicatorSemanticLabel": "Lร m mแป›i", "moreButtonTooltip": "Thรชm", "dateSeparator": "/", "dateHelpText": "mm/dd/yyyy", "selectYearSemanticsLabel": "Chแปn nฤƒm", "unspecifiedDate": "Ngร y", "unspecifiedDateRange": "Phแบกm vi ngร y", "dateInputLabel": "Nhแบญp ngร y", "dateRangeStartLabel": "Ngร y bแบฏt ฤ‘แบงu", "dateRangeEndLabel": "Ngร y kแบฟt thรบc", "dateRangeStartDateSemanticLabel": "Ngร y bแบฏt ฤ‘แบงu $fullDate", "dateRangeEndDateSemanticLabel": "Ngร y kแบฟt thรบc $fullDate", "invalidDateFormatLabel": "ฤแป‹nh dแบกng khรดng hแปฃp lแป‡.", "invalidDateRangeLabel": "Phแบกm vi khรดng hแปฃp lแป‡.", "dateOutOfRangeLabel": "Ngoร i phแบกm vi.", "saveButtonLabel": "Lฦฐu", "datePickerHelpText": "Chแปn ngร y", "dateRangePickerHelpText": "Chแปn phแบกm vi", "calendarModeButtonLabel": "Chuyแปƒn sang lแป‹ch", "inputDateModeButtonLabel": "Chuyแปƒn sang chแบฟ ฤ‘แป™ nhแบญp", "timePickerDialHelpText": "Chแปn thแปi gian", "timePickerInputHelpText": "Nhแบญp thแปi gian", "timePickerHourLabel": "Giแป", "timePickerMinuteLabel": "Phรบt", "invalidTimeLabel": "Nhแบญp thแปi gian hแปฃp lแป‡", "dialModeButtonLabel": "Chuyแปƒn sang chแบฟ ฤ‘แป™ chแปn mแบทt ฤ‘แป“ng hแป“", "inputTimeModeButtonLabel": "Chuyแปƒn sang chแบฟ ฤ‘แป™ nhแบญp vฤƒn bแบฃn", "licensesPackageDetailTextZero": "No licenses", "licensesPackageDetailTextOne": "1 giแบฅy phรฉp", "licensesPackageDetailTextOther": "$licenseCount giแบฅy phรฉp", "keyboardKeyAlt": "Alt", "keyboardKeyAltGraph": "AltGr", "keyboardKeyBackspace": "Backspace", "keyboardKeyCapsLock": "Caps Lock", "keyboardKeyChannelDown": "Giแบฃm kรชnh", "keyboardKeyChannelUp": "Tฤƒng kรชnh", "keyboardKeyControl": "Ctrl", "keyboardKeyDelete": "Del", "keyboardKeyEject": "Eject", "keyboardKeyEnd": "End", "keyboardKeyEscape": "Esc", "keyboardKeyFn": "Fn", "keyboardKeyHome": "Home", "keyboardKeyInsert": "Insert", "keyboardKeyMeta": "Meta", "keyboardKeyNumLock": "Num Lock", "keyboardKeyNumpad1": "Phรญm sแป‘ 1", "keyboardKeyNumpad2": "Phรญm sแป‘ 2", "keyboardKeyNumpad3": "Phรญm sแป‘ 3", "keyboardKeyNumpad4": "Phรญm sแป‘ 4", "keyboardKeyNumpad5": "Phรญm sแป‘ 5", "keyboardKeyNumpad6": "Phรญm sแป‘ 6", "keyboardKeyNumpad7": "Phรญm sแป‘ 7", "keyboardKeyNumpad8": "Phรญm sแป‘ 8", "keyboardKeyNumpad9": "Phรญm sแป‘ 9", "keyboardKeyNumpad0": "Phรญm sแป‘ 0", "keyboardKeyNumpadAdd": "Phรญm +", "keyboardKeyNumpadComma": "Phรญm ,", "keyboardKeyNumpadDecimal": "Phรญm .", "keyboardKeyNumpadDivide": "Phรญm /", "keyboardKeyNumpadEnter": "Phรญm Enter", "keyboardKeyNumpadEqual": "Phรญm =", "keyboardKeyNumpadMultiply": "Phรญm *", "keyboardKeyNumpadParenLeft": "Phรญm (", "keyboardKeyNumpadParenRight": "Phรญm )", "keyboardKeyNumpadSubtract": "Phรญm -", "keyboardKeyPageDown": "PgDown", "keyboardKeyPageUp": "PgUp", "keyboardKeyPower": "Nguแป“n", "keyboardKeyPowerOff": "Tแบฏt nguแป“n", "keyboardKeyPrintScreen": "Print Screen", "keyboardKeyScrollLock": "Scroll Lock", "keyboardKeySelect": "Select", "keyboardKeySpace": "Phรญm cรกch", "keyboardKeyMetaMacOs": "Command", "keyboardKeyMetaWindows": "Win", "menuBarMenuLabel": "Trรฌnh ฤ‘ฦกn cแปงa thanh trรฌnh ฤ‘ฦกn", "currentDateLabel": "Hรดm nay", "scrimLabel": "Scrim", "bottomSheetLabel": "Bแบฃng dฦฐแป›i cรนng", "scrimOnTapHint": "ฤรณng $modalRouteContentName", "keyboardKeyShift": "Shift", "expansionTileExpandedHint": "nhแบฅn ฤ‘รบp ฤ‘แปƒ thu gแปn", "expansionTileCollapsedHint": "nhแบฅn ฤ‘รบp ฤ‘แปƒ mแปŸ rแป™ng", "expansionTileExpandedTapHint": "Thu gแปn", "expansionTileCollapsedTapHint": "MแปŸ rแป™ng ฤ‘แปƒ xem thรชm chi tiแบฟt", "expandedHint": "ฤรฃ thu gแปn", "collapsedHint": "ฤรฃ mแปŸ rแป™ng", "menuDismissLabel": "ฤรณng trรฌnh ฤ‘ฦกn", "lookUpButtonLabel": "Tra cแปฉu", "searchWebButtonLabel": "Tรฌm kiแบฟm trรชn web", "shareButtonLabel": "Chia sแบป...", "clearButtonTooltip": "Clear text", "selectedDateLabel": "Selected" }
flutter/packages/flutter_localizations/lib/src/l10n/material_vi.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/material_vi.arb", "repo_id": "flutter", "token_count": 2958 }
902
{ "reorderItemToStart": "Symud i'r dechrau", "reorderItemToEnd": "Symud i'r diwedd", "reorderItemUp": "Symud i fyny", "reorderItemDown": "Symud i lawr", "reorderItemLeft": "Symud i'r chwith", "reorderItemRight": "Symud i'r dde" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_cy.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_cy.arb", "repo_id": "flutter", "token_count": 108 }
903
{ "reorderItemToStart": "Mover al inicio", "reorderItemToEnd": "Mover al final", "reorderItemUp": "Mover hacia arriba", "reorderItemDown": "Mover hacia abajo", "reorderItemLeft": "Mover hacia la izquierda", "reorderItemRight": "Mover hacia la derecha" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_es_AR.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_es_AR.arb", "repo_id": "flutter", "token_count": 105 }
904
{ "reorderItemDown": "Mover hacia abajo", "reorderItemLeft": "Mover hacia la izquierda", "reorderItemToEnd": "Mover al final", "reorderItemRight": "Mover hacia la derecha", "reorderItemUp": "Mover hacia arriba", "reorderItemToStart": "Mover al inicio" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_es_US.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_es_US.arb", "repo_id": "flutter", "token_count": 105 }
905
{ "reorderItemToStart": "รthelyezรฉs az elejรฉre", "reorderItemToEnd": "รthelyezรฉs a vรฉgรฉre", "reorderItemUp": "รthelyezรฉs felfelรฉ", "reorderItemDown": "รthelyezรฉs lefelรฉ", "reorderItemLeft": "รthelyezรฉs balra", "reorderItemRight": "รthelyezรฉs jobbra" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_hu.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_hu.arb", "repo_id": "flutter", "token_count": 125 }
906
{ "reorderItemToStart": "เดคเตเดŸเด•เตเด•เดคเตเดคเดฟเดฒเต‡เด•เตเด•เต เดชเต‹เดตเตเด•", "reorderItemToEnd": "เด…เดตเดธเดพเดจ เดญเดพเด—เดคเตเดคเต‡เด•เตเด•เต เดชเต‹เดตเตเด•", "reorderItemUp": "เดฎเตเด•เดณเดฟเดฒเต‹เดŸเตเดŸเต เดจเต€เด•เตเด•เตเด•", "reorderItemDown": "เดคเดพเดดเต‹เดŸเตเดŸเต เดจเต€เด•เตเด•เตเด•", "reorderItemLeft": "เด‡เดŸเดคเตเดคเต‹เดŸเตเดŸเต เดจเต€เด•เตเด•เตเด•", "reorderItemRight": "เดตเดฒเดคเตเดคเต‹เดŸเตเดŸเต เดจเต€เด•เตเด•เตเด•" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_ml.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_ml.arb", "repo_id": "flutter", "token_count": 400 }
907
{ "reorderItemToStart": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒ ะฝะฐั‡ะฐะปะพ", "reorderItemToEnd": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒ ะบะพะฝะตั†", "reorderItemUp": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒะฒะตั€ั…", "reorderItemDown": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒะฝะธะท", "reorderItemLeft": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒะปะตะฒะพ", "reorderItemRight": "ะŸะตั€ะตะผะตัั‚ะธั‚ัŒ ะฒะฟั€ะฐะฒะพ" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_ru.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_ru.arb", "repo_id": "flutter", "token_count": 184 }
908
{ "reorderItemToStart": "Boshiga siljitish", "reorderItemToEnd": "Oxiriga siljitish", "reorderItemUp": "Tepaga siljitish", "reorderItemDown": "Pastga siljitish", "reorderItemLeft": "Chapga siljitish", "reorderItemRight": "Oสปngga siljitish" }
flutter/packages/flutter_localizations/lib/src/l10n/widgets_uz.arb/0
{ "file_path": "flutter/packages/flutter_localizations/lib/src/l10n/widgets_uz.arb", "repo_id": "flutter", "token_count": 103 }
909
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Material2 - can localize the header in all known formats - portrait', (WidgetTester tester) async { // Ensure picker is displayed in portrait mode. tester.view.physicalSize = const Size(400, 800); tester.view.devicePixelRatio = 1; addTearDown(tester.view.reset); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourControl'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteControl'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { final Offset center = await startPicker(tester, (TimeOfDay? time) { }, locale: locale, useMaterial3: false); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(minuteLeftOffset, lessThan(dayPeriodLeftOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(dayPeriodLeftOffset, lessThan(hourLeftOffset)); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await tester.tapAt(Offset(center.dx, center.dy - 50.0)); await finishPicker(tester); } }); testWidgets('Material3 - can localize the header in all known formats - portrait', (WidgetTester tester) async { // Ensure picker is displayed in portrait mode. tester.view.physicalSize = const Size(400, 800); tester.view.devicePixelRatio = 1; addTearDown(tester.view.reset); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourControl'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteControl'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { final Offset center = await startPicker(tester, (TimeOfDay? time) { }, locale: locale, useMaterial3: true); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(minuteLeftOffset, lessThan(dayPeriodLeftOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(dayPeriodLeftOffset, lessThan(hourLeftOffset)); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await tester.tapAt(Offset(center.dx, center.dy - 50.0)); await finishPicker(tester); } }); testWidgets('Material2 - can localize the header in all known formats - landscape', (WidgetTester tester) async { // Ensure picker is displayed in landscape mode. tester.view.physicalSize = const Size(800, 400); tester.view.devicePixelRatio = 1; addTearDown(tester.view.reset); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourControl'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteControl'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { final Offset center = await startPicker(tester, (TimeOfDay? time) { }, locale: locale, useMaterial3: false); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double hourTopOffset = tester.getTopLeft(hourControlFinder).dy; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; final double dayPeriodTopOffset = tester.getTopLeft(dayPeriodControlFinder).dy; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(hourLeftOffset, dayPeriodLeftOffset); expect(hourTopOffset, lessThan(dayPeriodTopOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; final double dayPeriodTopOffset = tester.getTopLeft(dayPeriodControlFinder).dy; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(hourLeftOffset, dayPeriodLeftOffset); expect(hourTopOffset, greaterThan(dayPeriodTopOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await tester.tapAt(Offset(center.dx, center.dy - 50.0)); await finishPicker(tester); } }); testWidgets('Material3 - can localize the header in all known formats - landscape', (WidgetTester tester) async { // Ensure picker is displayed in landscape mode. tester.view.physicalSize = const Size(800, 400); tester.view.devicePixelRatio = 1; addTearDown(tester.view.reset); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourControl'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteControl'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { final Offset center = await startPicker(tester, (TimeOfDay? time) { }, locale: locale, useMaterial3: true); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double hourTopOffset = tester.getTopLeft(hourControlFinder).dy; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; final double dayPeriodTopOffset = tester.getTopLeft(dayPeriodControlFinder).dy; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(hourLeftOffset, dayPeriodLeftOffset); expect(hourTopOffset, lessThan(dayPeriodTopOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; final double dayPeriodTopOffset = tester.getTopLeft(dayPeriodControlFinder).dy; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(hourLeftOffset, dayPeriodLeftOffset); expect(hourTopOffset, greaterThan(dayPeriodTopOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await tester.tapAt(Offset(center.dx, center.dy - 50.0)); await finishPicker(tester); } }); testWidgets('Material2 - can localize input mode in all known formats', (WidgetTester tester) async { final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourTextField'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteTextField'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { await tester.pumpWidget(_TimePickerLauncher(onChanged: (TimeOfDay? time) { }, locale: locale, entryMode: TimePickerEntryMode.input, useMaterial3 : false)); await tester.tap(find.text('X')); await tester.pumpAndSettle(const Duration(seconds: 1)); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(minuteLeftOffset, lessThan(dayPeriodLeftOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(dayPeriodLeftOffset, lessThan(hourLeftOffset)); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await finishPicker(tester); expect(tester.takeException(), isNot(throwsFlutterError)); } }); testWidgets('Material3 - can localize input mode in all known formats', (WidgetTester tester) async { final Finder hourControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_HourTextField'); final Finder minuteControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_MinuteTextField'); final Finder dayPeriodControlFinder = find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_DayPeriodControl'); final Finder timeSelectorSeparatorFinder = find.descendant( of: find.byWidgetPredicate((Widget w) => '${w.runtimeType}' == '_TimeSelectorSeparator'), matching: find.byType(Text), ).first; // TODO(yjbanov): also test `HH.mm` (in_ID), `a h:mm` (ko_KR) and `HH:mm เธ™.` (th_TH) when we have .arb files for them final List<Locale> locales = <Locale>[ const Locale('en', 'US'), //'h:mm a' const Locale('en', 'GB'), //'HH:mm' const Locale('es', 'ES'), //'H:mm' const Locale('fr', 'CA'), //'HH \'h\' mm' const Locale('zh', 'ZH'), //'ah:mm' const Locale('fa', 'IR'), //'H:mm' but RTL ]; for (final Locale locale in locales) { await tester.pumpWidget(_TimePickerLauncher(onChanged: (TimeOfDay? time) { }, locale: locale, entryMode: TimePickerEntryMode.input, useMaterial3 : true)); await tester.tap(find.text('X')); await tester.pumpAndSettle(const Duration(seconds: 1)); final Text stringFragmentText = tester.widget(timeSelectorSeparatorFinder); final double hourLeftOffset = tester.getTopLeft(hourControlFinder).dx; final double minuteLeftOffset = tester.getTopLeft(minuteControlFinder).dx; final double stringFragmentLeftOffset = tester.getTopLeft(timeSelectorSeparatorFinder).dx; if (locale == const Locale('en', 'US')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(minuteLeftOffset, lessThan(dayPeriodLeftOffset)); } else if (locale == const Locale('en', 'GB')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('es', 'ES')) { expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('fr', 'CA')) { expect(stringFragmentText.data, 'h'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } else if (locale == const Locale('zh', 'ZH')) { final double dayPeriodLeftOffset = tester.getTopLeft(dayPeriodControlFinder).dx; expect(stringFragmentText.data, ':'); expect(dayPeriodLeftOffset, lessThan(hourLeftOffset)); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); } else if (locale == const Locale('fa', 'IR')) { // Even though this is an RTL locale, the hours and minutes positions should remain the same. expect(stringFragmentText.data, ':'); expect(hourLeftOffset, lessThan(stringFragmentLeftOffset)); expect(stringFragmentLeftOffset, lessThan(minuteLeftOffset)); expect(dayPeriodControlFinder, findsNothing); } await finishPicker(tester); expect(tester.takeException(), isNot(throwsFlutterError)); } }); testWidgets('Material2 uses single-ring 24-hour dial for all locales', (WidgetTester tester) async { const List<Locale> locales = <Locale>[ Locale('en', 'US'), // h Locale('en', 'GB'), // HH Locale('es', 'ES'), // H ]; for (final Locale locale in locales) { // Tap along the segment stretching from the center to the edge at // 12:00 AM position. Because there's only one ring, in the M2 // DatePicker no matter where you tap the time will be the same. for (int i = 1; i < 10; i++) { TimeOfDay? result; final Offset center = await startPicker(tester, (TimeOfDay? time) { result = time; }, locale: locale, useMaterial3: false); final Size size = tester.getSize(find.byKey(const Key('time-picker-dial'))); final double dy = (size.height / 2.0 / 10) * i; await tester.tapAt(Offset(center.dx, center.dy - dy)); await finishPicker(tester); expect(result, equals(const TimeOfDay(hour: 0, minute: 0))); } } }); testWidgets('Material3 uses a double-ring 24-hour dial for 24 hour locales', (WidgetTester tester) async { Future<void> testLocale(Locale locale, int startFactor, int endFactor, TimeOfDay expectedTime) async { // For locales that display 24 hour time, factors 1-5 put the tap on the // inner ring's "12" (the inner ring goes from 12-23). Otherwise the offset // should land on the outer ring's "00". for (int factor = startFactor; factor < endFactor; factor += 1) { TimeOfDay? result; final Offset center = await startPicker(tester, (TimeOfDay? time) { result = time; }, locale: locale, useMaterial3: true); final Size size = tester.getSize(find.byKey(const Key('time-picker-dial'))); final double dy = (size.height / 2.0 / 10) * factor; await tester.tapAt(Offset(center.dx, center.dy - dy)); await finishPicker(tester); expect(result, equals(expectedTime), reason: 'Failed for locale=$locale with factor=$factor'); } } await testLocale(const Locale('en', 'US'), 1, 10, const TimeOfDay(hour: 0, minute: 0)); // 12 hour await testLocale(const Locale('en', 'ES'), 1, 10, const TimeOfDay(hour: 0, minute: 0)); // 12 hour await testLocale(const Locale('en', 'GB'), 1, 5, const TimeOfDay(hour: 12, minute: 0)); // 24 hour, inner ring await testLocale(const Locale('en', 'GB'), 6, 10, const TimeOfDay(hour: 0, minute: 0)); // 24 hour, outer ring }); const List<String> labels12To11 = <String>['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11']; const List<String> labels00To22TwoDigit = <String>['00', '02', '04', '06', '08', '10', '12', '14', '16', '18', '20', '22']; // Material 2 const List<String> labels00To23TwoDigit = <String>[ // Material 3 '00', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']; Future<void> mediaQueryBoilerplate(WidgetTester tester, {required bool alwaysUse24HourFormat, required bool useMaterial3}) async { await tester.pumpWidget( MaterialApp( theme: ThemeData(useMaterial3: useMaterial3), builder: (BuildContext context, Widget? child) { return MediaQuery( data: MediaQueryData(alwaysUse24HourFormat: alwaysUse24HourFormat), child: child!, ); }, home: Material( child: Directionality( textDirection: TextDirection.ltr, child: Navigator( onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute<void>(builder: (BuildContext context) { return TextButton( onPressed: () { showTimePicker(context: context, initialTime: const TimeOfDay(hour: 7, minute: 0)); }, child: const Text('X'), ); }); }, ), ), ), ), ); await tester.tap(find.text('X')); await tester.pumpAndSettle(); } testWidgets('Material2 respects MediaQueryData.alwaysUse24HourFormat == false', (WidgetTester tester) async { await mediaQueryBoilerplate(tester, alwaysUse24HourFormat: false, useMaterial3: false); final CustomPaint dialPaint = tester.widget(find.byKey(const ValueKey<String>('time-picker-dial'))); final dynamic dialPainter = dialPaint.painter; // ignore: avoid_dynamic_calls final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels12To11, ); // ignore: avoid_dynamic_calls final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels12To11, ); }); testWidgets('Material3 respects MediaQueryData.alwaysUse24HourFormat == false', (WidgetTester tester) async { await mediaQueryBoilerplate(tester, alwaysUse24HourFormat: false, useMaterial3: true); final CustomPaint dialPaint = tester.widget(find.byKey(const ValueKey<String>('time-picker-dial'))); final dynamic dialPainter = dialPaint.painter; // ignore: avoid_dynamic_calls final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels12To11, ); // ignore: avoid_dynamic_calls final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels12To11, ); }); testWidgets('Material3 respects MediaQueryData.alwaysUse24HourFormat == true', (WidgetTester tester) async { await mediaQueryBoilerplate(tester, alwaysUse24HourFormat: true, useMaterial3: true); final CustomPaint dialPaint = tester.widget(find.byKey(const ValueKey<String>('time-picker-dial'))); final dynamic dialPainter = dialPaint.painter; // ignore: avoid_dynamic_calls final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels00To23TwoDigit, ); // ignore: avoid_dynamic_calls final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels00To23TwoDigit, ); }); testWidgets('Material2 respects MediaQueryData.alwaysUse24HourFormat == true', (WidgetTester tester) async { await mediaQueryBoilerplate(tester, alwaysUse24HourFormat: true, useMaterial3: false); final CustomPaint dialPaint = tester.widget(find.byKey(const ValueKey<String>('time-picker-dial'))); final dynamic dialPainter = dialPaint.painter; // ignore: avoid_dynamic_calls final List<dynamic> primaryLabels = dialPainter.primaryLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls primaryLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels00To22TwoDigit, ); // ignore: avoid_dynamic_calls final List<dynamic> selectedLabels = dialPainter.selectedLabels as List<dynamic>; expect( // ignore: avoid_dynamic_calls selectedLabels.map<String>((dynamic tp) => ((tp.painter as TextPainter).text! as TextSpan).text!), labels00To22TwoDigit, ); }); } class _TimePickerLauncher extends StatelessWidget { const _TimePickerLauncher({ this.onChanged, required this.locale, this.entryMode = TimePickerEntryMode.dial, this.useMaterial3, }); final ValueChanged<TimeOfDay?>? onChanged; final Locale locale; final TimePickerEntryMode entryMode; final bool? useMaterial3; @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData(useMaterial3: useMaterial3), locale: locale, supportedLocales: <Locale>[locale], localizationsDelegates: GlobalMaterialLocalizations.delegates, home: Material( child: Center( child: Builder( builder: (BuildContext context) { return ElevatedButton( child: const Text('X'), onPressed: () async { onChanged?.call(await showTimePicker( context: context, initialEntryMode: entryMode, initialTime: const TimeOfDay(hour: 7, minute: 0), )); }, ); } ), ), ), ); } } Future<Offset> startPicker( WidgetTester tester, ValueChanged<TimeOfDay?> onChanged, { Locale locale = const Locale('en', 'US'), bool? useMaterial3, }) async { await tester.pumpWidget( _TimePickerLauncher( onChanged: onChanged, locale: locale, useMaterial3: useMaterial3, ), ); await tester.tap(find.text('X')); await tester.pumpAndSettle(const Duration(seconds: 1)); return tester.getCenter(find.byKey(const Key('time-picker-dial'))); } Future<void> finishPicker(WidgetTester tester) async { final MaterialLocalizations materialLocalizations = MaterialLocalizations.of(tester.element(find.byType(ElevatedButton))); await tester.tap(find.text(materialLocalizations.okButtonLabel)); await tester.pumpAndSettle(const Duration(seconds: 1)); }
flutter/packages/flutter_localizations/test/material/time_picker_test.dart/0
{ "file_path": "flutter/packages/flutter_localizations/test/material/time_picker_test.dart", "repo_id": "flutter", "token_count": 13276 }
910
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:typed_data'; import 'dart:ui'; import 'package:meta/meta.dart'; import 'package:path/path.dart' as path; import '_goldens_io.dart' if (dart.library.html) '_goldens_web.dart' as goldens; /// Compares image pixels against a golden image file. /// /// Instances of this comparator will be used as the backend for /// [matchesGoldenFile]. /// /// Instances of this comparator will be invoked by the test framework in the /// [TestWidgetsFlutterBinding.runAsync] zone and are thus not subject to the /// fake async constraints that are normally imposed on widget tests (i.e. the /// need or the ability to call [WidgetTester.pump] to advance the microtask /// queue). /// /// ## What is Golden File Testing? /// /// The term __golden file__ refers to a master image that is considered the true /// rendering of a given widget, state, application, or other visual /// representation you have chosen to capture. /// /// By keeping a master reference of visual aspects of your application, you can /// prevent unintended changes as you develop by testing against them. /// /// Here, a minor code change has altered the appearance of a widget. A golden /// file test has compared the image generated at the time of the test to the /// golden master file that was generated earlier. The test has identified the /// change, preventing unintended modifications. /// /// | Sample | Image | /// |--------------------------------|--------| /// | Golden Master Image | ![A golden master image](https://flutter.github.io/assets-for-api-docs/assets/flutter-test/goldens/widget_masterImage.png) | /// | Difference | ![The pixel difference](https://flutter.github.io/assets-for-api-docs/assets/flutter-test/goldens/widget_isolatedDiff.png) | /// | Test image after modification | ![Test image](https://flutter.github.io/assets-for-api-docs/assets/flutter-test/goldens/widget_testImage.png) | /// /// {@macro flutter.flutter_test.matchesGoldenFile.custom_fonts} /// /// See also: /// /// * [LocalFileComparator] for the default [GoldenFileComparator] /// implementation for `flutter test`. /// * [matchesGoldenFile], the function from [flutter_test] that invokes the /// comparator. abstract class GoldenFileComparator { /// Compares the pixels of decoded png [imageBytes] against the golden file /// identified by [golden]. /// /// The returned future completes with a boolean value that indicates whether /// the pixels decoded from [imageBytes] match the golden file's pixels. /// /// In the case of comparison mismatch, the comparator may choose to throw a /// [TestFailure] if it wants to control the failure message, often in the /// form of a [ComparisonResult] that provides detailed information about the /// mismatch. /// /// The method by which [golden] is located and by which its bytes are loaded /// is left up to the implementation class. For instance, some implementations /// may load files from the local file system, whereas others may load files /// over the network or from a remote repository. Future<bool> compare(Uint8List imageBytes, Uri golden); /// Updates the golden file identified by [golden] with [imageBytes]. /// /// This will be invoked in lieu of [compare] when [autoUpdateGoldenFiles] /// is `true` (which gets set automatically by the test framework when the /// user runs `flutter test --update-goldens`). /// /// The method by which [golden] is located and by which its bytes are written /// is left up to the implementation class. Future<void> update(Uri golden, Uint8List imageBytes); /// Returns a new golden file [Uri] to incorporate any [version] number with /// the [key]. /// /// The [version] is an optional int that can be used to differentiate /// historical golden files. /// /// Version numbers are used in golden file tests for package:flutter. You can /// learn more about these tests [here](https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter). Uri getTestUri(Uri key, int? version) { if (version == null) { return key; } final String keyString = key.toString(); final String extension = path.extension(keyString); return Uri.parse('${keyString.split(extension).join()}.$version$extension'); } /// Returns a [ComparisonResult] to describe the pixel differential of the /// [test] and [master] image bytes provided. static Future<ComparisonResult> compareLists(List<int> test, List<int> master) { return goldens.compareLists(test, master); } } /// Compares pixels against those of a golden image file. /// /// This comparator is used as the backend for [matchesGoldenFile]. /// /// When using `flutter test`, a comparator implemented by [LocalFileComparator] /// is used if no other comparator is specified. It treats the golden key as /// a relative path from the test file's directory. It will then load the /// golden file's bytes from disk and perform a pixel-for-pixel comparison of /// the decoded PNGs, returning true only if there's an exact match. /// /// When using `flutter test --update-goldens`, the [LocalFileComparator] /// updates the files on disk to match the rendering. /// /// When using `flutter run`, the default comparator ([TrivialComparator]) /// is used. It prints a message to the console but otherwise does nothing. This /// allows tests to be developed visually on a real device. /// /// Callers may choose to override the default comparator by setting this to a /// custom comparator during test set-up (or using directory-level test /// configuration). For example, some projects may wish to install a comparator /// with tolerance levels for allowable differences. /// /// See also: /// /// * [flutter_test] for more information about how to configure tests at the /// directory-level. GoldenFileComparator get goldenFileComparator => _goldenFileComparator; GoldenFileComparator _goldenFileComparator = const TrivialComparator._(); set goldenFileComparator(GoldenFileComparator value) { _goldenFileComparator = value; } /// Compares image pixels against a golden image file. /// /// Instances of this comparator will be used as the backend for /// [matchesGoldenFile] when tests are running on Flutter Web, and will usually /// implemented by deferring the screenshot taking and image comparison to a /// test server. /// /// Instances of this comparator will be invoked by the test framework in the /// [TestWidgetsFlutterBinding.runAsync] zone and are thus not subject to the /// fake async constraints that are normally imposed on widget tests (i.e. the /// need or the ability to call [WidgetTester.pump] to advance the microtask /// queue). Prior to the invocation, the test framework will render only the /// [widgets.Element] to be compared on the screen. /// /// See also: /// /// * [GoldenFileComparator] for the comparator to be used when the test is /// not running in a web browser. /// * [DefaultWebGoldenComparator] for the default [WebGoldenComparator] /// implementation for `flutter test`. /// * [matchesGoldenFile], the function from [flutter_test] that invokes the /// comparator. abstract class WebGoldenComparator { /// Compares the rendered pixels of size [width]x[height] that is being /// rendered on the top left of the screen against the golden file identified /// by [golden]. /// /// The returned future completes with a boolean value that indicates whether /// the pixels rendered on screen match the golden file's pixels. /// /// In the case of comparison mismatch, the comparator may choose to throw a /// [TestFailure] if it wants to control the failure message, often in the /// form of a [ComparisonResult] that provides detailed information about the /// mismatch. /// /// The method by which [golden] is located and by which its bytes are loaded /// is left up to the implementation class. For instance, some implementations /// may load files from the local file system, whereas others may load files /// over the network or from a remote repository. Future<bool> compare(double width, double height, Uri golden); /// Updates the golden file identified by [golden] with rendered pixels of /// [width]x[height]. /// /// This will be invoked in lieu of [compare] when [autoUpdateGoldenFiles] /// is `true` (which gets set automatically by the test framework when the /// user runs `flutter test --update-goldens --platform=chrome`). /// /// The method by which [golden] is located and by which its bytes are written /// is left up to the implementation class. Future<void> update(double width, double height, Uri golden); /// Compares the pixels of decoded png [bytes] against the golden file /// identified by [golden]. /// /// The returned future completes with a boolean value that indicates whether /// the pixels rendered on screen match the golden file's pixels. /// /// In the case of comparison mismatch, the comparator may choose to throw a /// [TestFailure] if it wants to control the failure message, often in the /// form of a [ComparisonResult] that provides detailed information about the /// mismatch. /// /// The method by which [golden] is located and by which its bytes are loaded /// is left up to the implementation class. For instance, some implementations /// may load files from the local file system, whereas others may load files /// over the network or from a remote repository. Future<bool> compareBytes(Uint8List bytes, Uri golden); /// Compares the pixels of decoded png [bytes] against the golden file /// identified by [golden]. /// /// This will be invoked in lieu of [compareBytes] when [autoUpdateGoldenFiles] /// is `true` (which gets set automatically by the test framework when the /// user runs `flutter test --update-goldens --platform=chrome`). /// /// The method by which [golden] is located and by which its bytes are written /// is left up to the implementation class. Future<void> updateBytes(Uint8List bytes, Uri golden); /// Returns a new golden file [Uri] to incorporate any [version] number with /// the [key]. /// /// The [version] is an optional int that can be used to differentiate /// historical golden files. /// /// Version numbers are used in golden file tests for package:flutter. You can /// learn more about these tests [here](https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter). Uri getTestUri(Uri key, int? version) { if (version == null) { return key; } final String keyString = key.toString(); final String extension = path.extension(keyString); return Uri.parse('${keyString.split(extension).join()}.$version$extension'); } } /// Compares pixels against those of a golden image file. /// /// This comparator is used as the backend for [matchesGoldenFile] when tests /// are running in a web browser. /// /// When using `flutter test --platform=chrome`, a comparator implemented by /// [DefaultWebGoldenComparator] is used if no other comparator is specified. It /// will send a request to the test server, which uses [goldenFileComparator] /// for golden file comparison. /// /// When using `flutter test --update-goldens`, the [DefaultWebGoldenComparator] /// updates the files on disk to match the rendering. /// /// When using `flutter run`, the default comparator /// (`_TrivialWebGoldenComparator`) is used. It prints a message to the console /// but otherwise does nothing. This allows tests to be developed visually on a /// web browser. /// /// Callers may choose to override the default comparator by setting this to a /// custom comparator during test set-up (or using directory-level test /// configuration). For example, some projects may wish to install a comparator /// with tolerance levels for allowable differences. /// /// See also: /// /// * [flutter_test] for more information about how to configure tests at the /// directory-level. /// * [goldenFileComparator], the comparator used when tests are not running on /// a web browser. WebGoldenComparator get webGoldenComparator => _webGoldenComparator; WebGoldenComparator _webGoldenComparator = const _TrivialWebGoldenComparator._(); set webGoldenComparator(WebGoldenComparator value) { _webGoldenComparator = value; } /// Whether golden files should be automatically updated during tests rather /// than compared to the image bytes recorded by the tests. /// /// When this is `true`, [matchesGoldenFile] will always report a successful /// match, because the bytes being tested implicitly become the new golden. /// /// The Flutter tool will automatically set this to `true` when the user runs /// `flutter test --update-goldens`, so callers should generally never have to /// explicitly modify this value. /// /// See also: /// /// * [goldenFileComparator] bool autoUpdateGoldenFiles = false; /// Placeholder comparator that is set as the value of [goldenFileComparator] /// when the initialization that happens in the test bootstrap either has not /// yet happened or has been bypassed. /// /// The test bootstrap file that gets generated by the Flutter tool when the /// user runs `flutter test` is expected to set [goldenFileComparator] to /// a comparator that resolves golden file references relative to the test /// directory. From there, the caller may choose to override the comparator by /// setting it to another value during test initialization. The only case /// where we expect it to remain uninitialized is when the user runs a test /// via `flutter run`. In this case, the [compare] method will just print a /// message that it would have otherwise run a real comparison, and it will /// return trivial success. /// /// This class can't be constructed. It represents the default value of /// [goldenFileComparator]. class TrivialComparator implements GoldenFileComparator { const TrivialComparator._(); @override Future<bool> compare(Uint8List imageBytes, Uri golden) { // Ideally we would use markTestSkipped here but in some situations, // comparators are called outside of tests. // See also: https://github.com/flutter/flutter/issues/91285 // ignore: avoid_print print('Golden file comparison requested for "$golden"; skipping...'); return Future<bool>.value(true); } @override Future<void> update(Uri golden, Uint8List imageBytes) { throw StateError('goldenFileComparator has not been initialized'); } @override Uri getTestUri(Uri key, int? version) { return key; } } class _TrivialWebGoldenComparator implements WebGoldenComparator { const _TrivialWebGoldenComparator._(); @override Future<bool> compare(double width, double height, Uri golden) { return _warnAboutSkipping(golden); } @override Future<void> update(double width, double height, Uri golden) { throw StateError('webGoldenComparator has not been initialized'); } @override Uri getTestUri(Uri key, int? version) { return key; } @override Future<bool> compareBytes(Uint8List bytes, Uri golden) { return _warnAboutSkipping(golden); } @override Future<void> updateBytes(Uint8List bytes, Uri golden) { throw StateError('webGoldenComparator has not been initialized'); } Future<bool> _warnAboutSkipping(Uri golden) { // Ideally we would use markTestSkipped here but in some situations, // comparators are called outside of tests. // See also: https://github.com/flutter/flutter/issues/91285 // ignore: avoid_print print('Golden comparison requested for "$golden"; skipping...'); return Future<bool>.value(true); } } /// The result of a pixel comparison test. /// /// The [ComparisonResult] will always indicate if a test has [passed]. The /// optional [error] and [diffs] parameters provide further information about /// the result of a failing test. class ComparisonResult { /// Creates a new [ComparisonResult] for the current test. ComparisonResult({ required this.passed, required this.diffPercent, this.error, this.diffs, }); /// Indicates whether or not a pixel comparison test has failed. final bool passed; /// Error message used to describe the cause of the pixel comparison failure. final String? error; /// Map containing differential images to illustrate found variants in pixel /// values in the execution of the pixel test. final Map<String, Image>? diffs; /// The calculated percentage of pixel difference between two images. final double diffPercent; /// Disposes the images held by this [ComparisonResult]. @mustCallSuper void dispose() { if (diffs == null) { return; } for (final MapEntry<String, Image> entry in diffs!.entries) { entry.value.dispose(); } } }
flutter/packages/flutter_test/lib/src/goldens.dart/0
{ "file_path": "flutter/packages/flutter_test/lib/src/goldens.dart", "repo_id": "flutter", "token_count": 4635 }
911
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'binding.dart'; /// Processes text input events that were not handled by the framework. abstract class TestTextInputKeyHandler { /// Process key down event that was not handled by the framework. Future<void> handleKeyDownEvent(LogicalKeyboardKey key); /// Process key up event that was not handled by the framework. Future<void> handleKeyUpEvent(LogicalKeyboardKey key); } /// MacOS specific key input handler. This class translates standard macOS text editing shortcuts /// into appropriate selectors similarly to what NSTextInputContext does in Flutter Engine. class MacOSTestTextInputKeyHandler extends TestTextInputKeyHandler { /// Create a new macOS specific text input handler. MacOSTestTextInputKeyHandler(this.client); /// ClientId of TextInput final int client; Future<void> _sendSelectors(List<String> selectors) async { await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger .handlePlatformMessage( SystemChannels.textInput.name, SystemChannels.textInput.codec.encodeMethodCall( MethodCall( 'TextInputClient.performSelectors', <dynamic>[client, selectors]), ), (ByteData? data) {/* response from framework is discarded */}, ); } // These combinations must match NSStandardKeyBindingResponding. static final Map<SingleActivator, List<String>> _macOSActivatorToSelectors = <SingleActivator, List<String>>{ for (final bool pressShift in const <bool>[ true, false ]) ...<SingleActivator, List<String>>{ SingleActivator(LogicalKeyboardKey.backspace, shift: pressShift): <String>['deleteBackward:'], SingleActivator(LogicalKeyboardKey.backspace, alt: true, shift: pressShift): <String>['deleteWordBackward:'], SingleActivator(LogicalKeyboardKey.backspace, meta: true, shift: pressShift): <String>['deleteToBeginningOfLine:'], SingleActivator(LogicalKeyboardKey.backspace, control: true, shift: pressShift): <String>['deleteBackwardByDecomposingPreviousCharacter:'], SingleActivator(LogicalKeyboardKey.delete, shift: pressShift): <String>[ 'deleteForward:' ], SingleActivator(LogicalKeyboardKey.delete, alt: true, shift: pressShift): <String>['deleteWordForward:'], SingleActivator(LogicalKeyboardKey.delete, meta: true, shift: pressShift): <String>['deleteToEndOfLine:'], }, const SingleActivator(LogicalKeyboardKey.arrowLeft): <String>['moveLeft:'], const SingleActivator(LogicalKeyboardKey.arrowRight): <String>[ 'moveRight:' ], const SingleActivator(LogicalKeyboardKey.arrowUp): <String>['moveUp:'], const SingleActivator(LogicalKeyboardKey.arrowDown): <String>['moveDown:'], const SingleActivator(LogicalKeyboardKey.arrowLeft, shift: true): <String>[ 'moveLeftAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.arrowRight, shift: true): <String>[ 'moveRightAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.arrowUp, shift: true): <String>[ 'moveUpAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.arrowDown, shift: true): <String>[ 'moveDownAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.arrowLeft, alt: true): <String>[ 'moveWordLeft:' ], const SingleActivator(LogicalKeyboardKey.arrowRight, alt: true): <String>[ 'moveWordRight:' ], const SingleActivator(LogicalKeyboardKey.arrowUp, alt: true): <String>[ 'moveBackward:', 'moveToBeginningOfParagraph:' ], const SingleActivator(LogicalKeyboardKey.arrowDown, alt: true): <String>[ 'moveForward:', 'moveToEndOfParagraph:' ], const SingleActivator(LogicalKeyboardKey.arrowLeft, alt: true, shift: true): <String>['moveWordLeftAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowRight, alt: true, shift: true): <String>['moveWordRightAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowUp, alt: true, shift: true): <String>['moveParagraphBackwardAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowDown, alt: true, shift: true): <String>['moveParagraphForwardAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowLeft, meta: true): <String>[ 'moveToLeftEndOfLine:' ], const SingleActivator(LogicalKeyboardKey.arrowRight, meta: true): <String>[ 'moveToRightEndOfLine:' ], const SingleActivator(LogicalKeyboardKey.arrowUp, meta: true): <String>[ 'moveToBeginningOfDocument:' ], const SingleActivator(LogicalKeyboardKey.arrowDown, meta: true): <String>[ 'moveToEndOfDocument:' ], const SingleActivator(LogicalKeyboardKey.arrowLeft, meta: true, shift: true): <String>['moveToLeftEndOfLineAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowRight, meta: true, shift: true): <String>['moveToRightEndOfLineAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowUp, meta: true, shift: true): <String>['moveToBeginningOfDocumentAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.arrowDown, meta: true, shift: true): <String>['moveToEndOfDocumentAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyA, control: true, shift: true): <String>['moveToBeginningOfParagraphAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyA, control: true): <String>[ 'moveToBeginningOfParagraph:' ], const SingleActivator(LogicalKeyboardKey.keyB, control: true, shift: true): <String>['moveBackwardAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyB, control: true): <String>[ 'moveBackward:' ], const SingleActivator(LogicalKeyboardKey.keyE, control: true, shift: true): <String>['moveToEndOfParagraphAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyE, control: true): <String>[ 'moveToEndOfParagraph:' ], const SingleActivator(LogicalKeyboardKey.keyF, control: true, shift: true): <String>['moveForwardAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyF, control: true): <String>[ 'moveForward:' ], const SingleActivator(LogicalKeyboardKey.keyK, control: true): <String>[ 'deleteToEndOfParagraph' ], const SingleActivator(LogicalKeyboardKey.keyL, control: true): <String>[ 'centerSelectionInVisibleArea' ], const SingleActivator(LogicalKeyboardKey.keyN, control: true): <String>[ 'moveDown:' ], const SingleActivator(LogicalKeyboardKey.keyN, control: true, shift: true): <String>['moveDownAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyO, control: true): <String>[ 'insertNewlineIgnoringFieldEditor:' ], const SingleActivator(LogicalKeyboardKey.keyP, control: true): <String>[ 'moveUp:' ], const SingleActivator(LogicalKeyboardKey.keyP, control: true, shift: true): <String>['moveUpAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyT, control: true): <String>[ 'transpose:' ], const SingleActivator(LogicalKeyboardKey.keyV, control: true): <String>[ 'pageDown:' ], const SingleActivator(LogicalKeyboardKey.keyV, control: true, shift: true): <String>['pageDownAndModifySelection:'], const SingleActivator(LogicalKeyboardKey.keyY, control: true): <String>[ 'yank:' ], const SingleActivator(LogicalKeyboardKey.quoteSingle, control: true): <String>['insertSingleQuoteIgnoringSubstitution:'], const SingleActivator(LogicalKeyboardKey.quote, control: true): <String>[ 'insertDoubleQuoteIgnoringSubstitution:' ], const SingleActivator(LogicalKeyboardKey.home): <String>[ 'scrollToBeginningOfDocument:' ], const SingleActivator(LogicalKeyboardKey.end): <String>[ 'scrollToEndOfDocument:' ], const SingleActivator(LogicalKeyboardKey.home, shift: true): <String>[ 'moveToBeginningOfDocumentAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.end, shift: true): <String>[ 'moveToEndOfDocumentAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.pageUp): <String>['scrollPageUp:'], const SingleActivator(LogicalKeyboardKey.pageDown): <String>[ 'scrollPageDown:' ], const SingleActivator(LogicalKeyboardKey.pageUp, shift: true): <String>[ 'pageUpAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.pageDown, shift: true): <String>[ 'pageDownAndModifySelection:' ], const SingleActivator(LogicalKeyboardKey.escape): <String>[ 'cancelOperation:' ], const SingleActivator(LogicalKeyboardKey.enter): <String>['insertNewline:'], const SingleActivator(LogicalKeyboardKey.enter, alt: true): <String>[ 'insertNewlineIgnoringFieldEditor:' ], const SingleActivator(LogicalKeyboardKey.enter, control: true): <String>[ 'insertLineBreak:' ], const SingleActivator(LogicalKeyboardKey.tab): <String>['insertTab:'], const SingleActivator(LogicalKeyboardKey.tab, alt: true): <String>[ 'insertTabIgnoringFieldEditor:' ], const SingleActivator(LogicalKeyboardKey.tab, shift: true): <String>[ 'insertBacktab:' ], }; @override Future<void> handleKeyDownEvent(LogicalKeyboardKey key) async { switch (key) { case LogicalKeyboardKey.shift: case LogicalKeyboardKey.shiftLeft: case LogicalKeyboardKey.shiftRight: _shift = true; case LogicalKeyboardKey.alt: case LogicalKeyboardKey.altLeft: case LogicalKeyboardKey.altRight: _alt = true; case LogicalKeyboardKey.meta: case LogicalKeyboardKey.metaLeft: case LogicalKeyboardKey.metaRight: _meta = true; case LogicalKeyboardKey.control: case LogicalKeyboardKey.controlLeft: case LogicalKeyboardKey.controlRight: _control = true; default: for (final MapEntry<SingleActivator, List<String>> entry in _macOSActivatorToSelectors.entries) { final SingleActivator activator = entry.key; if (activator.triggers.first == key && activator.shift == _shift && activator.alt == _alt && activator.meta == _meta && activator.control == _control) { await _sendSelectors(entry.value); return; } } } } @override Future<void> handleKeyUpEvent(LogicalKeyboardKey key) async { switch (key) { case LogicalKeyboardKey.shift: case LogicalKeyboardKey.shiftLeft: case LogicalKeyboardKey.shiftRight: _shift = false; case LogicalKeyboardKey.alt: case LogicalKeyboardKey.altLeft: case LogicalKeyboardKey.altRight: _alt = false; case LogicalKeyboardKey.meta: case LogicalKeyboardKey.metaLeft: case LogicalKeyboardKey.metaRight: _meta = false; case LogicalKeyboardKey.control: case LogicalKeyboardKey.controlLeft: case LogicalKeyboardKey.controlRight: _control = false; } } bool _shift = false; bool _alt = false; bool _meta = false; bool _control = false; }
flutter/packages/flutter_test/lib/src/test_text_input_key_handler.dart/0
{ "file_path": "flutter/packages/flutter_test/lib/src/test_text_input_key_handler.dart", "repo_id": "flutter", "token_count": 4295 }
912
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('Can access restoration manager without crashing', () { final AutomatedTestWidgetsFlutterBinding binding = AutomatedTestWidgetsFlutterBinding(); expect(binding.restorationManager, isA<RestorationManager>()); }); }
flutter/packages/flutter_test/test/bindings_restoration_test.dart/0
{ "file_path": "flutter/packages/flutter_test/test/bindings_restoration_test.dart", "repo_id": "flutter", "token_count": 145 }
913
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // flutter_ignore_for_file: golden_tag (see analyze.dart) import 'dart:math' as math; import 'dart:typed_data'; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:vector_math/vector_math_64.dart' show Matrix3; /// Class that makes it easy to mock common toStringDeep behavior. class _MockToStringDeep { _MockToStringDeep(String str) : _lines = <String>[] { final List<String> lines = str.split('\n'); for (int i = 0; i < lines.length - 1; ++i) { _lines.add('${lines[i]}\n'); } // If the last line is empty, that really just means that the previous // line was terminated with a line break. if (lines.isNotEmpty && lines.last.isNotEmpty) { _lines.add(lines.last); } } _MockToStringDeep.fromLines(this._lines); /// Lines in the message to display when [toStringDeep] is called. /// For correct toStringDeep behavior, each line should be terminated with a /// line break. final List<String> _lines; String toStringDeep({ String prefixLineOne = '', String prefixOtherLines = '' }) { final StringBuffer sb = StringBuffer(); if (_lines.isNotEmpty) { sb.write('$prefixLineOne${_lines.first}'); } for (int i = 1; i < _lines.length; ++i) { sb.write('$prefixOtherLines${_lines[i]}'); } return sb.toString(); } @override String toString() => toStringDeep(); } void main() { test('hasOneLineDescription', () { expect('Hello', hasOneLineDescription); expect('Hello\nHello', isNot(hasOneLineDescription)); expect(' Hello', isNot(hasOneLineDescription)); expect('Hello ', isNot(hasOneLineDescription)); expect(Object(), isNot(hasOneLineDescription)); }); test('hasAGoodToStringDeep', () { expect(_MockToStringDeep('Hello\n World\n'), hasAGoodToStringDeep); // Not terminated with a line break. expect(_MockToStringDeep('Hello\n World'), isNot(hasAGoodToStringDeep)); // Trailing whitespace on last line. expect(_MockToStringDeep('Hello\n World \n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('Hello\n World\t\n'), isNot(hasAGoodToStringDeep)); // Leading whitespace on line 1. expect(_MockToStringDeep(' Hello\n World \n'), isNot(hasAGoodToStringDeep)); // Single line. expect(_MockToStringDeep('Hello World'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('Hello World\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('Hello: World\nFoo: bar\n'), hasAGoodToStringDeep); expect(_MockToStringDeep('Hello: World\nFoo: 42\n'), hasAGoodToStringDeep); // Contains default Object.toString(). expect(_MockToStringDeep('Hello: World\nFoo: ${Object()}\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\n'), hasAGoodToStringDeep); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ•˜โ•โ•โ•โ•โ•โ•\n'), hasAGoodToStringDeep); // Last line is all whitespace or vertical line art. expect(_MockToStringDeep('A\nโ”œโ”€B\n\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ”‚\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ”‚\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ”‚\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ•Ž\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\nโ•‘\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\n โ”‚\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\n โ•Ž\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\n โ•‘\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep('A\nโ”œโ”€B\n โ”‚โ”‚\n'), isNot(hasAGoodToStringDeep)); expect(_MockToStringDeep( 'A\n' 'โ”œโ”€B\n' 'โ”‚\n' 'โ””โ”€C\n'), hasAGoodToStringDeep); // Last line is all whitespace or vertical line art. expect(_MockToStringDeep( 'A\n' 'โ”œโ”€B\n' 'โ”‚\n'), isNot(hasAGoodToStringDeep)); expect( _MockToStringDeep.fromLines(<String>[ 'Paragraph#00000\n', ' โ”‚ size: (400x200)\n', ' โ•˜โ•โ•ฆโ•โ• text โ•โ•โ•\n', ' โ•‘ TextSpan:\n', ' โ•‘ "I polished up that handle so carefullee\n', ' โ•‘ That now I am the Ruler of the Queen\'s Navee!"\n', ' โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n', ]), hasAGoodToStringDeep, ); // Text span expect( _MockToStringDeep.fromLines(<String>[ 'Paragraph#00000\n', ' โ”‚ size: (400x200)\n', ' โ•˜โ•โ•ฆโ•โ• text โ•โ•โ•\n', ' โ•‘ TextSpan:\n', ' โ•‘ "I polished up that handle so carefullee\nThat now I am the Ruler of the Queen\'s Navee!"\n', ' โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n', ]), isNot(hasAGoodToStringDeep), ); }); test('equalsIgnoringHashCodes', () { expect('Foo#34219', equalsIgnoringHashCodes('Foo#00000')); expect('Foo#34219', equalsIgnoringHashCodes('Foo#12345')); expect('Foo#34219', equalsIgnoringHashCodes('Foo#abcdf')); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo'))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#'))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#0'))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#00'))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#00000 '))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#000000'))); expect('Foo#34219', isNot(equalsIgnoringHashCodes('Foo#123456'))); expect('Foo#34219:', equalsIgnoringHashCodes('Foo#00000:')); expect('Foo#34219:', isNot(equalsIgnoringHashCodes('Foo#00000'))); expect('Foo#a3b4d', equalsIgnoringHashCodes('Foo#00000')); expect('Foo#a3b4d', equalsIgnoringHashCodes('Foo#12345')); expect('Foo#a3b4d', equalsIgnoringHashCodes('Foo#abcdf')); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo'))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#'))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#0'))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#00'))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#00000 '))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#000000'))); expect('Foo#a3b4d', isNot(equalsIgnoringHashCodes('Foo#123456'))); expect('FOO#A3b4D', equalsIgnoringHashCodes('FOO#00000')); expect('FOO#A3b4J', isNot(equalsIgnoringHashCodes('FOO#00000'))); expect('Foo#12345(Bar#9110f)', equalsIgnoringHashCodes('Foo#00000(Bar#00000)')); expect('Foo#12345(Bar#9110f)', isNot(equalsIgnoringHashCodes('Foo#00000(Bar#)'))); expect('Foo', isNot(equalsIgnoringHashCodes('Foo#00000'))); expect('Foo#', isNot(equalsIgnoringHashCodes('Foo#00000'))); expect('Foo#3421', isNot(equalsIgnoringHashCodes('Foo#00000'))); expect('Foo#342193', isNot(equalsIgnoringHashCodes('Foo#00000'))); expect(<String>['Foo#a3b4d'], equalsIgnoringHashCodes(<String>['Foo#12345'])); expect( <String>['Foo#a3b4d', 'Foo#12345'], equalsIgnoringHashCodes(<String>['Foo#00000', 'Foo#00000']), ); expect( <String>['Foo#a3b4d', 'Bar#12345'], equalsIgnoringHashCodes(<String>['Foo#00000', 'Bar#00000']), ); expect( <String>['Foo#a3b4d', 'Bar#12345'], isNot(equalsIgnoringHashCodes(<String>['Bar#00000', 'Foo#00000'])), ); expect(<String>['Foo#a3b4d'], isNot(equalsIgnoringHashCodes(<String>['Foo']))); expect( <String>['Foo#a3b4d'], isNot(equalsIgnoringHashCodes(<String>['Foo#00000', 'Bar#00000'])), ); }); test('moreOrLessEquals', () { expect(0.0, moreOrLessEquals(1e-11)); expect(1e-11, moreOrLessEquals(0.0)); expect(-1e-11, moreOrLessEquals(0.0)); expect(0.0, isNot(moreOrLessEquals(1e11))); expect(1e11, isNot(moreOrLessEquals(0.0))); expect(-1e11, isNot(moreOrLessEquals(0.0))); expect(0.0, isNot(moreOrLessEquals(1.0))); expect(1.0, isNot(moreOrLessEquals(0.0))); expect(-1.0, isNot(moreOrLessEquals(0.0))); expect(1e-11, moreOrLessEquals(-1e-11)); expect(-1e-11, moreOrLessEquals(1e-11)); expect(11.0, isNot(moreOrLessEquals(-11.0, epsilon: 1.0))); expect(-11.0, isNot(moreOrLessEquals(11.0, epsilon: 1.0))); expect(11.0, moreOrLessEquals(-11.0, epsilon: 100.0)); expect(-11.0, moreOrLessEquals(11.0, epsilon: 100.0)); expect(0, moreOrLessEquals(0.0)); expect(0.0, moreOrLessEquals(0)); }); test('matrixMoreOrLessEquals', () { expect( Matrix4.rotationZ(math.pi), matrixMoreOrLessEquals(Matrix4.fromList(<double>[ -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, ])) ); expect( Matrix4.rotationZ(math.pi), matrixMoreOrLessEquals(Matrix4.fromList(<double>[ -2, 0, 0, 0, 0, -2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, ]), epsilon: 2) ); expect( Matrix4.rotationZ(math.pi), isNot(matrixMoreOrLessEquals(Matrix4.fromList(<double>[ -2, 0, 0, 0, 0, -2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, ]))) ); }); test('matrix3MoreOrLessEquals', () { expect( Matrix3.rotationZ(math.pi), matrix3MoreOrLessEquals(Matrix3.fromList(<double>[ -1, 0, 0, 0, -1, 0, 0, 0, 1, ])) ); expect( Matrix3.rotationZ(math.pi), matrix3MoreOrLessEquals(Matrix3.fromList(<double>[ -2, 0, 0, 0, -2, 0, 0, 0, 1, ]), epsilon: 2) ); expect( Matrix3.rotationZ(math.pi), isNot(matrix3MoreOrLessEquals(Matrix3.fromList(<double>[ -2, 0, 0, 0, -2, 0, 0, 0, 1, ]))) ); }); test('rectMoreOrLessEquals', () { expect( const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 0.0, 10.0, 10.00000000001)), ); expect( const Rect.fromLTRB(11.0, 11.0, 20.0, 20.0), isNot(rectMoreOrLessEquals(const Rect.fromLTRB(-11.0, -11.0, 20.0, 20.0), epsilon: 1.0)), ); expect( const Rect.fromLTRB(11.0, 11.0, 20.0, 20.0), rectMoreOrLessEquals(const Rect.fromLTRB(-11.0, -11.0, 20.0, 20.0), epsilon: 100.0), ); }); test('within', () { expect(0.0, within<double>(distance: 0.1, from: 0.05)); expect(0.0, isNot(within<double>(distance: 0.1, from: 0.2))); expect(0, within<int>(distance: 1, from: 1)); expect(0, isNot(within<int>(distance: 1, from: 2))); expect(const Color(0x00000000), within<Color>(distance: 1, from: const Color(0x01000000))); expect(const Color(0x00000000), within<Color>(distance: 1, from: const Color(0x00010000))); expect(const Color(0x00000000), within<Color>(distance: 1, from: const Color(0x00000100))); expect(const Color(0x00000000), within<Color>(distance: 1, from: const Color(0x00000001))); expect(const Color(0x00000000), within<Color>(distance: 1, from: const Color(0x01010101))); expect(const Color(0x00000000), isNot(within<Color>(distance: 1, from: const Color(0x02000000)))); expect(const Offset(1.0, 0.0), within(distance: 1.0, from: Offset.zero)); expect(const Offset(1.0, 0.0), isNot(within(distance: 1.0, from: const Offset(-1.0, 0.0)))); expect(const Rect.fromLTRB(0.0, 1.0, 2.0, 3.0), within<Rect>(distance: 4.0, from: const Rect.fromLTRB(1.0, 3.0, 5.0, 7.0))); expect(const Rect.fromLTRB(0.0, 1.0, 2.0, 3.0), isNot(within<Rect>(distance: 3.9, from: const Rect.fromLTRB(1.0, 3.0, 5.0, 7.0)))); expect(const Size(1.0, 1.0), within<Size>(distance: 1.415, from: const Size(2.0, 2.0))); expect(const Size(1.0, 1.0), isNot(within<Size>(distance: 1.414, from: const Size(2.0, 2.0)))); expect( () => within<bool>(distance: 1, from: false), throwsArgumentError, ); expect( () => within<int>(distance: 1, from: 2, distanceFunction: (int a, int b) => -1).matches(1, <dynamic, dynamic>{}), throwsArgumentError, ); }); test('isSameColorAs', () { expect( const Color(0x87654321), isSameColorAs(const _CustomColor(0x87654321)), ); expect( const _CustomColor(0x87654321), isSameColorAs(const Color(0x87654321)), ); expect( const Color(0x12345678), isNot(isSameColorAs(const _CustomColor(0x87654321))), ); expect( const _CustomColor(0x87654321), isNot(isSameColorAs(const Color(0x12345678))), ); expect( const _CustomColor(0xFF123456), isSameColorAs(const _CustomColor(0xFF123456, isEqual: false)), ); }); group('coversSameAreaAs', () { test('empty Paths', () { expect( Path(), coversSameAreaAs( Path(), areaToCompare: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), ), ); }); test('mismatch', () { final Path rectPath = Path() ..addRect(const Rect.fromLTRB(5.0, 5.0, 6.0, 6.0)); expect( Path(), isNot(coversSameAreaAs( rectPath, areaToCompare: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), )), ); }); test('mismatch out of examined area', () { final Path rectPath = Path() ..addRect(const Rect.fromLTRB(5.0, 5.0, 6.0, 6.0)); rectPath.addRect(const Rect.fromLTRB(5.0, 5.0, 6.0, 6.0)); expect( Path(), coversSameAreaAs( rectPath, areaToCompare: const Rect.fromLTRB(0.0, 0.0, 4.0, 4.0), ), ); }); test('differently constructed rects match', () { final Path rectPath = Path() ..addRect(const Rect.fromLTRB(5.0, 5.0, 6.0, 6.0)); final Path linePath = Path() ..moveTo(5.0, 5.0) ..lineTo(5.0, 6.0) ..lineTo(6.0, 6.0) ..lineTo(6.0, 5.0) ..close(); expect( linePath, coversSameAreaAs( rectPath, areaToCompare: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), ), ); }); test('partially overlapping paths', () { final Path rectPath = Path() ..addRect(const Rect.fromLTRB(5.0, 5.0, 6.0, 6.0)); final Path linePath = Path() ..moveTo(5.0, 5.0) ..lineTo(5.0, 6.0) ..lineTo(6.0, 6.0) ..lineTo(6.0, 5.5) ..close(); expect( linePath, isNot(coversSameAreaAs( rectPath, areaToCompare: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), )), ); }); }); group('matchesGoldenFile', () { late _FakeComparator comparator; Widget boilerplate(Widget child) { return Directionality( textDirection: TextDirection.ltr, child: child, ); } setUp(() { comparator = _FakeComparator(); goldenFileComparator = comparator; }); group('matches', () { testWidgets('if comparator succeeds', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(const Text('hello'))); final Finder finder = find.byType(Text); await expectLater(finder, matchesGoldenFile('foo.png')); expect(comparator.invocation, _ComparatorInvocation.compare); expect(comparator.imageBytes, hasLength(greaterThan(0))); expect(comparator.golden, Uri.parse('foo.png')); }); testWidgets('list of integers', (WidgetTester tester) async { await expectLater(<int>[1, 2], matchesGoldenFile('foo.png')); expect(comparator.invocation, _ComparatorInvocation.compare); expect(comparator.imageBytes, equals(<int>[1, 2])); expect(comparator.golden, Uri.parse('foo.png')); }); testWidgets('future list of integers', (WidgetTester tester) async { await expectLater(Future<List<int>>.value(<int>[1, 2]), matchesGoldenFile('foo.png')); expect(comparator.invocation, _ComparatorInvocation.compare); expect(comparator.imageBytes, equals(<int>[1, 2])); expect(comparator.golden, Uri.parse('foo.png')); }); testWidgets('future nullable list of integers', (WidgetTester tester) async { await expectLater(Future<List<int>?>.value(<int>[1, 2]), matchesGoldenFile('foo.png')); expect(comparator.invocation, _ComparatorInvocation.compare); expect(comparator.imageBytes, equals(<int>[1, 2])); expect(comparator.golden, Uri.parse('foo.png')); }); }); group('does not match', () { testWidgets('if comparator returns false', (WidgetTester tester) async { comparator.behavior = _ComparatorBehavior.returnFalse; await tester.pumpWidget(boilerplate(const Text('hello'))); final Finder finder = find.byType(Text); await expectLater( () => expectLater(finder, matchesGoldenFile('foo.png')), throwsA(isA<TestFailure>().having( (TestFailure error) => error.message, 'message', contains('does not match'), )), ); expect(comparator.invocation, _ComparatorInvocation.compare); }); testWidgets('if comparator throws', (WidgetTester tester) async { comparator.behavior = _ComparatorBehavior.throwTestFailure; await tester.pumpWidget(boilerplate(const Text('hello'))); final Finder finder = find.byType(Text); await expectLater( () => expectLater(finder, matchesGoldenFile('foo.png')), throwsA(isA<TestFailure>().having( (TestFailure error) => error.message, 'message', contains('fake message'), )), ); expect(comparator.invocation, _ComparatorInvocation.compare); }); testWidgets('if finder finds no widgets', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(Container())); final Finder finder = find.byType(Text); await expectLater( () => expectLater(finder, matchesGoldenFile('foo.png')), throwsA(isA<TestFailure>().having( (TestFailure error) => error.message, 'message', contains('no widget was found'), )), ); expect(comparator.invocation, isNull); }); testWidgets('if finder finds multiple widgets', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(const Column( children: <Widget>[Text('hello'), Text('world')], ))); final Finder finder = find.byType(Text); await expectLater( () => expectLater(finder, matchesGoldenFile('foo.png')), throwsA(isA<TestFailure>().having( (TestFailure error) => error.message, 'message', contains('too many widgets'), )), ); expect(comparator.invocation, isNull); }); }); testWidgets('calls update on comparator if autoUpdateGoldenFiles is true', (WidgetTester tester) async { autoUpdateGoldenFiles = true; await tester.pumpWidget(boilerplate(const Text('hello'))); final Finder finder = find.byType(Text); await expectLater(finder, matchesGoldenFile('foo.png')); expect(comparator.invocation, _ComparatorInvocation.update); expect(comparator.imageBytes, hasLength(greaterThan(0))); expect(comparator.golden, Uri.parse('foo.png')); autoUpdateGoldenFiles = false; }); }); group('matchesSemanticsData', () { testWidgets('matches SemanticsData', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('semantics'); await tester.pumpWidget(Semantics( key: key, namesRoute: true, header: true, button: true, link: true, onTap: () { }, onLongPress: () { }, label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, onTapHint: 'scan', onLongPressHint: 'fill', customSemanticsActions: <CustomSemanticsAction, VoidCallback>{ const CustomSemanticsAction(label: 'foo'): () { }, const CustomSemanticsAction(label: 'bar'): () { }, }, )); expect(tester.getSemantics(find.byKey(key)), matchesSemantics( label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], ), ); // Doesn't match custom actions expect(tester.getSemantics(find.byKey(key)), isNot(matchesSemantics( label: 'foo', hint: 'bar', value: 'baz', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'barz'), ], )), ); // Doesn't match wrong hints expect(tester.getSemantics(find.byKey(key)), isNot(matchesSemantics( label: 'foo', hint: 'bar', value: 'baz', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scans', onLongPressHint: 'fills', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], )), ); handle.dispose(); }); testWidgets('Can match all semantics flags and actions', (WidgetTester tester) async { int actions = 0; int flags = 0; const CustomSemanticsAction action = CustomSemanticsAction(label: 'test'); for (final SemanticsAction action in SemanticsAction.values) { actions |= action.index; } for (final SemanticsFlag flag in SemanticsFlag.values) { flags |= flag.index; } final SemanticsData data = SemanticsData( flags: flags, actions: actions, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, customSemanticsActionIds: <int>[CustomSemanticsAction.getIdentifier(action)], currentValueLength: 10, maxValueLength: 15, ); final _FakeSemanticsNode node = _FakeSemanticsNode(data); expect(node, matchesSemantics( rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), size: const Size(10.0, 10.0), elevation: 3.0, thickness: 4.0, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, /* Flags */ hasCheckedState: true, isChecked: true, isCheckStateMixed: true, isSelected: true, isButton: true, isSlider: true, isKeyboardKey: true, isLink: true, isTextField: true, isReadOnly: true, hasEnabledState: true, isFocused: true, isFocusable: true, isEnabled: true, isInMutuallyExclusiveGroup: true, isHeader: true, isObscured: true, isMultiline: true, namesRoute: true, scopesRoute: true, isHidden: true, isImage: true, isLiveRegion: true, hasToggledState: true, isToggled: true, hasImplicitScrolling: true, hasExpandedState: true, isExpanded: true, /* Actions */ hasTapAction: true, hasLongPressAction: true, hasScrollLeftAction: true, hasScrollRightAction: true, hasScrollUpAction: true, hasScrollDownAction: true, hasIncreaseAction: true, hasDecreaseAction: true, hasShowOnScreenAction: true, hasMoveCursorForwardByCharacterAction: true, hasMoveCursorBackwardByCharacterAction: true, hasMoveCursorForwardByWordAction: true, hasMoveCursorBackwardByWordAction: true, hasSetTextAction: true, hasSetSelectionAction: true, hasCopyAction: true, hasCutAction: true, hasPasteAction: true, hasDidGainAccessibilityFocusAction: true, hasDidLoseAccessibilityFocusAction: true, hasDismissAction: true, customActions: <CustomSemanticsAction>[action], )); }); testWidgets('Can match child semantics', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('a'); await tester.pumpWidget(Semantics( key: key, label: 'Foo', container: true, explicitChildNodes: true, textDirection: TextDirection.ltr, child: Semantics( label: 'Bar', textDirection: TextDirection.ltr, ), )); final SemanticsNode node = tester.getSemantics(find.byKey(key)); expect(node, matchesSemantics( label: 'Foo', textDirection: TextDirection.ltr, children: <Matcher>[ matchesSemantics( label: 'Bar', textDirection: TextDirection.ltr, ), ], )); handle.dispose(); }); testWidgets('failure does not throw unexpected errors', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('semantics'); await tester.pumpWidget(Semantics( key: key, namesRoute: true, header: true, button: true, link: true, onTap: () { }, onLongPress: () { }, identifier: 'ident', label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, onTapHint: 'scan', onLongPressHint: 'fill', customSemanticsActions: <CustomSemanticsAction, VoidCallback>{ const CustomSemanticsAction(label: 'foo'): () { }, const CustomSemanticsAction(label: 'bar'): () { }, }, )); // This should fail due to the mis-match between the `namesRoute` value. void failedExpectation() => expect(tester.getSemantics(find.byKey(key)), matchesSemantics( // Adding the explicit `false` for test readability // ignore: avoid_redundant_argument_values namesRoute: false, label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], ), ); expect(failedExpectation, throwsA(isA<TestFailure>())); handle.dispose(); }); }); group('containsSemantics', () { testWidgets('matches SemanticsData', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('semantics'); await tester.pumpWidget(Semantics( key: key, namesRoute: true, header: true, button: true, link: true, onTap: () { }, onLongPress: () { }, label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, onTapHint: 'scan', onLongPressHint: 'fill', customSemanticsActions: <CustomSemanticsAction, VoidCallback>{ const CustomSemanticsAction(label: 'foo'): () { }, const CustomSemanticsAction(label: 'bar'): () { }, }, )); expect( tester.getSemantics(find.byKey(key)), containsSemantics( label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], ), ); expect( tester.getSemantics(find.byKey(key)), isNot(containsSemantics( label: 'foo', hint: 'bar', value: 'baz', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'barz'), ], )), reason: 'CustomSemanticsAction "barz" should not have matched "bar".' ); expect( tester.getSemantics(find.byKey(key)), isNot(matchesSemantics( label: 'foo', hint: 'bar', value: 'baz', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: true, onTapHint: 'scans', onLongPressHint: 'fills', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], )), reason: 'onTapHint "scans" should not have matched "scan".', ); handle.dispose(); }); testWidgets('can match all semantics flags and actions enabled', (WidgetTester tester) async { int actions = 0; int flags = 0; const CustomSemanticsAction action = CustomSemanticsAction(label: 'test'); for (final SemanticsAction action in SemanticsAction.values) { actions |= action.index; } for (final SemanticsFlag flag in SemanticsFlag.values) { flags |= flag.index; } final SemanticsData data = SemanticsData( flags: flags, actions: actions, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, customSemanticsActionIds: <int>[CustomSemanticsAction.getIdentifier(action)], currentValueLength: 10, maxValueLength: 15, ); final _FakeSemanticsNode node = _FakeSemanticsNode(data); expect( node, containsSemantics( rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), size: const Size(10.0, 10.0), elevation: 3.0, thickness: 4.0, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, /* Flags */ hasCheckedState: true, isChecked: true, isSelected: true, isButton: true, isSlider: true, isKeyboardKey: true, isLink: true, isTextField: true, isReadOnly: true, hasEnabledState: true, isFocused: true, isFocusable: true, isEnabled: true, isInMutuallyExclusiveGroup: true, isHeader: true, isObscured: true, isMultiline: true, namesRoute: true, scopesRoute: true, isHidden: true, isImage: true, isLiveRegion: true, hasToggledState: true, isToggled: true, hasImplicitScrolling: true, hasExpandedState: true, isExpanded: true, /* Actions */ hasTapAction: true, hasLongPressAction: true, hasScrollLeftAction: true, hasScrollRightAction: true, hasScrollUpAction: true, hasScrollDownAction: true, hasIncreaseAction: true, hasDecreaseAction: true, hasShowOnScreenAction: true, hasMoveCursorForwardByCharacterAction: true, hasMoveCursorBackwardByCharacterAction: true, hasMoveCursorForwardByWordAction: true, hasMoveCursorBackwardByWordAction: true, hasSetTextAction: true, hasSetSelectionAction: true, hasCopyAction: true, hasCutAction: true, hasPasteAction: true, hasDidGainAccessibilityFocusAction: true, hasDidLoseAccessibilityFocusAction: true, hasDismissAction: true, customActions: <CustomSemanticsAction>[action], ), ); }); testWidgets('can match all flags and actions disabled', (WidgetTester tester) async { final SemanticsData data = SemanticsData( flags: 0, actions: 0, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, ); final _FakeSemanticsNode node = _FakeSemanticsNode(data); expect( node, containsSemantics( rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), size: const Size(10.0, 10.0), elevation: 3.0, thickness: 4.0, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, /* Flags */ hasCheckedState: false, isChecked: false, isSelected: false, isButton: false, isSlider: false, isKeyboardKey: false, isLink: false, isTextField: false, isReadOnly: false, hasEnabledState: false, isFocused: false, isFocusable: false, isEnabled: false, isInMutuallyExclusiveGroup: false, isHeader: false, isObscured: false, isMultiline: false, namesRoute: false, scopesRoute: false, isHidden: false, isImage: false, isLiveRegion: false, hasToggledState: false, isToggled: false, hasImplicitScrolling: false, hasExpandedState: false, isExpanded: false, /* Actions */ hasTapAction: false, hasLongPressAction: false, hasScrollLeftAction: false, hasScrollRightAction: false, hasScrollUpAction: false, hasScrollDownAction: false, hasIncreaseAction: false, hasDecreaseAction: false, hasShowOnScreenAction: false, hasMoveCursorForwardByCharacterAction: false, hasMoveCursorBackwardByCharacterAction: false, hasMoveCursorForwardByWordAction: false, hasMoveCursorBackwardByWordAction: false, hasSetTextAction: false, hasSetSelectionAction: false, hasCopyAction: false, hasCutAction: false, hasPasteAction: false, hasDidGainAccessibilityFocusAction: false, hasDidLoseAccessibilityFocusAction: false, hasDismissAction: false, ), ); }); testWidgets('only matches given flags and actions', (WidgetTester tester) async { int allActions = 0; int allFlags = 0; for (final SemanticsAction action in SemanticsAction.values) { allActions |= action.index; } for (final SemanticsFlag flag in SemanticsFlag.values) { allFlags |= flag.index; } final SemanticsData emptyData = SemanticsData( flags: 0, actions: 0, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, ); final _FakeSemanticsNode emptyNode = _FakeSemanticsNode(emptyData); const CustomSemanticsAction action = CustomSemanticsAction(label: 'test'); final SemanticsData fullData = SemanticsData( flags: allFlags, actions: allActions, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, customSemanticsActionIds: <int>[CustomSemanticsAction.getIdentifier(action)], ); final _FakeSemanticsNode fullNode = _FakeSemanticsNode(fullData); expect( emptyNode, containsSemantics( rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), size: const Size(10.0, 10.0), elevation: 3.0, thickness: 4.0, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, ), ); expect( fullNode, containsSemantics( rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), size: const Size(10.0, 10.0), elevation: 3.0, thickness: 4.0, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, customActions: <CustomSemanticsAction>[action], ), ); }); testWidgets('can match child semantics', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('a'); await tester.pumpWidget(Semantics( key: key, label: 'Foo', container: true, explicitChildNodes: true, textDirection: TextDirection.ltr, child: Semantics( label: 'Bar', textDirection: TextDirection.ltr, ), )); final SemanticsNode node = tester.getSemantics(find.byKey(key)); expect( node, containsSemantics( label: 'Foo', textDirection: TextDirection.ltr, children: <Matcher>[ containsSemantics( label: 'Bar', textDirection: TextDirection.ltr, ), ], ), ); handle.dispose(); }); testWidgets('can match only custom actions', (WidgetTester tester) async { const CustomSemanticsAction action = CustomSemanticsAction(label: 'test'); final SemanticsData data = SemanticsData( flags: 0, actions: SemanticsAction.customAction.index, identifier: 'i', attributedLabel: AttributedString('a'), attributedIncreasedValue: AttributedString('b'), attributedValue: AttributedString('c'), attributedDecreasedValue: AttributedString('d'), attributedHint: AttributedString('e'), tooltip: 'f', textDirection: TextDirection.ltr, rect: const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0), elevation: 3.0, thickness: 4.0, textSelection: null, scrollIndex: null, scrollChildCount: null, scrollPosition: null, scrollExtentMax: null, scrollExtentMin: null, platformViewId: 105, currentValueLength: 10, maxValueLength: 15, customSemanticsActionIds: <int>[CustomSemanticsAction.getIdentifier(action)], ); final _FakeSemanticsNode node = _FakeSemanticsNode(data); expect(node, containsSemantics(customActions: <CustomSemanticsAction>[action])); }); testWidgets('failure does not throw unexpected errors', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); const Key key = Key('semantics'); await tester.pumpWidget(Semantics( key: key, namesRoute: true, header: true, button: true, link: true, onTap: () { }, onLongPress: () { }, label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, onTapHint: 'scan', onLongPressHint: 'fill', customSemanticsActions: <CustomSemanticsAction, VoidCallback>{ const CustomSemanticsAction(label: 'foo'): () { }, const CustomSemanticsAction(label: 'bar'): () { }, }, )); // This should fail due to the mis-match between the `namesRoute` value. void failedExpectation() => expect(tester.getSemantics(find.byKey(key)), containsSemantics( label: 'foo', hint: 'bar', value: 'baz', increasedValue: 'a', decreasedValue: 'b', textDirection: TextDirection.rtl, hasTapAction: true, hasLongPressAction: true, isButton: true, isLink: true, isHeader: true, namesRoute: false, onTapHint: 'scan', onLongPressHint: 'fill', customActions: <CustomSemanticsAction>[ const CustomSemanticsAction(label: 'foo'), const CustomSemanticsAction(label: 'bar'), ], ), ); expect(failedExpectation, throwsA(isA<TestFailure>())); handle.dispose(); }); }); group('findsAtLeastNWidgets', () { Widget boilerplate(Widget child) { return Directionality( textDirection: TextDirection.ltr, child: child, ); } testWidgets('succeeds when finds more then the specified count', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(const Column( children: <Widget>[Text('1'), Text('2'), Text('3')], ))); expect(find.byType(Text), findsAtLeastNWidgets(2)); }); testWidgets('succeeds when finds the exact specified count', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(const Column( children: <Widget>[Text('1'), Text('2')], ))); expect(find.byType(Text), findsAtLeastNWidgets(2)); }); testWidgets('fails when finds less then specified count', (WidgetTester tester) async { await tester.pumpWidget(boilerplate(const Column( children: <Widget>[Text('1'), Text('2')], ))); expect(find.byType(Text), isNot(findsAtLeastNWidgets(3))); }); }); group('findsOneWidget', () { testWidgets('finds exactly one widget', (WidgetTester tester) async { await tester.pumpWidget(const Text('foo', textDirection: TextDirection.ltr)); expect(find.text('foo'), findsOneWidget); }); testWidgets('fails with a descriptive message', (WidgetTester tester) async { late TestFailure failure; try { expect(find.text('foo', skipOffstage: false), findsOneWidget); } on TestFailure catch (e) { failure = e; } expect(failure, isNotNull); final String? message = failure.message; expect(message, contains('Expected: exactly one matching candidate\n')); expect(message, contains('Actual: _TextWidgetFinder:<Found 0 widgets with text "foo"')); expect(message, contains('Which: means none were found but one was expected\n')); }); }); group('findsNothing', () { testWidgets('finds no widgets', (WidgetTester tester) async { expect(find.text('foo'), findsNothing); }); testWidgets('fails with a descriptive message', (WidgetTester tester) async { await tester.pumpWidget(const Text('foo', textDirection: TextDirection.ltr)); late TestFailure failure; try { expect(find.text('foo', skipOffstage: false), findsNothing); } on TestFailure catch (e) { failure = e; } expect(failure, isNotNull); final String? message = failure.message; expect(message, contains('Expected: no matching candidates\n')); expect(message, contains('Actual: _TextWidgetFinder:<Found 1 widget with text "foo"')); expect(message, contains('Text("foo", textDirection: ltr, dependencies: [MediaQuery])')); expect(message, contains('Which: means one was found but none were expected\n')); }); testWidgets('fails with a descriptive message when skipping', (WidgetTester tester) async { await tester.pumpWidget(const Text('foo', textDirection: TextDirection.ltr)); late TestFailure failure; try { expect(find.text('foo'), findsNothing); } on TestFailure catch (e) { failure = e; } expect(failure, isNotNull); final String? message = failure.message; expect(message, contains('Expected: no matching candidates\n')); expect(message, contains('Actual: _TextWidgetFinder:<Found 1 widget with text "foo"')); expect(message, contains('Text("foo", textDirection: ltr, dependencies: [MediaQuery])')); expect(message, contains('Which: means one was found but none were expected\n')); }); }); } enum _ComparatorBehavior { returnTrue, returnFalse, throwTestFailure, } enum _ComparatorInvocation { compare, update, } class _FakeComparator implements GoldenFileComparator { _ComparatorBehavior behavior = _ComparatorBehavior.returnTrue; _ComparatorInvocation? invocation; Uint8List? imageBytes; Uri? golden; @override Future<bool> compare(Uint8List imageBytes, Uri golden) { invocation = _ComparatorInvocation.compare; this.imageBytes = imageBytes; this.golden = golden; switch (behavior) { case _ComparatorBehavior.returnTrue: return Future<bool>.value(true); case _ComparatorBehavior.returnFalse: return Future<bool>.value(false); case _ComparatorBehavior.throwTestFailure: fail('fake message'); } } @override Future<void> update(Uri golden, Uint8List imageBytes) { invocation = _ComparatorInvocation.update; this.golden = golden; this.imageBytes = imageBytes; return Future<void>.value(); } @override Uri getTestUri(Uri key, int? version) { return key; } } class _FakeSemanticsNode extends SemanticsNode { _FakeSemanticsNode(this.data); SemanticsData data; @override SemanticsData getSemanticsData() => data; } @immutable class _CustomColor extends Color { const _CustomColor(super.value, {this.isEqual}); final bool? isEqual; @override bool operator ==(Object other) => isEqual ?? super == other; @override int get hashCode => Object.hash(super.hashCode, isEqual); }
flutter/packages/flutter_test/test/matchers_test.dart/0
{ "file_path": "flutter/packages/flutter_test/test/matchers_test.dart", "repo_id": "flutter", "token_count": 22798 }
914
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(goderbauer): Delete these tests when the deprecated window property is removed. import 'dart:ui' as ui show window; import 'dart:ui'; import 'package:flutter/widgets.dart' show WidgetsBinding; import 'package:flutter_test/flutter_test.dart'; import 'utils/fake_and_mock_utils.dart'; void main() { tearDown(() { final TestWindow window = WidgetsBinding.instance.window as TestWindow; window.clearAllTestValues(); }); test('TestWindow can handle new methods without breaking', () { final dynamic testWindow = TestWindow(window: ui.window); // ignore: avoid_dynamic_calls expect(testWindow.someNewProperty, null); }); testWidgets('TestWindow can fake device pixel ratio', (WidgetTester tester) async { verifyPropertyFaked<double>( tester: tester, realValue: ui.window.devicePixelRatio, fakeValue: 2.5, propertyRetriever: () { return WidgetsBinding.instance.window.devicePixelRatio; }, propertyFaker: (TestWidgetsFlutterBinding binding, double fakeValue) { binding.window.devicePixelRatioTestValue = fakeValue; }, ); }); testWidgets('TestWindow can fake physical size', (WidgetTester tester) async { verifyPropertyFaked<Size>( tester: tester, realValue: ui.window.physicalSize, fakeValue: const Size(50, 50), propertyRetriever: () { return WidgetsBinding.instance.window.physicalSize; }, propertyFaker: (TestWidgetsFlutterBinding binding, Size fakeValue) { binding.window.physicalSizeTestValue = fakeValue; }, ); }); testWidgets('TestWindow can fake view insets', (WidgetTester tester) async { verifyPropertyFaked<ViewPadding>( tester: tester, realValue: ui.window.viewInsets, fakeValue: FakeViewPadding.zero, propertyRetriever: () { return WidgetsBinding.instance.window.viewInsets; }, propertyFaker: (TestWidgetsFlutterBinding binding, ViewPadding fakeValue) { binding.window.viewInsetsTestValue = fakeValue; }, matcher: matchesViewPadding, ); }); testWidgets('TestWindow can fake padding', (WidgetTester tester) async { verifyPropertyFaked<ViewPadding>( tester: tester, realValue: ui.window.padding, fakeValue: FakeViewPadding.zero, propertyRetriever: () { return WidgetsBinding.instance.window.padding; }, propertyFaker: (TestWidgetsFlutterBinding binding, ViewPadding fakeValue) { binding.window.paddingTestValue = fakeValue; }, matcher: matchesViewPadding ); }); testWidgets('TestWindow can fake text scale factor', (WidgetTester tester) async { verifyPropertyFaked<double>( tester: tester, realValue: ui.window.textScaleFactor, fakeValue: 2.5, propertyRetriever: () { return WidgetsBinding.instance.window.textScaleFactor; }, propertyFaker: (TestWidgetsFlutterBinding binding, double fakeValue) { binding.platformDispatcher.textScaleFactorTestValue = fakeValue; }, ); }); testWidgets('TestWindow can fake platform brightness', (WidgetTester tester) async { verifyPropertyFaked<Brightness>( tester: tester, realValue: Brightness.light, fakeValue: Brightness.dark, propertyRetriever: () { return WidgetsBinding.instance.window.platformBrightness; }, propertyFaker: (TestWidgetsFlutterBinding binding, Brightness fakeValue) { binding.platformDispatcher.platformBrightnessTestValue = fakeValue; }, ); }); testWidgets('TestWindow can clear out fake properties all at once', (WidgetTester tester) async { final double originalDevicePixelRatio = ui.window.devicePixelRatio; final double originalTextScaleFactor = ui.window.textScaleFactor; final TestWindow testWindow = retrieveTestBinding(tester).window; // Set fake values for window properties. testWindow.devicePixelRatioTestValue = 2.5; tester.platformDispatcher.textScaleFactorTestValue = 3.0; // Erase fake window property values. testWindow.clearAllTestValues(); // Verify that the window once again reports real property values. expect(WidgetsBinding.instance.window.devicePixelRatio, originalDevicePixelRatio); expect(WidgetsBinding.instance.window.textScaleFactor, originalTextScaleFactor); }); testWidgets('Updates to window also update tester.view', (WidgetTester tester) async { tester.binding.window.devicePixelRatioTestValue = 7; tester.binding.window.displayFeaturesTestValue = <DisplayFeature>[const DisplayFeature(bounds: Rect.fromLTWH(0, 0, 20, 300), type: DisplayFeatureType.unknown, state: DisplayFeatureState.unknown)]; tester.binding.window.paddingTestValue = FakeViewPadding.zero; tester.binding.window.physicalSizeTestValue = const Size(505, 805); tester.binding.window.systemGestureInsetsTestValue = FakeViewPadding.zero; tester.binding.window.viewInsetsTestValue = FakeViewPadding.zero; tester.binding.window.viewPaddingTestValue = FakeViewPadding.zero; tester.binding.window.gestureSettingsTestValue = const GestureSettings(physicalTouchSlop: 4, physicalDoubleTapSlop: 5); expect(tester.binding.window.devicePixelRatio, tester.view.devicePixelRatio); expect(tester.binding.window.displayFeatures, tester.view.displayFeatures); expect(tester.binding.window.padding, tester.view.padding); expect(tester.binding.window.physicalSize, tester.view.physicalSize); expect(tester.binding.window.systemGestureInsets, tester.view.systemGestureInsets); expect(tester.binding.window.viewInsets, tester.view.viewInsets); expect(tester.binding.window.viewPadding, tester.view.viewPadding); expect(tester.binding.window.gestureSettings, tester.view.gestureSettings); }); }
flutter/packages/flutter_test/test/window_test.dart/0
{ "file_path": "flutter/packages/flutter_test/test/window_test.dart", "repo_id": "flutter", "token_count": 2100 }
915
include: ../analysis_options.yaml linter: rules: avoid_catches_without_on_clauses: true avoid_catching_errors: false # TODO(ianh): we should refactor the tool codebase to avoid relying on this so much library_private_types_in_public_api: false # Tool does not have any public API. no_runtimeType_toString: false # We use runtimeType for debugging in the tool. only_throw_errors: true prefer_relative_imports: true public_member_api_docs: false # Tool does not have any public API. unawaited_futures: true
flutter/packages/flutter_tools/analysis_options.yaml/0
{ "file_path": "flutter/packages/flutter_tools/analysis_options.yaml", "repo_id": "flutter", "token_count": 178 }
916
The files in this directory are essentially templates. This file causes our license checker to ignore them.
flutter/packages/flutter_tools/gradle/.dartignore/0
{ "file_path": "flutter/packages/flutter_tools/gradle/.dartignore", "repo_id": "flutter", "token_count": 22 }
917
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. apply<FlutterPluginKts>() class FlutterPluginKts : Plugin<Project> { override fun apply(project: Project) { // Use withGroovyBuilder and getProperty() to access Groovy metaprogramming. project.withGroovyBuilder { getProperty("android").withGroovyBuilder { getProperty("defaultConfig").withGroovyBuilder { var baseApplicationName: String = "android.app.Application" if (project.hasProperty("base-application-name")) { baseApplicationName = project.property("base-application-name").toString() } // Setting to android.app.Application is the same as omitting the attribute. getProperty("manifestPlaceholders").withGroovyBuilder { setProperty("applicationName", baseApplicationName) } } } } } }
flutter/packages/flutter_tools/gradle/src/main/kotlin/flutter.gradle.kts/0
{ "file_path": "flutter/packages/flutter_tools/gradle/src/main/kotlin/flutter.gradle.kts", "repo_id": "flutter", "token_count": 471 }
918
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="layers - gestures" type="FlutterRunConfigurationType" factoryName="Flutter"> <option name="filePath" value="$PROJECT_DIR$/examples/layers/widgets/gestures.dart" /> <method /> </configuration> </component>
flutter/packages/flutter_tools/ide_templates/intellij/.idea/runConfigurations/layers___gestures.xml.copy.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/ide_templates/intellij/.idea/runConfigurations/layers___gestures.xml.copy.tmpl", "repo_id": "flutter", "token_count": 92 }
919
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="manual_tests - page_view" type="FlutterRunConfigurationType" factoryName="Flutter"> <option name="filePath" value="$PROJECT_DIR$/dev/manual_tests/lib/page_view.dart" /> <method /> </configuration> </component>
flutter/packages/flutter_tools/ide_templates/intellij/.idea/runConfigurations/manual_tests___page_view.xml.copy.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/ide_templates/intellij/.idea/runConfigurations/manual_tests___page_view.xml.copy.tmpl", "repo_id": "flutter", "token_count": 97 }
920
<?xml version="1.0" encoding="UTF-8"?> <module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.idea" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component> </module>
flutter/packages/flutter_tools/ide_templates/intellij/examples/flutter_view/flutter_view.iml.copy.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/ide_templates/intellij/examples/flutter_view/flutter_view.iml.copy.tmpl", "repo_id": "flutter", "token_count": 230 }
921
<?xml version="1.0" encoding="UTF-8"?> <module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/asci_casing/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/bad_import/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/bad_package/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/bad_path/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/changed_sdk_location/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/good/build" /> <excludeFolder url="file://$MODULE_DIR$/test/data/dart_dependencies_test/syntax_error/build" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component> </module>
flutter/packages/flutter_tools/ide_templates/intellij/packages/flutter_tools/flutter_tools.iml.copy.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/ide_templates/intellij/packages/flutter_tools/flutter_tools.iml.copy.tmpl", "repo_id": "flutter", "token_count": 505 }
922
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../base/common.dart'; import '../build_info.dart'; const String kGooglePlayVersioning = 'https://developer.android.com/studio/publish/versioning.html'; const String kSupportedAbis = 'https://flutter.dev/docs/deployment/android#what-are-the-supported-target-architectures'; /// Validates that the build mode and build number are valid for a given build. void validateBuild(AndroidBuildInfo androidBuildInfo) { final BuildInfo buildInfo = androidBuildInfo.buildInfo; if (buildInfo.codeSizeDirectory != null && androidBuildInfo.targetArchs.length > 1) { throwToolExit( 'Cannot perform code size analysis when building for multiple ABIs. ' 'Specify one of android-arm, android-arm64, or android-x64 in the ' '--target-platform flag.' ); } if (buildInfo.mode.isPrecompiled && androidBuildInfo.targetArchs.contains(AndroidArch.x86)) { throwToolExit( 'Cannot build ${androidBuildInfo.buildInfo.mode.cliName} mode for x86 ABI.\n' 'For more information see $kSupportedAbis .' ); } if (buildInfo.buildNumber != null) { final int? result = int.tryParse(buildInfo.buildNumber!); if (result == null) { throwToolExit( 'buildNumber: ${buildInfo.buildNumber} was not a valid integer value.\n' 'For more information see $kGooglePlayVersioning .' ); } if (result < 0) { throwToolExit( 'buildNumber: ${buildInfo.buildNumber} must be a positive integer value.\n' 'For more information see $kGooglePlayVersioning .' ); } if (result > 2100000000) { throwToolExit( 'buildNumber: ${buildInfo.buildNumber} is greater than the maximum ' 'allowed value of 2100000000.\n' 'For more information see $kGooglePlayVersioning .' ); } } }
flutter/packages/flutter_tools/lib/src/android/build_validation.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/android/build_validation.dart", "repo_id": "flutter", "token_count": 688 }
923
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:meta/meta.dart'; import '../persistent_tool_state.dart'; import 'io.dart'; import 'net.dart'; import 'platform.dart'; class BotDetector { BotDetector({ required HttpClientFactory httpClientFactory, required Platform platform, required PersistentToolState persistentToolState, }) : _platform = platform, _azureDetector = AzureDetector( httpClientFactory: httpClientFactory, ), _persistentToolState = persistentToolState; final Platform _platform; final AzureDetector _azureDetector; final PersistentToolState _persistentToolState; Future<bool> get isRunningOnBot async { if ( // Explicitly stated to not be a bot. _platform.environment['BOT'] == 'false' // Set by the IDEs to the IDE name, so a strong signal that this is not a bot. || _platform.environment.containsKey('FLUTTER_HOST') // When set, GA logs to a local file (normally for tests) so we don't need to filter. || _platform.environment.containsKey('FLUTTER_ANALYTICS_LOG_FILE') ) { _persistentToolState.setIsRunningOnBot(false); return false; } if (_persistentToolState.isRunningOnBot != null) { return _persistentToolState.isRunningOnBot!; } final bool result = _platform.environment['BOT'] == 'true' // https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables || _platform.environment['TRAVIS'] == 'true' || _platform.environment['CONTINUOUS_INTEGRATION'] == 'true' || _platform.environment.containsKey('CI') // Travis and AppVeyor // https://www.appveyor.com/docs/environment-variables/ || _platform.environment.containsKey('APPVEYOR') // https://cirrus-ci.org/guide/writing-tasks/#environment-variables || _platform.environment.containsKey('CIRRUS_CI') // https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html || (_platform.environment.containsKey('AWS_REGION') && _platform.environment.containsKey('CODEBUILD_INITIATOR')) // https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables || _platform.environment.containsKey('JENKINS_URL') // https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables || _platform.environment.containsKey('GITHUB_ACTIONS') // Properties on Flutter's Chrome Infra bots. || _platform.environment['CHROME_HEADLESS'] == '1' || _platform.environment.containsKey('BUILDBOT_BUILDERNAME') || _platform.environment.containsKey('SWARMING_TASK_ID') // Property when running on borg. || _platform.environment.containsKey('BORG_ALLOC_DIR') // Property when running on Azure. || await _azureDetector.isRunningOnAzure; _persistentToolState.setIsRunningOnBot(result); return result; } } // Are we running on Azure? // https://docs.microsoft.com/en-us/azure/virtual-machines/linux/instance-metadata-service @visibleForTesting class AzureDetector { AzureDetector({ required HttpClientFactory httpClientFactory, }) : _httpClientFactory = httpClientFactory; static const String _serviceUrl = 'http://169.254.169.254/metadata/instance'; final HttpClientFactory _httpClientFactory; bool? _isRunningOnAzure; Future<bool> get isRunningOnAzure async { if (_isRunningOnAzure != null) { return _isRunningOnAzure!; } const Duration connectionTimeout = Duration(milliseconds: 250); const Duration requestTimeout = Duration(seconds: 1); final HttpClient client = _httpClientFactory() ..connectionTimeout = connectionTimeout; try { final HttpClientRequest request = await client.getUrl( Uri.parse(_serviceUrl), ).timeout(requestTimeout); request.headers.add('Metadata', true); await request.close(); } on SocketException { // If there is an error on the socket, it probably means that we are not // running on Azure. return _isRunningOnAzure = false; } on HttpException { // If the connection gets set up, but encounters an error condition, it // still means we're on Azure. return _isRunningOnAzure = true; } on TimeoutException { // The HttpClient connected to a host, but it did not respond in a timely // fashion. Assume we are not on a bot. return _isRunningOnAzure = false; } on OSError { // The HttpClient might be running in a WSL1 environment. return _isRunningOnAzure = false; } // We got a response. We're running on Azure. return _isRunningOnAzure = true; } }
flutter/packages/flutter_tools/lib/src/base/bot_detector.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/base/bot_detector.dart", "repo_id": "flutter", "token_count": 1718 }
924
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io' as io show Platform, stdin, stdout; /// Provides API parity with the `Platform` class in `dart:io`, but using /// instance properties rather than static properties. This difference enables /// the use of these APIs in tests, where you can provide mock implementations. abstract class Platform { /// Creates a new [Platform]. const Platform(); /// The number of processors of the machine. int get numberOfProcessors; /// The path separator used by the operating system to separate /// components in file paths. String get pathSeparator; /// A string (`linux`, `macos`, `windows`, `android`, `ios`, or `fuchsia`) /// representing the operating system. String get operatingSystem; /// A string representing the version of the operating system or platform. String get operatingSystemVersion; /// Get the local hostname for the system. String get localHostname; /// True if the operating system is Linux. bool get isLinux => operatingSystem == 'linux'; /// True if the operating system is OS X. bool get isMacOS => operatingSystem == 'macos'; /// True if the operating system is Windows. bool get isWindows => operatingSystem == 'windows'; /// True if the operating system is Android. bool get isAndroid => operatingSystem == 'android'; /// True if the operating system is iOS. bool get isIOS => operatingSystem == 'ios'; /// True if the operating system is Fuchsia. bool get isFuchsia => operatingSystem == 'fuchsia'; /// The environment for this process. /// /// The returned environment is an unmodifiable map whose content is /// retrieved from the operating system on its first use. /// /// Environment variables on Windows are case-insensitive. The map /// returned on Windows is therefore case-insensitive and will convert /// all keys to upper case. On other platforms the returned map is /// a standard case-sensitive map. Map<String, String> get environment; /// The path of the executable used to run the script in this isolate. /// /// The path returned is the literal path used to run the script. This /// path might be relative or just be a name from which the executable /// was found by searching the `PATH`. /// /// To get the absolute path to the resolved executable use /// [resolvedExecutable]. String get executable; /// The path of the executable used to run the script in this /// isolate after it has been resolved by the OS. /// /// This is the absolute path, with all symlinks resolved, to the /// executable used to run the script. String get resolvedExecutable; /// The absolute URI of the script being run in this /// isolate. /// /// If the script argument on the command line is relative, /// it is resolved to an absolute URI before fetching the script, and /// this absolute URI is returned. /// /// URI resolution only does string manipulation on the script path, and this /// may be different from the file system's path resolution behavior. For /// example, a symbolic link immediately followed by '..' will not be /// looked up. /// /// If the executable environment does not support [script] an empty /// [Uri] is returned. Uri get script; /// The flags passed to the executable used to run the script in this /// isolate. These are the command-line flags between the executable name /// and the script name. Each fetch of `executableArguments` returns a new /// list containing the flags passed to the executable. List<String> get executableArguments; /// The value of the `--packages` flag passed to the executable /// used to run the script in this isolate. This is the configuration which /// specifies how Dart packages are looked up. /// /// If there is no `--packages` flag, `null` is returned. String? get packageConfig; /// The version of the current Dart runtime. /// /// The returned `String` is formatted as the [semver](http://semver.org) /// version string of the current dart runtime, possibly followed by /// whitespace and other version and build details. String get version; /// When stdin is connected to a terminal, whether ANSI codes are supported. bool get stdinSupportsAnsi; /// When stdout is connected to a terminal, whether ANSI codes are supported. bool get stdoutSupportsAnsi; /// Get the name of the current locale. String get localeName; } /// `Platform` implementation that delegates directly to `dart:io`. class LocalPlatform extends Platform { /// Creates a new [LocalPlatform]. const LocalPlatform(); @override int get numberOfProcessors => io.Platform.numberOfProcessors; @override String get pathSeparator => io.Platform.pathSeparator; @override String get operatingSystem => io.Platform.operatingSystem; @override String get operatingSystemVersion => io.Platform.operatingSystemVersion; @override String get localHostname => io.Platform.localHostname; @override Map<String, String> get environment => io.Platform.environment; @override String get executable => io.Platform.executable; @override String get resolvedExecutable => io.Platform.resolvedExecutable; @override Uri get script => io.Platform.script; @override List<String> get executableArguments => io.Platform.executableArguments; @override String? get packageConfig => io.Platform.packageConfig; @override String get version => io.Platform.version; @override bool get stdinSupportsAnsi => io.stdin.supportsAnsiEscapes; @override bool get stdoutSupportsAnsi => io.stdout.supportsAnsiEscapes; @override String get localeName => io.Platform.localeName; } final Uri _empty = Uri.parse(''); /// Provides a mutable implementation of the [Platform] interface. class FakePlatform extends Platform { /// Creates a new [FakePlatform] with the specified properties. /// /// Unspecified properties will default to a 'linux' OS. FakePlatform({ this.numberOfProcessors = 1, this.pathSeparator = '/', this.operatingSystem = 'linux', this.operatingSystemVersion = '', this.localHostname = '', this.environment = const <String, String>{}, this.executable = '', this.resolvedExecutable = '', Uri? script, this.executableArguments = const <String>[], this.packageConfig, this.version = '', this.stdinSupportsAnsi = false, this.stdoutSupportsAnsi = false, this.localeName = '', }) : script = script ?? _empty; /// Creates a new [FakePlatform] with properties whose initial values mirror /// the specified [platform]. FakePlatform.fromPlatform(Platform platform) : numberOfProcessors = platform.numberOfProcessors, pathSeparator = platform.pathSeparator, operatingSystem = platform.operatingSystem, operatingSystemVersion = platform.operatingSystemVersion, localHostname = platform.localHostname, environment = Map<String, String>.from(platform.environment), executable = platform.executable, resolvedExecutable = platform.resolvedExecutable, script = platform.script, executableArguments = List<String>.from(platform.executableArguments), packageConfig = platform.packageConfig, version = platform.version, stdinSupportsAnsi = platform.stdinSupportsAnsi, stdoutSupportsAnsi = platform.stdoutSupportsAnsi, localeName = platform.localeName; @override int numberOfProcessors; @override String pathSeparator; @override String operatingSystem; @override String operatingSystemVersion; @override String localHostname; @override Map<String, String> environment; @override String executable; @override String resolvedExecutable; @override Uri script; @override List<String> executableArguments; @override String? packageConfig; @override String version; @override bool stdinSupportsAnsi; @override bool stdoutSupportsAnsi; @override String localeName; }
flutter/packages/flutter_tools/lib/src/base/platform.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/base/platform.dart", "repo_id": "flutter", "token_count": 2308 }
925
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../base/file_system.dart'; import 'build_system.dart'; /// An exception thrown when a rule declares an input that does not exist on /// disk. class MissingInputException implements Exception { const MissingInputException(this.missing, this.target); /// The file or directory we expected to find. final List<File> missing; /// The name of the target this file should have been output from. final String target; @override String toString() { final String files = missing.map((File file) => file.path).join(', '); return '$files were declared as an inputs, but did not exist. ' 'Check the definition of target:$target for errors'; } } /// An exception thrown if we detect a cycle in the dependencies of a target. class CycleException implements Exception { CycleException(this.targets); final Set<Target> targets; @override String toString() => 'Dependency cycle detected in build: ' '${targets.map((Target target) => target.name).join(' -> ')}'; } /// An exception thrown when a pattern is invalid. class InvalidPatternException implements Exception { InvalidPatternException(this.pattern); final String pattern; @override String toString() => 'The pattern "$pattern" is not valid'; } /// An exception thrown when a rule declares an output that was not produced /// by the invocation. class MissingOutputException implements Exception { const MissingOutputException(this.missing, this.target); /// The files we expected to find. final List<File> missing; /// The name of the target this file should have been output from. final String target; @override String toString() { final String files = missing.map((File file) => file.path).join(', '); return '$files were declared as outputs, but were not generated by ' 'the action. Check the definition of target:$target for errors'; } } /// An exception thrown when in output is placed outside of /// [Environment.buildDir]. class MisplacedOutputException implements Exception { MisplacedOutputException(this.path, this.target); final String path; final String target; @override String toString() { return 'Target $target produced an output at $path' ' which is outside of the current build or project directory'; } } /// An exception thrown if a build action is missing a required define. class MissingDefineException implements Exception { MissingDefineException(this.define, this.target); final String define; final String target; @override String toString() { return 'Target $target required define $define ' 'but it was not provided'; } }
flutter/packages/flutter_tools/lib/src/build_system/exceptions.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/build_system/exceptions.dart", "repo_id": "flutter", "token_count": 770 }
926
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:math'; import 'package:crypto/crypto.dart'; import 'package:package_config/package_config.dart'; import '../../artifacts.dart'; import '../../base/file_system.dart'; import '../../base/process.dart'; import '../../build_info.dart'; import '../../cache.dart'; import '../../convert.dart'; import '../../dart/language_version.dart'; import '../../dart/package_map.dart'; import '../../flutter_plugins.dart'; import '../../globals.dart' as globals; import '../../project.dart'; import '../../web/bootstrap.dart'; import '../../web/compile.dart'; import '../../web/file_generators/flutter_service_worker_js.dart'; import '../../web/file_generators/main_dart.dart' as main_dart; import '../../web_template.dart'; import '../build_system.dart'; import '../depfile.dart'; import '../exceptions.dart'; import 'assets.dart'; import 'localizations.dart'; /// Generates an entry point for a web target. // Keep this in sync with build_runner/resident_web_runner.dart class WebEntrypointTarget extends Target { const WebEntrypointTarget(); @override String get name => 'web_entrypoint'; @override List<Target> get dependencies => const <Target>[]; @override List<Source> get inputs => const <Source>[ Source.pattern('{FLUTTER_ROOT}/packages/flutter_tools/lib/src/build_system/targets/web.dart'), ]; @override List<Source> get outputs => const <Source>[ Source.pattern('{BUILD_DIR}/main.dart'), ]; @override Future<void> build(Environment environment) async { final String? targetFile = environment.defines[kTargetFile]; final Uri importUri = environment.fileSystem.file(targetFile).absolute.uri; // TODO(zanderso): support configuration of this file. const String packageFile = '.packages'; final PackageConfig packageConfig = await loadPackageConfigWithLogging( environment.fileSystem.file(packageFile), logger: environment.logger, ); final FlutterProject flutterProject = FlutterProject.current(); final LanguageVersion languageVersion = determineLanguageVersion( environment.fileSystem.file(targetFile), packageConfig[flutterProject.manifest.appName], Cache.flutterRoot!, ); // Use the PackageConfig to find the correct package-scheme import path // for the user application. If the application has a mix of package-scheme // and relative imports for a library, then importing the entrypoint as a // file-scheme will cause said library to be recognized as two distinct // libraries. This can cause surprising behavior as types from that library // will be considered distinct from each other. // By construction, this will only be null if the .packages file does not // have an entry for the user's application or if the main file is // outside of the lib/ directory. final String importedEntrypoint = packageConfig.toPackageUri(importUri)?.toString() ?? importUri.toString(); await injectBuildTimePluginFiles(flutterProject, webPlatform: true, destination: environment.buildDir); // The below works because `injectBuildTimePluginFiles` is configured to write // the web_plugin_registrant.dart file alongside the generated main.dart const String generatedImport = 'web_plugin_registrant.dart'; final String contents = main_dart.generateMainDartFile(importedEntrypoint, languageVersion: languageVersion, pluginRegistrantEntrypoint: generatedImport, ); environment.buildDir.childFile('main.dart').writeAsStringSync(contents); } } /// Compiles a web entry point with dart2js. abstract class Dart2WebTarget extends Target { const Dart2WebTarget(); Source get compilerSnapshot; WebCompilerConfig get compilerConfig; Map<String, Object?> get buildConfig; List<String> get buildFiles; @override List<Target> get dependencies => const <Target>[ WebEntrypointTarget(), GenerateLocalizationsTarget(), ]; @override List<Source> get inputs => <Source>[ const Source.hostArtifact(HostArtifact.flutterWebSdk), compilerSnapshot, const Source.artifact(Artifact.engineDartBinary), const Source.pattern('{BUILD_DIR}/main.dart'), const Source.pattern('{PROJECT_DIR}/.dart_tool/package_config_subset'), ]; @override List<Source> get outputs => buildFiles.map( (String file) => Source.pattern('{BUILD_DIR}/$file') ).toList(); @override String get buildKey => compilerConfig.buildKey; } class Dart2JSTarget extends Dart2WebTarget { Dart2JSTarget(this.compilerConfig); @override final JsCompilerConfig compilerConfig; @override String get name => 'dart2js'; @override Source get compilerSnapshot => const Source.artifact(Artifact.dart2jsSnapshot); @override List<String> get depfiles => const <String>[ 'dart2js.d', ]; @override Future<void> build(Environment environment) async { final String? buildModeEnvironment = environment.defines[kBuildMode]; if (buildModeEnvironment == null) { throw MissingDefineException(kBuildMode, name); } final BuildMode buildMode = BuildMode.fromCliName(buildModeEnvironment); final Artifacts artifacts = environment.artifacts; final String platformBinariesPath = artifacts.getHostArtifact(HostArtifact.webPlatformKernelFolder).path; final List<String> dartDefines = compilerConfig.renderer.updateDartDefines( decodeDartDefines(environment.defines, kDartDefines), ); final List<String> sharedCommandOptions = <String>[ artifacts.getArtifactPath(Artifact.engineDartBinary, platform: TargetPlatform.web_javascript), '--disable-dart-dev', artifacts.getArtifactPath(Artifact.dart2jsSnapshot, platform: TargetPlatform.web_javascript), '--platform-binaries=$platformBinariesPath', '--invoker=flutter_tool', ...decodeCommaSeparated(environment.defines, kExtraFrontEndOptions), if (buildMode == BuildMode.profile) '-Ddart.vm.profile=true' else '-Ddart.vm.product=true', for (final String dartDefine in dartDefines) '-D$dartDefine', ]; final List<String> compilationArgs = <String>[ ...sharedCommandOptions, ...compilerConfig.toSharedCommandOptions(), '-o', environment.buildDir.childFile('app.dill').path, '--packages=.dart_tool/package_config.json', '--cfe-only', environment.buildDir.childFile('main.dart').path, // dartfile ]; final ProcessUtils processUtils = ProcessUtils( logger: environment.logger, processManager: environment.processManager, ); // Run the dart2js compilation in two stages, so that icon tree shaking can // parse the kernel file for web builds. await processUtils.run(compilationArgs, throwOnError: true); final File outputJSFile = environment.buildDir.childFile('main.dart.js'); await processUtils.run( throwOnError: true, <String>[ ...sharedCommandOptions, ...compilerConfig.toCommandOptions(buildMode), '-o', outputJSFile.path, environment.buildDir.childFile('app.dill').path, // dartfile ], ); final File dart2jsDeps = environment.buildDir.childFile('app.dill.deps'); if (!dart2jsDeps.existsSync()) { environment.logger.printWarning( 'Warning: dart2js did not produce expected deps list at ' '${dart2jsDeps.path}', ); return; } final DepfileService depFileService = environment.depFileService; final Depfile depFile = depFileService.parseDart2js( environment.buildDir.childFile('app.dill.deps'), outputJSFile, ); depFileService.writeToFile( depFile, environment.buildDir.childFile('dart2js.d'), ); } @override Map<String, Object?> get buildConfig => <String, Object?>{ 'compileTarget': 'dart2js', 'renderer': compilerConfig.renderer.name, 'mainJsPath': 'main.dart.js', }; @override List<String> get buildFiles => <String>[ 'main.dart.js', if (compilerConfig.sourceMaps) 'main.dart.js.map', ]; } class Dart2WasmTarget extends Dart2WebTarget { Dart2WasmTarget(this.compilerConfig); @override final WasmCompilerConfig compilerConfig; @override Future<void> build(Environment environment) async { final String? buildModeEnvironment = environment.defines[kBuildMode]; if (buildModeEnvironment == null) { throw MissingDefineException(kBuildMode, name); } final BuildMode buildMode = BuildMode.fromCliName(buildModeEnvironment); final Artifacts artifacts = environment.artifacts; final File outputWasmFile = environment.buildDir.childFile('main.dart.wasm'); final File depFile = environment.buildDir.childFile('dart2wasm.d'); final String dartSdkPath = artifacts.getArtifactPath(Artifact.engineDartSdkPath, platform: TargetPlatform.web_javascript); final String platformBinariesPath = artifacts.getHostArtifact(HostArtifact.webPlatformKernelFolder).path; final String platformFilePath = environment.fileSystem.path.join(platformBinariesPath, 'dart2wasm_platform.dill'); final List<String> dartDefines = compilerConfig.renderer.updateDartDefines( decodeDartDefines(environment.defines, kDartDefines), ); assert(buildMode == BuildMode.release || buildMode == BuildMode.profile); final List<String> compilationArgs = <String>[ artifacts.getArtifactPath(Artifact.engineDartBinary, platform: TargetPlatform.web_javascript), 'compile', 'wasm', '--packages=.dart_tool/package_config.json', '--extra-compiler-option=--dart-sdk=$dartSdkPath', '--extra-compiler-option=--platform=$platformFilePath', '--extra-compiler-option=--delete-tostring-package-uri=dart:ui', '--extra-compiler-option=--delete-tostring-package-uri=package:flutter', if (compilerConfig.renderer == WebRendererMode.skwasm) ...<String>[ '--extra-compiler-option=--import-shared-memory', '--extra-compiler-option=--shared-memory-max-pages=32768', ], if (buildMode == BuildMode.profile) '-Ddart.vm.profile=true' else '-Ddart.vm.product=true', ...decodeCommaSeparated(environment.defines, kExtraFrontEndOptions), for (final String dartDefine in dartDefines) '-D$dartDefine', '--extra-compiler-option=--depfile=${depFile.path}', ...compilerConfig.toCommandOptions(buildMode), '-o', outputWasmFile.path, environment.buildDir.childFile('main.dart').path, // dartfile ]; final ProcessUtils processUtils = ProcessUtils( logger: environment.logger, processManager: environment.processManager, ); await processUtils.run( throwOnError: true, compilationArgs, ); } @override Source get compilerSnapshot => const Source.artifact(Artifact.dart2wasmSnapshot); @override String get name => 'dart2wasm'; @override List<String> get depfiles => const <String>[ 'dart2wasm.d', ]; @override Map<String, Object?> get buildConfig => <String, Object?>{ 'compileTarget': 'dart2wasm', 'renderer': compilerConfig.renderer.name, 'mainWasmPath': 'main.dart.wasm', 'jsSupportRuntimePath': 'main.dart.mjs', }; @override List<String> get buildFiles => <String>[ 'main.dart.wasm', 'main.dart.mjs', ]; } /// Unpacks the dart2js or dart2wasm compilation and resources to a given /// output directory. class WebReleaseBundle extends Target { WebReleaseBundle(List<WebCompilerConfig> configs) : this._( compileTargets: configs.map((WebCompilerConfig config) => switch (config) { WasmCompilerConfig() => Dart2WasmTarget(config), JsCompilerConfig() => Dart2JSTarget(config), } ).toList(), ); WebReleaseBundle._({ required this.compileTargets, }) : templatedFilesTarget = WebTemplatedFiles(generateBuildConfigString(compileTargets)); static String generateBuildConfigString(List<Dart2WebTarget> compileTargets) { final List<Map<String, Object?>> buildDescriptions = compileTargets.map( (Dart2WebTarget target) => target.buildConfig ).toList(); final Map<String, Object?> buildConfig = <String, Object?>{ 'engineRevision': globals.flutterVersion.engineRevision, 'builds': buildDescriptions, }; return ''' if (!window._flutter) { window._flutter = {}; } _flutter.buildConfig = ${jsonEncode(buildConfig)}; '''; } final List<Dart2WebTarget> compileTargets; final WebTemplatedFiles templatedFilesTarget; List<String> get buildFiles => compileTargets.fold( const Iterable<String>.empty(), (Iterable<String> current, Dart2WebTarget target) => current.followedBy(target.buildFiles) ).toList(); @override String get name => 'web_release_bundle'; @override List<Target> get dependencies => <Target>[ ...compileTargets, templatedFilesTarget, ]; @override List<Source> get inputs => <Source>[ const Source.pattern('{PROJECT_DIR}/pubspec.yaml'), ...buildFiles.map((String file) => Source.pattern('{BUILD_DIR}/$file')) ]; @override List<Source> get outputs => <Source>[ ...buildFiles.map((String file) => Source.pattern('{OUTPUT_DIR}/$file')) ]; @override List<String> get depfiles => const <String>[ 'flutter_assets.d', 'web_resources.d', ]; @override Future<void> build(Environment environment) async { final FileSystem fileSystem = environment.fileSystem; for (final File outputFile in environment.buildDir.listSync(recursive: true).whereType<File>()) { final String basename = fileSystem.path.basename(outputFile.path); if (buildFiles.contains(basename)) { outputFile.copySync( environment.outputDir.childFile(fileSystem.path.basename(outputFile.path)).path ); } } createVersionFile(environment, environment.defines); final Directory outputDirectory = environment.outputDir.childDirectory('assets'); outputDirectory.createSync(recursive: true); final Depfile depfile = await copyAssets( environment, environment.outputDir.childDirectory('assets'), targetPlatform: TargetPlatform.web_javascript, ); final DepfileService depfileService = environment.depFileService; depfileService.writeToFile( depfile, environment.buildDir.childFile('flutter_assets.d'), ); final Directory webResources = environment.projectDir .childDirectory('web'); final List<File> inputResourceFiles = webResources .listSync(recursive: true) .whereType<File>() .toList(); // Copy other resource files out of web/ directory. final List<File> outputResourcesFiles = <File>[]; for (final File inputFile in inputResourceFiles) { final String relativePath = fileSystem.path.relative(inputFile.path, from: webResources.path); if (relativePath == 'index.html' || relativePath == 'flutter_bootstrap.js') { // Skip these, these are handled by the templated file target. continue; } final File outputFile = fileSystem.file(fileSystem.path.join( environment.outputDir.path, relativePath)); if (!outputFile.parent.existsSync()) { outputFile.parent.createSync(recursive: true); } outputResourcesFiles.add(outputFile); inputFile.copySync(outputFile.path); } final Depfile resourceFile = Depfile(inputResourceFiles, outputResourcesFiles); depfileService.writeToFile( resourceFile, environment.buildDir.childFile('web_resources.d'), ); } /// Create version.json file that contains data about version for package_info void createVersionFile(Environment environment, Map<String, String> defines) { final Map<String, dynamic> versionInfo = jsonDecode(FlutterProject.current().getVersionInfo()) as Map<String, dynamic>; if (defines.containsKey(kBuildNumber)) { versionInfo['build_number'] = defines[kBuildNumber]; } if (defines.containsKey(kBuildName)) { versionInfo['version'] = defines[kBuildName]; } environment.outputDir .childFile('version.json') .writeAsStringSync(jsonEncode(versionInfo)); } } class WebTemplatedFiles extends Target { WebTemplatedFiles(this.buildConfigString); final String buildConfigString; @override String get buildKey => buildConfigString; void _emitWebTemplateWarning( Environment environment, String filePath, WebTemplateWarning warning ) { environment.logger.printWarning( 'Warning: In $filePath:${warning.lineNumber}: ${warning.warningText}' ); } @override Future<void> build(Environment environment) async { final Directory webResources = environment.projectDir .childDirectory('web'); final File inputFlutterBootstrapJs = webResources.childFile('flutter_bootstrap.js'); final String inputBootstrapContent; if (await inputFlutterBootstrapJs.exists()) { inputBootstrapContent = await inputFlutterBootstrapJs.readAsString(); } else { inputBootstrapContent = generateDefaultFlutterBootstrapScript(); } final WebTemplate bootstrapTemplate = WebTemplate(inputBootstrapContent); for (final WebTemplateWarning warning in bootstrapTemplate.getWarnings()) { _emitWebTemplateWarning(environment, 'flutter_bootstrap.js', warning); } final FileSystem fileSystem = environment.fileSystem; final File flutterJsFile = fileSystem.file(fileSystem.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', )); // Insert a random hash into the requests for service_worker.js. This is not a content hash, // because it would need to be the hash for the entire bundle and not just the resource // in question. final String serviceWorkerVersion = Random().nextInt(4294967296).toString(); bootstrapTemplate.applySubstitutions( baseHref: '', serviceWorkerVersion: serviceWorkerVersion, flutterJsFile: flutterJsFile, buildConfig: buildConfigString, ); final File outputFlutterBootstrapJs = fileSystem.file(fileSystem.path.join( environment.outputDir.path, 'flutter_bootstrap.js' )); await outputFlutterBootstrapJs.writeAsString(bootstrapTemplate.content); await for (final FileSystemEntity file in webResources.list(recursive: true)) { if (file is File && file.basename == 'index.html') { final WebTemplate indexHtmlTemplate = WebTemplate(file.readAsStringSync()); final String relativePath = fileSystem.path.relative(file.path, from: webResources.path); for (final WebTemplateWarning warning in indexHtmlTemplate.getWarnings()) { _emitWebTemplateWarning(environment, relativePath, warning); } indexHtmlTemplate.applySubstitutions( baseHref: environment.defines[kBaseHref] ?? '/', serviceWorkerVersion: serviceWorkerVersion, flutterJsFile: flutterJsFile, buildConfig: buildConfigString, flutterBootstrapJs: bootstrapTemplate.content, ); final File outputIndexHtml = fileSystem.file(fileSystem.path.join( environment.outputDir.path, relativePath, )); await outputIndexHtml.create(recursive: true); await outputIndexHtml.writeAsString(indexHtmlTemplate.content); } } } @override List<Target> get dependencies => <Target>[]; @override List<Source> get inputs => const <Source>[ Source.pattern('{PROJECT_DIR}/web/*/index.html'), Source.pattern('{PROJECT_DIR}/web/flutter_bootstrap.js'), Source.hostArtifact(HostArtifact.flutterWebSdk), ]; @override String get name => 'web_templated_files'; @override List<Source> get outputs => const <Source>[ Source.pattern('{OUTPUT_DIR}/*/index.html'), Source.pattern('{OUTPUT_DIR}/flutter_bootstrap.js'), ]; } /// Static assets provided by the Flutter SDK that do not change, such as /// CanvasKit. /// /// These assets can be cached until a new version of the flutter web sdk is /// downloaded. class WebBuiltInAssets extends Target { const WebBuiltInAssets(this.fileSystem); final FileSystem fileSystem; @override String get name => 'web_static_assets'; @override List<Target> get dependencies => const <Target>[]; @override List<String> get depfiles => const <String>[]; @override List<Source> get inputs => const <Source>[ Source.hostArtifact(HostArtifact.flutterWebSdk), ]; Directory get _canvasKitDirectory => globals.fs.directory( fileSystem.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterWebSdk).path, 'canvaskit', ) ); List<File> get _canvasKitFiles => _canvasKitDirectory.listSync(recursive: true).whereType<File>().toList(); String _filePathRelativeToCanvasKitDirectory(File file) => fileSystem.path.relative(file.path, from: _canvasKitDirectory.path); @override List<Source> get outputs => <Source>[ const Source.pattern('{BUILD_DIR}/flutter.js'), for (final File file in _canvasKitFiles) Source.pattern('{BUILD_DIR}/canvaskit/${_filePathRelativeToCanvasKitDirectory(file)}'), ]; @override Future<void> build(Environment environment) async { for (final File file in _canvasKitFiles) { final String relativePath = _filePathRelativeToCanvasKitDirectory(file); final String targetPath = fileSystem.path.join(environment.outputDir.path, 'canvaskit', relativePath); file.copySync(targetPath); } // Write the flutter.js file final String flutterJsOut = fileSystem.path.join(environment.outputDir.path, 'flutter.js'); final File flutterJsFile = fileSystem.file(fileSystem.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', )); flutterJsFile.copySync(flutterJsOut); } } /// Generate a service worker for a web target. class WebServiceWorker extends Target { const WebServiceWorker(this.fileSystem, this.compileConfigs); final FileSystem fileSystem; final List<WebCompilerConfig> compileConfigs; @override String get name => 'web_service_worker'; @override List<Target> get dependencies => <Target>[ WebReleaseBundle(compileConfigs), WebBuiltInAssets(fileSystem), ]; @override List<String> get depfiles => const <String>[ 'service_worker.d', ]; @override List<Source> get inputs => const <Source>[]; @override List<Source> get outputs => const <Source>[]; @override Future<void> build(Environment environment) async { final List<File> contents = environment.outputDir .listSync(recursive: true) .whereType<File>() .where((File file) => !file.path.endsWith('flutter_service_worker.js') && !environment.fileSystem.path.basename(file.path).startsWith('.')) .toList(); final Map<String, String> urlToHash = <String, String>{}; for (final File file in contents) { // Do not force caching of source maps. if (file.path.endsWith('main.dart.js.map') || file.path.endsWith('.part.js.map')) { continue; } final String url = environment.fileSystem.path.toUri( environment.fileSystem.path.relative( file.path, from: environment.outputDir.path), ).toString(); final String hash = md5.convert(await file.readAsBytes()).toString(); urlToHash[url] = hash; // Add an additional entry for the base URL. if (url == 'index.html') { urlToHash['/'] = hash; } } final File serviceWorkerFile = environment.outputDir .childFile('flutter_service_worker.js'); final Depfile depfile = Depfile(contents, <File>[serviceWorkerFile]); final ServiceWorkerStrategy serviceWorkerStrategy = ServiceWorkerStrategy.fromCliName(environment.defines[kServiceWorkerStrategy]); final String fileGeneratorsPath = environment.artifacts.getArtifactPath(Artifact.flutterToolsFileGenerators); final String serviceWorker = generateServiceWorker( fileGeneratorsPath, urlToHash, <String>[ 'main.dart.js', if (compileConfigs.any((WebCompilerConfig config) => config is WasmCompilerConfig)) ...<String>[ 'main.dart.wasm', 'main.dart.mjs', ], 'index.html', 'flutter_bootstrap.js', if (urlToHash.containsKey('assets/AssetManifest.bin.json')) 'assets/AssetManifest.bin.json', if (urlToHash.containsKey('assets/FontManifest.json')) 'assets/FontManifest.json', ], serviceWorkerStrategy: serviceWorkerStrategy, ); serviceWorkerFile .writeAsStringSync(serviceWorker); environment.depFileService.writeToFile( depfile, environment.buildDir.childFile('service_worker.d'), ); } }
flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart", "repo_id": "flutter", "token_count": 8874 }
927
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:unified_analytics/unified_analytics.dart'; import 'package:vm_service/vm_service.dart'; import '../android/android_device.dart'; import '../base/common.dart'; import '../base/file_system.dart'; import '../base/io.dart'; import '../base/logger.dart'; import '../base/platform.dart'; import '../base/signals.dart'; import '../base/terminal.dart'; import '../build_info.dart'; import '../commands/daemon.dart'; import '../compile.dart'; import '../daemon.dart'; import '../device.dart'; import '../device_port_forwarder.dart'; import '../fuchsia/fuchsia_device.dart'; import '../ios/devices.dart'; import '../ios/simulators.dart'; import '../macos/macos_ipad_device.dart'; import '../mdns_discovery.dart'; import '../project.dart'; import '../protocol_discovery.dart'; import '../resident_runner.dart'; import '../run_cold.dart'; import '../run_hot.dart'; import '../runner/flutter_command.dart'; import '../runner/flutter_command_runner.dart'; import '../vmservice.dart'; /// A Flutter-command that attaches to applications that have been launched /// without `flutter run`. /// /// With an application already running, a HotRunner can be attached to it /// with: /// ``` /// $ flutter attach --debug-url http://127.0.0.1:12345/QqL7EFEDNG0=/ /// ``` /// /// If `--disable-service-auth-codes` was provided to the application at startup /// time, a HotRunner can be attached with just a port: /// ``` /// $ flutter attach --debug-port 12345 /// ``` /// /// Alternatively, the attach command can start listening and scan for new /// programs that become active: /// ``` /// $ flutter attach /// ``` /// As soon as a new VM Service is detected the command attaches to it and /// enables hot reloading. /// /// To attach to a flutter mod running on a fuchsia device, `--module` must /// also be provided. class AttachCommand extends FlutterCommand { AttachCommand({ bool verboseHelp = false, HotRunnerFactory? hotRunnerFactory, required Stdio stdio, required Logger logger, required Terminal terminal, required Signals signals, required Platform platform, required ProcessInfo processInfo, required FileSystem fileSystem, HotRunnerNativeAssetsBuilder? nativeAssetsBuilder, }) : _hotRunnerFactory = hotRunnerFactory ?? HotRunnerFactory(), _stdio = stdio, _logger = logger, _terminal = terminal, _signals = signals, _platform = platform, _processInfo = processInfo, _fileSystem = fileSystem, _nativeAssetsBuilder = nativeAssetsBuilder { addBuildModeFlags(verboseHelp: verboseHelp, defaultToRelease: false, excludeRelease: true); usesTargetOption(); usesPortOptions(verboseHelp: verboseHelp); usesIpv6Flag(verboseHelp: verboseHelp); usesFilesystemOptions(hide: !verboseHelp); usesFuchsiaOptions(hide: !verboseHelp); usesDartDefineOption(); usesDeviceUserOption(); addEnableExperimentation(hide: !verboseHelp); addNullSafetyModeOptions(hide: !verboseHelp); usesInitializeFromDillOption(hide: !verboseHelp); usesNativeAssetsOption(hide: !verboseHelp); argParser ..addOption( 'debug-port', hide: !verboseHelp, help: '(deprecated) Device port where the Dart VM Service is listening. Requires ' '"--disable-service-auth-codes" to also be provided to the Flutter ' 'application at launch, otherwise this command will fail to connect to ' 'the application. In general, "--debug-url" should be used instead.', )..addOption( 'debug-url', aliases: <String>[ 'debug-uri' ], // supported for historical reasons help: 'The URL at which the Dart VM Service is listening.', )..addOption( 'app-id', help: 'The package name (Android) or bundle identifier (iOS) for the app. ' 'This can be specified to avoid being prompted if multiple Dart VM Service ports ' 'are advertised.\n' 'If you have multiple devices or emulators running, you should include the ' 'device hostname as well, e.g. "com.example.myApp@my-iphone".\n' 'This parameter is case-insensitive.', )..addOption( 'pid-file', help: 'Specify a file to write the process ID to. ' 'You can send SIGUSR1 to trigger a hot reload ' 'and SIGUSR2 to trigger a hot restart. ' 'The file is created when the signal handlers ' 'are hooked and deleted when they are removed.', )..addFlag( 'report-ready', help: 'Print "ready" to the console after handling a keyboard command.\n' 'This is primarily useful for tests and other automation, but consider ' 'using "--machine" instead.', hide: !verboseHelp, )..addOption( 'project-root', hide: !verboseHelp, help: 'Normally used only in run target.', )..addFlag('machine', hide: !verboseHelp, negatable: false, help: 'Handle machine structured JSON command input and provide output ' 'and progress in machine-friendly format.', ); usesTrackWidgetCreation(verboseHelp: verboseHelp); addDdsOptions(verboseHelp: verboseHelp); addDevToolsOptions(verboseHelp: verboseHelp); addServeObservatoryOptions(verboseHelp: verboseHelp); usesDeviceTimeoutOption(); usesDeviceConnectionOption(); } final HotRunnerFactory _hotRunnerFactory; final Stdio _stdio; final Logger _logger; final Terminal _terminal; final Signals _signals; final Platform _platform; final ProcessInfo _processInfo; final FileSystem _fileSystem; final HotRunnerNativeAssetsBuilder? _nativeAssetsBuilder; @override final String name = 'attach'; @override final String description = r''' Attach to a running app. For attaching to Android or iOS devices, simply using `flutter attach` is usually sufficient. The tool will search for a running Flutter app or module, if available. Otherwise, the tool will wait for the next Flutter app or module to launch before attaching. For Fuchsia, the module name must be provided, e.g. `$flutter attach --module=mod_name`. This can be called either before or after the application is started. If the app or module is already running and the specific vmService port is known, it can be explicitly provided to attach via the command-line, e.g. `$ flutter attach --debug-port 12345`'''; @override final String category = FlutterCommandCategory.tools; @override bool get refreshWirelessDevices => true; int? get debugPort { if (argResults!['debug-port'] == null) { return null; } try { return int.parse(stringArg('debug-port')!); } on Exception catch (error) { throwToolExit('Invalid port for `--debug-port`: $error'); } } Uri? get debugUri { final String? debugUrl = stringArg('debug-url'); if (debugUrl == null) { return null; } final Uri? uri = Uri.tryParse(debugUrl); if (uri == null) { throwToolExit('Invalid `--debug-url`: $debugUrl'); } if (!uri.hasPort) { throwToolExit('Port not specified for `--debug-url`: $uri'); } return uri; } bool get serveObservatory => boolArg('serve-observatory'); String? get appId { return stringArg('app-id'); } String? get userIdentifier => stringArg(FlutterOptions.kDeviceUser); @override Future<void> validateCommand() async { await super.validateCommand(); final Device? targetDevice = await findTargetDevice(); if (targetDevice == null) { throwToolExit(null); } debugPort; // Allow --ipv6 for iOS devices even if --debug-port and --debug-url // are unknown. if (!_isIOSDevice(targetDevice) && debugPort == null && debugUri == null && argResults!.wasParsed(FlutterCommand.ipv6Flag)) { throwToolExit( 'When the --debug-port or --debug-url is unknown, this command determines ' 'the value of --ipv6 on its own.', ); } if (debugPort == null && debugUri == null && argResults!.wasParsed(FlutterCommand.vmServicePortOption)) { throwToolExit( 'When the --debug-port or --debug-url is unknown, this command does not use ' 'the value of --vm-service-port.', ); } if (debugPort != null && debugUri != null) { throwToolExit( 'Either --debug-port or --debug-url can be provided, not both.'); } if (userIdentifier != null) { final Device? device = await findTargetDevice(); if (device is! AndroidDevice) { throwToolExit('--${FlutterOptions.kDeviceUser} is only supported for Android'); } } } @override Future<FlutterCommandResult> runCommand() async { await _validateArguments(); final Device? device = await findTargetDevice(); if (device == null) { throwToolExit('Did not find any valid target devices.'); } await _attachToDevice(device); return FlutterCommandResult.success(); } Future<void> _attachToDevice(Device device) async { final FlutterProject flutterProject = FlutterProject.current(); final Daemon? daemon = boolArg('machine') ? Daemon( DaemonConnection( daemonStreams: DaemonStreams.fromStdio(_stdio, logger: _logger), logger: _logger, ), notifyingLogger: (_logger is NotifyingLogger) ? _logger : NotifyingLogger(verbose: _logger.isVerbose, parent: _logger), logToStdout: true, ) : null; Stream<Uri>? vmServiceUri; bool usesIpv6 = ipv6!; final String ipv6Loopback = InternetAddress.loopbackIPv6.address; final String ipv4Loopback = InternetAddress.loopbackIPv4.address; final String hostname = usesIpv6 ? ipv6Loopback : ipv4Loopback; final bool isWirelessIOSDevice = (device is IOSDevice) && device.isWirelesslyConnected; if ((debugPort == null && debugUri == null) || isWirelessIOSDevice) { if (device is FuchsiaDevice) { final String? module = stringArg('module'); if (module == null) { throwToolExit("'--module' is required for attaching to a Fuchsia device"); } usesIpv6 = device.ipv6; FuchsiaIsolateDiscoveryProtocol? isolateDiscoveryProtocol; try { isolateDiscoveryProtocol = device.getIsolateDiscoveryProtocol(module); vmServiceUri = Stream<Uri>.value(await isolateDiscoveryProtocol.uri).asBroadcastStream(); } on Exception { isolateDiscoveryProtocol?.dispose(); final List<ForwardedPort> ports = device.portForwarder.forwardedPorts.toList(); for (final ForwardedPort port in ports) { await device.portForwarder.unforward(port); } rethrow; } } else if (_isIOSDevice(device)) { // Protocol Discovery relies on logging. On iOS earlier than 13, logging is gathered using syslog. // syslog is not available for iOS 13+. For iOS 13+, Protocol Discovery gathers logs from the VMService. // Since we don't have access to the VMService yet, Protocol Discovery cannot be used for iOS 13+. // Also, wireless devices must be found using mDNS and cannot use Protocol Discovery. final bool compatibleWithProtocolDiscovery = (device is IOSDevice) && device.majorSdkVersion < IOSDeviceLogReader.minimumUniversalLoggingSdkVersion && !isWirelessIOSDevice; _logger.printStatus('Waiting for a connection from Flutter on ${device.name}...'); final Status discoveryStatus = _logger.startSpinner( timeout: const Duration(seconds: 30), slowWarningCallback: () { // If relying on mDNS to find Dart VM Service, remind the user to allow local network permissions. if (!compatibleWithProtocolDiscovery) { return 'The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...\n\n' 'Click "Allow" to the prompt asking if you would like to find and connect devices on your local network. ' 'If you selected "Don\'t Allow", you can turn it on in Settings > Your App Name > Local Network. ' "If you don't see your app in the Settings, uninstall the app and rerun to see the prompt again.\n"; } return 'The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...\n'; }, ); int? devicePort; if (debugPort != null) { devicePort = debugPort; } else if (debugUri != null) { devicePort = debugUri?.port; } else if (deviceVmservicePort != null) { devicePort = deviceVmservicePort; } final Future<Uri?> mDNSDiscoveryFuture = MDnsVmServiceDiscovery.instance!.getVMServiceUriForAttach( appId, device, usesIpv6: usesIpv6, useDeviceIPAsHost: isWirelessIOSDevice, deviceVmservicePort: devicePort, ); Future<Uri?>? protocolDiscoveryFuture; if (compatibleWithProtocolDiscovery) { final ProtocolDiscovery vmServiceDiscovery = ProtocolDiscovery.vmService( device.getLogReader(), portForwarder: device.portForwarder, ipv6: ipv6!, devicePort: devicePort, hostPort: hostVmservicePort, logger: _logger, ); protocolDiscoveryFuture = vmServiceDiscovery.uri; } final Uri? foundUrl; if (protocolDiscoveryFuture == null) { foundUrl = await mDNSDiscoveryFuture; } else { foundUrl = await Future.any( <Future<Uri?>>[mDNSDiscoveryFuture, protocolDiscoveryFuture] ); } discoveryStatus.stop(); vmServiceUri = foundUrl == null ? null : Stream<Uri>.value(foundUrl).asBroadcastStream(); } // If MDNS discovery fails or we're not on iOS, fallback to ProtocolDiscovery. if (vmServiceUri == null) { final ProtocolDiscovery vmServiceDiscovery = ProtocolDiscovery.vmService( // If it's an Android device, attaching relies on past log searching // to find the service protocol. await device.getLogReader(includePastLogs: device is AndroidDevice), portForwarder: device.portForwarder, ipv6: ipv6!, devicePort: deviceVmservicePort, hostPort: hostVmservicePort, logger: _logger, ); _logger.printStatus('Waiting for a connection from Flutter on ${device.name}...'); vmServiceUri = vmServiceDiscovery.uris; } } else { vmServiceUri = Stream<Uri> .fromFuture( buildVMServiceUri( device, debugUri?.host ?? hostname, debugPort ?? debugUri!.port, hostVmservicePort, debugUri?.path, ) ).asBroadcastStream(); } _terminal.usesTerminalUi = daemon == null; try { int? result; if (daemon != null) { final ResidentRunner runner = await createResidentRunner( vmServiceUris: vmServiceUri, device: device, flutterProject: flutterProject, usesIpv6: usesIpv6, nativeAssetsBuilder: _nativeAssetsBuilder, ); late AppInstance app; try { app = await daemon.appDomain.launch( runner, ({Completer<DebugConnectionInfo>? connectionInfoCompleter, Completer<void>? appStartedCompleter}) { return runner.attach( connectionInfoCompleter: connectionInfoCompleter, appStartedCompleter: appStartedCompleter, allowExistingDdsInstance: true, enableDevTools: boolArg(FlutterCommand.kEnableDevTools), ); }, device, null, true, _fileSystem.currentDirectory, LaunchMode.attach, _logger as AppRunLogger, ); } on Exception catch (error) { throwToolExit(error.toString()); } result = await app.runner!.waitForAppToFinish(); return; } while (true) { final ResidentRunner runner = await createResidentRunner( vmServiceUris: vmServiceUri, device: device, flutterProject: flutterProject, usesIpv6: usesIpv6, nativeAssetsBuilder: _nativeAssetsBuilder, ); final Completer<void> onAppStart = Completer<void>.sync(); TerminalHandler? terminalHandler; unawaited(onAppStart.future.whenComplete(() { terminalHandler = TerminalHandler( runner, logger: _logger, terminal: _terminal, signals: _signals, processInfo: _processInfo, reportReady: boolArg('report-ready'), pidFile: stringArg('pid-file'), ) ..registerSignalHandlers() ..setupTerminal(); })); result = await runner.attach( appStartedCompleter: onAppStart, allowExistingDdsInstance: true, enableDevTools: boolArg(FlutterCommand.kEnableDevTools), ); if (result != 0) { throwToolExit(null, exitCode: result); } terminalHandler?.stop(); assert(result != null); if (runner.exited || !runner.isWaitingForVmService) { break; } _logger.printStatus('Waiting for a new connection from Flutter on ${device.name}...'); } } on RPCError catch (err) { if (err.code == RPCErrorCodes.kServiceDisappeared) { throwToolExit('Lost connection to device.'); } rethrow; } finally { final List<ForwardedPort> ports = device.portForwarder!.forwardedPorts.toList(); for (final ForwardedPort port in ports) { await device.portForwarder!.unforward(port); } // However we exited from the runner, ensure the terminal has line mode // and echo mode enabled before we return the user to the shell. try { _terminal.singleCharMode = false; } on StdinException { // Do nothing, if the STDIN handle is no longer available, there is nothing actionable for us to do at this point } } } Future<ResidentRunner> createResidentRunner({ required Stream<Uri> vmServiceUris, required Device device, required FlutterProject flutterProject, required bool usesIpv6, required HotRunnerNativeAssetsBuilder? nativeAssetsBuilder, }) async { final BuildInfo buildInfo = await getBuildInfo(); final FlutterDevice flutterDevice = await FlutterDevice.create( device, target: targetFile, targetModel: TargetModel(stringArg('target-model')!), buildInfo: buildInfo, userIdentifier: userIdentifier, platform: _platform, ); flutterDevice.vmServiceUris = vmServiceUris; final List<FlutterDevice> flutterDevices = <FlutterDevice>[flutterDevice]; final DebuggingOptions debuggingOptions = DebuggingOptions.enabled( buildInfo, enableDds: enableDds, ddsPort: ddsPort, devToolsServerAddress: devToolsServerAddress, serveObservatory: serveObservatory, usingCISystem: usingCISystem, debugLogsDirectoryPath: debugLogsDirectoryPath, ); return buildInfo.isDebug ? _hotRunnerFactory.build( flutterDevices, target: targetFile, debuggingOptions: debuggingOptions, packagesFilePath: globalResults![FlutterGlobalOptions.kPackagesOption] as String?, projectRootPath: stringArg('project-root'), dillOutputPath: stringArg('output-dill'), ipv6: usesIpv6, flutterProject: flutterProject, nativeAssetsYamlFile: stringArg(FlutterOptions.kNativeAssetsYamlFile), nativeAssetsBuilder: _nativeAssetsBuilder, analytics: analytics, ) : ColdRunner( flutterDevices, target: targetFile, debuggingOptions: debuggingOptions, ipv6: usesIpv6, ); } Future<void> _validateArguments() async { } bool _isIOSDevice(Device device) { return (device is IOSDevice) || (device is IOSSimulator) || (device is MacOSDesignedForIPadDevice); } } class HotRunnerFactory { HotRunner build( List<FlutterDevice> devices, { required String target, required DebuggingOptions debuggingOptions, bool benchmarkMode = false, File? applicationBinary, bool hostIsIde = false, String? projectRootPath, String? packagesFilePath, String? dillOutputPath, bool stayResident = true, bool ipv6 = false, FlutterProject? flutterProject, String? nativeAssetsYamlFile, required HotRunnerNativeAssetsBuilder? nativeAssetsBuilder, required Analytics analytics, }) => HotRunner( devices, target: target, debuggingOptions: debuggingOptions, benchmarkMode: benchmarkMode, applicationBinary: applicationBinary, hostIsIde: hostIsIde, projectRootPath: projectRootPath, dillOutputPath: dillOutputPath, stayResident: stayResident, ipv6: ipv6, nativeAssetsYamlFile: nativeAssetsYamlFile, nativeAssetsBuilder: nativeAssetsBuilder, analytics: analytics, ); }
flutter/packages/flutter_tools/lib/src/commands/attach.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/commands/attach.dart", "repo_id": "flutter", "token_count": 8559 }
928
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../../src/android/android_sdk.dart'; import '../../src/android/android_studio.dart'; import '../android/java.dart'; import '../base/common.dart'; import '../convert.dart'; import '../features.dart'; import '../globals.dart' as globals; import '../reporting/reporting.dart'; import '../runner/flutter_command.dart'; import '../runner/flutter_command_runner.dart'; class ConfigCommand extends FlutterCommand { ConfigCommand({ bool verboseHelp = false }) { argParser.addFlag( 'list', help: 'List all settings and their current values.', negatable: false, ); argParser.addFlag('analytics', hide: !verboseHelp, help: 'Enable or disable reporting anonymously tool usage statistics and crash reports.\n' '(An alias for "--${FlutterGlobalOptions.kEnableAnalyticsFlag}" ' 'and "--${FlutterGlobalOptions.kDisableAnalyticsFlag}" top level flags.)'); argParser.addFlag('clear-ios-signing-cert', negatable: false, help: 'Clear the saved development certificate choice used to sign apps for iOS device deployment.'); argParser.addOption('android-sdk', help: 'The Android SDK directory.'); argParser.addOption('android-studio-dir', help: 'The Android Studio installation directory. If unset, flutter will search for valid installations at well-known locations.'); argParser.addOption('jdk-dir', help: 'The Java Development Kit (JDK) installation directory. ' 'If unset, flutter will search for one in the following order:\n' ' 1) the JDK bundled with the latest installation of Android Studio,\n' ' 2) the JDK found at the directory found in the JAVA_HOME environment variable, and\n' " 3) the directory containing the java binary found in the user's path."); argParser.addOption('build-dir', help: 'The relative path to override a projects build directory.', valueHelp: 'out/'); argParser.addFlag('machine', negatable: false, hide: !verboseHelp, help: 'Print config values as json.'); for (final Feature feature in allFeatures) { final String? configSetting = feature.configSetting; if (configSetting == null) { continue; } argParser.addFlag( configSetting, help: feature.generateHelpMessage(), ); } argParser.addFlag( 'clear-features', help: 'Remove all configured features and restore them to the default values.', negatable: false, ); } @override final String name = 'config'; @override final String description = 'Configure Flutter settings.\n\n' 'To remove a setting, configure it to an empty string.\n\n' 'The Flutter tool anonymously reports feature usage statistics and basic crash reports to help improve ' "Flutter tools over time. See Google's privacy policy: https://www.google.com/intl/en/policies/privacy/"; @override final String category = FlutterCommandCategory.sdk; @override final List<String> aliases = <String>['configure']; @override bool get shouldUpdateCache => false; @override String get usageFooter => '\n$analyticsUsage'; /// Return null to disable analytics recording of the `config` command. @override Future<String?> get usagePath async => null; @override Future<FlutterCommandResult> runCommand() async { final List<String> rest = argResults!.rest; if (rest.isNotEmpty) { throwToolExit(exitCode: 2, 'error: flutter config: Too many arguments.\n' '\n' 'If a value has a space in it, enclose in quotes on the command line\n' 'to make a single argument. For example:\n' ' flutter config --android-studio-dir "/opt/Android Studio"'); } if (boolArg('list')) { globals.printStatus(settingsText); return FlutterCommandResult.success(); } if (boolArg('machine')) { await handleMachine(); return FlutterCommandResult.success(); } if (boolArg('clear-features')) { for (final Feature feature in allFeatures) { final String? configSetting = feature.configSetting; if (configSetting != null) { globals.config.removeValue(configSetting); } } globals.printStatus(requireReloadTipText); return FlutterCommandResult.success(); } if (argResults!.wasParsed('analytics')) { final bool value = boolArg('analytics'); // The tool sends the analytics event *before* toggling the flag // intentionally to be sure that opt-out events are sent correctly. AnalyticsConfigEvent(enabled: value).send(); if (!value) { // Normally, the tool waits for the analytics to all send before the // tool exits, but only when analytics are enabled. When reporting that // analytics have been disable, the wait must be done here instead. await globals.flutterUsage.ensureAnalyticsSent(); } globals.flutterUsage.enabled = value; globals.printStatus('Analytics reporting ${value ? 'enabled' : 'disabled'}.'); // TODO(eliasyishak): Set the telemetry for the unified_analytics // package as well, the above will be removed once we have // fully transitioned to using the new package await globals.analytics.setTelemetry(value); } if (argResults!.wasParsed('android-sdk')) { _updateConfig('android-sdk', stringArg('android-sdk')!); } if (argResults!.wasParsed('android-studio-dir')) { _updateConfig('android-studio-dir', stringArg('android-studio-dir')!); } if (argResults!.wasParsed('jdk-dir')) { _updateConfig('jdk-dir', stringArg('jdk-dir')!); } if (argResults!.wasParsed('clear-ios-signing-cert')) { _updateConfig('ios-signing-cert', ''); } if (argResults!.wasParsed('build-dir')) { final String buildDir = stringArg('build-dir')!; if (globals.fs.path.isAbsolute(buildDir)) { throwToolExit('build-dir should be a relative path'); } _updateConfig('build-dir', buildDir); } for (final Feature feature in allFeatures) { final String? configSetting = feature.configSetting; if (configSetting == null) { continue; } if (argResults!.wasParsed(configSetting)) { final bool keyValue = boolArg(configSetting); globals.config.setValue(configSetting, keyValue); globals.printStatus('Setting "$configSetting" value to "$keyValue".'); } } if (argResults == null || argResults!.arguments.isEmpty) { globals.printStatus(usage); } else { globals.printStatus('\n$requireReloadTipText'); } return FlutterCommandResult.success(); } Future<void> handleMachine() async { // Get all the current values. final Map<String, Object?> results = <String, Object?>{}; for (final String key in globals.config.keys) { results[key] = globals.config.getValue(key); } // Ensure we send any calculated ones, if overrides don't exist. final AndroidStudio? androidStudio = globals.androidStudio; if (results['android-studio-dir'] == null && androidStudio != null) { results['android-studio-dir'] = androidStudio.directory; } final AndroidSdk? androidSdk = globals.androidSdk; if (results['android-sdk'] == null && androidSdk != null) { results['android-sdk'] = androidSdk.directory.path; } final Java? java = globals.java; if (results['jdk-dir'] == null && java != null) { results['jdk-dir'] = java.javaHome; } globals.printStatus(const JsonEncoder.withIndent(' ').convert(results)); } void _updateConfig(String keyName, String keyValue) { if (keyValue.isEmpty) { globals.config.removeValue(keyName); globals.printStatus('Removing "$keyName" value.'); } else { globals.config.setValue(keyName, keyValue); globals.printStatus('Setting "$keyName" value to "$keyValue".'); } } /// List all config settings. for feature flags, include whether they are available. String get settingsText { final Map<String, Feature> featuresByName = <String, Feature>{}; final String channel = globals.flutterVersion.channel; for (final Feature feature in allFeatures) { final String? configSetting = feature.configSetting; if (configSetting != null) { featuresByName[configSetting] = feature; } } final Set<String> keys = <String>{ ...allFeatures.map((Feature e) => e.configSetting).whereType<String>(), ...globals.config.keys, }; final Iterable<String> settings = keys.map<String>((String key) { Object? value = globals.config.getValue(key); value ??= '(Not set)'; final StringBuffer buffer = StringBuffer(' $key: $value'); if (featuresByName.containsKey(key)) { final FeatureChannelSetting setting = featuresByName[key]!.getSettingForChannel(channel); if (!setting.available) { buffer.write(' (Unavailable)'); } } return buffer.toString(); }); final StringBuffer buffer = StringBuffer(); buffer.writeln('All Settings:'); if (settings.isEmpty) { buffer.writeln(' No configs have been configured.'); } else { buffer.writeln(settings.join('\n')); } return buffer.toString(); } /// List the status of the analytics reporting. String get analyticsUsage { final bool analyticsEnabled = globals.flutterUsage.enabled && !globals.flutterUsage.suppressAnalytics; return 'Analytics reporting is currently ${analyticsEnabled ? 'enabled' : 'disabled'}.'; } /// Raising the reload tip for setting changes. final String requireReloadTipText = 'You may need to restart any open editors for them to read new settings.'; }
flutter/packages/flutter_tools/lib/src/commands/config.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/commands/config.dart", "repo_id": "flutter", "token_count": 3522 }
929
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import '../application_package.dart'; import '../base/common.dart'; import '../base/io.dart'; import '../device.dart'; import '../globals.dart' as globals; import '../runner/flutter_command.dart'; class LogsCommand extends FlutterCommand { LogsCommand({ required this.sigint, required this.sigterm, }) { argParser.addFlag('clear', negatable: false, abbr: 'c', help: 'Clear log history before reading from logs.', ); usesDeviceTimeoutOption(); usesDeviceConnectionOption(); } @override final String name = 'logs'; @override final String description = 'Show log output for running Flutter apps.'; @override final String category = FlutterCommandCategory.tools; @override bool get refreshWirelessDevices => true; @override Future<Set<DevelopmentArtifact>> get requiredArtifacts async => const <DevelopmentArtifact>{}; Device? device; final ProcessSignal sigint; final ProcessSignal sigterm; @override Future<FlutterCommandResult> verifyThenRunCommand(String? commandPath) async { device = await findTargetDevice(includeDevicesUnsupportedByProject: true); if (device == null) { throwToolExit(null); } return super.verifyThenRunCommand(commandPath); } @override Future<FlutterCommandResult> runCommand() async { final Device cachedDevice = device!; if (boolArg('clear')) { cachedDevice.clearLogs(); } final ApplicationPackage? app = await applicationPackages?.getPackageForPlatform( await cachedDevice.targetPlatform, ); final DeviceLogReader logReader = await cachedDevice.getLogReader(app: app); globals.printStatus('Showing $logReader logs:'); final Completer<int> exitCompleter = Completer<int>(); // First check if we already completed by another branch before completing // with [exitCode]. void maybeComplete([int exitCode = 0]) { if (exitCompleter.isCompleted) { return; } exitCompleter.complete(exitCode); } // Start reading. final StreamSubscription<String> subscription = logReader.logLines.listen( (String message) => globals.printStatus(message, wrap: false), onDone: () => maybeComplete(), onError: (dynamic error) => maybeComplete(error is int ? error : 1), ); // When terminating, close down the log reader. sigint.watch().listen((ProcessSignal signal) { subscription.cancel(); maybeComplete(); globals.printStatus(''); }); sigterm.watch().listen((ProcessSignal signal) { subscription.cancel(); maybeComplete(); }); // Wait for the log reader to be finished. final int result = await exitCompleter.future; await subscription.cancel(); if (result != 0) { throwToolExit('Error listening to $logReader logs.'); } return FlutterCommandResult.success(); } }
flutter/packages/flutter_tools/lib/src/commands/logs.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/commands/logs.dart", "repo_id": "flutter", "token_count": 1030 }
930
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:meta/meta.dart'; import '../base/platform.dart'; import '../build_info.dart'; /// Quiver has this, but unfortunately we can't depend on it bc flutter_tools /// uses non-nullsafe quiver by default (because of dwds). bool _listsEqual(List<dynamic>? a, List<dynamic>? b) { if (a == b) { return true; } if (a == null || b == null) { return false; } if (a.length != b.length) { return false; } return a.asMap().entries.every((MapEntry<int, dynamic> e) => e.value == b[e.key]); } /// The normal [RegExp.==] operator is inherited from [Object], so only /// returns true when the regexes are the same instance. /// /// This function instead _should_ return true when the regexes are /// functionally the same, i.e. when they have the same matches & captures for /// any given input. At least that's the goal, in reality this has lots of false /// negatives (for example when the flags differ). Still better than [RegExp.==]. bool _regexesEqual(RegExp? a, RegExp? b) { if (a == b) { return true; } if (a == null || b == null) { return false; } return a.pattern == b.pattern && a.isMultiLine == b.isMultiLine && a.isCaseSensitive == b.isCaseSensitive && a.isUnicode == b.isUnicode && a.isDotAll == b.isDotAll; } /// Something went wrong while trying to load the custom devices config from the /// JSON representation. Maybe some value is missing, maybe something has the /// wrong type, etc. @immutable class CustomDeviceRevivalException implements Exception { const CustomDeviceRevivalException(this.message); const CustomDeviceRevivalException.fromDescriptions( String fieldDescription, String expectedValueDescription ) : message = 'Expected $fieldDescription to be $expectedValueDescription.'; final String message; @override String toString() { return message; } @override bool operator ==(Object other) { return (other is CustomDeviceRevivalException) && (other.message == message); } @override int get hashCode => message.hashCode; } /// A single configured custom device. /// /// In the custom devices config file on disk, there may be multiple custom /// devices configured. @immutable class CustomDeviceConfig { const CustomDeviceConfig({ required this.id, required this.label, required this.sdkNameAndVersion, this.platform, required this.enabled, required this.pingCommand, this.pingSuccessRegex, required this.postBuildCommand, required this.installCommand, required this.uninstallCommand, required this.runDebugCommand, this.forwardPortCommand, this.forwardPortSuccessRegex, this.screenshotCommand }) : assert(forwardPortCommand == null || forwardPortSuccessRegex != null), assert( platform == null || platform == TargetPlatform.linux_x64 || platform == TargetPlatform.linux_arm64 ); /// Create a CustomDeviceConfig from some JSON value. /// If anything fails internally (some value doesn't have the right type, /// some value is missing, etc) a [CustomDeviceRevivalException] with the description /// of the error is thrown. (No exceptions/errors other than JsonRevivalException /// should ever be thrown by this factory.) factory CustomDeviceConfig.fromJson(dynamic json) { final Map<String, dynamic> typedMap = _castJsonObject( json, 'device configuration', 'a JSON object' ); final List<String>? forwardPortCommand = _castStringListOrNull( typedMap[_kForwardPortCommand], _kForwardPortCommand, 'null or array of strings with at least one element', minLength: 1 ); final RegExp? forwardPortSuccessRegex = _convertToRegexOrNull( typedMap[_kForwardPortSuccessRegex], _kForwardPortSuccessRegex, 'null or string-ified regex' ); final String? archString = _castStringOrNull( typedMap[_kPlatform], _kPlatform, 'null or one of linux-arm64, linux-x64' ); late TargetPlatform? platform; try { platform = archString == null ? null : getTargetPlatformForName(archString); } on UnsupportedError { throw const CustomDeviceRevivalException.fromDescriptions( _kPlatform, 'null or one of linux-arm64, linux-x64' ); } if (platform != null && platform != TargetPlatform.linux_arm64 && platform != TargetPlatform.linux_x64 ) { throw const CustomDeviceRevivalException.fromDescriptions( _kPlatform, 'null or one of linux-arm64, linux-x64' ); } if (forwardPortCommand != null && forwardPortSuccessRegex == null) { throw const CustomDeviceRevivalException('When forwardPort is given, forwardPortSuccessRegex must be specified too.'); } return CustomDeviceConfig( id: _castString(typedMap[_kId], _kId, 'a string'), label: _castString(typedMap[_kLabel], _kLabel, 'a string'), sdkNameAndVersion: _castString(typedMap[_kSdkNameAndVersion], _kSdkNameAndVersion, 'a string'), platform: platform, enabled: _castBool(typedMap[_kEnabled], _kEnabled, 'a boolean'), pingCommand: _castStringList( typedMap[_kPingCommand], _kPingCommand, 'array of strings with at least one element', minLength: 1 ), pingSuccessRegex: _convertToRegexOrNull(typedMap[_kPingSuccessRegex], _kPingSuccessRegex, 'null or string-ified regex'), postBuildCommand: _castStringListOrNull( typedMap[_kPostBuildCommand], _kPostBuildCommand, 'null or array of strings with at least one element', minLength: 1, ), installCommand: _castStringList( typedMap[_kInstallCommand], _kInstallCommand, 'array of strings with at least one element', minLength: 1 ), uninstallCommand: _castStringList( typedMap[_kUninstallCommand], _kUninstallCommand, 'array of strings with at least one element', minLength: 1 ), runDebugCommand: _castStringList( typedMap[_kRunDebugCommand], _kRunDebugCommand, 'array of strings with at least one element', minLength: 1 ), forwardPortCommand: forwardPortCommand, forwardPortSuccessRegex: forwardPortSuccessRegex, screenshotCommand: _castStringListOrNull( typedMap[_kScreenshotCommand], _kScreenshotCommand, 'array of strings with at least one element', minLength: 1 ) ); } static const String _kId = 'id'; static const String _kLabel = 'label'; static const String _kSdkNameAndVersion = 'sdkNameAndVersion'; static const String _kPlatform = 'platform'; static const String _kEnabled = 'enabled'; static const String _kPingCommand = 'ping'; static const String _kPingSuccessRegex = 'pingSuccessRegex'; static const String _kPostBuildCommand = 'postBuild'; static const String _kInstallCommand = 'install'; static const String _kUninstallCommand = 'uninstall'; static const String _kRunDebugCommand = 'runDebug'; static const String _kForwardPortCommand = 'forwardPort'; static const String _kForwardPortSuccessRegex = 'forwardPortSuccessRegex'; static const String _kScreenshotCommand = 'screenshot'; /// An example device config used for creating the default config file. /// Uses windows-specific ping and pingSuccessRegex. For the linux and macOs /// example config, see [exampleUnix]. static final CustomDeviceConfig exampleWindows = CustomDeviceConfig( id: 'pi', label: 'Raspberry Pi', sdkNameAndVersion: 'Raspberry Pi 4 Model B+', platform: TargetPlatform.linux_arm64, enabled: false, pingCommand: const <String>[ 'ping', '-w', '500', '-n', '1', 'raspberrypi', ], pingSuccessRegex: RegExp(r'[<=]\d+ms'), postBuildCommand: null, installCommand: const <String>[ 'scp', '-r', '-o', 'BatchMode=yes', r'${localPath}', r'pi@raspberrypi:/tmp/${appName}', ], uninstallCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'pi@raspberrypi', r'rm -rf "/tmp/${appName}"', ], runDebugCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'pi@raspberrypi', r'flutter-pi "/tmp/${appName}"', ], forwardPortCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', '-o', 'ExitOnForwardFailure=yes', '-L', r'127.0.0.1:${hostPort}:127.0.0.1:${devicePort}', 'pi@raspberrypi', "echo 'Port forwarding success'; read", ], forwardPortSuccessRegex: RegExp('Port forwarding success'), screenshotCommand: const <String>[ 'ssh', '-o', 'BatchMode=yes', 'pi@raspberrypi', r"fbgrab /tmp/screenshot.png && cat /tmp/screenshot.png | base64 | tr -d ' \n\t'", ], ); /// An example device config used for creating the default config file. /// Uses ping and pingSuccessRegex values that only work on linux or macOs. /// For the Windows example config, see [exampleWindows]. static final CustomDeviceConfig exampleUnix = exampleWindows.copyWith( pingCommand: const <String>[ 'ping', '-w', '1', '-c', '1', 'raspberrypi', ], explicitPingSuccessRegex: true ); /// Returns an example custom device config that works on the given host platform. /// /// This is not the platform of the target device, it's the platform of the /// development machine. Examples for different platforms may be different /// because for example the ping command is different on Windows or Linux/macOS. static CustomDeviceConfig getExampleForPlatform(Platform platform) { if (platform.isWindows) { return exampleWindows; } if (platform.isLinux || platform.isMacOS) { return exampleUnix; } throw UnsupportedError('Unsupported operating system'); } final String id; final String label; final String sdkNameAndVersion; final TargetPlatform? platform; final bool enabled; final List<String> pingCommand; final RegExp? pingSuccessRegex; final List<String>? postBuildCommand; final List<String> installCommand; final List<String> uninstallCommand; final List<String> runDebugCommand; final List<String>? forwardPortCommand; final RegExp? forwardPortSuccessRegex; final List<String>? screenshotCommand; /// Returns true when this custom device config uses port forwarding, /// which is the case when [forwardPortCommand] is not null. bool get usesPortForwarding => forwardPortCommand != null; /// Returns true when this custom device config supports screenshotting, /// which is the case when the [screenshotCommand] is not null. bool get supportsScreenshotting => screenshotCommand != null; /// Invokes and returns the result of [closure]. /// /// If anything at all is thrown when executing the closure, a /// [CustomDeviceRevivalException] is thrown with the given [fieldDescription] and /// [expectedValueDescription]. static T _maybeRethrowAsRevivalException<T>(T Function() closure, String fieldDescription, String expectedValueDescription) { try { return closure(); } on Object { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } } /// Tries to make a string-keyed, non-null map from [value]. /// /// If the value is null or not a valid string-keyed map, a [CustomDeviceRevivalException] /// with the given [fieldDescription] and [expectedValueDescription] is thrown. static Map<String, dynamic> _castJsonObject(dynamic value, String fieldDescription, String expectedValueDescription) { if (value == null) { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } return _maybeRethrowAsRevivalException( () => Map<String, dynamic>.from(value as Map<dynamic, dynamic>), fieldDescription, expectedValueDescription, ); } /// Tries to cast [value] to a bool. /// /// If the value is null or not a bool, a [CustomDeviceRevivalException] with the given /// [fieldDescription] and [expectedValueDescription] is thrown. static bool _castBool(dynamic value, String fieldDescription, String expectedValueDescription) { if (value == null) { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } return _maybeRethrowAsRevivalException( () => value as bool, fieldDescription, expectedValueDescription, ); } /// Tries to cast [value] to a String. /// /// If the value is null or not a String, a [CustomDeviceRevivalException] with the given /// [fieldDescription] and [expectedValueDescription] is thrown. static String _castString(dynamic value, String fieldDescription, String expectedValueDescription) { if (value == null) { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } return _maybeRethrowAsRevivalException( () => value as String, fieldDescription, expectedValueDescription, ); } /// Tries to cast [value] to a nullable String. /// /// If the value not null and not a String, a [CustomDeviceRevivalException] with the given /// [fieldDescription] and [expectedValueDescription] is thrown. static String? _castStringOrNull(dynamic value, String fieldDescription, String expectedValueDescription) { if (value == null) { return null; } return _castString(value, fieldDescription, expectedValueDescription); } /// Tries to make a list of strings from [value]. /// /// If the value is null or not a list containing only string values, /// a [CustomDeviceRevivalException] with the given [fieldDescription] and /// [expectedValueDescription] is thrown. static List<String> _castStringList( dynamic value, String fieldDescription, String expectedValueDescription, { int minLength = 0, }) { if (value == null) { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } final List<String> list = _maybeRethrowAsRevivalException( () => List<String>.from(value as Iterable<dynamic>), fieldDescription, expectedValueDescription, ); if (list.length < minLength) { throw CustomDeviceRevivalException.fromDescriptions(fieldDescription, expectedValueDescription); } return list; } /// Tries to make a list of strings from [value], or returns null if [value] /// is null. /// /// If the value is not null and not a list containing only string values, /// a [CustomDeviceRevivalException] with the given [fieldDescription] and /// [expectedValueDescription] is thrown. static List<String>? _castStringListOrNull( dynamic value, String fieldDescription, String expectedValueDescription, { int minLength = 0, }) { if (value == null) { return null; } return _castStringList(value, fieldDescription, expectedValueDescription, minLength: minLength); } /// Tries to construct a RegExp from [value], or returns null if [value] /// is null. /// /// If the value is not null and not a valid string-ified regex, /// a [CustomDeviceRevivalException] with the given [fieldDescription] and /// [expectedValueDescription] is thrown. static RegExp? _convertToRegexOrNull(dynamic value, String fieldDescription, String expectedValueDescription) { if (value == null) { return null; } return _maybeRethrowAsRevivalException( () => RegExp(value as String), fieldDescription, expectedValueDescription, ); } Object toJson() { return <String, Object?>{ _kId: id, _kLabel: label, _kSdkNameAndVersion: sdkNameAndVersion, _kPlatform: platform == null ? null : getNameForTargetPlatform(platform!), _kEnabled: enabled, _kPingCommand: pingCommand, _kPingSuccessRegex: pingSuccessRegex?.pattern, _kPostBuildCommand: (postBuildCommand?.length ?? 0) > 0 ? postBuildCommand : null, _kInstallCommand: installCommand, _kUninstallCommand: uninstallCommand, _kRunDebugCommand: runDebugCommand, _kForwardPortCommand: forwardPortCommand, _kForwardPortSuccessRegex: forwardPortSuccessRegex?.pattern, _kScreenshotCommand: screenshotCommand, }; } CustomDeviceConfig copyWith({ String? id, String? label, String? sdkNameAndVersion, bool explicitPlatform = false, TargetPlatform? platform, bool? enabled, List<String>? pingCommand, bool explicitPingSuccessRegex = false, RegExp? pingSuccessRegex, bool explicitPostBuildCommand = false, List<String>? postBuildCommand, List<String>? installCommand, List<String>? uninstallCommand, List<String>? runDebugCommand, bool explicitForwardPortCommand = false, List<String>? forwardPortCommand, bool explicitForwardPortSuccessRegex = false, RegExp? forwardPortSuccessRegex, bool explicitScreenshotCommand = false, List<String>? screenshotCommand }) { return CustomDeviceConfig( id: id ?? this.id, label: label ?? this.label, sdkNameAndVersion: sdkNameAndVersion ?? this.sdkNameAndVersion, platform: explicitPlatform ? platform : (platform ?? this.platform), enabled: enabled ?? this.enabled, pingCommand: pingCommand ?? this.pingCommand, pingSuccessRegex: explicitPingSuccessRegex ? pingSuccessRegex : (pingSuccessRegex ?? this.pingSuccessRegex), postBuildCommand: explicitPostBuildCommand ? postBuildCommand : (postBuildCommand ?? this.postBuildCommand), installCommand: installCommand ?? this.installCommand, uninstallCommand: uninstallCommand ?? this.uninstallCommand, runDebugCommand: runDebugCommand ?? this.runDebugCommand, forwardPortCommand: explicitForwardPortCommand ? forwardPortCommand : (forwardPortCommand ?? this.forwardPortCommand), forwardPortSuccessRegex: explicitForwardPortSuccessRegex ? forwardPortSuccessRegex : (forwardPortSuccessRegex ?? this.forwardPortSuccessRegex), screenshotCommand: explicitScreenshotCommand ? screenshotCommand : (screenshotCommand ?? this.screenshotCommand), ); } @override bool operator ==(Object other) { return other is CustomDeviceConfig && other.id == id && other.label == label && other.sdkNameAndVersion == sdkNameAndVersion && other.platform == platform && other.enabled == enabled && _listsEqual(other.pingCommand, pingCommand) && _regexesEqual(other.pingSuccessRegex, pingSuccessRegex) && _listsEqual(other.postBuildCommand, postBuildCommand) && _listsEqual(other.installCommand, installCommand) && _listsEqual(other.uninstallCommand, uninstallCommand) && _listsEqual(other.runDebugCommand, runDebugCommand) && _listsEqual(other.forwardPortCommand, forwardPortCommand) && _regexesEqual(other.forwardPortSuccessRegex, forwardPortSuccessRegex) && _listsEqual(other.screenshotCommand, screenshotCommand); } @override int get hashCode { return id.hashCode ^ label.hashCode ^ sdkNameAndVersion.hashCode ^ platform.hashCode ^ enabled.hashCode ^ pingCommand.hashCode ^ (pingSuccessRegex?.pattern).hashCode ^ postBuildCommand.hashCode ^ installCommand.hashCode ^ uninstallCommand.hashCode ^ runDebugCommand.hashCode ^ forwardPortCommand.hashCode ^ (forwardPortSuccessRegex?.pattern).hashCode ^ screenshotCommand.hashCode; } @override String toString() { return 'CustomDeviceConfig(' 'id: $id, ' 'label: $label, ' 'sdkNameAndVersion: $sdkNameAndVersion, ' 'platform: $platform, ' 'enabled: $enabled, ' 'pingCommand: $pingCommand, ' 'pingSuccessRegex: $pingSuccessRegex, ' 'postBuildCommand: $postBuildCommand, ' 'installCommand: $installCommand, ' 'uninstallCommand: $uninstallCommand, ' 'runDebugCommand: $runDebugCommand, ' 'forwardPortCommand: $forwardPortCommand, ' 'forwardPortSuccessRegex: $forwardPortSuccessRegex, ' 'screenshotCommand: $screenshotCommand)'; } }
flutter/packages/flutter_tools/lib/src/custom_devices/custom_device_config.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/custom_devices/custom_device_config.dart", "repo_id": "flutter", "token_count": 6887 }
931
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../base/io.dart'; /// A mixin for tracking additional PIDs that can be shut down at the end of a debug session. /// /// Adapted from package:dds/src/dap/adapters/mixins.dart to use Flutter's /// dart:io wrappers. mixin PidTracker { /// Process IDs to terminate during shutdown. /// /// This may be populated with pids from the VM Service to ensure we clean up /// properly where signals may not be passed through the shell to the /// underlying VM process. /// https://github.com/Dart-Code/Dart-Code/issues/907 final Set<int> pidsToTerminate = <int>{}; /// Terminates all processes with the PIDs registered in [pidsToTerminate]. void terminatePids(ProcessSignal signal) { pidsToTerminate.forEach(signal.send); } }
flutter/packages/flutter_tools/lib/src/debug_adapters/mixins.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/debug_adapters/mixins.dart", "repo_id": "flutter", "token_count": 272 }
932
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'base/config.dart'; import 'base/platform.dart'; import 'features.dart'; import 'version.dart'; class FlutterFeatureFlags implements FeatureFlags { FlutterFeatureFlags({ required FlutterVersion flutterVersion, required Config config, required Platform platform, }) : _flutterVersion = flutterVersion, _config = config, _platform = platform; final FlutterVersion _flutterVersion; final Config _config; final Platform _platform; @override bool get isLinuxEnabled => isEnabled(flutterLinuxDesktopFeature); @override bool get isMacOSEnabled => isEnabled(flutterMacOSDesktopFeature); @override bool get isWebEnabled => isEnabled(flutterWebFeature); @override bool get isWindowsEnabled => isEnabled(flutterWindowsDesktopFeature); @override bool get isAndroidEnabled => isEnabled(flutterAndroidFeature); @override bool get isIOSEnabled => isEnabled(flutterIOSFeature); @override bool get isFuchsiaEnabled => isEnabled(flutterFuchsiaFeature); @override bool get areCustomDevicesEnabled => isEnabled(flutterCustomDevicesFeature); @override bool get isFlutterWebWasmEnabled => isEnabled(flutterWebWasm); @override bool get isCliAnimationEnabled { if (_platform.environment['TERM'] == 'dumb') { return false; } return isEnabled(cliAnimation); } @override bool get isNativeAssetsEnabled => isEnabled(nativeAssets); @override bool get isPreviewDeviceEnabled => isEnabled(previewDevice); @override bool isEnabled(Feature feature) { final String currentChannel = _flutterVersion.channel; final FeatureChannelSetting featureSetting = feature.getSettingForChannel(currentChannel); if (!featureSetting.available) { return false; } bool isEnabled = featureSetting.enabledByDefault; if (feature.configSetting != null) { final bool? configOverride = _config.getValue(feature.configSetting!) as bool?; if (configOverride != null) { isEnabled = configOverride; } } if (feature.environmentOverride != null) { if (_platform.environment[feature.environmentOverride]?.toLowerCase() == 'true') { isEnabled = true; } } return isEnabled; } }
flutter/packages/flutter_tools/lib/src/flutter_features.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/flutter_features.dart", "repo_id": "flutter", "token_count": 737 }
933
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../application_package.dart'; import '../base/file_system.dart'; import '../build_info.dart'; import '../cache.dart'; import '../globals.dart' as globals; import '../template.dart'; import '../xcode_project.dart'; import 'plist_parser.dart'; /// Tests whether a [Directory] is an iOS bundle directory. bool _isBundleDirectory(Directory dir) => dir.path.endsWith('.app'); abstract class IOSApp extends ApplicationPackage { IOSApp({required String projectBundleId}) : super(id: projectBundleId); /// Creates a new IOSApp from an existing app bundle or IPA. static IOSApp? fromPrebuiltApp(FileSystemEntity applicationBinary) { final FileSystemEntityType entityType = globals.fs.typeSync(applicationBinary.path); if (entityType == FileSystemEntityType.notFound) { globals.printError( 'File "${applicationBinary.path}" does not exist. Use an app bundle or an ipa.'); return null; } Directory uncompressedBundle; if (entityType == FileSystemEntityType.directory) { final Directory directory = globals.fs.directory(applicationBinary); if (!_isBundleDirectory(directory)) { globals.printError('Folder "${applicationBinary.path}" is not an app bundle.'); return null; } uncompressedBundle = globals.fs.directory(applicationBinary); } else { // Try to unpack as an ipa. final Directory tempDir = globals.fs.systemTempDirectory.createTempSync('flutter_app.'); globals.os.unzip(globals.fs.file(applicationBinary), tempDir); final Directory payloadDir = globals.fs.directory( globals.fs.path.join(tempDir.path, 'Payload'), ); if (!payloadDir.existsSync()) { globals.printError( 'Invalid prebuilt iOS ipa. Does not contain a "Payload" directory.'); return null; } try { uncompressedBundle = payloadDir.listSync().whereType<Directory>().singleWhere(_isBundleDirectory); } on StateError { globals.printError( 'Invalid prebuilt iOS ipa. Does not contain a single app bundle.'); return null; } } final String plistPath = globals.fs.path.join(uncompressedBundle.path, 'Info.plist'); if (!globals.fs.file(plistPath).existsSync()) { globals.printError('Invalid prebuilt iOS app. Does not contain Info.plist.'); return null; } final String? id = globals.plistParser.getValueFromFile<String>( plistPath, PlistParser.kCFBundleIdentifierKey, ); if (id == null) { globals.printError('Invalid prebuilt iOS app. Info.plist does not contain bundle identifier'); return null; } return PrebuiltIOSApp( uncompressedBundle: uncompressedBundle, bundleName: globals.fs.path.basename(uncompressedBundle.path), projectBundleId: id, applicationPackage: applicationBinary, ); } static Future<IOSApp?> fromIosProject(IosProject project, BuildInfo? buildInfo) async { if (!globals.platform.isMacOS) { return null; } if (!project.exists) { // If the project doesn't exist at all the current hint to run flutter // create is accurate. return null; } if (!project.xcodeProject.existsSync()) { globals.printError('Expected ios/Runner.xcodeproj but this file is missing.'); return null; } if (!project.xcodeProjectInfoFile.existsSync()) { globals.printError('Expected ios/Runner.xcodeproj/project.pbxproj but this file is missing.'); return null; } return BuildableIOSApp.fromProject(project, buildInfo); } @override String get displayName => id; String get simulatorBundlePath; String get deviceBundlePath; /// Directory used by ios-deploy to store incremental installation metadata for /// faster second installs. Directory? get appDeltaDirectory; } class BuildableIOSApp extends IOSApp { BuildableIOSApp(this.project, String projectBundleId, String? hostAppBundleName) : _hostAppBundleName = hostAppBundleName, super(projectBundleId: projectBundleId); static Future<BuildableIOSApp?> fromProject(IosProject project, BuildInfo? buildInfo) async { final String? hostAppBundleName = await project.hostAppBundleName(buildInfo); final String? projectBundleId = await project.productBundleIdentifier(buildInfo); if (projectBundleId != null) { return BuildableIOSApp(project, projectBundleId, hostAppBundleName); } return null; } final IosProject project; final String? _hostAppBundleName; @override String? get name => _hostAppBundleName; @override String get simulatorBundlePath => _buildAppPath('iphonesimulator'); @override String get deviceBundlePath => _buildAppPath('iphoneos'); @override Directory get appDeltaDirectory => globals.fs.directory(globals.fs.path.join(getIosBuildDirectory(), 'app-delta')); // Xcode uses this path for the final archive bundle location, // not a top-level output directory. // Specifying `build/ios/archive/Runner` will result in `build/ios/archive/Runner.xcarchive`. String get archiveBundlePath => globals.fs.path.join(getIosBuildDirectory(), 'archive', _hostAppBundleName == null ? 'Runner' : globals.fs.path.withoutExtension(_hostAppBundleName)); // The output xcarchive bundle path `build/ios/archive/Runner.xcarchive`. String get archiveBundleOutputPath => globals.fs.path.setExtension(archiveBundlePath, '.xcarchive'); String get builtInfoPlistPathAfterArchive => globals.fs.path.join(archiveBundleOutputPath, 'Products', 'Applications', _hostAppBundleName ?? 'Runner.app', 'Info.plist'); String get projectAppIconDirName => _projectImageAssetDirName(_appIconAsset); String get projectLaunchImageDirName => _projectImageAssetDirName(_launchImageAsset); String get templateAppIconDirNameForContentsJson => _templateImageAssetDirNameForContentsJson(_appIconAsset); String get templateLaunchImageDirNameForContentsJson => _templateImageAssetDirNameForContentsJson(_launchImageAsset); Future<String> get templateAppIconDirNameForImages async => _templateImageAssetDirNameForImages(_appIconAsset); Future<String> get templateLaunchImageDirNameForImages async => _templateImageAssetDirNameForImages(_launchImageAsset); String get ipaOutputPath => globals.fs.path.join(getIosBuildDirectory(), 'ipa'); String _buildAppPath(String type) { return globals.fs.path.join(getIosBuildDirectory(), type, _hostAppBundleName); } String _projectImageAssetDirName(String asset) => globals.fs.path.join('ios', 'Runner', 'Assets.xcassets', asset); // Template asset's Contents.json file is in flutter_tools, but the actual String _templateImageAssetDirNameForContentsJson(String asset) => globals.fs.path.join( Cache.flutterRoot!, 'packages', 'flutter_tools', 'templates', _templateImageAssetDirNameSuffix(asset), ); // Template asset's images are in flutter_template_images package. Future<String> _templateImageAssetDirNameForImages(String asset) async { final Directory imageTemplate = await templatePathProvider.imageDirectory(null, globals.fs, globals.logger); return globals.fs.path.join(imageTemplate.path, _templateImageAssetDirNameSuffix(asset)); } String _templateImageAssetDirNameSuffix(String asset) => globals.fs.path.join( 'app_shared', 'ios.tmpl', 'Runner', 'Assets.xcassets', asset, ); String get _appIconAsset => 'AppIcon.appiconset'; String get _launchImageAsset => 'LaunchImage.imageset'; } class PrebuiltIOSApp extends IOSApp implements PrebuiltApplicationPackage { PrebuiltIOSApp({ required this.uncompressedBundle, this.bundleName, required super.projectBundleId, required this.applicationPackage, }); /// The uncompressed bundle of the application. /// /// [IOSApp.fromPrebuiltApp] will uncompress the application into a temporary /// directory even when an `.ipa` file was used to create the [IOSApp] instance. final Directory uncompressedBundle; final String? bundleName; @override final Directory? appDeltaDirectory = null; @override String? get name => bundleName; @override String get simulatorBundlePath => _bundlePath; @override String get deviceBundlePath => _bundlePath; String get _bundlePath => uncompressedBundle.path; /// A [File] or [Directory] pointing to the application bundle. /// /// This can be either an `.ipa` file or an uncompressed `.app` directory. @override final FileSystemEntity applicationPackage; }
flutter/packages/flutter_tools/lib/src/ios/application_package.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/ios/application_package.dart", "repo_id": "flutter", "token_count": 2951 }
934
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:process/process.dart'; import 'package:xml/xml.dart'; import '../base/file_system.dart'; import '../base/io.dart'; import '../base/logger.dart'; import '../base/process.dart'; import '../convert.dart'; class PlistParser { PlistParser({ required FileSystem fileSystem, required Logger logger, required ProcessManager processManager, }) : _fileSystem = fileSystem, _logger = logger, _processUtils = ProcessUtils(logger: logger, processManager: processManager); final FileSystem _fileSystem; final Logger _logger; final ProcessUtils _processUtils; // info.pList keys static const String kCFBundleIdentifierKey = 'CFBundleIdentifier'; static const String kCFBundleShortVersionStringKey = 'CFBundleShortVersionString'; static const String kCFBundleExecutableKey = 'CFBundleExecutable'; static const String kCFBundleVersionKey = 'CFBundleVersion'; static const String kCFBundleDisplayNameKey = 'CFBundleDisplayName'; static const String kCFBundleNameKey = 'CFBundleName'; static const String kFLTEnableImpellerKey = 'FLTEnableImpeller'; static const String kMinimumOSVersionKey = 'MinimumOSVersion'; static const String kNSPrincipalClassKey = 'NSPrincipalClass'; // entitlement file keys static const String kAssociatedDomainsKey = 'com.apple.developer.associated-domains'; static const String _plutilExecutable = '/usr/bin/plutil'; /// Returns the content, converted to XML, of the plist file located at /// [plistFilePath]. /// /// If [plistFilePath] points to a non-existent file or a file that's not a /// valid property list file, this will return null. String? plistXmlContent(String plistFilePath) { if (!_fileSystem.isFileSync(_plutilExecutable)) { throw const FileNotFoundException(_plutilExecutable); } final List<String> args = <String>[ _plutilExecutable, '-convert', 'xml1', '-o', '-', plistFilePath, ]; try { final String xmlContent = _processUtils.runSync( args, throwOnError: true, ).stdout.trim(); return xmlContent; } on ProcessException catch (error) { _logger.printError('$error'); return null; } } /// Replaces the string key in the given plist file with the given value. /// /// If the value is null, then the key will be removed. /// /// Returns true if successful. bool replaceKey(String plistFilePath, {required String key, String? value }) { if (!_fileSystem.isFileSync(_plutilExecutable)) { throw const FileNotFoundException(_plutilExecutable); } final List<String> args; if (value == null) { args = <String>[ _plutilExecutable, '-remove', key, plistFilePath, ]; } else { args = <String>[ _plutilExecutable, '-replace', key, '-string', value, plistFilePath, ]; } try { _processUtils.runSync( args, throwOnError: true, ); } on ProcessException catch (error) { _logger.printError('$error'); return false; } return true; } /// Parses the plist file located at [plistFilePath] and returns the /// associated map of key/value property list pairs. /// /// If [plistFilePath] points to a non-existent file or a file that's not a /// valid property list file, this will return an empty map. Map<String, Object> parseFile(String plistFilePath) { if (!_fileSystem.isFileSync(plistFilePath)) { return const <String, Object>{}; } final String normalizedPlistPath = _fileSystem.path.absolute(plistFilePath); final String? xmlContent = plistXmlContent(normalizedPlistPath); if (xmlContent == null) { return const <String, Object>{}; } return _parseXml(xmlContent); } Map<String, Object> _parseXml(String xmlContent) { final XmlDocument document = XmlDocument.parse(xmlContent); // First element child is <plist>. The first element child of plist is <dict>. final XmlElement dictObject = document.firstElementChild!.firstElementChild!; return _parseXmlDict(dictObject); } Map<String, Object> _parseXmlDict(XmlElement node) { String? lastKey; final Map<String, Object> result = <String, Object>{}; for (final XmlNode child in node.children) { if (child is XmlElement) { if (child.name.local == 'key') { lastKey = child.innerText; } else { assert(lastKey != null); result[lastKey!] = _parseXmlNode(child)!; lastKey = null; } } } return result; } static final RegExp _nonBase64Pattern = RegExp('[^a-zA-Z0-9+/=]+'); Object? _parseXmlNode(XmlElement node) { switch (node.name.local){ case 'string': return node.innerText; case 'real': return double.parse(node.innerText); case 'integer': return int.parse(node.innerText); case 'true': return true; case 'false': return false; case 'date': return DateTime.parse(node.innerText); case 'data': return base64.decode(node.innerText.replaceAll(_nonBase64Pattern, '')); case 'array': return node.children.whereType<XmlElement>().map<Object?>(_parseXmlNode).whereType<Object>().toList(); case 'dict': return _parseXmlDict(node); } return null; } /// Parses the Plist file located at [plistFilePath] and returns the value /// that's associated with the specified [key] within the property list. /// /// If [plistFilePath] points to a non-existent file or a file that's not a /// valid property list file, this will return null. /// /// If [key] is not found in the property list, this will return null. T? getValueFromFile<T>(String plistFilePath, String key) { final Map<String, dynamic> parsed = parseFile(plistFilePath); return parsed[key] as T?; } }
flutter/packages/flutter_tools/lib/src/ios/plist_parser.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/ios/plist_parser.dart", "repo_id": "flutter", "token_count": 2174 }
935
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Logic for native assets shared between all host OSes. import '../../../base/os.dart'; import '../../../base/platform.dart'; import '../../../build_info.dart'; import '../../../globals.dart' as globals; import '../../../native_assets.dart'; import '../../../project.dart'; import '../linux/native_assets.dart'; import '../macos/native_assets.dart'; import '../native_assets.dart'; import '../windows/native_assets.dart'; class TestCompilerNativeAssetsBuilderImpl implements TestCompilerNativeAssetsBuilder { const TestCompilerNativeAssetsBuilderImpl(); @override Future<Uri?> build(BuildInfo buildInfo) => testCompilerBuildNativeAssets(buildInfo); } Future<Uri?> testCompilerBuildNativeAssets(BuildInfo buildInfo) async { Uri? nativeAssetsYaml; if (!buildInfo.buildNativeAssets) { nativeAssetsYaml = null; } else { final Uri projectUri = FlutterProject.current().directory.uri; final NativeAssetsBuildRunner buildRunner = NativeAssetsBuildRunnerImpl( projectUri, buildInfo.packageConfig, globals.fs, globals.logger, ); if (globals.platform.isMacOS) { (nativeAssetsYaml, _) = await buildNativeAssetsMacOS( buildMode: buildInfo.mode, projectUri: projectUri, flutterTester: true, fileSystem: globals.fs, buildRunner: buildRunner, ); } else if (globals.platform.isLinux) { (nativeAssetsYaml, _) = await buildNativeAssetsLinux( buildMode: buildInfo.mode, projectUri: projectUri, flutterTester: true, fileSystem: globals.fs, buildRunner: buildRunner, ); } else if (globals.platform.isWindows) { final TargetPlatform targetPlatform; if (globals.os.hostPlatform == HostPlatform.windows_x64) { targetPlatform = TargetPlatform.windows_x64; } else { targetPlatform = TargetPlatform.windows_arm64; } (nativeAssetsYaml, _) = await buildNativeAssetsWindows( buildMode: buildInfo.mode, targetPlatform: targetPlatform, projectUri: projectUri, flutterTester: true, fileSystem: globals.fs, buildRunner: buildRunner, ); } else { await ensureNoNativeAssetsOrOsIsSupported( projectUri, const LocalPlatform().operatingSystem, globals.fs, buildRunner, ); } } return nativeAssetsYaml; }
flutter/packages/flutter_tools/lib/src/isolated/native_assets/test/native_assets.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/isolated/native_assets/test/native_assets.dart", "repo_id": "flutter", "token_count": 999 }
936
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:unified_analytics/unified_analytics.dart'; import '../base/analyze_size.dart'; import '../base/common.dart'; import '../base/file_system.dart'; import '../base/logger.dart'; import '../base/project_migrator.dart'; import '../build_info.dart'; import '../convert.dart'; import '../globals.dart' as globals; import '../ios/xcode_build_settings.dart'; import '../ios/xcodeproj.dart'; import '../migrations/xcode_project_object_version_migration.dart'; import '../migrations/xcode_script_build_phase_migration.dart'; import '../migrations/xcode_thin_binary_build_phase_input_paths_migration.dart'; import '../project.dart'; import 'cocoapod_utils.dart'; import 'migrations/flutter_application_migration.dart'; import 'migrations/macos_deployment_target_migration.dart'; import 'migrations/remove_macos_framework_link_and_embedding_migration.dart'; /// When run in -quiet mode, Xcode should only print from the underlying tasks to stdout. /// Passing this regexp to trace moves the stdout output to stderr. /// /// Filter out xcodebuild logging unrelated to macOS builds: /// ``` /// xcodebuild[2096:1927385] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore /// /// note: Using new build system /// /// xcodebuild[61115:1017566] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 /// Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. /// Function: createItemModels(for:itemModelSource:) /// Thread: <_NSMainThread: 0x6000027c0280>{number = 1, name = main} /// Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. /// ``` final RegExp _filteredOutput = RegExp( r'^((?!' r'Requested but did not find extension point with identifier|' r'note\:|' r'\[MT\] DVTAssertions: Warning in /System/Volumes/Data/SWE/|' r'Details\: createItemModels|' r'Function\: createItemModels|' r'Thread\: <_NSMainThread\:|' r'Please file a bug at https\://feedbackassistant\.apple\.' r').)*$' ); /// Builds the macOS project through xcodebuild. // TODO(zanderso): refactor to share code with the existing iOS code. Future<void> buildMacOS({ required FlutterProject flutterProject, required BuildInfo buildInfo, String? targetOverride, required bool verboseLogging, bool configOnly = false, SizeAnalyzer? sizeAnalyzer, }) async { final Directory? xcodeWorkspace = flutterProject.macos.xcodeWorkspace; if (xcodeWorkspace == null) { throwToolExit('No macOS desktop project configured. ' 'See https://docs.flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app ' 'to learn about adding macOS support to a project.'); } final List<ProjectMigrator> migrators = <ProjectMigrator>[ RemoveMacOSFrameworkLinkAndEmbeddingMigration( flutterProject.macos, globals.logger, globals.flutterUsage, globals.analytics, ), MacOSDeploymentTargetMigration(flutterProject.macos, globals.logger), XcodeProjectObjectVersionMigration(flutterProject.macos, globals.logger), XcodeScriptBuildPhaseMigration(flutterProject.macos, globals.logger), XcodeThinBinaryBuildPhaseInputPathsMigration(flutterProject.macos, globals.logger), FlutterApplicationMigration(flutterProject.macos, globals.logger), ]; final ProjectMigration migration = ProjectMigration(migrators); migration.run(); final Directory flutterBuildDir = globals.fs.directory(getMacOSBuildDirectory()); if (!flutterBuildDir.existsSync()) { flutterBuildDir.createSync(recursive: true); } // Write configuration to an xconfig file in a standard location. await updateGeneratedXcodeProperties( project: flutterProject, buildInfo: buildInfo, targetOverride: targetOverride, useMacOSConfig: true, ); await processPodsIfNeeded(flutterProject.macos, getMacOSBuildDirectory(), buildInfo.mode); // If the xcfilelists do not exist, create empty version. if (!flutterProject.macos.inputFileList.existsSync()) { flutterProject.macos.inputFileList.createSync(recursive: true); } if (!flutterProject.macos.outputFileList.existsSync()) { flutterProject.macos.outputFileList.createSync(recursive: true); } if (configOnly) { return; } final Directory xcodeProject = flutterProject.macos.xcodeProject; // If the standard project exists, specify it to getInfo to handle the case where there are // other Xcode projects in the macos/ directory. Otherwise pass no name, which will work // regardless of the project name so long as there is exactly one project. final String? xcodeProjectName = xcodeProject.existsSync() ? xcodeProject.basename : null; final XcodeProjectInfo? projectInfo = await globals.xcodeProjectInterpreter?.getInfo( xcodeProject.parent.path, projectFilename: xcodeProjectName, ); final String? scheme = projectInfo?.schemeFor(buildInfo); if (scheme == null) { projectInfo!.reportFlavorNotFoundAndExit(); } final String? configuration = projectInfo?.buildConfigurationFor(buildInfo, scheme); if (configuration == null) { throwToolExit('Unable to find expected configuration in Xcode project.'); } // Run the Xcode build. final Stopwatch sw = Stopwatch()..start(); final Status status = globals.logger.startProgress( 'Building macOS application...', ); int result; try { result = await globals.processUtils.stream(<String>[ '/usr/bin/env', 'xcrun', 'xcodebuild', '-workspace', xcodeWorkspace.path, '-configuration', configuration, '-scheme', scheme, '-derivedDataPath', flutterBuildDir.absolute.path, '-destination', 'platform=macOS', 'OBJROOT=${globals.fs.path.join(flutterBuildDir.absolute.path, 'Build', 'Intermediates.noindex')}', 'SYMROOT=${globals.fs.path.join(flutterBuildDir.absolute.path, 'Build', 'Products')}', if (verboseLogging) 'VERBOSE_SCRIPT_LOGGING=YES' else '-quiet', 'COMPILER_INDEX_STORE_ENABLE=NO', ...environmentVariablesAsXcodeBuildSettings(globals.platform), ], trace: true, stdoutErrorMatcher: verboseLogging ? null : _filteredOutput, mapFunction: verboseLogging ? null : (String line) => _filteredOutput.hasMatch(line) ? line : null, ); } finally { status.cancel(); } if (result != 0) { throwToolExit('Build process failed'); } await _writeCodeSizeAnalysis(buildInfo, sizeAnalyzer); final Duration elapsedDuration = sw.elapsed; globals.flutterUsage.sendTiming('build', 'xcode-macos', elapsedDuration); globals.analytics.send(Event.timing( workflow: 'build', variableName: 'xcode-macos', elapsedMilliseconds: elapsedDuration.inMilliseconds, )); } /// Performs a size analysis of the AOT snapshot and writes to an analysis file, if configured. /// /// Size analysis will be run for release builds where the --analyze-size /// option has been specified. By default, size analysis JSON output is written /// to ~/.flutter-devtools/macos-code-size-analysis_NN.json. Future<void> _writeCodeSizeAnalysis(BuildInfo buildInfo, SizeAnalyzer? sizeAnalyzer) async { // Bail out if the size analysis option was not specified. if (buildInfo.codeSizeDirectory == null || sizeAnalyzer == null) { return; } final File? aotSnapshot = DarwinArch.values.map<File?>((DarwinArch arch) { return globals.fs.directory(buildInfo.codeSizeDirectory).childFile('snapshot.${arch.name}.json'); // Pick the first if there are multiple for simplicity }).firstWhere( (File? file) => file!.existsSync(), orElse: () => null, ); if (aotSnapshot == null) { throw StateError('No code size snapshot file (snapshot.<ARCH>.json) found in ${buildInfo.codeSizeDirectory}'); } final File? precompilerTrace = DarwinArch.values.map<File?>((DarwinArch arch) { return globals.fs.directory(buildInfo.codeSizeDirectory).childFile('trace.${arch.name}.json'); }).firstWhere( (File? file) => file!.existsSync(), orElse: () => null, ); if (precompilerTrace == null) { throw StateError('No precompiler trace file (trace.<ARCH>.json) found in ${buildInfo.codeSizeDirectory}'); } // This analysis is only supported for release builds. // Attempt to guess the correct .app by picking the first one. final Directory candidateDirectory = globals.fs.directory( globals.fs.path.join(getMacOSBuildDirectory(), 'Build', 'Products', 'Release'), ); final Directory appDirectory = candidateDirectory.listSync() .whereType<Directory>() .firstWhere((Directory directory) { return globals.fs.path.extension(directory.path) == '.app'; }); final Map<String, Object?> output = await sizeAnalyzer.analyzeAotSnapshot( aotSnapshot: aotSnapshot, precompilerTrace: precompilerTrace, outputDirectory: appDirectory, type: 'macos', excludePath: 'Versions', // Avoid double counting caused by symlinks ); final File outputFile = globals.fsUtils.getUniqueFile( globals.fs .directory(globals.fsUtils.homeDirPath) .childDirectory('.flutter-devtools'), 'macos-code-size-analysis', 'json', )..writeAsStringSync(jsonEncode(output)); // This message is used as a sentinel in analyze_apk_size_test.dart globals.printStatus( 'A summary of your macOS bundle analysis can be found at: ${outputFile.path}', ); // DevTools expects a file path relative to the .flutter-devtools/ dir. final String relativeAppSizePath = outputFile.path.split('.flutter-devtools/').last.trim(); globals.printStatus( '\nTo analyze your app size in Dart DevTools, run the following command:\n' 'dart devtools --appSizeBase=$relativeAppSizePath' ); }
flutter/packages/flutter_tools/lib/src/macos/build_macos.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/macos/build_macos.dart", "repo_id": "flutter", "token_count": 3393 }
937
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../base/file_system.dart'; import '../base/project_migrator.dart'; import '../base/version.dart'; import '../ios/xcodeproj.dart'; import '../xcode_project.dart'; // Xcode 14.3 changed the readlink symlink behavior to be relative from the script working directory, instead of the // relative path of the symlink. The -f flag returns the original "--canonicalize" behavior the CocoaPods script relies on. // This has been fixed upstream in CocoaPods, but migrate a copy of their workaround so users don't need to update. // // See https://github.com/flutter/flutter/issues/123890#issuecomment-1494825976. class CocoaPodsScriptReadlink extends ProjectMigrator { CocoaPodsScriptReadlink( XcodeBasedProject project, XcodeProjectInterpreter xcodeProjectInterpreter, super.logger, ) : _podRunnerFrameworksScript = project.podRunnerFrameworksScript, _xcodeProjectInterpreter = xcodeProjectInterpreter; final File _podRunnerFrameworksScript; final XcodeProjectInterpreter _xcodeProjectInterpreter; @override void migrate() { if (!_podRunnerFrameworksScript.existsSync()) { logger.printTrace('CocoaPods Pods-Runner-frameworks.sh script not found, skipping "readlink -f" workaround.'); return; } final Version? version = _xcodeProjectInterpreter.version; // If Xcode not installed or less than 14.3 with readlink behavior change, skip this migration. if (version == null || version < Version(14, 3, 0)) { logger.printTrace('Detected Xcode version is $version, below 14.3, skipping "readlink -f" workaround.'); return; } processFileLines(_podRunnerFrameworksScript); } @override String? migrateLine(String line) { const String originalReadLinkLine = r'source="$(readlink "${source}")"'; const String replacementReadLinkLine = r'source="$(readlink -f "${source}")"'; return line.replaceAll(originalReadLinkLine, replacementReadLinkLine); } }
flutter/packages/flutter_tools/lib/src/migrations/cocoapods_script_symlink.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/migrations/cocoapods_script_symlink.dart", "repo_id": "flutter", "token_count": 666 }
938
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:typed_data'; import 'package:meta/meta.dart'; import '../application_package.dart'; import '../base/dds.dart'; import '../base/file_system.dart'; import '../base/io.dart'; import '../base/logger.dart'; import '../build_info.dart'; import '../convert.dart'; import '../daemon.dart'; import '../device.dart'; import '../device_port_forwarder.dart'; import '../project.dart'; import 'debounce_data_stream.dart'; import 'file_transfer.dart'; bool _isNullable<T>() => null is T; T _cast<T>(Object? object) { if (!_isNullable<T>() && object == null) { throw Exception('Expected $T, received null!'); } else { return object as T; } } /// A [DeviceDiscovery] that will connect to a flutter daemon and connects to /// the devices remotely. /// /// If [deltaFileTransfer] is true, the proxy will use an rsync-like algorithm that /// only transfers the changed part of the application package for deployment. class ProxiedDevices extends PollingDeviceDiscovery { ProxiedDevices(this.connection, { bool deltaFileTransfer = true, bool enableDdsProxy = false, required Logger logger, FileTransfer fileTransfer = const FileTransfer(), }) : _deltaFileTransfer = deltaFileTransfer, _enableDdsProxy = enableDdsProxy, _logger = logger, _fileTransfer = fileTransfer, super('Proxied devices'); /// [DaemonConnection] used to communicate with the daemon. final DaemonConnection connection; final Logger _logger; final bool _deltaFileTransfer; final bool _enableDdsProxy; final FileTransfer _fileTransfer; @override bool get supportsPlatform => true; @override bool get canListAnything => true; List<Device>? _devices; @override Future<List<Device>> devices({DeviceDiscoveryFilter? filter}) async => _filterDevices(_devices ?? await discoverDevices(), filter); @override Future<List<Device>> discoverDevices({ Duration? timeout, DeviceDiscoveryFilter? filter }) async { final List<Map<String, Object?>> discoveredDevices = _cast<List<dynamic>>(await connection.sendRequest('device.discoverDevices')).cast<Map<String, Object?>>(); final List<ProxiedDevice> devices = <ProxiedDevice>[ for (final Map<String, Object?> device in discoveredDevices) deviceFromDaemonResult(device), ]; _devices = devices; return _filterDevices(devices, filter); } Future<List<Device>> _filterDevices(List<Device> devices, DeviceDiscoveryFilter? filter) async { if (filter == null) { return devices; } return filter.filterDevices(devices); } @override Future<List<Device>> pollingGetDevices({Duration? timeout}) => discoverDevices(timeout: timeout); @override List<String> get wellKnownIds => const <String>[]; @visibleForTesting ProxiedDevice deviceFromDaemonResult(Map<String, Object?> device) { final Map<String, Object?> capabilities = _cast<Map<String, Object?>>(device['capabilities']); final String? connectionInterfaceName = _cast<String?>(device['connectionInterface']); final DeviceConnectionInterface? connectionInterface = connectionInterfaceName != null ? getDeviceConnectionInterfaceForName(connectionInterfaceName) : null; return ProxiedDevice( connection, _cast<String>(device['id']), deltaFileTransfer: _deltaFileTransfer, enableDdsProxy: _enableDdsProxy, category: Category.fromString(_cast<String>(device['category'])), platformType: PlatformType.fromString(_cast<String>(device['platformType'])), targetPlatform: getTargetPlatformForName(_cast<String>(device['platform'])), ephemeral: _cast<bool>(device['ephemeral']), isConnected: _cast<bool?>(device['isConnected']) ?? true, connectionInterface: connectionInterface ?? DeviceConnectionInterface.attached, name: 'Proxied ${device['name']}', isLocalEmulator: _cast<bool>(device['emulator']), emulatorId: _cast<String?>(device['emulatorId']), sdkNameAndVersion: _cast<String>(device['sdk']), supportsHotReload: _cast<bool>(capabilities['hotReload']), supportsHotRestart: _cast<bool>(capabilities['hotRestart']), supportsFlutterExit: _cast<bool>(capabilities['flutterExit']), supportsScreenshot: _cast<bool>(capabilities['screenshot']), supportsFastStart: _cast<bool>(capabilities['fastStart']), supportsHardwareRendering: _cast<bool>(capabilities['hardwareRendering']), logger: _logger, fileTransfer: _fileTransfer, ); } @override Future<List<String>> getDiagnostics() async { try { final List<String> diagnostics = _cast<List<dynamic>>(await connection.sendRequest('device.getDiagnostics')).cast<String>(); return diagnostics; } on String catch (e) { // Daemon actually does throw string types. if (e.contains('command not understood')) { _logger.printTrace('The daemon is on an older version that does not support `device.getDiagnostics`.'); // Silently ignore. return <String>[]; } rethrow; } } } /// A [Device] that acts as a proxy to remotely connected device. /// /// The communication happens via a flutter daemon. /// /// If [deltaFileTransfer] is true, the proxy will use an rsync-like algorithm that /// only transfers the changed part of the application package for deployment. /// /// If [enableDdsProxy] is true, DDS will be started on the daemon instead of /// starting locally. class ProxiedDevice extends Device { ProxiedDevice(this.connection, String id, { bool deltaFileTransfer = true, bool enableDdsProxy = false, required Category? category, required PlatformType? platformType, required TargetPlatform targetPlatform, required bool ephemeral, required this.isConnected, required this.connectionInterface, required this.name, required bool isLocalEmulator, required String? emulatorId, required String sdkNameAndVersion, required this.supportsHotReload, required this.supportsHotRestart, required this.supportsFlutterExit, required this.supportsScreenshot, required this.supportsFastStart, required bool supportsHardwareRendering, required Logger logger, FileTransfer fileTransfer = const FileTransfer(), }): _deltaFileTransfer = deltaFileTransfer, _enableDdsProxy = enableDdsProxy, _isLocalEmulator = isLocalEmulator, _emulatorId = emulatorId, _sdkNameAndVersion = sdkNameAndVersion, _supportsHardwareRendering = supportsHardwareRendering, _targetPlatform = targetPlatform, _logger = logger, _fileTransfer = fileTransfer, super(id, category: category, platformType: platformType, ephemeral: ephemeral); /// [DaemonConnection] used to communicate with the daemon. final DaemonConnection connection; final Logger _logger; final bool _deltaFileTransfer; final bool _enableDdsProxy; final FileTransfer _fileTransfer; @override final bool isConnected; @override final DeviceConnectionInterface connectionInterface; @override final String name; final bool _isLocalEmulator; @override Future<bool> get isLocalEmulator async => _isLocalEmulator; final String? _emulatorId; @override Future<String?> get emulatorId async => _emulatorId; @override Future<bool> supportsRuntimeMode(BuildMode buildMode) async => _cast<bool>(await connection.sendRequest('device.supportsRuntimeMode', <String, Object>{ 'deviceId': id, 'buildMode': buildMode.toString(), })); final bool _supportsHardwareRendering; @override Future<bool> get supportsHardwareRendering async => _supportsHardwareRendering; // ProxiedDevice is intended to be used with prebuilt projects. No building // is required, so we returns true for all projects. @override bool isSupportedForProject(FlutterProject flutterProject) => true; @override Future<bool> isAppInstalled( ApplicationPackage app, { String? userIdentifier, }) => throw UnimplementedError(); @override Future<bool> isLatestBuildInstalled(ApplicationPackage app) => throw UnimplementedError(); @override Future<bool> installApp( ApplicationPackage app, { String? userIdentifier, }) => throw UnimplementedError(); @override Future<bool> uninstallApp( ApplicationPackage app, { String? userIdentifier, }) => throw UnimplementedError(); @override bool isSupported() => true; final TargetPlatform _targetPlatform; @override Future<TargetPlatform> get targetPlatform async => _targetPlatform; TargetPlatform get targetPlatformSync => _targetPlatform; final String _sdkNameAndVersion; @override Future<String> get sdkNameAndVersion async => _sdkNameAndVersion; @override FutureOr<DeviceLogReader> getLogReader({ covariant PrebuiltApplicationPackage? app, bool includePastLogs = false, }) => _ProxiedLogReader(connection, this, app); ProxiedPortForwarder? _proxiedPortForwarder; /// [proxiedPortForwarder] forwards a port from the remote host to local host. ProxiedPortForwarder get proxiedPortForwarder => _proxiedPortForwarder ??= ProxiedPortForwarder(connection, logger: _logger); ProxiedPortForwarder? _portForwarder; /// [portForwarder] forwards a port from the remote device to remote host, and /// then forward the port from remote host to local host. @override ProxiedPortForwarder get portForwarder => _portForwarder ??= ProxiedPortForwarder(connection, deviceId: id, logger: _logger); ProxiedDartDevelopmentService? _proxiedDds; @override DartDevelopmentService get dds { if (!_enableDdsProxy) { return super.dds; } return _proxiedDds ??= ProxiedDartDevelopmentService(connection, id, logger: _logger, proxiedPortForwarder: proxiedPortForwarder, devicePortForwarder: portForwarder); } @override void clearLogs() => throw UnimplementedError(); @override Future<LaunchResult> startApp( PrebuiltApplicationPackage package, { String? mainPath, String? route, required DebuggingOptions debuggingOptions, Map<String, Object?> platformArgs = const <String, Object?>{}, bool prebuiltApplication = false, bool ipv6 = false, String? userIdentifier, }) async { final Map<String, Object?> result = _cast<Map<String, Object?>>(await connection.sendRequest('device.startApp', <String, Object?>{ 'deviceId': id, 'applicationPackageId': await applicationPackageId(package), 'mainPath': mainPath, 'route': route, 'debuggingOptions': debuggingOptions.toJson(), 'platformArgs': platformArgs, 'prebuiltApplication': prebuiltApplication, 'ipv6': ipv6, 'userIdentifier': userIdentifier, })); final bool started = _cast<bool>(result['started']); // TODO(bkonyi): remove once clients have migrated to relying on vmServiceUri. final String? vmServiceUriStr = _cast<String?>(result['vmServiceUri']) ?? _cast<String?>(result['observatoryUri']); final Uri? vmServiceUri = vmServiceUriStr == null ? null : Uri.parse(vmServiceUriStr); if (started) { if (vmServiceUri != null) { final int hostPort = await proxiedPortForwarder.forward(vmServiceUri.port); return LaunchResult.succeeded(vmServiceUri: vmServiceUri.replace(port: hostPort)); } else { return LaunchResult.succeeded(); } } else { return LaunchResult.failed(); } } @override final bool supportsHotReload; @override final bool supportsHotRestart; @override final bool supportsFlutterExit; @override final bool supportsScreenshot; @override final bool supportsFastStart; @override Future<bool> stopApp( covariant PrebuiltApplicationPackage? app, { String? userIdentifier, }) async { return _cast<bool>(await connection.sendRequest('device.stopApp', <String, Object?>{ 'deviceId': id, if (app != null) 'applicationPackageId': await applicationPackageId(app), 'userIdentifier': userIdentifier, })); } @override Future<MemoryInfo> queryMemoryInfo() => throw UnimplementedError(); @override Future<void> takeScreenshot(File outputFile) async { final String imageBase64 = _cast<String>(await connection.sendRequest('device.takeScreenshot', <String, Object?>{ 'deviceId': id, })); await outputFile.writeAsBytes(base64.decode(imageBase64)); } @override Future<void> dispose() async { await proxiedPortForwarder.dispose(); } final Map<String, Future<String>> _applicationPackageMap = <String, Future<String>>{}; Future<String> applicationPackageId( PrebuiltApplicationPackage package) async { final File binary = package.applicationPackage as File; final String path = binary.absolute.path; if (_applicationPackageMap.containsKey(path)) { return _applicationPackageMap[path]!; } final String fileName = binary.basename; final Completer<String> idCompleter = Completer<String>(); _applicationPackageMap[path] = idCompleter.future; final Map<String, Object> args = <String, Object>{'path': fileName}; Map<String, Object?>? rollingHashResultJson; if (_deltaFileTransfer) { rollingHashResultJson = _cast<Map<String, Object?>?>(await connection.sendRequest('proxy.calculateFileHashes', args)); } if (rollingHashResultJson == null) { // Either file not found on the remote end, or deltaFileTransfer is set to false, transfer the file directly. if (_deltaFileTransfer) { _logger.printTrace('Delta file transfer is enabled but file is not found on the remote end, do a full transfer.'); } await connection.sendRequest('proxy.writeTempFile', args, await binary.readAsBytes()); } else { final BlockHashes rollingHashResult = BlockHashes.fromJson(rollingHashResultJson); final List<FileDeltaBlock> delta = await _fileTransfer.computeDelta(binary, rollingHashResult); // Delta is empty if the file does not need to be updated if (delta.isNotEmpty) { final List<Map<String, Object>> deltaJson = delta.map((FileDeltaBlock block) => block.toJson()).toList(); final Uint8List buffer = await _fileTransfer.binaryForRebuilding(binary, delta); await connection.sendRequest('proxy.updateFile', <String, Object>{ 'path': fileName, 'delta': deltaJson, }, buffer); } } if (_deltaFileTransfer) { // Ask the daemon to precache the hash content for subsequent runs. // Wait for several seconds for the app to be launched, to not interfere // with whatever the daemon is doing. unawaited(() async { await Future<void>.delayed(const Duration(seconds: 60)); await connection.sendRequest('proxy.calculateFileHashes', <String, Object>{ 'path': fileName, 'cacheResult': true, }); }()); } final String id = _cast<String>(await connection.sendRequest('device.uploadApplicationPackage', <String, Object>{ 'targetPlatform': getNameForTargetPlatform(_targetPlatform), 'applicationBinary': fileName, })); idCompleter.complete(id); return id; } } /// A [DeviceLogReader] for a proxied device. class _ProxiedLogReader extends DeviceLogReader { _ProxiedLogReader(this.connection, this.device, this.applicationPackage); final DaemonConnection connection; final ProxiedDevice device; final PrebuiltApplicationPackage? applicationPackage; @override String get name => device.name; final StreamController<String> _logLinesStreamController = StreamController<String>(); Stream<String>? _logLines; String? _id; @override Stream<String> get logLines => _logLines ??= _start(); Stream<String> _start() { final PrebuiltApplicationPackage? package = applicationPackage; final Future<String?> applicationPackageId = package != null ? device.applicationPackageId(package) : Future<String?>.value(); final Future<String> idFuture = applicationPackageId.then((String? applicationPackageId) async => _cast<String>(await connection.sendRequest('device.logReader.start', <String, Object>{ 'deviceId': device.id, if (applicationPackageId != null) 'applicationPackageId': applicationPackageId, }))); idFuture.then((String id) { _id = id; final Stream<String> stream = connection.listenToEvent('device.logReader.logLines.$_id').map((DaemonEventData event) => event.data! as String); _logLinesStreamController.addStream(stream); }); return _logLinesStreamController.stream; } @override void dispose() { if (_id != null) { connection.sendRequest('device.logReader.stop', <String, Object?>{ 'id': _id, }); } } } /// A port forwarded by a [ProxiedPortForwarder]. class _ProxiedForwardedPort extends ForwardedPort { _ProxiedForwardedPort(this.connection, { required int hostPort, required int devicePort, required this.remoteDevicePort, required this.deviceId, required this.serverSocket }): super(hostPort, devicePort); /// [DaemonConnection] used to communicate with the daemon. final DaemonConnection connection; /// The forwarded port on the remote device. final int? remoteDevicePort; /// The device identifier of the remote device. final String? deviceId; /// The [ServerSocket] that is serving the local forwarded port. final ServerSocket serverSocket; @override void dispose() { unforward(); } /// Unforwards the remote port, and stops the local server. Future<void> unforward() async { await serverSocket.close(); if (remoteDevicePort != null && deviceId != null) { await connection.sendRequest('device.unforward', <String, Object>{ 'deviceId': deviceId!, 'devicePort': remoteDevicePort!, 'hostPort': devicePort, }); } } } typedef CreateSocketServer = Future<ServerSocket> Function(Logger logger, int? hostPort, bool? ipv6); /// A [DevicePortForwarder] for a proxied device. /// /// If [deviceId] is not null, the port forwarder forwards ports from the remote /// device, to the remote host, and then to the local host. /// /// If [deviceId] is null, then the port forwarder only forwards ports from the /// remote host to the local host. @visibleForTesting class ProxiedPortForwarder extends DevicePortForwarder { ProxiedPortForwarder(this.connection, { String? deviceId, required Logger logger, @visibleForTesting CreateSocketServer createSocketServer = _defaultCreateServerSocket, }) : _logger = logger, _deviceId = deviceId, _createSocketServer = createSocketServer; final String? _deviceId; DaemonConnection connection; final Logger _logger; final CreateSocketServer _createSocketServer; @override List<ForwardedPort> get forwardedPorts => _hostPortToForwardedPorts.values.toList(); final Map<int, _ProxiedForwardedPort> _hostPortToForwardedPorts = <int, _ProxiedForwardedPort>{}; final List<Socket> _connectedSockets = <Socket>[]; @override Future<int> forward(int devicePort, {int? hostPort, bool? ipv6}) async { int? remoteDevicePort; final String? deviceId = _deviceId; // If deviceId is set, we need to forward the remote device port to remote host as well. // And then, forward the remote host port to a local host port. if (deviceId != null) { final Map<String, Object?> result = _cast<Map<String, Object?>>( await connection.sendRequest('device.forward', <String, Object>{ 'deviceId': deviceId, 'devicePort': devicePort, })); remoteDevicePort = devicePort; devicePort = result['hostPort']! as int; } final ServerSocket serverSocket = await _startProxyServer(devicePort, hostPort, ipv6); _hostPortToForwardedPorts[serverSocket.port] = _ProxiedForwardedPort( connection, hostPort: serverSocket.port, devicePort: devicePort, remoteDevicePort: remoteDevicePort, deviceId: deviceId, serverSocket: serverSocket, ); return serverSocket.port; } Future<ServerSocket> _startProxyServer(int devicePort, int? hostPort, bool? ipv6) async { final ServerSocket serverSocket = await _createSocketServer(_logger, hostPort, ipv6); serverSocket.listen((Socket socket) async { final String id = _cast<String>(await connection.sendRequest('proxy.connect', <String, Object>{ 'port': devicePort, })); final Stream<List<int>> dataStream = connection.listenToEvent('proxy.data.$id').asyncExpand((DaemonEventData event) => event.binary); dataStream.listen(socket.add); final Future<DaemonEventData> disconnectFuture = connection.listenToEvent('proxy.disconnected.$id').first; unawaited(disconnectFuture.then<void>((_) async { try { await socket.close(); } on Exception { // ignore } }, onError: (_) { // The event is not guaranteed to be sent if we initiated the disconnection. // Do nothing here. }, )); debounceDataStream(socket).listen((Uint8List data) { unawaited(connection.sendRequest('proxy.write', <String, Object>{ 'id': id, }, data).then( (Object? obj) => obj, onError: (Object error, StackTrace stackTrace) { // Log the error, but proceed normally. Network failure should not // crash the tool. If this is critical, the place where the connection // is being used would crash. _logger.printWarning('Write to remote proxy error: $error'); _logger.printTrace('Write to remote proxy error: $error, stack trace: $stackTrace'); return null; }, )); }); _connectedSockets.add(socket); unawaited(socket.done.then( (Object? obj) => obj, onError: (Object error, StackTrace stackTrace) { // Do nothing here. Everything will be handled in the `then` block below. return false; }).whenComplete(() { // Send a proxy disconnect event just in case. unawaited(connection.sendRequest('proxy.disconnect', <String, Object>{ 'id': id, }).then( (Object? obj) => obj, onError: (Object error, StackTrace stackTrace) { // Ignore the error here. There might be a race condition when the // remote end also disconnects. In any case, this request is just to // notify the remote end to disconnect and we should not crash when // there is an error here. return null; }, )); _connectedSockets.remove(socket); })); }, onError: (Object error, StackTrace stackTrace) { _logger.printWarning('Server socket error: $error'); _logger.printTrace('Server socket error: $error, stack trace: $stackTrace'); }); return serverSocket; } @override Future<void> unforward(ForwardedPort forwardedPort) async { // Look for the forwarded port entry in our own map. final _ProxiedForwardedPort? proxiedForwardedPort = _hostPortToForwardedPorts.remove(forwardedPort.hostPort); await proxiedForwardedPort?.unforward(); } @override Future<void> dispose() async { for (final _ProxiedForwardedPort forwardedPort in _hostPortToForwardedPorts.values) { await forwardedPort.unforward(); } await Future.wait(<Future<void>>[ for (final Socket socket in _connectedSockets) socket.close(), ]); } /// Returns the original remote port given the local port. /// /// If this is not a port that is handled by this port forwarder, return null. int? originalRemotePort(int localForwardedPort) { return _hostPortToForwardedPorts[localForwardedPort]?.devicePort; } } Future<ServerSocket> _defaultCreateServerSocket(Logger logger, int? hostPort, bool? ipv6) async { if (ipv6 == null || !ipv6) { try { return await ServerSocket.bind(InternetAddress.loopbackIPv4, hostPort ?? 0); } on SocketException { logger.printTrace('Bind on $hostPort failed with IPv4, retrying on IPv6'); } } // If binding on ipv4 failed, try binding on ipv6. // Omit try catch here, let the failure fallthrough. return ServerSocket.bind(InternetAddress.loopbackIPv6, hostPort ?? 0); } /// A class that starts the [DartDevelopmentService] on the daemon. /// /// There are a lot of communications between DDS and the VM service on the /// device. When using proxied device, starting DDS remotely helps reduces the /// amount of data transferred with the remote daemon, hence improving latency. class ProxiedDartDevelopmentService implements DartDevelopmentService { ProxiedDartDevelopmentService( this.connection, this.deviceId, { required Logger logger, required ProxiedPortForwarder proxiedPortForwarder, required ProxiedPortForwarder devicePortForwarder, @visibleForTesting DartDevelopmentService? localDds, }) : _logger = logger, _proxiedPortForwarder = proxiedPortForwarder, _devicePortForwarder = devicePortForwarder, _localDds = localDds ?? DartDevelopmentService(); final String deviceId; final Logger _logger; /// [DaemonConnection] used to communicate with the daemon. final DaemonConnection connection; /// [_proxiedPortForwarder] matches the [proxiedPortForwarder] of a ProxiedDevice. /// It forwards a port on the remote host to the local host. final ProxiedPortForwarder _proxiedPortForwarder; /// [_devicePortForwarder] matches the [portForwarder] of a ProxiedDevice. /// It forwards a port on the remotely connected device, to the remote host, then to the local host. final ProxiedPortForwarder _devicePortForwarder; Uri? _localUri; @override Uri? get uri => _ddsStartedLocally ? _localDds.uri : _localUri; @override Future<void> get done => _completer.future; final Completer<void> _completer = Completer<void>(); final DartDevelopmentService _localDds; bool _ddsStartedLocally = false; @override Future<void> startDartDevelopmentService( Uri vmServiceUri, { required Logger logger, int? hostPort, bool? ipv6, bool? disableServiceAuthCodes, bool cacheStartupProfile = false, }) async { // Locate the original VM service port on the remote daemon. // A proxied device has two PortForwarder. Check both to determine which // one forwarded the VM service port. final int? remoteVMServicePort = _proxiedPortForwarder.originalRemotePort(vmServiceUri.port) ?? _devicePortForwarder.originalRemotePort(vmServiceUri.port); if (remoteVMServicePort == null) { _logger.printTrace('VM service port is not a forwarded port. Start DDS locally.'); _ddsStartedLocally = true; await _localDds.startDartDevelopmentService( vmServiceUri, logger: logger, hostPort: hostPort, ipv6: ipv6, disableServiceAuthCodes: disableServiceAuthCodes, cacheStartupProfile: cacheStartupProfile, ); unawaited(_localDds.done.then(_completer.complete)); return; } final Uri remoteVMServiceUri = vmServiceUri.replace(port: remoteVMServicePort); String? remoteUriStr; const String method = 'device.startDartDevelopmentService'; try { // Proxies the `done` future. unawaited(connection .listenToEvent('device.dds.done.$deviceId') .first .then( (DaemonEventData event) => _completer.complete(), onError: (_) { // Ignore if we did not receive any event from the server. }, )); remoteUriStr = _cast<String?>(await connection.sendRequest(method, <String, Object?>{ 'deviceId': deviceId, 'vmServiceUri': remoteVMServiceUri.toString(), 'disableServiceAuthCodes': disableServiceAuthCodes, })); } on String catch (e) { if (!e.contains(method)) { rethrow; } // Remote daemon does not support the command, ignore. // We will try to start DDS locally below. } if (remoteUriStr == null) { _logger.printTrace('Remote daemon cannot start DDS. Start a local DDS instead.'); _ddsStartedLocally = true; await _localDds.startDartDevelopmentService( vmServiceUri, logger: logger, hostPort: hostPort, ipv6: ipv6, disableServiceAuthCodes: disableServiceAuthCodes, cacheStartupProfile: cacheStartupProfile, ); unawaited(_localDds.done.then(_completer.complete)); return; } _logger.printTrace('Remote DDS started on $remoteUriStr.'); // Forward the port. final Uri remoteUri = Uri.parse(remoteUriStr); final int localPort = await _proxiedPortForwarder.forward( remoteUri.port, hostPort: hostPort, ipv6: ipv6, ); _localUri = remoteUri.replace(port: localPort); _logger.printTrace('Local port forwarded DDS on $_localUri.'); _logger.sendEvent('device.proxied_dds_forwarded', <String, String>{ 'deviceId': deviceId, 'remoteUri': remoteUri.toString(), 'localUri': _localUri!.toString(), }); } @override Future<void> shutdown() async { if (_ddsStartedLocally) { await _localDds.shutdown(); _ddsStartedLocally = false; } else { await connection.sendRequest('device.shutdownDartDevelopmentService', <String, Object?>{ 'deviceId': deviceId, }); } } @override void setExternalDevToolsUri(Uri uri) { connection.sendRequest('device.setExternalDevToolsUriForDartDevelopmentService', <String, Object?>{ 'deviceId': deviceId, 'uri': uri.toString(), }); } }
flutter/packages/flutter_tools/lib/src/proxied_devices/devices.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/proxied_devices/devices.dart", "repo_id": "flutter", "token_count": 10382 }
939
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:meta/meta.dart'; import 'package:package_config/package_config.dart'; import 'package:pool/pool.dart'; import 'package:unified_analytics/unified_analytics.dart'; import 'package:vm_service/vm_service.dart' as vm_service; import 'base/context.dart'; import 'base/file_system.dart'; import 'base/logger.dart'; import 'base/platform.dart'; import 'base/utils.dart'; import 'build_info.dart'; import 'compile.dart'; import 'convert.dart'; import 'dart/package_map.dart'; import 'devfs.dart'; import 'device.dart'; import 'globals.dart' as globals; import 'project.dart'; import 'reporting/reporting.dart'; import 'resident_runner.dart'; import 'vmservice.dart'; ProjectFileInvalidator get projectFileInvalidator => context.get<ProjectFileInvalidator>() ?? ProjectFileInvalidator( fileSystem: globals.fs, platform: globals.platform, logger: globals.logger, ); HotRunnerConfig? get hotRunnerConfig => context.get<HotRunnerConfig>(); class HotRunnerConfig { /// Should the hot runner assume that the minimal Dart dependencies do not change? bool stableDartDependencies = false; /// Whether the hot runner should scan for modified files asynchronously. bool asyncScanning = false; /// A hook for implementations to perform any necessary initialization prior /// to a hot restart. Should return true if the hot restart should continue. Future<bool?> setupHotRestart() async { return true; } /// A hook for implementations to perform any necessary initialization prior /// to a hot reload. Should return true if the hot restart should continue. Future<bool?> setupHotReload() async { return true; } /// A hook for implementations to perform any necessary cleanup after the /// devfs sync is complete. At this point the flutter_tools no longer needs to /// access the source files and assets. void updateDevFSComplete() {} /// A hook for implementations to perform any necessary operations right /// before the runner is about to be shut down. Future<void> runPreShutdownOperations() async { return; } } const bool kHotReloadDefault = true; class DeviceReloadReport { DeviceReloadReport(this.device, this.reports); FlutterDevice? device; List<vm_service.ReloadReport> reports; // List has one report per Flutter view. } class HotRunner extends ResidentRunner { HotRunner( super.flutterDevices, { required super.target, required super.debuggingOptions, this.benchmarkMode = false, this.applicationBinary, this.hostIsIde = false, super.projectRootPath, super.dillOutputPath, super.stayResident, bool super.ipv6 = false, super.machine, super.devtoolsHandler, StopwatchFactory stopwatchFactory = const StopwatchFactory(), ReloadSourcesHelper reloadSourcesHelper = defaultReloadSourcesHelper, ReassembleHelper reassembleHelper = _defaultReassembleHelper, HotRunnerNativeAssetsBuilder? nativeAssetsBuilder, String? nativeAssetsYamlFile, required Analytics analytics, }) : _stopwatchFactory = stopwatchFactory, _reloadSourcesHelper = reloadSourcesHelper, _reassembleHelper = reassembleHelper, _nativeAssetsBuilder = nativeAssetsBuilder, _nativeAssetsYamlFile = nativeAssetsYamlFile, _analytics = analytics, super( hotMode: true, ); final StopwatchFactory _stopwatchFactory; final ReloadSourcesHelper _reloadSourcesHelper; final ReassembleHelper _reassembleHelper; final Analytics _analytics; final bool benchmarkMode; final File? applicationBinary; final bool hostIsIde; /// When performing a hot restart, the tool needs to upload a new main.dart.dill to /// each attached device's devfs. Replacing the existing file is not safe and does /// not work at all on the windows embedder, because the old dill file will still be /// memory-mapped by the embedder. To work around this issue, the tool will alternate /// names for the uploaded dill, sometimes inserting `.swap`. Since the active dill will /// never be replaced, there is no risk of writing the file while the embedder is attempting /// to read from it. This also avoids filling up the devfs, if a incrementing counter was /// used instead. /// /// This is only used for hot restart, incremental dills uploaded as part of the hot /// reload process do not have this issue. bool _swap = false; /// Whether the resident runner has correctly attached to the running application. bool _didAttach = false; final Map<String, List<int>> benchmarkData = <String, List<int>>{}; String? _targetPlatform; String? _sdkName; bool? _emulator; final HotRunnerNativeAssetsBuilder? _nativeAssetsBuilder; final String? _nativeAssetsYamlFile; String? flavor; Future<void> _calculateTargetPlatform() async { if (_targetPlatform != null) { return; } switch (flutterDevices.length) { case 1: final Device device = flutterDevices.first.device!; _targetPlatform = getNameForTargetPlatform(await device.targetPlatform); _sdkName = await device.sdkNameAndVersion; _emulator = await device.isLocalEmulator; case > 1: _targetPlatform = 'multiple'; _sdkName = 'multiple'; _emulator = false; default: _targetPlatform = 'unknown'; _sdkName = 'unknown'; _emulator = false; } } void _addBenchmarkData(String name, int value) { benchmarkData[name] ??= <int>[]; benchmarkData[name]!.add(value); } Future<void> _reloadSourcesService( String isolateId, { bool force = false, bool pause = false, }) async { final OperationResult result = await restart(pause: pause); if (!result.isOk) { throw vm_service.RPCError( 'Unable to reload sources', RPCErrorCodes.kInternalError, '', ); } } Future<void> _restartService({ bool pause = false }) async { final OperationResult result = await restart(fullRestart: true, pause: pause); if (!result.isOk) { throw vm_service.RPCError( 'Unable to restart', RPCErrorCodes.kInternalError, '', ); } } Future<String> _compileExpressionService( String isolateId, String expression, List<String> definitions, List<String> definitionTypes, List<String> typeDefinitions, List<String> typeBounds, List<String> typeDefaults, String libraryUri, String? klass, String? method, bool isStatic, ) async { for (final FlutterDevice? device in flutterDevices) { if (device!.generator != null) { final CompilerOutput? compilerOutput = await device.generator!.compileExpression(expression, definitions, definitionTypes, typeDefinitions, typeBounds, typeDefaults, libraryUri, klass, method, isStatic); if (compilerOutput != null && compilerOutput.expressionData != null) { return base64.encode(compilerOutput.expressionData!); } } } throw Exception('Failed to compile $expression'); } // Returns the exit code of the flutter tool process, like [run]. @override Future<int> attach({ Completer<DebugConnectionInfo>? connectionInfoCompleter, Completer<void>? appStartedCompleter, bool allowExistingDdsInstance = false, bool enableDevTools = false, bool needsFullRestart = true, }) async { _didAttach = true; try { await connectToServiceProtocol( reloadSources: _reloadSourcesService, restart: _restartService, compileExpression: _compileExpressionService, getSkSLMethod: writeSkSL, allowExistingDdsInstance: allowExistingDdsInstance, ); // Catches all exceptions, non-Exception objects are rethrown. } catch (error) { // ignore: avoid_catches_without_on_clauses if (error is! Exception && error is! String) { rethrow; } globals.printError('Error connecting to the service protocol: $error'); return 2; } if (debuggingOptions.serveObservatory) { await enableObservatory(); } if (enableDevTools) { // The method below is guaranteed never to return a failing future. unawaited(residentDevtoolsHandler!.serveAndAnnounceDevTools( devToolsServerAddress: debuggingOptions.devToolsServerAddress, flutterDevices: flutterDevices, isStartPaused: debuggingOptions.startPaused, )); } for (final FlutterDevice? device in flutterDevices) { await device!.initLogReader(); device .developmentShaderCompiler .configureCompiler(device.targetPlatform); } try { final List<Uri?> baseUris = await _initDevFS(); if (connectionInfoCompleter != null) { // Only handle one debugger connection. connectionInfoCompleter.complete( DebugConnectionInfo( httpUri: flutterDevices.first.vmService!.httpAddress, wsUri: flutterDevices.first.vmService!.wsAddress, baseUri: baseUris.first.toString(), ), ); } } on DevFSException catch (error) { globals.printError('Error initializing DevFS: $error'); return 3; } final Stopwatch initialUpdateDevFSsTimer = Stopwatch()..start(); final UpdateFSReport devfsResult = await _updateDevFS(fullRestart: needsFullRestart); _addBenchmarkData( 'hotReloadInitialDevFSSyncMilliseconds', initialUpdateDevFSsTimer.elapsed.inMilliseconds, ); if (!devfsResult.success) { return 3; } for (final FlutterDevice? device in flutterDevices) { // VM must have accepted the kernel binary, there will be no reload // report, so we let incremental compiler know that source code was accepted. if (device!.generator != null) { device.generator!.accept(); } final List<FlutterView> views = await device.vmService!.getFlutterViews(); for (final FlutterView view in views) { globals.printTrace('Connected to $view.'); } } // In fast-start mode, apps are initialized from a placeholder splashscreen // app. We must do a restart here to load the program and assets for the // real app. if (debuggingOptions.fastStart) { await restart( fullRestart: true, reason: 'restart', silent: true, ); } appStartedCompleter?.complete(); if (benchmarkMode) { // Wait multiple seconds for the isolate to have fully started. await Future<void>.delayed(const Duration(seconds: 10)); // We are running in benchmark mode. globals.printStatus('Running in benchmark mode.'); // Measure time to perform a hot restart. globals.printStatus('Benchmarking hot restart'); await restart(fullRestart: true); // Wait multiple seconds to stabilize benchmark on slower device lab hardware. // Hot restart finishes when the new isolate is started, not when the new isolate // is ready. This process can actually take multiple seconds. await Future<void>.delayed(const Duration(seconds: 10)); globals.printStatus('Benchmarking hot reload'); // Measure time to perform a hot reload. await restart(); if (stayResident) { await waitForAppToFinish(); } else { globals.printStatus('Benchmark completed. Exiting application.'); await _cleanupDevFS(); await stopEchoingDeviceLog(); await exitApp(); } final File benchmarkOutput = globals.fs.file('hot_benchmark.json'); benchmarkOutput.writeAsStringSync(toPrettyJson(benchmarkData)); return 0; } writeVmServiceFile(); int result = 0; if (stayResident) { result = await waitForAppToFinish(); } await cleanupAtFinish(); return result; } @override Future<int> run({ Completer<DebugConnectionInfo>? connectionInfoCompleter, Completer<void>? appStartedCompleter, bool enableDevTools = false, String? route, }) async { await _calculateTargetPlatform(); final Uri? nativeAssetsYaml; if (_nativeAssetsYamlFile != null) { nativeAssetsYaml = globals.fs.path.toUri(_nativeAssetsYamlFile); } else { final Uri projectUri = Uri.directory(projectRootPath); nativeAssetsYaml = await _nativeAssetsBuilder?.dryRun( projectUri: projectUri, fileSystem: fileSystem, flutterDevices: flutterDevices, logger: logger, packageConfig: debuggingOptions.buildInfo.packageConfig, ); } final Stopwatch appStartedTimer = Stopwatch()..start(); final File mainFile = globals.fs.file(mainPath); Duration totalCompileTime = Duration.zero; Duration totalLaunchAppTime = Duration.zero; final List<Future<bool>> startupTasks = <Future<bool>>[]; for (final FlutterDevice? device in flutterDevices) { // Here we initialize the frontend_server concurrently with the platform // build, reducing overall initialization time. This is safe because the first // invocation of the frontend server produces a full dill file that the // subsequent invocation in devfs will not overwrite. await runSourceGenerators(); if (device!.generator != null) { final Stopwatch compileTimer = Stopwatch()..start(); startupTasks.add( device.generator!.recompile( mainFile.uri, <Uri>[], // When running without a provided applicationBinary, the tool will // simultaneously run the initial frontend_server compilation and // the native build step. If there is a Dart compilation error, it // should only be displayed once. suppressErrors: applicationBinary == null, checkDartPluginRegistry: true, dartPluginRegistrant: FlutterProject.current().dartPluginRegistrant, outputPath: dillOutputPath, packageConfig: debuggingOptions.buildInfo.packageConfig, projectRootPath: FlutterProject.current().directory.absolute.path, fs: globals.fs, nativeAssetsYaml: nativeAssetsYaml, ).then((CompilerOutput? output) { compileTimer.stop(); totalCompileTime += compileTimer.elapsed; return output?.errorCount == 0; }) ); } final Stopwatch launchAppTimer = Stopwatch()..start(); startupTasks.add(device.runHot( hotRunner: this, route: route, ).then((int result) { totalLaunchAppTime += launchAppTimer.elapsed; return result == 0; })); } unawaited(appStartedCompleter?.future.then((_) { HotEvent( 'reload-ready', targetPlatform: _targetPlatform!, sdkName: _sdkName!, emulator: _emulator!, fullRestart: false, overallTimeInMs: appStartedTimer.elapsed.inMilliseconds, compileTimeInMs: totalCompileTime.inMilliseconds, transferTimeInMs: totalLaunchAppTime.inMilliseconds, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'reload-ready', targetPlatform: _targetPlatform!, sdkName: _sdkName!, emulator: _emulator!, fullRestart: false, overallTimeInMs: appStartedTimer.elapsed.inMilliseconds, compileTimeInMs: totalCompileTime.inMilliseconds, transferTimeInMs: totalLaunchAppTime.inMilliseconds, )); })); try { final List<bool> results = await Future.wait(startupTasks); if (!results.every((bool passed) => passed)) { appFailedToStart(); return 1; } cacheInitialDillCompilation(); } on Exception catch (err) { globals.printError(err.toString()); appFailedToStart(); return 1; } return attach( connectionInfoCompleter: connectionInfoCompleter, appStartedCompleter: appStartedCompleter, enableDevTools: enableDevTools, needsFullRestart: false, ); } Future<List<Uri?>> _initDevFS() async { final String fsName = globals.fs.path.basename(projectRootPath); return <Uri?>[ for (final FlutterDevice? device in flutterDevices) await device!.setupDevFS( fsName, globals.fs.directory(projectRootPath), ), ]; } Future<UpdateFSReport> _updateDevFS({ bool fullRestart = false }) async { final bool isFirstUpload = !assetBundle.wasBuiltOnce(); final bool rebuildBundle = assetBundle.needsBuild(); if (rebuildBundle) { globals.printTrace('Updating assets'); final int result = await assetBundle.build( packagesPath: '.packages', flavor: debuggingOptions.buildInfo.flavor, ); if (result != 0) { return UpdateFSReport(); } } final Stopwatch findInvalidationTimer = _stopwatchFactory.createStopwatch('updateDevFS')..start(); final DevFS devFS = flutterDevices[0].devFS!; final InvalidationResult invalidationResult = await projectFileInvalidator.findInvalidated( lastCompiled: devFS.lastCompiled, urisToMonitor: devFS.sources, packagesPath: packagesFilePath, asyncScanning: hotRunnerConfig!.asyncScanning, packageConfig: devFS.lastPackageConfig ?? debuggingOptions.buildInfo.packageConfig, ); findInvalidationTimer.stop(); final File entrypointFile = globals.fs.file(mainPath); if (!entrypointFile.existsSync()) { globals.printError( 'The entrypoint file (i.e. the file with main()) ${entrypointFile.path} ' 'cannot be found. Moving or renaming this file will prevent changes to ' 'its contents from being discovered during hot reload/restart until ' 'flutter is restarted or the file is restored.' ); } final UpdateFSReport results = UpdateFSReport( success: true, scannedSourcesCount: devFS.sources.length, findInvalidatedDuration: findInvalidationTimer.elapsed, ); for (final FlutterDevice? device in flutterDevices) { results.incorporateResults(await device!.updateDevFS( mainUri: entrypointFile.absolute.uri, target: target, bundle: assetBundle, bundleFirstUpload: isFirstUpload, bundleDirty: !isFirstUpload && rebuildBundle, fullRestart: fullRestart, pathToReload: getReloadPath(fullRestart: fullRestart, swap: _swap), invalidatedFiles: invalidationResult.uris!, packageConfig: invalidationResult.packageConfig!, dillOutputPath: dillOutputPath, )); } return results; } void _resetDirtyAssets() { for (final FlutterDevice device in flutterDevices) { final DevFS? devFS = device.devFS; if (devFS == null) { // This is sometimes null, however we don't know why and have not been // able to reproduce, https://github.com/flutter/flutter/issues/108653 continue; } devFS.assetPathsToEvict.clear(); devFS.shaderPathsToEvict.clear(); devFS.scenePathsToEvict.clear(); } } Future<void> _cleanupDevFS() async { final List<Future<void>> futures = <Future<void>>[]; for (final FlutterDevice device in flutterDevices) { if (device.devFS != null) { // Cleanup the devFS, but don't wait indefinitely. // We ignore any errors, because it's not clear what we would do anyway. futures.add(device.devFS!.destroy() .timeout(const Duration(milliseconds: 250)) .then<void>( (Object? _) {}, onError: (Object? error, StackTrace stackTrace) { globals.printTrace('Ignored error while cleaning up DevFS: $error\n$stackTrace'); } ), ); } device.devFS = null; } await Future.wait(futures); } Future<void> _launchInView( FlutterDevice device, Uri main, Uri assetsDirectory, ) async { final List<FlutterView> views = await device.vmService!.getFlutterViews(); await Future.wait(<Future<void>>[ for (final FlutterView view in views) device.vmService!.runInView( viewId: view.id, main: main, assetsDirectory: assetsDirectory, ), ]); } Future<void> _launchFromDevFS() async { final List<Future<void>> futures = <Future<void>>[]; for (final FlutterDevice? device in flutterDevices) { final Uri deviceEntryUri = device!.devFS!.baseUri!.resolve(_swap ? 'main.dart.swap.dill' : 'main.dart.dill'); final Uri deviceAssetsDirectoryUri = device.devFS!.baseUri!.resolveUri( globals.fs.path.toUri(getAssetBuildDirectory())); futures.add(_launchInView(device, deviceEntryUri, deviceAssetsDirectoryUri)); } await Future.wait(futures); } Future<OperationResult> _restartFromSources({ String? reason, }) async { final Stopwatch restartTimer = Stopwatch()..start(); UpdateFSReport updatedDevFS; try { updatedDevFS = await _updateDevFS(fullRestart: true); } finally { hotRunnerConfig!.updateDevFSComplete(); } if (!updatedDevFS.success) { for (final FlutterDevice? device in flutterDevices) { if (device!.generator != null) { await device.generator!.reject(); } } return OperationResult(1, 'DevFS synchronization failed'); } _resetDirtyAssets(); for (final FlutterDevice? device in flutterDevices) { // VM must have accepted the kernel binary, there will be no reload // report, so we let incremental compiler know that source code was accepted. if (device!.generator != null) { device.generator!.accept(); } } // Check if the isolate is paused and resume it. final List<Future<void>> operations = <Future<void>>[]; for (final FlutterDevice? device in flutterDevices) { final Set<String?> uiIsolatesIds = <String?>{}; final List<FlutterView> views = await device!.vmService!.getFlutterViews(); for (final FlutterView view in views) { if (view.uiIsolate == null) { continue; } uiIsolatesIds.add(view.uiIsolate!.id); // Reload the isolate. final Future<vm_service.Isolate?> reloadIsolate = device.vmService! .getIsolateOrNull(view.uiIsolate!.id!); operations.add(reloadIsolate.then((vm_service.Isolate? isolate) async { if ((isolate != null) && isPauseEvent(isolate.pauseEvent!.kind!)) { // The embedder requires that the isolate is unpaused, because the // runInView method requires interaction with dart engine APIs that // are not thread-safe, and thus must be run on the same thread that // would be blocked by the pause. Simply un-pausing is not sufficient, // because this does not prevent the isolate from immediately hitting // a breakpoint (for example if the breakpoint was placed in a loop // or in a frequently called method) or an exception. Instead, all // breakpoints are first disabled and exception pause mode set to // None, and then the isolate resumed. // These settings to not need restoring as Hot Restart results in // new isolates, which will be configured by the editor as they are // started. final List<Future<void>> breakpointAndExceptionRemoval = <Future<void>>[ device.vmService!.service.setIsolatePauseMode(isolate.id!, exceptionPauseMode: vm_service.ExceptionPauseMode.kNone), for (final vm_service.Breakpoint breakpoint in isolate.breakpoints!) device.vmService!.service.removeBreakpoint(isolate.id!, breakpoint.id!), ]; await Future.wait(breakpointAndExceptionRemoval); await device.vmService!.service.resume(view.uiIsolate!.id!); } })); } // The engine handles killing and recreating isolates that it has spawned // ("uiIsolates"). The isolates that were spawned from these uiIsolates // will not be restarted, and so they must be manually killed. final vm_service.VM vm = await device.vmService!.service.getVM(); for (final vm_service.IsolateRef isolateRef in vm.isolates!) { if (uiIsolatesIds.contains(isolateRef.id)) { continue; } operations.add( device.vmService!.service.kill(isolateRef.id!) // Since we never check the value of this Future, only await its // completion, make its type nullable so we can return null when // catching errors. .then<vm_service.Success?>( (vm_service.Success success) => success, onError: (Object error, StackTrace stackTrace) { if (error is vm_service.SentinelException || (error is vm_service.RPCError && error.code == 105)) { // Do nothing on a SentinelException since it means the isolate // has already been killed. // Error code 105 indicates the isolate is not yet runnable, and might // be triggered if the tool is attempting to kill the asset parsing // isolate before it has finished starting up. return null; } return Future<vm_service.Success?>.error(error, stackTrace); }, ), ); } } await Future.wait(operations); await _launchFromDevFS(); restartTimer.stop(); globals.printTrace('Hot restart performed in ${getElapsedAsMilliseconds(restartTimer.elapsed)}.'); _addBenchmarkData('hotRestartMillisecondsToFrame', restartTimer.elapsed.inMilliseconds); // Send timing analytics. final Duration elapsedDuration = restartTimer.elapsed; globals.flutterUsage.sendTiming('hot', 'restart', elapsedDuration); _analytics.send(Event.timing( workflow: 'hot', variableName: 'restart', elapsedMilliseconds: elapsedDuration.inMilliseconds, )); // Toggle the main dill name after successfully uploading. _swap =! _swap; return OperationResult( OperationResult.ok.code, OperationResult.ok.message, updateFSReport: updatedDevFS, ); } /// Returns [true] if the reload was successful. /// Prints errors if [printErrors] is [true]. static bool validateReloadReport( vm_service.ReloadReport? reloadReport, { bool printErrors = true, }) { if (reloadReport == null) { if (printErrors) { globals.printError('Hot reload did not receive reload report.'); } return false; } final ReloadReportContents contents = ReloadReportContents.fromReloadReport(reloadReport); if (!reloadReport.success!) { if (printErrors) { globals.printError('Hot reload was rejected:'); for (final ReasonForCancelling reason in contents.notices) { globals.printError(reason.toString()); } } return false; } return true; } @override Future<OperationResult> restart({ bool fullRestart = false, String? reason, bool silent = false, bool pause = false, }) async { if (flutterDevices.any((FlutterDevice? device) => device!.devFS == null)) { return OperationResult(1, 'Device initialization has not completed.'); } await _calculateTargetPlatform(); final Stopwatch timer = Stopwatch()..start(); // Run source generation if needed. await runSourceGenerators(); if (fullRestart) { final OperationResult result = await _fullRestartHelper( targetPlatform: _targetPlatform, sdkName: _sdkName, emulator: _emulator, reason: reason, silent: silent, ); if (!silent) { globals.printStatus('Restarted application in ${getElapsedAsMilliseconds(timer.elapsed)}.'); } unawaited(residentDevtoolsHandler!.hotRestart(flutterDevices)); return result; } final OperationResult result = await _hotReloadHelper( targetPlatform: _targetPlatform, sdkName: _sdkName, emulator: _emulator, reason: reason, pause: pause, ); if (result.isOk) { final String elapsed = getElapsedAsMilliseconds(timer.elapsed); if (!silent) { if (result.extraTimings.isNotEmpty) { final String extraTimingsString = result.extraTimings .map((OperationResultExtraTiming e) => '${e.description}: ${e.timeInMs} ms') .join(', '); globals.printStatus('${result.message} in $elapsed ($extraTimingsString).'); } else { globals.printStatus('${result.message} in $elapsed.'); } } } return result; } Future<OperationResult> _fullRestartHelper({ String? targetPlatform, String? sdkName, bool? emulator, String? reason, bool? silent, }) async { if (!supportsRestart) { return OperationResult(1, 'hotRestart not supported'); } Status? status; if (!silent!) { status = globals.logger.startProgress( 'Performing hot restart...', progressId: 'hot.restart', ); } OperationResult result; String? restartEvent; try { final Stopwatch restartTimer = _stopwatchFactory.createStopwatch('fullRestartHelper')..start(); if ((await hotRunnerConfig!.setupHotRestart()) != true) { return OperationResult(1, 'setupHotRestart failed'); } result = await _restartFromSources(reason: reason); restartTimer.stop(); if (!result.isOk) { restartEvent = 'restart-failed'; } else { HotEvent('restart', targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: true, reason: reason, overallTimeInMs: restartTimer.elapsed.inMilliseconds, syncedBytes: result.updateFSReport?.syncedBytes, invalidatedSourcesCount: result.updateFSReport?.invalidatedSourcesCount, transferTimeInMs: result.updateFSReport?.transferDuration.inMilliseconds, compileTimeInMs: result.updateFSReport?.compileDuration.inMilliseconds, findInvalidatedTimeInMs: result.updateFSReport?.findInvalidatedDuration.inMilliseconds, scannedSourcesCount: result.updateFSReport?.scannedSourcesCount, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'restart', targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: true, reason: reason, overallTimeInMs: restartTimer.elapsed.inMilliseconds, syncedBytes: result.updateFSReport?.syncedBytes, invalidatedSourcesCount: result.updateFSReport?.invalidatedSourcesCount, transferTimeInMs: result.updateFSReport?.transferDuration.inMilliseconds, compileTimeInMs: result.updateFSReport?.compileDuration.inMilliseconds, findInvalidatedTimeInMs: result.updateFSReport?.findInvalidatedDuration.inMilliseconds, scannedSourcesCount: result.updateFSReport?.scannedSourcesCount, )); } } on vm_service.SentinelException catch (err, st) { restartEvent = 'exception'; return OperationResult(1, 'hot restart failed to complete: $err\n$st', fatal: true); } on vm_service.RPCError catch (err, st) { restartEvent = 'exception'; return OperationResult(1, 'hot restart failed to complete: $err\n$st', fatal: true); } finally { // The `restartEvent` variable will be null if restart succeeded. We will // only handle the case when it failed here. if (restartEvent != null) { HotEvent(restartEvent, targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: true, reason: reason, ).send(); _analytics.send(Event.hotRunnerInfo( label: restartEvent, targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: true, reason: reason, )); } status?.cancel(); } return result; } Future<OperationResult> _hotReloadHelper({ String? targetPlatform, String? sdkName, bool? emulator, String? reason, bool? pause, }) async { Status status = globals.logger.startProgress( 'Performing hot reload...', progressId: 'hot.reload', ); OperationResult result; try { result = await _reloadSources( targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, reason: reason, pause: pause, onSlow: (String message) { status.cancel(); status = globals.logger.startProgress( message, progressId: 'hot.reload', ); }, ); } on vm_service.RPCError catch (error) { String errorMessage = 'hot reload failed to complete'; int errorCode = 1; if (error.code == kIsolateReloadBarred) { errorCode = error.code; errorMessage = 'Unable to hot reload application due to an unrecoverable error in ' 'the source code. Please address the error and then use "R" to ' 'restart the app.\n' '${error.message} (error code: ${error.code})'; HotEvent('reload-barred', targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: false, reason: reason, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'reload-barred', targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: false, reason: reason, )); } else { HotEvent('exception', targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: false, reason: reason, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'exception', targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: false, reason: reason, )); } return OperationResult(errorCode, errorMessage, fatal: true); } finally { status.cancel(); } return result; } Future<OperationResult> _reloadSources({ String? targetPlatform, String? sdkName, bool? emulator, bool? pause = false, String? reason, void Function(String message)? onSlow, }) async { final Map<FlutterDevice?, List<FlutterView>> viewCache = <FlutterDevice?, List<FlutterView>>{}; for (final FlutterDevice? device in flutterDevices) { final List<FlutterView> views = await device!.vmService!.getFlutterViews(); viewCache[device] = views; for (final FlutterView view in views) { if (view.uiIsolate == null) { return OperationResult(2, 'Application isolate not found', fatal: true); } } } final Stopwatch reloadTimer = _stopwatchFactory.createStopwatch('reloadSources:reload')..start(); if ((await hotRunnerConfig!.setupHotReload()) != true) { return OperationResult(1, 'setupHotReload failed'); } final Stopwatch devFSTimer = Stopwatch()..start(); UpdateFSReport updatedDevFS; try { updatedDevFS= await _updateDevFS(); } finally { hotRunnerConfig!.updateDevFSComplete(); } // Record time it took to synchronize to DevFS. bool shouldReportReloadTime = true; _addBenchmarkData('hotReloadDevFSSyncMilliseconds', devFSTimer.elapsed.inMilliseconds); if (!updatedDevFS.success) { return OperationResult(1, 'DevFS synchronization failed'); } final List<OperationResultExtraTiming> extraTimings = <OperationResultExtraTiming>[]; extraTimings.add(OperationResultExtraTiming('compile', updatedDevFS.compileDuration.inMilliseconds)); String reloadMessage = 'Reloaded 0 libraries'; final Stopwatch reloadVMTimer = _stopwatchFactory.createStopwatch('reloadSources:vm')..start(); final Map<String, Object?> firstReloadDetails = <String, Object?>{}; if (updatedDevFS.invalidatedSourcesCount > 0) { final OperationResult result = await _reloadSourcesHelper( this, flutterDevices, pause, firstReloadDetails, targetPlatform, sdkName, emulator, reason, globals.flutterUsage, globals.analytics, ); if (result.code != 0) { return result; } reloadMessage = result.message; } else { _addBenchmarkData('hotReloadVMReloadMilliseconds', 0); } reloadVMTimer.stop(); extraTimings.add(OperationResultExtraTiming('reload', reloadVMTimer.elapsedMilliseconds)); await evictDirtyAssets(); final Stopwatch reassembleTimer = _stopwatchFactory.createStopwatch('reloadSources:reassemble')..start(); final ReassembleResult reassembleResult = await _reassembleHelper( flutterDevices, viewCache, onSlow, reloadMessage, ); shouldReportReloadTime = reassembleResult.shouldReportReloadTime; if (reassembleResult.reassembleViews.isEmpty) { return OperationResult(OperationResult.ok.code, reloadMessage); } // Record time it took for Flutter to reassemble the application. reassembleTimer.stop(); _addBenchmarkData('hotReloadFlutterReassembleMilliseconds', reassembleTimer.elapsed.inMilliseconds); extraTimings.add(OperationResultExtraTiming('reassemble', reassembleTimer.elapsedMilliseconds)); reloadTimer.stop(); final Duration reloadDuration = reloadTimer.elapsed; final int reloadInMs = reloadDuration.inMilliseconds; // Collect stats that help understand scale of update for this hot reload request. // For example, [syncedLibraryCount]/[finalLibraryCount] indicates how // many libraries were affected by the hot reload request. // Relation of [invalidatedSourcesCount] to [syncedLibraryCount] should help // understand sync/transfer "overhead" of updating this number of source files. HotEvent('reload', targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: false, reason: reason, overallTimeInMs: reloadInMs, finalLibraryCount: firstReloadDetails['finalLibraryCount'] as int? ?? 0, syncedLibraryCount: firstReloadDetails['receivedLibraryCount'] as int? ?? 0, syncedClassesCount: firstReloadDetails['receivedClassesCount'] as int? ?? 0, syncedProceduresCount: firstReloadDetails['receivedProceduresCount'] as int? ?? 0, syncedBytes: updatedDevFS.syncedBytes, invalidatedSourcesCount: updatedDevFS.invalidatedSourcesCount, transferTimeInMs: updatedDevFS.transferDuration.inMilliseconds, compileTimeInMs: updatedDevFS.compileDuration.inMilliseconds, findInvalidatedTimeInMs: updatedDevFS.findInvalidatedDuration.inMilliseconds, scannedSourcesCount: updatedDevFS.scannedSourcesCount, reassembleTimeInMs: reassembleTimer.elapsed.inMilliseconds, reloadVMTimeInMs: reloadVMTimer.elapsed.inMilliseconds, ).send(); _analytics.send(Event.hotRunnerInfo( label: 'reload', targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: false, reason: reason, overallTimeInMs: reloadInMs, finalLibraryCount: firstReloadDetails['finalLibraryCount'] as int? ?? 0, syncedLibraryCount: firstReloadDetails['receivedLibraryCount'] as int? ?? 0, syncedClassesCount: firstReloadDetails['receivedClassesCount'] as int? ?? 0, syncedProceduresCount: firstReloadDetails['receivedProceduresCount'] as int? ?? 0, syncedBytes: updatedDevFS.syncedBytes, invalidatedSourcesCount: updatedDevFS.invalidatedSourcesCount, transferTimeInMs: updatedDevFS.transferDuration.inMilliseconds, compileTimeInMs: updatedDevFS.compileDuration.inMilliseconds, findInvalidatedTimeInMs: updatedDevFS.findInvalidatedDuration.inMilliseconds, scannedSourcesCount: updatedDevFS.scannedSourcesCount, reassembleTimeInMs: reassembleTimer.elapsed.inMilliseconds, reloadVMTimeInMs: reloadVMTimer.elapsed.inMilliseconds, )); if (shouldReportReloadTime) { globals.printTrace('Hot reload performed in ${getElapsedAsMilliseconds(reloadDuration)}.'); // Record complete time it took for the reload. _addBenchmarkData('hotReloadMillisecondsToFrame', reloadInMs); } // Only report timings if we reloaded a single view without any errors. if ((reassembleResult.reassembleViews.length == 1) && !reassembleResult.failedReassemble && shouldReportReloadTime) { globals.flutterUsage.sendTiming('hot', 'reload', reloadDuration); _analytics.send(Event.timing( workflow: 'hot', variableName: 'reload', elapsedMilliseconds: reloadDuration.inMilliseconds, )); } return OperationResult( reassembleResult.failedReassemble ? 1 : OperationResult.ok.code, reloadMessage, extraTimings: extraTimings ); } @override void printHelp({ required bool details }) { globals.printStatus('Flutter run key commands.'); commandHelp.r.print(); if (supportsRestart) { commandHelp.R.print(); } if (details) { printHelpDetails(); commandHelp.hWithDetails.print(); } else { commandHelp.hWithoutDetails.print(); } if (_didAttach) { commandHelp.d.print(); } commandHelp.c.print(); commandHelp.q.print(); if (debuggingOptions.buildInfo.nullSafetyMode != NullSafetyMode.sound) { globals.printStatus(''); globals.printStatus( 'Running without sound null safety โš ๏ธ', emphasis: true, ); globals.printStatus( 'Dart 3 will only support sound null safety, see https://dart.dev/null-safety', ); } globals.printStatus(''); printDebuggerList(); } @visibleForTesting Future<void> evictDirtyAssets() async { final List<Future<void>> futures = <Future<void>>[]; for (final FlutterDevice? device in flutterDevices) { if (device!.devFS!.assetPathsToEvict.isEmpty && device.devFS!.shaderPathsToEvict.isEmpty && device.devFS!.scenePathsToEvict.isEmpty) { continue; } final List<FlutterView> views = await device.vmService!.getFlutterViews(); // If this is the first time we update the assets, make sure to call the setAssetDirectory if (!device.devFS!.hasSetAssetDirectory) { final Uri deviceAssetsDirectoryUri = device.devFS!.baseUri!.resolveUri(globals.fs.path.toUri(getAssetBuildDirectory())); await Future.wait<void>(views.map<Future<void>>( (FlutterView view) => device.vmService!.setAssetDirectory( assetsDirectory: deviceAssetsDirectoryUri, uiIsolateId: view.uiIsolate!.id, viewId: view.id, windows: device.targetPlatform == TargetPlatform.windows_x64, ) )); for (final FlutterView view in views) { globals.printTrace('Set asset directory in $view.'); } device.devFS!.hasSetAssetDirectory = true; } if (views.first.uiIsolate == null) { globals.printError('Application isolate not found for $device'); continue; } if (device.devFS!.didUpdateFontManifest) { futures.add(device.vmService!.reloadAssetFonts( isolateId: views.first.uiIsolate!.id!, viewId: views.first.id, )); } for (final String assetPath in device.devFS!.assetPathsToEvict) { futures.add( device.vmService! .flutterEvictAsset( assetPath, isolateId: views.first.uiIsolate!.id!, ) ); } for (final String assetPath in device.devFS!.shaderPathsToEvict) { futures.add( device.vmService! .flutterEvictShader( assetPath, isolateId: views.first.uiIsolate!.id!, ) ); } for (final String assetPath in device.devFS!.scenePathsToEvict) { futures.add( device.vmService! .flutterEvictScene( assetPath, isolateId: views.first.uiIsolate!.id!, ) ); } device.devFS!.assetPathsToEvict.clear(); device.devFS!.shaderPathsToEvict.clear(); device.devFS!.scenePathsToEvict.clear(); } await Future.wait<void>(futures); } @override Future<void> cleanupAfterSignal() async { await stopEchoingDeviceLog(); await hotRunnerConfig!.runPreShutdownOperations(); if (_didAttach) { appFinished(); } else { await exitApp(); } } @override Future<void> preExit() async { await _cleanupDevFS(); await hotRunnerConfig!.runPreShutdownOperations(); await super.preExit(); } @override Future<void> cleanupAtFinish() async { for (final FlutterDevice? flutterDevice in flutterDevices) { await flutterDevice!.device!.dispose(); } await _cleanupDevFS(); await residentDevtoolsHandler!.shutdown(); await stopEchoingDeviceLog(); } } typedef ReloadSourcesHelper = Future<OperationResult> Function( HotRunner hotRunner, List<FlutterDevice?> flutterDevices, bool? pause, Map<String, dynamic> firstReloadDetails, String? targetPlatform, String? sdkName, bool? emulator, String? reason, Usage usage, Analytics analytics, ); @visibleForTesting Future<OperationResult> defaultReloadSourcesHelper( HotRunner hotRunner, List<FlutterDevice?> flutterDevices, bool? pause, Map<String, dynamic> firstReloadDetails, String? targetPlatform, String? sdkName, bool? emulator, String? reason, Usage usage, Analytics analytics, ) async { final Stopwatch vmReloadTimer = Stopwatch()..start(); const String entryPath = 'main.dart.incremental.dill'; final List<Future<DeviceReloadReport?>> allReportsFutures = <Future<DeviceReloadReport?>>[]; for (final FlutterDevice? device in flutterDevices) { final List<Future<vm_service.ReloadReport>> reportFutures = await _reloadDeviceSources( device!, entryPath, pause: pause, ); allReportsFutures.add(Future.wait(reportFutures).then<DeviceReloadReport?>( (List<vm_service.ReloadReport> reports) async { // TODO(aam): Investigate why we are validating only first reload report, // which seems to be current behavior if (reports.isEmpty) { return null; } final vm_service.ReloadReport firstReport = reports.first; // Don't print errors because they will be printed further down when // `validateReloadReport` is called again. await device.updateReloadStatus( HotRunner.validateReloadReport(firstReport, printErrors: false), ); return DeviceReloadReport(device, reports); }, )); } final Iterable<DeviceReloadReport> reports = (await Future.wait(allReportsFutures)).whereType<DeviceReloadReport>(); final vm_service.ReloadReport? reloadReport = reports.isEmpty ? null : reports.first.reports[0]; if (reloadReport == null || !HotRunner.validateReloadReport(reloadReport)) { // Reload failed. HotEvent('reload-reject', targetPlatform: targetPlatform!, sdkName: sdkName!, emulator: emulator!, fullRestart: false, reason: reason, usage: usage, ).send(); analytics.send(Event.hotRunnerInfo( label: 'reload-reject', targetPlatform: targetPlatform, sdkName: sdkName, emulator: emulator, fullRestart: false, reason: reason, )); // Reset devFS lastCompileTime to ensure the file will still be marked // as dirty on subsequent reloads. _resetDevFSCompileTime(flutterDevices); if (reloadReport == null) { return OperationResult(1, 'No Dart isolates found'); } final ReloadReportContents contents = ReloadReportContents.fromReloadReport(reloadReport); return OperationResult(1, 'Reload rejected: ${contents.notices.join("\n")}'); } // Collect stats only from the first device. If/when run -d all is // refactored, we'll probably need to send one hot reload/restart event // per device to analytics. firstReloadDetails.addAll(castStringKeyedMap(reloadReport.json!['details'])!); final Map<String, dynamic> details = reloadReport.json!['details'] as Map<String, dynamic>; final int? loadedLibraryCount = details['loadedLibraryCount'] as int?; final int? finalLibraryCount = details['finalLibraryCount'] as int?; globals.printTrace('reloaded $loadedLibraryCount of $finalLibraryCount libraries'); // reloadMessage = 'Reloaded $loadedLibraryCount of $finalLibraryCount libraries'; // Record time it took for the VM to reload the sources. hotRunner._addBenchmarkData('hotReloadVMReloadMilliseconds', vmReloadTimer.elapsed.inMilliseconds); return OperationResult(0, 'Reloaded $loadedLibraryCount of $finalLibraryCount libraries'); } Future<List<Future<vm_service.ReloadReport>>> _reloadDeviceSources( FlutterDevice device, String entryPath, { bool? pause = false, }) async { final String deviceEntryUri = device.devFS!.baseUri! .resolve(entryPath).toString(); final vm_service.VM vm = await device.vmService!.service.getVM(); return <Future<vm_service.ReloadReport>>[ for (final vm_service.IsolateRef isolateRef in vm.isolates!) device.vmService!.service.reloadSources( isolateRef.id!, pause: pause, rootLibUri: deviceEntryUri, ), ]; } void _resetDevFSCompileTime(List<FlutterDevice?> flutterDevices) { for (final FlutterDevice? device in flutterDevices) { device!.devFS!.resetLastCompiled(); } } @visibleForTesting class ReassembleResult { ReassembleResult(this.reassembleViews, this.failedReassemble, this.shouldReportReloadTime); final Map<FlutterView?, FlutterVmService?> reassembleViews; final bool failedReassemble; final bool shouldReportReloadTime; } typedef ReassembleHelper = Future<ReassembleResult> Function( List<FlutterDevice?> flutterDevices, Map<FlutterDevice?, List<FlutterView>> viewCache, void Function(String message)? onSlow, String reloadMessage, ); Future<ReassembleResult> _defaultReassembleHelper( List<FlutterDevice?> flutterDevices, Map<FlutterDevice?, List<FlutterView>> viewCache, void Function(String message)? onSlow, String reloadMessage, ) async { // Check if any isolates are paused and reassemble those that aren't. final Map<FlutterView, FlutterVmService?> reassembleViews = <FlutterView, FlutterVmService?>{}; final List<Future<void>> reassembleFutures = <Future<void>>[]; String? serviceEventKind; int pausedIsolatesFound = 0; bool failedReassemble = false; bool shouldReportReloadTime = true; for (final FlutterDevice? device in flutterDevices) { final List<FlutterView> views = viewCache[device]!; for (final FlutterView view in views) { // Check if the isolate is paused, and if so, don't reassemble. Ignore the // PostPauseEvent event - the client requesting the pause will resume the app. final vm_service.Event? pauseEvent = await device!.vmService! .getIsolatePauseEventOrNull(view.uiIsolate!.id!); if (pauseEvent != null && isPauseEvent(pauseEvent.kind!) && pauseEvent.kind != vm_service.EventKind.kPausePostRequest) { pausedIsolatesFound += 1; if (serviceEventKind == null) { serviceEventKind = pauseEvent.kind; } else if (serviceEventKind != pauseEvent.kind) { serviceEventKind = ''; // many kinds } } else { reassembleViews[view] = device.vmService; // If the tool identified a change in a single widget, do a fast instead // of a full reassemble. final Future<void> reassembleWork = device.vmService!.flutterReassemble( isolateId: view.uiIsolate!.id!, ); reassembleFutures.add(reassembleWork.then( (Object? obj) => obj, onError: (Object error, StackTrace stackTrace) { if (error is! Exception) { return Future<Object?>.error(error, stackTrace); } failedReassemble = true; globals.printError('Reassembling ${view.uiIsolate!.name} failed: $error\n$stackTrace'); }, )); } } } if (pausedIsolatesFound > 0) { if (onSlow != null) { onSlow('${_describePausedIsolates(pausedIsolatesFound, serviceEventKind!)}; interface might not update.'); } if (reassembleViews.isEmpty) { globals.printTrace('Skipping reassemble because all isolates are paused.'); return ReassembleResult(reassembleViews, failedReassemble, shouldReportReloadTime); } } assert(reassembleViews.isNotEmpty); globals.printTrace('Reassembling application'); final Future<void> reassembleFuture = Future.wait<void>(reassembleFutures).then((void _) => null); await reassembleFuture.timeout( const Duration(seconds: 2), onTimeout: () async { if (pausedIsolatesFound > 0) { shouldReportReloadTime = false; return ; // probably no point waiting, they're probably deadlocked and we've already warned. } // Check if any isolate is newly paused. globals.printTrace('This is taking a long time; will now check for paused isolates.'); int postReloadPausedIsolatesFound = 0; String? serviceEventKind; for (final FlutterView view in reassembleViews.keys) { final vm_service.Event? pauseEvent = await reassembleViews[view]! .getIsolatePauseEventOrNull(view.uiIsolate!.id!); if (pauseEvent != null && isPauseEvent(pauseEvent.kind!)) { postReloadPausedIsolatesFound += 1; if (serviceEventKind == null) { serviceEventKind = pauseEvent.kind; } else if (serviceEventKind != pauseEvent.kind) { serviceEventKind = ''; // many kinds } } } globals.printTrace('Found $postReloadPausedIsolatesFound newly paused isolate(s).'); if (postReloadPausedIsolatesFound == 0) { await reassembleFuture; // must just be taking a long time... keep waiting! return; } shouldReportReloadTime = false; if (onSlow != null) { onSlow('${_describePausedIsolates(postReloadPausedIsolatesFound, serviceEventKind!)}.'); } return; }, ); return ReassembleResult(reassembleViews, failedReassemble, shouldReportReloadTime); } String _describePausedIsolates(int pausedIsolatesFound, String serviceEventKind) { assert(pausedIsolatesFound > 0); final StringBuffer message = StringBuffer(); bool plural; if (pausedIsolatesFound == 1) { message.write('The application is '); plural = false; } else { message.write('$pausedIsolatesFound isolates are '); plural = true; } switch (serviceEventKind) { case vm_service.EventKind.kPauseStart: message.write('paused (probably due to --start-paused)'); case vm_service.EventKind.kPauseExit: message.write('paused because ${ plural ? 'they have' : 'it has' } terminated'); case vm_service.EventKind.kPauseBreakpoint: message.write('paused in the debugger on a breakpoint'); case vm_service.EventKind.kPauseInterrupted: message.write('paused due in the debugger'); case vm_service.EventKind.kPauseException: message.write('paused in the debugger after an exception was thrown'); case vm_service.EventKind.kPausePostRequest: message.write('paused'); case '': message.write('paused for various reasons'); default: message.write('paused'); } return message.toString(); } /// The result of an invalidation check from [ProjectFileInvalidator]. class InvalidationResult { const InvalidationResult({ this.uris, this.packageConfig, }); final List<Uri>? uris; final PackageConfig? packageConfig; } /// The [ProjectFileInvalidator] track the dependencies for a running /// application to determine when they are dirty. class ProjectFileInvalidator { ProjectFileInvalidator({ required FileSystem fileSystem, required Platform platform, required Logger logger, }): _fileSystem = fileSystem, _platform = platform, _logger = logger; final FileSystem _fileSystem; final Platform _platform; final Logger _logger; static const String _pubCachePathLinuxAndMac = '.pub-cache'; static const String _pubCachePathWindows = 'Pub/Cache'; // As of writing, Dart supports up to 32 asynchronous I/O threads per // isolate. We also want to avoid hitting platform limits on open file // handles/descriptors. // // This value was chosen based on empirical tests scanning a set of // ~2000 files. static const int _kMaxPendingStats = 8; Future<InvalidationResult> findInvalidated({ required DateTime? lastCompiled, required List<Uri> urisToMonitor, required String packagesPath, required PackageConfig packageConfig, bool asyncScanning = false, }) async { if (lastCompiled == null) { // Initial load. assert(urisToMonitor.isEmpty); return InvalidationResult( packageConfig: packageConfig, uris: <Uri>[], ); } final Stopwatch stopwatch = Stopwatch()..start(); final List<Uri> urisToScan = <Uri>[ // Don't watch pub cache directories to speed things up a little. for (final Uri uri in urisToMonitor) if (_isNotInPubCache(uri)) uri, ]; final List<Uri> invalidatedFiles = <Uri>[]; if (asyncScanning) { final Pool pool = Pool(_kMaxPendingStats); final List<Future<void>> waitList = <Future<void>>[]; for (final Uri uri in urisToScan) { waitList.add(pool.withResource<void>( // Calling fs.stat() is more performant than fs.file().stat(), but // uri.toFilePath() does not work with MultiRootFileSystem. () => (uri.hasScheme && uri.scheme != 'file' ? _fileSystem.file(uri).stat() : _fileSystem.stat(uri.toFilePath(windows: _platform.isWindows))) .then((FileStat stat) { final DateTime updatedAt = stat.modified; if (updatedAt.isAfter(lastCompiled)) { invalidatedFiles.add(uri); } }) )); } await Future.wait<void>(waitList); } else { for (final Uri uri in urisToScan) { // Calling fs.statSync() is more performant than fs.file().statSync(), but // uri.toFilePath() does not work with MultiRootFileSystem. final DateTime updatedAt = uri.hasScheme && uri.scheme != 'file' ? _fileSystem.file(uri).statSync().modified : _fileSystem.statSync(uri.toFilePath(windows: _platform.isWindows)).modified; if (updatedAt.isAfter(lastCompiled)) { invalidatedFiles.add(uri); } } } // We need to check the .packages file too since it is not used in compilation. final File packageFile = _fileSystem.file(packagesPath); final Uri packageUri = packageFile.uri; final DateTime updatedAt = packageFile.statSync().modified; if (updatedAt.isAfter(lastCompiled)) { invalidatedFiles.add(packageUri); packageConfig = await _createPackageConfig(packagesPath); // The frontend_server might be monitoring the package_config.json file, // Pub should always produce both files. // TODO(zanderso): remove after https://github.com/flutter/flutter/issues/55249 if (_fileSystem.path.basename(packagesPath) == '.packages') { final File packageConfigFile = _fileSystem.file(packagesPath) .parent.childDirectory('.dart_tool') .childFile('package_config.json'); if (packageConfigFile.existsSync()) { invalidatedFiles.add(packageConfigFile.uri); } } } _logger.printTrace( 'Scanned through ${urisToScan.length} files in ' '${stopwatch.elapsedMilliseconds}ms' '${asyncScanning ? " (async)" : ""}', ); return InvalidationResult( packageConfig: packageConfig, uris: invalidatedFiles, ); } bool _isNotInPubCache(Uri uri) { return !(_platform.isWindows && uri.path.contains(_pubCachePathWindows)) && !uri.path.contains(_pubCachePathLinuxAndMac); } Future<PackageConfig> _createPackageConfig(String packagesPath) { return loadPackageConfigWithLogging( _fileSystem.file(packagesPath), logger: _logger, ); } } /// Additional serialization logic for a hot reload response. class ReloadReportContents { factory ReloadReportContents.fromReloadReport(vm_service.ReloadReport report) { final List<ReasonForCancelling> reasons = <ReasonForCancelling>[]; final Object? notices = report.json!['notices']; if (notices is! List<dynamic>) { return ReloadReportContents._(report.success, reasons, report); } for (final Object? obj in notices) { if (obj is! Map<String, dynamic>) { continue; } final Map<String, dynamic> notice = obj; reasons.add(ReasonForCancelling( message: notice['message'] is String ? notice['message'] as String? : 'Unknown Error', )); } return ReloadReportContents._(report.success, reasons, report); } ReloadReportContents._( this.success, this.notices, this.report, ); final bool? success; final List<ReasonForCancelling> notices; final vm_service.ReloadReport report; } /// A serialization class for hot reload rejection reasons. /// /// Injects an additional error message that a hot restart will /// resolve the issue. class ReasonForCancelling { ReasonForCancelling({ this.message, }); final String? message; @override String toString() { return '$message.\nTry performing a hot restart instead.'; } } /// An interface to enable overriding native assets build logic in other /// build systems. abstract class HotRunnerNativeAssetsBuilder { Future<Uri?> dryRun({ required Uri projectUri, required FileSystem fileSystem, required List<FlutterDevice> flutterDevices, required PackageConfig packageConfig, required Logger logger, }); }
flutter/packages/flutter_tools/lib/src/run_hot.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/run_hot.dart", "repo_id": "flutter", "token_count": 23842 }
940
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:meta/meta.dart'; import '../artifacts.dart'; import '../base/file_system.dart'; import '../build_info.dart'; import '../bundle.dart'; import '../compile.dart'; import '../flutter_plugins.dart'; import '../globals.dart' as globals; import '../native_assets.dart'; import '../project.dart'; import 'test_time_recorder.dart'; /// A request to the [TestCompiler] for recompilation. class CompilationRequest { CompilationRequest(this.mainUri, this.result); Uri mainUri; Completer<String?> result; } /// A frontend_server wrapper for the flutter test runner. /// /// This class is a wrapper around compiler that allows multiple isolates to /// enqueue compilation requests, but ensures only one compilation at a time. class TestCompiler { /// Creates a new [TestCompiler] which acts as a frontend_server proxy. /// /// [trackWidgetCreation] configures whether the kernel transform is applied /// to the output. This also changes the output file to include a '.track` /// extension. /// /// [flutterProject] is the project for which we are running tests. /// /// If [precompiledDillPath] is passed, it will be used to initialize the /// compiler. /// /// If [testTimeRecorder] is passed, times will be recorded in it. TestCompiler( this.buildInfo, this.flutterProject, { String? precompiledDillPath, this.testTimeRecorder, TestCompilerNativeAssetsBuilder? nativeAssetsBuilder, }) : testFilePath = precompiledDillPath ?? globals.fs.path.join( flutterProject!.directory.path, getBuildDirectory(), 'test_cache', getDefaultCachedKernelPath( trackWidgetCreation: buildInfo.trackWidgetCreation, dartDefines: buildInfo.dartDefines, extraFrontEndOptions: buildInfo.extraFrontEndOptions, )), shouldCopyDillFile = precompiledDillPath == null, _nativeAssetsBuilder = nativeAssetsBuilder { // Compiler maintains and updates single incremental dill file. // Incremental compilation requests done for each test copy that file away // for independent execution. final Directory outputDillDirectory = globals.fs.systemTempDirectory.createTempSync('flutter_test_compiler.'); outputDill = outputDillDirectory.childFile('output.dill'); globals.printTrace('Compiler will use the following file as its incremental dill file: ${outputDill.path}'); globals.printTrace('Listening to compiler controller...'); compilerController.stream.listen(_onCompilationRequest, onDone: () { globals.printTrace('Deleting ${outputDillDirectory.path}...'); outputDillDirectory.deleteSync(recursive: true); }); } final StreamController<CompilationRequest> compilerController = StreamController<CompilationRequest>(); final List<CompilationRequest> compilationQueue = <CompilationRequest>[]; final FlutterProject? flutterProject; final BuildInfo buildInfo; final String testFilePath; final bool shouldCopyDillFile; final TestTimeRecorder? testTimeRecorder; final TestCompilerNativeAssetsBuilder? _nativeAssetsBuilder; ResidentCompiler? compiler; late File outputDill; Future<String?> compile(Uri mainDart) { final Completer<String?> completer = Completer<String?>(); if (compilerController.isClosed) { return Future<String?>.value(); } compilerController.add(CompilationRequest(mainDart, completer)); return completer.future; } Future<void> _shutdown() async { // Check for null in case this instance is shut down before the // lazily-created compiler has been created. if (compiler != null) { await compiler!.shutdown(); compiler = null; } } Future<void> dispose() async { await compilerController.close(); await _shutdown(); } /// Create the resident compiler used to compile the test. @visibleForTesting Future<ResidentCompiler?> createCompiler() async { final ResidentCompiler residentCompiler = ResidentCompiler( globals.artifacts!.getArtifactPath(Artifact.flutterPatchedSdkPath), artifacts: globals.artifacts!, logger: globals.logger, processManager: globals.processManager, buildMode: buildInfo.mode, trackWidgetCreation: buildInfo.trackWidgetCreation, initializeFromDill: testFilePath, dartDefines: buildInfo.dartDefines, packagesPath: buildInfo.packagesPath, frontendServerStarterPath: buildInfo.frontendServerStarterPath, extraFrontEndOptions: buildInfo.extraFrontEndOptions, platform: globals.platform, testCompilation: true, fileSystem: globals.fs, fileSystemRoots: buildInfo.fileSystemRoots, fileSystemScheme: buildInfo.fileSystemScheme, ); return residentCompiler; } // Handle a compilation request. Future<void> _onCompilationRequest(CompilationRequest request) async { final bool isEmpty = compilationQueue.isEmpty; compilationQueue.add(request); // Only trigger processing if queue was empty - i.e. no other requests // are currently being processed. This effectively enforces "one // compilation request at a time". if (!isEmpty) { return; } while (compilationQueue.isNotEmpty) { final CompilationRequest request = compilationQueue.first; globals.printTrace('Compiling ${request.mainUri}'); final Stopwatch compilerTime = Stopwatch()..start(); final Stopwatch? testTimeRecorderStopwatch = testTimeRecorder?.start(TestTimePhases.Compile); bool firstCompile = false; if (compiler == null) { compiler = await createCompiler(); firstCompile = true; } final List<Uri> invalidatedRegistrantFiles = <Uri>[]; if (flutterProject != null) { // Update the generated registrant to use the test target's main. final String mainUriString = buildInfo.packageConfig.toPackageUri(request.mainUri)?.toString() ?? request.mainUri.toString(); await generateMainDartWithPluginRegistrant( flutterProject!, buildInfo.packageConfig, mainUriString, globals.fs.file(request.mainUri), ); invalidatedRegistrantFiles.add(flutterProject!.dartPluginRegistrant.absolute.uri); } final Uri? nativeAssetsYaml = await _nativeAssetsBuilder?.build(buildInfo); final CompilerOutput? compilerOutput = await compiler!.recompile( request.mainUri, <Uri>[request.mainUri, ...invalidatedRegistrantFiles], outputPath: outputDill.path, packageConfig: buildInfo.packageConfig, projectRootPath: flutterProject?.directory.absolute.path, checkDartPluginRegistry: true, fs: globals.fs, nativeAssetsYaml: nativeAssetsYaml, ); final String? outputPath = compilerOutput?.outputFilename; // In case compiler didn't produce output or reported compilation // errors, pass [null] upwards to the consumer and shutdown the // compiler to avoid reusing compiler that might have gotten into // a weird state. if (outputPath == null || compilerOutput!.errorCount > 0) { request.result.complete(); await _shutdown(); } else { if (shouldCopyDillFile) { final String path = request.mainUri.toFilePath(windows: globals.platform.isWindows); final File outputFile = globals.fs.file(outputPath); final File kernelReadyToRun = await outputFile.copy('$path.dill'); final File testCache = globals.fs.file(testFilePath); if (firstCompile || !testCache.existsSync() || (testCache.lengthSync() < outputFile.lengthSync())) { // The idea is to keep the cache file up-to-date and include as // much as possible in an effort to re-use as many packages as // possible. if (!testCache.parent.existsSync()) { testCache.parent.createSync(recursive: true); } await outputFile.copy(testFilePath); } request.result.complete(kernelReadyToRun.path); } else { request.result.complete(outputPath); } compiler!.accept(); compiler!.reset(); } globals.printTrace('Compiling ${request.mainUri} took ${compilerTime.elapsedMilliseconds}ms'); testTimeRecorder?.stop(TestTimePhases.Compile, testTimeRecorderStopwatch!); // Only remove now when we finished processing the element compilationQueue.removeAt(0); } } }
flutter/packages/flutter_tools/lib/src/test/test_compiler.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/test/test_compiler.dart", "repo_id": "flutter", "token_count": 3035 }
941
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:process/process.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../artifacts.dart'; import '../base/common.dart'; import '../base/file_system.dart'; import '../base/logger.dart'; import '../base/project_migrator.dart'; import '../base/utils.dart'; import '../build_info.dart'; import '../build_system/build_system.dart'; import '../cache.dart'; import '../flutter_plugins.dart'; import '../globals.dart' as globals; import '../platform_plugins.dart'; import '../plugins.dart'; import '../project.dart'; import '../reporting/reporting.dart'; import '../version.dart'; import 'compiler_config.dart'; import 'file_generators/flutter_service_worker_js.dart'; import 'migrations/scrub_generated_plugin_registrant.dart'; export 'compiler_config.dart'; /// Whether the application has web plugins. const String kHasWebPlugins = 'HasWebPlugins'; /// Base href to set in index.html in flutter build command const String kBaseHref = 'baseHref'; /// The caching strategy to use for service worker generation. const String kServiceWorkerStrategy = 'ServiceWorkerStrategy'; class WebBuilder { WebBuilder({ required Logger logger, required ProcessManager processManager, required BuildSystem buildSystem, required Usage usage, required Analytics analytics, required FlutterVersion flutterVersion, required FileSystem fileSystem, }) : _logger = logger, _processManager = processManager, _buildSystem = buildSystem, _flutterUsage = usage, _analytics = analytics, _flutterVersion = flutterVersion, _fileSystem = fileSystem; final Logger _logger; final ProcessManager _processManager; final BuildSystem _buildSystem; final Usage _flutterUsage; final Analytics _analytics; final FlutterVersion _flutterVersion; final FileSystem _fileSystem; Future<void> buildWeb( FlutterProject flutterProject, String target, BuildInfo buildInfo, ServiceWorkerStrategy serviceWorkerStrategy, { required List<WebCompilerConfig> compilerConfigs, String? baseHref, String? outputDirectoryPath, }) async { final bool hasWebPlugins = (await findPlugins(flutterProject)).any((Plugin p) => p.platforms.containsKey(WebPlugin.kConfigKey)); final Directory outputDirectory = outputDirectoryPath == null ? _fileSystem.directory(getWebBuildDirectory()) : _fileSystem.directory(outputDirectoryPath); outputDirectory.createSync(recursive: true); // The migrators to apply to a Web project. final List<ProjectMigrator> migrators = <ProjectMigrator>[ ScrubGeneratedPluginRegistrant(flutterProject.web, _logger), ]; final ProjectMigration migration = ProjectMigration(migrators); migration.run(); final Status status = _logger.startProgress('Compiling $target for the Web...'); final Stopwatch sw = Stopwatch()..start(); try { final BuildResult result = await _buildSystem.build( globals.buildTargets.webServiceWorker(_fileSystem, compilerConfigs), Environment( projectDir: _fileSystem.currentDirectory, outputDir: outputDirectory, buildDir: flutterProject.directory.childDirectory('.dart_tool').childDirectory('flutter_build'), defines: <String, String>{ kTargetFile: target, kHasWebPlugins: hasWebPlugins.toString(), if (baseHref != null) kBaseHref: baseHref, kServiceWorkerStrategy: serviceWorkerStrategy.cliName, ...buildInfo.toBuildSystemEnvironment(), }, artifacts: globals.artifacts!, fileSystem: _fileSystem, logger: _logger, processManager: _processManager, platform: globals.platform, usage: _flutterUsage, analytics: _analytics, cacheDir: globals.cache.getRoot(), engineVersion: globals.artifacts!.isLocalEngine ? null : _flutterVersion.engineRevision, flutterRootDir: _fileSystem.directory(Cache.flutterRoot), // Web uses a different Dart plugin registry. // https://github.com/flutter/flutter/issues/80406 generateDartPluginRegistry: false, )); if (!result.success) { for (final ExceptionMeasurement measurement in result.exceptions.values) { _logger.printError( 'Target ${measurement.target} failed: ${measurement.exception}', stackTrace: measurement.fatal ? measurement.stackTrace : null, ); } throwToolExit('Failed to compile application for the Web.'); } } on Exception catch (err) { throwToolExit(err.toString()); } finally { status.stop(); } final String buildSettingsString = _buildEventAnalyticsSettings( configs: compilerConfigs, ); BuildEvent( 'web-compile', type: 'web', settings: buildSettingsString, flutterUsage: _flutterUsage, ).send(); _analytics.send(Event.flutterBuildInfo( label: 'web-compile', buildType: 'web', settings: buildSettingsString, )); final Duration elapsedDuration = sw.elapsed; final String variableName = compilerConfigs.length > 1 ? 'dual-compile' : 'dart2js'; _flutterUsage.sendTiming( 'build', variableName, elapsedDuration, ); _analytics.send(Event.timing( workflow: 'build', variableName: variableName, elapsedMilliseconds: elapsedDuration.inMilliseconds, )); } } /// Web rendering backend mode. enum WebRendererMode implements CliEnum { /// Auto detects which rendering backend to use. auto, /// Always uses canvaskit. canvaskit, /// Always uses html. html, /// Always use skwasm. skwasm; @override String get cliName => snakeCase(name, '-'); @override String get helpText => switch (this) { auto => 'Use the HTML renderer on mobile devices, and CanvasKit on desktop devices.', canvaskit => 'Always use the CanvasKit renderer. This renderer uses WebGL and WebAssembly to render graphics.', html => 'Always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL.', skwasm => 'Always use the experimental skwasm renderer.' }; Iterable<String> get dartDefines => switch (this) { WebRendererMode.auto => <String>[ 'FLUTTER_WEB_AUTO_DETECT=true', ], WebRendererMode.canvaskit => <String>[ 'FLUTTER_WEB_AUTO_DETECT=false', 'FLUTTER_WEB_USE_SKIA=true', ], WebRendererMode.html => <String>[ 'FLUTTER_WEB_AUTO_DETECT=false', 'FLUTTER_WEB_USE_SKIA=false', ], WebRendererMode.skwasm => <String>[ 'FLUTTER_WEB_AUTO_DETECT=false', 'FLUTTER_WEB_USE_SKIA=false', 'FLUTTER_WEB_USE_SKWASM=true', ] }; List<String> updateDartDefines(List<String> inputDefines) { final Set<String> dartDefinesSet = inputDefines.toSet(); if (!inputDefines.any((String d) => d.startsWith('FLUTTER_WEB_AUTO_DETECT=')) && inputDefines.any((String d) => d.startsWith('FLUTTER_WEB_USE_SKIA='))) { dartDefinesSet.removeWhere((String d) => d.startsWith('FLUTTER_WEB_USE_SKIA=')); } dartDefinesSet.addAll(dartDefines); return dartDefinesSet.toList(); } } /// The correct precompiled artifact to use for each build and render mode for DDC with AMD modules. // TODO(markzipan): delete this when DDC's AMD module system is deprecated, https://github.com/flutter/flutter/issues/142060. const Map<WebRendererMode, Map<NullSafetyMode, HostArtifact>> kAmdDartSdkJsArtifactMap = <WebRendererMode, Map<NullSafetyMode, HostArtifact>>{ WebRendererMode.auto: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdCanvaskitAndHtmlSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdCanvaskitAndHtmlSdk, }, WebRendererMode.canvaskit: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdCanvaskitSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdCanvaskitSdk, }, WebRendererMode.html: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdSdk, }, }; /// The correct source map artifact to use for each build and render mode for DDC with AMD modules. // TODO(markzipan): delete this when DDC's AMD module system is deprecated, https://github.com/flutter/flutter/issues/142060. const Map<WebRendererMode, Map<NullSafetyMode, HostArtifact>> kAmdDartSdkJsMapArtifactMap = <WebRendererMode, Map<NullSafetyMode, HostArtifact>>{ WebRendererMode.auto: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdCanvaskitAndHtmlSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdCanvaskitAndHtmlSdkSourcemaps, }, WebRendererMode.canvaskit: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdCanvaskitSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdCanvaskitSdkSourcemaps, }, WebRendererMode.html: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledAmdSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledAmdSdkSourcemaps, }, }; /// The correct precompiled artifact to use for each build and render mode for DDC with DDC modules. const Map<WebRendererMode, Map<NullSafetyMode, HostArtifact>> kDdcDartSdkJsArtifactMap = <WebRendererMode, Map<NullSafetyMode, HostArtifact>>{ WebRendererMode.auto: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcCanvaskitAndHtmlSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcCanvaskitAndHtmlSdk, }, WebRendererMode.canvaskit: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcCanvaskitSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcCanvaskitSdk, }, WebRendererMode.html: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcSoundSdk, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcSdk, }, }; /// The correct source map artifact to use for each build and render mode for DDC with DDC modules. const Map<WebRendererMode, Map<NullSafetyMode, HostArtifact>> kDdcDartSdkJsMapArtifactMap = <WebRendererMode, Map<NullSafetyMode, HostArtifact>>{ WebRendererMode.auto: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcCanvaskitAndHtmlSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcCanvaskitAndHtmlSdkSourcemaps, }, WebRendererMode.canvaskit: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcCanvaskitSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcCanvaskitSdkSourcemaps, }, WebRendererMode.html: <NullSafetyMode, HostArtifact> { NullSafetyMode.sound: HostArtifact.webPrecompiledDdcSoundSdkSourcemaps, NullSafetyMode.unsound: HostArtifact.webPrecompiledDdcSdkSourcemaps, }, }; String _buildEventAnalyticsSettings({ required List<WebCompilerConfig> configs, }) { final Map<String, Object> values = <String, Object>{}; final List<String> renderers = <String>[]; final List<String> targets = <String>[]; for (final WebCompilerConfig config in configs) { values.addAll(config.buildEventAnalyticsValues); renderers.add(config.renderer.name); targets.add(config.compileTarget.name); } values['web-renderer'] = renderers.join(','); values['web-target'] = targets.join(','); final List<String> sortedList = values.entries .map((MapEntry<String, Object> e) => '${e.key}: ${e.value};') .toList() ..sort(); return sortedList.join(' '); }
flutter/packages/flutter_tools/lib/src/web/compile.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/web/compile.dart", "repo_id": "flutter", "token_count": 4587 }
942
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import '../../base/file_system.dart'; import '../../base/project_migrator.dart'; import '../../cmake_project.dart'; import 'utils.dart'; const String _before = r''' flutter_controller_->engine()->SetNextFrameCallback([&]() { this->Show(); }); return true; '''; const String _after = r''' flutter_controller_->engine()->SetNextFrameCallback([&]() { this->Show(); }); // Flutter can complete the first frame before the "show window" callback is // registered. The following call ensures a frame is pending to ensure the // window is shown. It is a no-op if the first frame hasn't completed yet. flutter_controller_->ForceRedraw(); return true; '''; /// Migrates Windows apps to ensure the window is shown. /// /// This prevents a race condition between Flutter rendering the first frame /// and the app registering the callback to show the window on the first frame. /// See https://github.com/flutter/flutter/issues/119415. class ShowWindowMigration extends ProjectMigrator { ShowWindowMigration(WindowsProject project, super.logger) : _file = project.runnerFlutterWindowFile; final File _file; @override void migrate() { // Skip this migration if the affected file does not exist. This indicates // the app has done non-trivial changes to its runner and this migration // might not work as expected if applied. if (!_file.existsSync()) { logger.printTrace(''' windows/runner/flutter_window.cpp file not found, skipping show window migration. This indicates non-trivial changes have been made to the Windows runner in the "windows" folder. If needed, you can reset the Windows runner by deleting the "windows" folder and then using the "flutter create --platforms=windows ." command. '''); return; } // Migrate the windows/runner/flutter_window.cpp file. final String originalContents = _file.readAsStringSync(); final String newContents = replaceFirst( originalContents, _before, _after, ); if (originalContents != newContents) { logger.printStatus( 'windows/runner/flutter_window.cpp does not ensure the show window ' 'callback is called, updating.' ); _file.writeAsStringSync(newContents); } } }
flutter/packages/flutter_tools/lib/src/windows/migrations/show_window_migration.dart/0
{ "file_path": "flutter/packages/flutter_tools/lib/src/windows/migrations/show_window_migration.dart", "repo_id": "flutter", "token_count": 742 }
943
name: {{projectName}} description: {{description}} {{#withEmptyMain}} publish_to: 'none' version: 0.1.0 environment: sdk: {{dartSdkVersionBounds}} dependencies: flutter: sdk: flutter dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^3.0.0 flutter: uses-material-design: true {{/withEmptyMain}} {{^withEmptyMain}} # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev {{^withPlatformChannelPluginHook}} # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. version: 1.0.0+1 {{/withPlatformChannelPluginHook}} environment: sdk: {{dartSdkVersionBounds}} # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions # consider running `flutter pub upgrade --major-versions`. Alternatively, # dependencies can be manually updated by changing the version numbers below to # the latest version available on pub.dev. To see which dependencies have newer # versions available, run `flutter pub outdated`. dependencies: flutter: sdk: flutter {{#withPluginHook}} {{pluginProjectName}}: # When depending on this package from a real application you should use: # {{pluginProjectName}}: ^x.y.z # See https://dart.dev/tools/pub/dependencies#version-constraints # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. path: ../ {{/withPluginHook}} # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.6 dev_dependencies: {{#withPlatformChannelPluginHook}} integration_test: sdk: flutter {{/withPlatformChannelPluginHook}} flutter_test: sdk: flutter # The "flutter_lints" package below contains a set of recommended lints to # encourage good coding practices. The lint set provided by the package is # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter packages. flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: # fonts: # - family: Schyler # fonts: # - asset: fonts/Schyler-Regular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages {{/withEmptyMain}}
flutter/packages/flutter_tools/templates/app/pubspec.yaml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/app/pubspec.yaml.tmpl", "repo_id": "flutter", "token_count": 1431 }
944
<?xml version="1.0" encoding="UTF-8"?> <module type="JAVA_MODULE" version="4"> <component name="FacetManager"> <facet type="android" name="Android"> <configuration> <option name="ALLOW_USER_CONFIGURATION" value="false" /> <option name="GEN_FOLDER_RELATIVE_PATH_APT" value="/gen" /> <option name="GEN_FOLDER_RELATIVE_PATH_AIDL" value="/gen" /> <option name="MANIFEST_FILE_RELATIVE_PATH" value="/app/src/main/AndroidManifest.xml" /> <option name="RES_FOLDER_RELATIVE_PATH" value="/app/src/main/res" /> <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/app/src/main/assets" /> <option name="LIBS_FOLDER_RELATIVE_PATH" value="/app/src/main/libs" /> <option name="PROGUARD_LOGS_FOLDER_RELATIVE_PATH" value="/app/src/main/proguard_logs" /> </configuration> </facet> </component> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/app/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/app/src/main/kotlin" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" /> </content> <orderEntry type="jdk" jdkName="Android API {{androidSdkVersion}} Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Flutter for Android" level="project" /> <orderEntry type="library" name="KotlinJavaRuntime" level="project" /> </component> </module>
flutter/packages/flutter_tools/templates/app_shared/android-kotlin.tmpl/projectName_android.iml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/app_shared/android-kotlin.tmpl/projectName_android.iml.tmpl", "repo_id": "flutter", "token_count": 635 }
945
pluginManagement { def flutterSdkPath = { def properties = new Properties() file("local.properties").withInputStream { properties.load(it) } def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" return flutterSdkPath }() includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") repositories { google() mavenCentral() gradlePluginPortal() } } plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "{{agpVersion}}" apply false id "org.jetbrains.kotlin.android" version "{{kotlinVersion}}" apply false } include ":app"
flutter/packages/flutter_tools/templates/app_shared/android.tmpl/settings.gradle.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/app_shared/android.tmpl/settings.gradle.tmpl", "repo_id": "flutter", "token_count": 294 }
946
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="{{androidIdentifier}}"> </manifest>
flutter/packages/flutter_tools/templates/module/android/gradle/src/main/AndroidManifest.xml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/module/android/gradle/src/main/AndroidManifest.xml.tmpl", "repo_id": "flutter", "token_count": 41 }
947
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/{{projectName}}.iml" filepath="$PROJECT_DIR$/{{projectName}}.iml" /> <module fileurl="file://$PROJECT_DIR$/{{projectName}}_android.iml" filepath="$PROJECT_DIR$/{{projectName}}_android.iml" /> </modules> </component> </project>
flutter/packages/flutter_tools/templates/module/common/.idea/modules.xml.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/module/common/.idea/modules.xml.tmpl", "repo_id": "flutter", "token_count": 154 }
948
#include "Flutter.xcconfig" #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
flutter/packages/flutter_tools/templates/module/ios/host_app_ephemeral_cocoapods/Config.tmpl/Debug.xcconfig/0
{ "file_path": "flutter/packages/flutter_tools/templates/module/ios/host_app_ephemeral_cocoapods/Config.tmpl/Debug.xcconfig", "repo_id": "flutter", "token_count": 41 }
949
library {{projectName}}; /// A Calculator. class Calculator { /// Returns [value] plus 1. int addOne(int value) => value + 1; }
flutter/packages/flutter_tools/templates/package/lib/projectName.dart.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/package/lib/projectName.dart.tmpl", "repo_id": "flutter", "token_count": 43 }
950
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #if _WIN32 #include <windows.h> #else #include <pthread.h> #include <unistd.h> #endif #if _WIN32 #define FFI_PLUGIN_EXPORT __declspec(dllexport) #else #define FFI_PLUGIN_EXPORT #endif // A very short-lived native function. // // For very short-lived functions, it is fine to call them on the main isolate. // They will block the Dart execution while running the native function, so // only do this for native functions which are guaranteed to be short-lived. FFI_PLUGIN_EXPORT intptr_t sum(intptr_t a, intptr_t b); // A longer lived native function, which occupies the thread calling it. // // Do not call these kind of native functions in the main isolate. They will // block Dart execution. This will cause dropped frames in Flutter applications. // Instead, call these native functions on a separate isolate. FFI_PLUGIN_EXPORT intptr_t sum_long_running(intptr_t a, intptr_t b);
flutter/packages/flutter_tools/templates/package_ffi/src.tmpl/projectName.h.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/package_ffi/src.tmpl/projectName.h.tmpl", "repo_id": "flutter", "token_count": 301 }
951
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint {{projectName}}.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = '{{projectName}}' s.version = '0.0.1' s.summary = '{{description}}' s.description = <<-DESC {{description}} DESC s.homepage = 'http://example.com' s.license = { :file => '../LICENSE' } s.author = { 'Your Company' => '[email protected]' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' s.platform = :ios, '12.0' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } end
flutter/packages/flutter_tools/templates/plugin/ios-objc.tmpl/projectName.podspec.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/ios-objc.tmpl/projectName.podspec.tmpl", "repo_id": "flutter", "token_count": 398 }
952
import 'package:flutter_test/flutter_test.dart'; import 'package:{{projectName}}/{{projectName}}.dart'; import 'package:{{projectName}}/{{projectName}}_platform_interface.dart'; import 'package:{{projectName}}/{{projectName}}_method_channel.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; class Mock{{pluginDartClass}}Platform with MockPlatformInterfaceMixin implements {{pluginDartClass}}Platform { @override Future<String?> getPlatformVersion() => Future.value('42'); } void main() { final {{pluginDartClass}}Platform initialPlatform = {{pluginDartClass}}Platform.instance; test('$MethodChannel{{pluginDartClass}} is the default instance', () { expect(initialPlatform, isInstanceOf<MethodChannel{{pluginDartClass}}>()); }); test('getPlatformVersion', () async { {{pluginDartClass}} {{pluginClassLowerCamelCase}} = {{pluginDartClass}}(); Mock{{pluginDartClass}}Platform fakePlatform = Mock{{pluginDartClass}}Platform(); {{pluginDartClass}}Platform.instance = fakePlatform; expect(await {{pluginClassLowerCamelCase}}.getPlatformVersion(), '42'); }); }
flutter/packages/flutter_tools/templates/plugin/test/projectName_test.dart.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/plugin/test/projectName_test.dart.tmpl", "repo_id": "flutter", "token_count": 341 }
953
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:{{projectName}}/src/app.dart'; import 'package:{{projectName}}/src/sample_feature/sample_item_details_view.dart'; import 'package:{{projectName}}/src/settings/settings_controller.dart'; import 'package:{{projectName}}/src/settings/settings_service.dart'; import 'package:{{projectName}}/src/settings/settings_view.dart'; void main() { group('ListDetailApp', () { testWidgets('displays a list of items', (WidgetTester tester) async { final service = SettingsService(); final controller = SettingsController(service); await controller.loadSettings(); await tester.pumpWidget(MyApp(settingsController: controller)); expect(find.byType(ListTile), findsNWidgets(3)); }); testWidgets('navigates to an item page', (WidgetTester tester) async { final service = SettingsService(); final controller = SettingsController(service); await controller.loadSettings(); await tester.pumpWidget(MyApp(settingsController: controller)); await tester.tap(find.byType(ListTile).first); await tester.pumpAndSettle(); expect(find.byType(SampleItemDetailsView), findsOneWidget); }); testWidgets('changes the app theme', (WidgetTester tester) async { final service = SettingsService(); final controller = SettingsController(service); // Navigate to Settings await controller.loadSettings(); await tester.pumpWidget(MyApp(settingsController: controller)); await tester.tap(find.byType(IconButton)); await tester.pumpAndSettle(); // Verify defaults in place expect(controller.themeMode, ThemeMode.system); expect(find.byType(SettingsView), findsOneWidget); expect(findApp(ThemeMode.system), findsOneWidget); // Change to Dark Theme await tester.tap(find.text('System Theme')); await tester.pumpAndSettle(); await tester.tap(find.text('Dark Theme').last); await tester.pumpAndSettle(); // Verify Dark Theme rendered expect(controller.themeMode, ThemeMode.dark); expect(findApp(ThemeMode.dark), findsOneWidget); // Change to Light Theme await tester.tap(find.text('Dark Theme')); await tester.pumpAndSettle(); await tester.tap(find.text('Light Theme').last); await tester.pumpAndSettle(); // Verify light theme enabled expect(controller.themeMode, ThemeMode.light); expect(findApp(ThemeMode.light), findsOneWidget); }); }); } Finder findApp(ThemeMode themeMode) => find.byWidgetPredicate( (widget) => widget is MaterialApp && widget.themeMode == themeMode, );
flutter/packages/flutter_tools/templates/skeleton/test/implementation_test.dart.test.tmpl/0
{ "file_path": "flutter/packages/flutter_tools/templates/skeleton/test/implementation_test.dart.test.tmpl", "repo_id": "flutter", "token_count": 937 }
954
This directory contains tests for specific `flutter` commands. Tests that are self-contained unit tests should go in `hermetic/`. Tests that are more end-to-end, e.g. that involve actually running subprocesses, should go in `permeable/`. The `../../tool/coverage_tool.dart` script (which is used to collect coverage for the tool) runs only the tests in the `hermetic` directory when collecting coverage.
flutter/packages/flutter_tools/test/commands.shard/README.md/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/README.md", "repo_id": "flutter", "token_count": 113 }
955
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:args/command_runner.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/version.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/clean.dart'; import 'package:flutter_tools/src/ios/xcodeproj.dart'; import 'package:flutter_tools/src/macos/xcode.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:meta/meta.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/test_flutter_command_runner.dart'; void main() { group('clean command', () { late Xcode xcode; late FakeXcodeProjectInterpreter xcodeProjectInterpreter; setUp(() { Cache.disableLocking(); xcodeProjectInterpreter = FakeXcodeProjectInterpreter(); xcode = Xcode.test( processManager: FakeProcessManager.any(), xcodeProjectInterpreter: xcodeProjectInterpreter, ); }); group('general', () { late MemoryFileSystem fs; late Directory buildDirectory; setUp(() { fs = MemoryFileSystem.test(); fs.file('pubspec.yaml').createSync(recursive: true); final Directory currentDirectory = fs.currentDirectory; buildDirectory = currentDirectory.childDirectory('build'); buildDirectory.createSync(recursive: true); }); testUsingContext('$CleanCommand removes build and .dart_tool and ephemeral directories, cleans Xcode for iOS and macOS', () async { final FlutterProject projectUnderTest = setupProjectUnderTest(fs.currentDirectory, true); // Xcode is installed and version satisfactory. xcodeProjectInterpreter.isInstalled = true; xcodeProjectInterpreter.version = Version(1000, 0, 0); await CleanCommand().runCommand(); expect(buildDirectory, isNot(exists)); expect(projectUnderTest.dartTool, isNot(exists)); expect(projectUnderTest.android.ephemeralDirectory, isNot(exists)); expect(projectUnderTest.ios.ephemeralDirectory, isNot(exists)); expect(projectUnderTest.ios.ephemeralModuleDirectory, isNot(exists)); expect(projectUnderTest.ios.generatedXcodePropertiesFile, isNot(exists)); expect(projectUnderTest.ios.generatedEnvironmentVariableExportScript, isNot(exists)); expect(projectUnderTest.ios.deprecatedCompiledDartFramework, isNot(exists)); expect(projectUnderTest.ios.deprecatedProjectFlutterFramework, isNot(exists)); expect(projectUnderTest.ios.flutterPodspec, isNot(exists)); expect(projectUnderTest.linux.ephemeralDirectory, isNot(exists)); expect(projectUnderTest.macos.ephemeralDirectory, isNot(exists)); expect(projectUnderTest.windows.ephemeralDirectory, isNot(exists)); expect(projectUnderTest.flutterPluginsFile, isNot(exists)); expect(projectUnderTest.flutterPluginsDependenciesFile, isNot(exists)); expect(projectUnderTest.packagesFile, isNot(exists)); expect(xcodeProjectInterpreter.workspaces, const <CleanWorkspaceCall>[ CleanWorkspaceCall('/ios/Runner.xcworkspace', 'Runner', false), CleanWorkspaceCall('/ios/Runner.xcworkspace', 'custom-scheme', false), CleanWorkspaceCall('/macos/Runner.xcworkspace', 'Runner', false), CleanWorkspaceCall('/macos/Runner.xcworkspace', 'custom-scheme', false), ]); }, overrides: <Type, Generator>{ FileSystem: () => fs, ProcessManager: () => FakeProcessManager.any(), Xcode: () => xcode, XcodeProjectInterpreter: () => xcodeProjectInterpreter, }); testUsingContext('$CleanCommand removes a specific xcode scheme --scheme', () async { setupProjectUnderTest(fs.currentDirectory, true); // Xcode is installed and version satisfactory. xcodeProjectInterpreter.isInstalled = true; xcodeProjectInterpreter.version = Version(1000, 0, 0); final CleanCommand command = CleanCommand(); final CommandRunner<void> runner = createTestCommandRunner(command); await runner.run(<String>['clean', '--scheme=custom-scheme']); expect(xcodeProjectInterpreter.workspaces, <CleanWorkspaceCall>[ const CleanWorkspaceCall('/ios/Runner.xcworkspace', 'custom-scheme', false), const CleanWorkspaceCall('/macos/Runner.xcworkspace', 'custom-scheme', false), ]); }, overrides: <Type, Generator>{ FileSystem: () => fs, ProcessManager: () => FakeProcessManager.any(), Xcode: () => xcode, XcodeProjectInterpreter: () => xcodeProjectInterpreter, }); testUsingContext('$CleanCommand does not run when there is no xcworkspace', () async { setupProjectUnderTest(fs.currentDirectory, false); // Xcode is installed and version satisfactory. xcodeProjectInterpreter.isInstalled = true; xcodeProjectInterpreter.version = Version(1000, 0, 0); await CleanCommand().runCommand(); expect(xcodeProjectInterpreter.workspaces, const <CleanWorkspaceCall>[]); }, overrides: <Type, Generator>{ FileSystem: () => fs, ProcessManager: () => FakeProcessManager.any(), Xcode: () => xcode, XcodeProjectInterpreter: () => xcodeProjectInterpreter, }); testUsingContext('$CleanCommand throws when given an invalid value for --scheme', () async { setupProjectUnderTest(fs.currentDirectory, true); // Xcode is installed and version satisfactory. xcodeProjectInterpreter.isInstalled = true; xcodeProjectInterpreter.version = Version(1000, 0, 0); final CleanCommand command = CleanCommand(); expect( () => createTestCommandRunner(command).run(<String>['clean', '--scheme']), throwsUsageException(), ); expect( () => createTestCommandRunner(command).run(<String>['clean', '--scheme=unknown']), throwsToolExit(), ); }, overrides: <Type, Generator>{ FileSystem: () => fs, ProcessManager: () => FakeProcessManager.any(), Xcode: () => xcode, XcodeProjectInterpreter: () => xcodeProjectInterpreter, }); testUsingContext('$CleanCommand cleans Xcode verbosely for iOS and macOS', () async { setupProjectUnderTest(fs.currentDirectory, true); // Xcode is installed and version satisfactory. xcodeProjectInterpreter.isInstalled = true; xcodeProjectInterpreter.version = Version(1000, 0, 0); await CleanCommand(verbose: true).runCommand(); expect(xcodeProjectInterpreter.workspaces, const <CleanWorkspaceCall>[ CleanWorkspaceCall('/ios/Runner.xcworkspace', 'Runner', true), CleanWorkspaceCall('/ios/Runner.xcworkspace', 'custom-scheme', true), CleanWorkspaceCall('/macos/Runner.xcworkspace', 'Runner', true), CleanWorkspaceCall('/macos/Runner.xcworkspace', 'custom-scheme', true), ]); }, overrides: <Type, Generator>{ FileSystem: () => fs, ProcessManager: () => FakeProcessManager.any(), Xcode: () => xcode, XcodeProjectInterpreter: () => xcodeProjectInterpreter, }); }); group('Windows', () { late FakePlatform windowsPlatform; late MemoryFileSystem fileSystem; late FileExceptionHandler exceptionHandler; setUp(() { windowsPlatform = FakePlatform(operatingSystem: 'windows'); exceptionHandler = FileExceptionHandler(); fileSystem = MemoryFileSystem.test(opHandle: exceptionHandler.opHandle); }); testUsingContext('$CleanCommand prints a helpful error message on Windows', () async { xcodeProjectInterpreter.isInstalled = false; final File file = fileSystem.file('file')..createSync(); exceptionHandler.addError( file, FileSystemOp.delete, const FileSystemException('Deletion failed'), ); final CleanCommand command = CleanCommand(); command.deleteFile(file); expect(testLogger.errorText, contains('A program may still be using a file')); }, overrides: <Type, Generator>{ Platform: () => windowsPlatform, Xcode: () => xcode, FileSystem: () => fileSystem, ProcessManager: () => FakeProcessManager.any(), }); testUsingContext('$CleanCommand handles missing delete permissions', () async { final FileExceptionHandler handler = FileExceptionHandler(); final FileSystem fileSystem = MemoryFileSystem.test(opHandle: handler.opHandle); final File throwingFile = fileSystem.file('bad') ..createSync(); handler.addError(throwingFile, FileSystemOp.delete, const FileSystemException('OS error: Access Denied')); xcodeProjectInterpreter.isInstalled = false; final CleanCommand command = CleanCommand(); command.deleteFile(throwingFile); expect(testLogger.errorText, contains('Failed to remove bad. A program may still be using a file in the directory or the directory itself')); expect(throwingFile, exists); }, overrides: <Type, Generator>{ Platform: () => windowsPlatform, Xcode: () => xcode, }); }); }); } FlutterProject setupProjectUnderTest(Directory currentDirectory, bool setupXcodeWorkspace) { // This needs to be run within testWithoutContext and not setUp since FlutterProject uses context. final FlutterProject projectUnderTest = FlutterProject.fromDirectory(currentDirectory); if (setupXcodeWorkspace) { projectUnderTest.ios.hostAppRoot.childDirectory('Runner.xcworkspace').createSync(recursive: true); projectUnderTest.macos.hostAppRoot.childDirectory('Runner.xcworkspace').createSync(recursive: true); } projectUnderTest.dartTool.createSync(recursive: true); projectUnderTest.packagesFile.createSync(recursive: true); projectUnderTest.android.ephemeralDirectory.createSync(recursive: true); projectUnderTest.ios.ephemeralDirectory.createSync(recursive: true); projectUnderTest.ios.ephemeralModuleDirectory.createSync(recursive: true); projectUnderTest.ios.generatedXcodePropertiesFile.createSync(recursive: true); projectUnderTest.ios.generatedEnvironmentVariableExportScript.createSync(recursive: true); projectUnderTest.ios.deprecatedCompiledDartFramework.createSync(recursive: true); projectUnderTest.ios.deprecatedProjectFlutterFramework.createSync(recursive: true); projectUnderTest.ios.flutterPodspec.createSync(recursive: true); projectUnderTest.linux.ephemeralDirectory.createSync(recursive: true); projectUnderTest.macos.ephemeralDirectory.createSync(recursive: true); projectUnderTest.windows.ephemeralDirectory.createSync(recursive: true); projectUnderTest.flutterPluginsFile.createSync(recursive: true); projectUnderTest.flutterPluginsDependenciesFile.createSync(recursive: true); return projectUnderTest; } class FakeXcodeProjectInterpreter extends Fake implements XcodeProjectInterpreter { @override bool isInstalled = true; @override Version version = Version(0, 0, 0); @override Future<XcodeProjectInfo> getInfo(String projectPath, {String? projectFilename}) async { return XcodeProjectInfo( const <String>[], const <String>[], <String>['Runner', 'custom-scheme'], BufferLogger.test(), ); } final List<CleanWorkspaceCall> workspaces = <CleanWorkspaceCall>[]; @override Future<void> cleanWorkspace(String workspacePath, String scheme, {bool verbose = false}) async { workspaces.add(CleanWorkspaceCall(workspacePath, scheme, verbose)); return; } } @immutable class CleanWorkspaceCall { const CleanWorkspaceCall(this.workspacePath, this.scheme, this.verbose); final String workspacePath; final String scheme; final bool verbose; @override bool operator ==(Object other) => other is CleanWorkspaceCall && workspacePath == other.workspacePath && scheme == other.scheme && verbose == other.verbose; @override int get hashCode => Object.hash(workspacePath, scheme, verbose); @override String toString() => '{$workspacePath, $scheme, $verbose}'; }
flutter/packages/flutter_tools/test/commands.shard/hermetic/clean_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/clean_test.dart", "repo_id": "flutter", "token_count": 4448 }
956
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/commands/precache.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fakes.dart'; import '../../src/test_flutter_command_runner.dart'; void main() { late FakeCache cache; setUp(() { cache = FakeCache(); cache.isUpToDateValue = false; }); testUsingContext('precache should acquire lock', () async { final Platform platform = FakePlatform(environment: <String, String>{}); final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), platform: platform, featureFlags: TestFeatureFlags(), ); await createTestCommandRunner(command).run(const <String>['precache']); expect(cache.locked, true); }); testUsingContext('precache should not re-entrantly acquire lock', () async { final Platform platform = FakePlatform( operatingSystem: 'windows', environment: <String, String>{ 'FLUTTER_ROOT': 'flutter', 'FLUTTER_ALREADY_LOCKED': 'true', }, ); final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: platform, ); await createTestCommandRunner(command).run(const <String>['precache']); expect(cache.locked, false); }); testUsingContext('precache downloads web artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(isWebEnabled: true), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--web', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.web, })); }); testUsingContext('precache does not download web artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--web', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, })); }); testUsingContext('precache downloads macOS artifacts on dev branch when macOS is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(isMacOSEnabled: true), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--macos', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.macOS, })); }); testUsingContext('precache does not download macOS artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--macos', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, })); }); testUsingContext('precache downloads Windows artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(isWindowsEnabled: true), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--windows', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.windows, })); }); testUsingContext('precache does not download Windows artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--windows', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, })); }); testUsingContext('precache downloads Linux artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(isLinuxEnabled: true), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--linux', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.linux, })); }); testUsingContext('precache does not download Linux artifacts on dev branch when feature is enabled.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--linux', '--no-android', '--no-ios']); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, })); }); testUsingContext('precache exits if requesting mismatched artifacts.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); expect(createTestCommandRunner(command).run(const <String>['precache', '--no-android', '--android_gen_snapshot', ]), throwsToolExit(message: '--android_gen_snapshot requires --android')); }); testUsingContext('precache adds artifact flags to requested artifacts', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags( isWebEnabled: true, isLinuxEnabled: true, isMacOSEnabled: true, isWindowsEnabled: true, isFuchsiaEnabled: true, ), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', '--ios', '--android', '--web', '--macos', '--linux', '--windows', '--fuchsia', '--flutter_runner', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.iOS, DevelopmentArtifact.androidGenSnapshot, DevelopmentArtifact.androidMaven, DevelopmentArtifact.androidInternalBuild, DevelopmentArtifact.web, DevelopmentArtifact.macOS, DevelopmentArtifact.linux, DevelopmentArtifact.windows, DevelopmentArtifact.fuchsia, DevelopmentArtifact.flutterRunner, })); }); testUsingContext('precache expands android artifacts when the android flag is used', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', '--no-ios', '--android', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.androidGenSnapshot, DevelopmentArtifact.androidMaven, DevelopmentArtifact.androidInternalBuild, })); }); testUsingContext('precache adds artifact flags to requested android artifacts', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', '--no-ios', '--android', '--android_gen_snapshot', '--android_maven', '--android_internal_build', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.androidGenSnapshot, DevelopmentArtifact.androidMaven, DevelopmentArtifact.androidInternalBuild, })); }); testUsingContext('precache downloads iOS and Android artifacts by default', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.iOS, DevelopmentArtifact.androidGenSnapshot, DevelopmentArtifact.androidMaven, DevelopmentArtifact.androidInternalBuild, })); }); testUsingContext('precache --all-platforms gets all artifacts', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags( isWebEnabled: true, isLinuxEnabled: true, isMacOSEnabled: true, isWindowsEnabled: true, isFuchsiaEnabled: true, ), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', '--all-platforms', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.iOS, DevelopmentArtifact.androidGenSnapshot, DevelopmentArtifact.androidMaven, DevelopmentArtifact.androidInternalBuild, DevelopmentArtifact.web, DevelopmentArtifact.macOS, DevelopmentArtifact.linux, DevelopmentArtifact.windows, DevelopmentArtifact.fuchsia, DevelopmentArtifact.flutterRunner, })); }); testUsingContext('precache with default artifacts does not override platform filtering', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags(), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run( const <String>[ 'precache', ], ); expect(cache.platformOverrideArtifacts, <String>{}); }); testUsingContext('precache with explicit artifact options overrides platform filtering', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags( isMacOSEnabled: true, ), platform: FakePlatform( operatingSystem: 'windows', environment: <String, String>{ 'FLUTTER_ROOT': 'flutter', 'FLUTTER_ALREADY_LOCKED': 'true', }, ), ); await createTestCommandRunner(command).run( const <String>[ 'precache', '--no-ios', '--no-android', '--macos', ], ); expect(cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.universal, DevelopmentArtifact.macOS, })); expect(cache.platformOverrideArtifacts, <String>{'macos'}); }); testUsingContext('precache deletes artifact stampfiles when --force is provided', () async { cache.isUpToDateValue = true; final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags( isMacOSEnabled: true, ), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache', '--force']); expect(cache.clearedStampFiles, true); }); testUsingContext('precache downloads all enabled platforms if no flags are provided.', () async { final PrecacheCommand command = PrecacheCommand( cache: cache, logger: BufferLogger.test(), featureFlags: TestFeatureFlags( isWebEnabled: true, isLinuxEnabled: true, isWindowsEnabled: true, isMacOSEnabled: true, isIOSEnabled: false, isAndroidEnabled: false, ), platform: FakePlatform(environment: <String, String>{}), ); await createTestCommandRunner(command).run(const <String>['precache']); expect( cache.artifacts, unorderedEquals(<DevelopmentArtifact>{ DevelopmentArtifact.web, DevelopmentArtifact.macOS, DevelopmentArtifact.windows, DevelopmentArtifact.linux, DevelopmentArtifact.universal, // iOS and android specifically excluded })); }); } class FakeCache extends Fake implements Cache { bool isUpToDateValue = false; bool clearedStampFiles = false; bool locked = false; Set<DevelopmentArtifact>? artifacts; @override Future<void> lock() async { locked = true; } @override void releaseLock() { locked = false; } @override Future<bool> isUpToDate() async => isUpToDateValue; @override Future<void> updateAll(Set<DevelopmentArtifact> requiredArtifacts, {bool offline = false}) async { artifacts = requiredArtifacts; } @override void clearStampFiles() { clearedStampFiles = true; } @override Set<String>? platformOverrideArtifacts; @override bool includeAllPlatforms = false; }
flutter/packages/flutter_tools/test/commands.shard/hermetic/precache_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/hermetic/precache_test.dart", "repo_id": "flutter", "token_count": 5302 }
957
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/widgets.dart'; // Test file used by `create_test.dart` to verify that `flutter create` sets up // `analysis_options.yaml` correctly to activate certain lints and ensures // that lints not playing well with Flutter remain disabled. class NoConstructor extends StatelessWidget { // LINT: Missing constructor generates use_key_in_widget_constructors warning. @override Widget build(BuildContext context) => Container(); } class NoConstConstructor extends StatelessWidget { // LINT: Missing const constructor generates prefer_const_constructors_in_immutables warning. NoConstConstructor({super.key, required this.name }); final String name; @override Widget build(BuildContext context) { // NO LINT: Can type local variables without omit_local_variable_types warning. final String text = 'Hello $name'; return Container( // LINT: "Color(0x1)" generates use_full_hex_values_for_flutter_colors warning. color: const Color(0x1), child: Text(text), ); } } Future<void> playAsync(AnimationController controller) async { // NO LINT: AnimationController API can be called without await and without // marking Future as unawaited, https://github.com/dart-lang/linter/issues/2513. controller.forward(); } Future<void> pushAsync(NavigatorState navigator) async { // NO LINT: Navigator API can be called without await and without // marking Future as unawaited, https://github.com/dart-lang/linter/issues/2513. navigator.pushNamed('foo'); } // NO LINT: Can extend ChangeNotifier without warning, https://github.com/dart-lang/sdk/issues/45343. class ExtendingChangeNotifier extends ChangeNotifier { } // NO LINT: Can mixin ChangeNotifier without warning, https://github.com/dart-lang/sdk/issues/45343. class MixingChangeNotifier with ChangeNotifier { } // NO LINT: Can extend WidgetsBindingObserver without warning, https://github.com/dart-lang/sdk/issues/45343. class ExtendingWidgetsBindingObserver extends WidgetsBindingObserver { } // NO LINT: Can mixin WidgetsBindingObserver without warning, https://github.com/dart-lang/sdk/issues/45343. class MixingWidgetsBindingObserver with WidgetsBindingObserver { }
flutter/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test/0
{ "file_path": "flutter/packages/flutter_tools/test/commands.shard/permeable/data/to_analyze.dart.test", "repo_id": "flutter", "token_count": 707 }
958
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:archive/archive.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/android/android_sdk.dart'; import 'package:flutter_tools/src/android/android_studio.dart'; import 'package:flutter_tools/src/android/application_package.dart'; import 'package:flutter_tools/src/android/gradle.dart'; import 'package:flutter_tools/src/android/gradle_errors.dart'; import 'package:flutter_tools/src/android/gradle_utils.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/process.dart'; import 'package:flutter_tools/src/base/user_messages.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:test/fake.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; const String minimalV2EmbeddingManifest = r''' <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:name="${applicationName}"> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> '''; void main() { group('gradle build', () { late BufferLogger logger; late TestUsage testUsage; late FakeAnalytics fakeAnalytics; late FileSystem fileSystem; late FakeProcessManager processManager; setUp(() { processManager = FakeProcessManager.empty(); logger = BufferLogger.test(); testUsage = TestUsage(); fileSystem = MemoryFileSystem.test(); Cache.flutterRoot = ''; fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fileSystem, fakeFlutterVersion: FakeFlutterVersion(), ); }); testUsingContext('Can immediately tool exit on recognized exit code/stderr', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, stderr: '\nSome gradle message\n', )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); bool handlerCalled = false; await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[ GradleHandledError( test: (String line) { return line.contains('Some gradle message'); }, handler: ({ String? line, FlutterProject? project, bool? usesAndroidX, }) async { handlerCalled = true; return GradleBuildStatus.exit; }, eventLabel: 'random-event-label', ), ], ); }, throwsToolExit( message: 'Gradle task assembleRelease failed with exit code 1' )); expect(handlerCalled, isTrue); expect(testUsage.events, contains( const TestUsageEvent( 'build', 'gradle', label: 'gradle-random-event-label-failure', parameters: CustomDimensions(), ), )); expect(testUsage.events, hasLength(2)); expect( fakeAnalytics.sentEvents, containsAll(<Event>[ Event.flutterBuildInfo(label: 'app-not-using-android-x', buildType: 'gradle'), Event.flutterBuildInfo(label: 'gradle-random-event-label-failure', buildType: 'gradle'), ]), ); expect( analyticsTimingEventExists( sentEvents: fakeAnalytics.sentEvents, workflow: 'build', variableName: 'gradle', ), true, ); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('Verbose mode for APKs includes Gradle stacktrace and sets debug log level', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: BufferLogger.test(verbose: true), processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '--full-stacktrace', '--info', '-Pverbose=true', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); fileSystem.directory('build') .childDirectory('app') .childDirectory('outputs') .childDirectory('flutter-apk') .childFile('app-release.apk') .createSync(recursive: true); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[], ); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('Can retry build on recognized exit code/stderr', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); const FakeCommand fakeCmd = FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, stderr: '\nSome gradle message\n', ); processManager.addCommand(fakeCmd); const int maxRetries = 2; for (int i = 0; i < maxRetries; i++) { processManager.addCommand(fakeCmd); } fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); int testFnCalled = 0; await expectLater(() async { await builder.buildGradleApp( maxRetries: maxRetries, project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[ GradleHandledError( test: (String line) { if (line.contains('Some gradle message')) { testFnCalled++; return true; } return false; }, handler: ({ String? line, FlutterProject? project, bool? usesAndroidX, }) async { return GradleBuildStatus.retry; }, eventLabel: 'random-event-label', ), ], ); }, throwsToolExit( message: 'Gradle task assembleRelease failed with exit code 1' )); expect(logger.statusText, contains('Retrying Gradle Build: #1, wait time: 100ms')); expect(logger.statusText, contains('Retrying Gradle Build: #2, wait time: 200ms')); expect(testFnCalled, equals(maxRetries + 1)); expect(testUsage.events, contains( const TestUsageEvent( 'build', 'gradle', label: 'gradle-random-event-label-failure', parameters: CustomDimensions(), ), )); expect(testUsage.events, hasLength(4)); expect(fakeAnalytics.sentEvents, hasLength(7)); expect(fakeAnalytics.sentEvents, contains( Event.flutterBuildInfo( label: 'gradle-random-event-label-failure', buildType: 'gradle', ), )); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('Converts recognized ProcessExceptions into tools exits', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, stderr: '\nSome gradle message\n', )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); bool handlerCalled = false; await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[ GradleHandledError( test: (String line) { return line.contains('Some gradle message'); }, handler: ({ String? line, FlutterProject? project, bool? usesAndroidX, }) async { handlerCalled = true; return GradleBuildStatus.exit; }, eventLabel: 'random-event-label', ), ], ); }, throwsToolExit( message: 'Gradle task assembleRelease failed with exit code 1' )); expect(handlerCalled, isTrue); expect(testUsage.events, contains( const TestUsageEvent( 'build', 'gradle', label: 'gradle-random-event-label-failure', parameters: CustomDimensions(), ), )); expect(testUsage.events, hasLength(2)); expect(fakeAnalytics.sentEvents, hasLength(3)); expect(fakeAnalytics.sentEvents, contains( Event.flutterBuildInfo( label: 'gradle-random-event-label-failure', buildType: 'gradle', ), )); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('rethrows unrecognized ProcessException', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(FakeCommand( command: const <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, onRun: (_) { throw const ProcessException('', <String>[], 'Unrecognized'); } )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsProcessException()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('logs success event after a successful retry', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, stderr: '\nnSome gradle message\n', )); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); fileSystem.directory('build') .childDirectory('app') .childDirectory('outputs') .childDirectory('flutter-apk') .childFile('app-release.apk') .createSync(recursive: true); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[ GradleHandledError( test: (String line) { return line.contains('Some gradle message'); }, handler: ({ String? line, FlutterProject? project, bool? usesAndroidX, }) async { return GradleBuildStatus.retry; }, eventLabel: 'random-event-label', ), ], ); expect(testUsage.events, contains( const TestUsageEvent( 'build', 'gradle', label: 'gradle-random-event-label-success', parameters: CustomDimensions(), ), )); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('performs code size analysis and sends analytics', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform( environment: <String, String>{ 'HOME': '/home', }, ), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Pcode-size-directory=foo', 'assembleRelease', ], )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final Archive archive = Archive() ..addFile(ArchiveFile('AndroidManifest.xml', 100, List<int>.filled(100, 0))) ..addFile(ArchiveFile('META-INF/CERT.RSA', 10, List<int>.filled(10, 0))) ..addFile(ArchiveFile('META-INF/CERT.SF', 10, List<int>.filled(10, 0))) ..addFile(ArchiveFile('lib/arm64-v8a/libapp.so', 50, List<int>.filled(50, 0))) ..addFile(ArchiveFile('lib/arm64-v8a/libflutter.so', 50, List<int>.filled(50, 0))); fileSystem.directory('build') .childDirectory('app') .childDirectory('outputs') .childDirectory('flutter-apk') .childFile('app-release.apk') ..createSync(recursive: true) ..writeAsBytesSync(ZipEncoder().encode(archive)!); fileSystem.file('foo/snapshot.arm64-v8a.json') ..createSync(recursive: true) ..writeAsStringSync(r''' [ { "l": "dart:_internal", "c": "SubListIterable", "n": "[Optimized] skip", "s": 2400 } ]'''); fileSystem.file('foo/trace.arm64-v8a.json') ..createSync(recursive: true) ..writeAsStringSync('{}'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, codeSizeDirectory: 'foo', ), targetArchs: <AndroidArch>[AndroidArch.arm64_v8a], ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: <GradleHandledError>[], ); expect(testUsage.events, contains( const TestUsageEvent( 'code-size-analysis', 'apk', ), )); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('indicates that an APK has been built successfully', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.directory('android') .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); fileSystem.directory('build') .childDirectory('app') .childDirectory('outputs') .childDirectory('flutter-apk') .childFile('app-release.apk') .createSync(recursive: true); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); expect( logger.statusText, contains('Built build/app/outputs/flutter-apk/app-release.apk (0.0MB)'), ); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('Uses namespace attribute if manifest lacks a package attribute', () async { final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); final AndroidSdk sdk = FakeAndroidSdk(); fileSystem.directory(project.android.hostAppGradleRoot) .childFile('build.gradle') .createSync(recursive: true); fileSystem.directory(project.android.hostAppGradleRoot) .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync( ''' apply from: irrelevant/flutter.gradle android { namespace 'com.example.foo' } '''); fileSystem.directory(project.android.hostAppGradleRoot) .childDirectory('app') .childDirectory('src') .childDirectory('main') .childFile('AndroidManifest.xml') ..createSync(recursive: true) ..writeAsStringSync(r''' <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="namespacetest" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest> '''); final AndroidApk? androidApk = await AndroidApk.fromAndroidProject( project.android, androidSdk: sdk, fileSystem: fileSystem, logger: logger, processManager: processManager, processUtils: ProcessUtils(processManager: processManager, logger: logger), userMessages: UserMessages(), buildInfo: const BuildInfo(BuildMode.debug, null, treeShakeIcons: false), ); expect(androidApk?.id, 'com.example.foo'); }); testUsingContext('can call custom gradle task getBuildOptions and parse the result', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', 'printBuildVariants', ], stdout: ''' BuildVariant: freeDebug BuildVariant: paidDebug BuildVariant: freeRelease BuildVariant: paidRelease BuildVariant: freeProfile BuildVariant: paidProfile ''', )); final List<String> actual = await builder.getBuildVariants( project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), ); expect(actual, <String>['freeDebug', 'paidDebug', 'freeRelease', 'paidRelease', 'freeProfile', 'paidProfile']); expect( analyticsTimingEventExists( sentEvents: fakeAnalytics.sentEvents, workflow: 'print', variableName: 'android build variants', ), true, ); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), Analytics: () => fakeAnalytics, }); testUsingContext('getBuildOptions returns empty list if gradle returns error', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', 'printBuildVariants', ], stderr: ''' Gradle Crashed ''', exitCode: 1, )); final List<String> actual = await builder.getBuildVariants( project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), ); expect(actual, const <String>[]); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('can call custom gradle task outputFreeDebugAppLinkSettings and parse the result', () async { final String expectedOutputPath; expectedOutputPath = fileSystem.path.join('/build/deeplink_data', 'app-link-settings-freeDebug.json'); final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(FakeCommand( command: <String>[ 'gradlew', '-q', '-PoutputPath=$expectedOutputPath', 'outputFreeDebugAppLinkSettings', ], )); await builder.outputsAppLinkSettings( 'freeDebug', project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), ); expect( analyticsTimingEventExists( sentEvents: fakeAnalytics.sentEvents, workflow: 'outputs', variableName: 'app link settings', ), true, ); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), FileSystem: () => fileSystem, ProcessManager: () => processManager, Analytics: () => fakeAnalytics, }); testUsingContext("doesn't indicate how to consume an AAR when printHowToConsumeAar is false", () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=1.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Ptarget-platform=android-arm,android-arm64,android-x64', 'assembleAarRelease', ], )); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo(BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '1.0', ); expect( logger.statusText, contains('Built build/outputs/repo'), ); expect( logger.statusText.contains('Consuming the Module'), isFalse, ); expect(processManager, hasNoRemainingExpectations); expect( analyticsTimingEventExists( sentEvents: fakeAnalytics.sentEvents, workflow: 'build', variableName: 'gradle-aar', ), true, ); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), Analytics: () => fakeAnalytics, }); testUsingContext('Verbose mode for AARs includes Gradle stacktrace and sets debug log level', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: BufferLogger.test(verbose: true), processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=1.0', '--full-stacktrace', '--info', '-Pverbose=true', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Ptarget-platform=android-arm,android-arm64,android-x64', 'assembleAarRelease', ], )); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo(BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '1.0', ); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('gradle exit code and stderr is forwarded to tool exit', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=1.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Ptarget-platform=android-arm,android-arm64,android-x64', 'assembleAarRelease', ], exitCode: 108, stderr: 'Gradle task assembleAarRelease failed with exit code 108.', )); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await expectLater(() async => builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo(BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '1.0', ), throwsToolExit(exitCode: 108, message: 'Gradle task assembleAarRelease failed with exit code 108.')); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build apk uses selected local engine with arm32 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_arm', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_arm', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-arm', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.file('out/android_arm/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_arm/armeabi_v7a_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm/armeabi_v7a_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm/armeabi_v7a_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('android/gradlew').createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.file('android/build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsToolExit()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build apk uses selected local engine with arm64 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_arm64', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_arm64', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-arm64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.file('out/android_arm64/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_arm64/arm64_v8a_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm64/arm64_v8a_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm64/arm64_v8a_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('android/gradlew').createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.file('android/build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsToolExit()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build apk uses selected local engine with x86 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_x86', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_x86', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-x86', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.file('out/android_x86/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_x86/x86_release.pom').createSync(recursive: true); fileSystem.file('out/android_x86/x86_release.jar').createSync(recursive: true); fileSystem.file('out/android_x86/x86_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('android/gradlew').createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.file('android/build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsToolExit()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build apk uses selected local engine with x64 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_x64', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-q', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_x64', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], exitCode: 1, )); fileSystem.file('out/android_x64/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_x64/x86_64_release.pom').createSync(recursive: true); fileSystem.file('out/android_x64/x86_64_release.jar').createSync(recursive: true); fileSystem.file('out/android_x64/x86_64_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('android/gradlew').createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.file('android/build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsToolExit()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('honors --no-android-gradle-daemon setting', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.test(), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand( const FakeCommand(command: <String>[ 'gradlew', '-q', '--no-daemon', '-Ptarget-platform=android-arm,android-arm64,android-x64', '-Ptarget=lib/main.dart', '-Pbase-application-name=android.app.Application', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', 'assembleRelease', ], )); fileSystem.file('android/gradlew').createSync(recursive: true); fileSystem.directory('android') .childFile('gradle.properties') .createSync(recursive: true); fileSystem.file('android/build.gradle') .createSync(recursive: true); fileSystem.directory('android') .childDirectory('app') .childFile('build.gradle') ..createSync(recursive: true) ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); project.android.appManifestFile ..createSync(recursive: true) ..writeAsStringSync(minimalV2EmbeddingManifest); await expectLater(() async { await builder.buildGradleApp( project: project, androidBuildInfo: const AndroidBuildInfo( BuildInfo( BuildMode.release, null, treeShakeIcons: false, androidGradleDaemon: false, ), ), target: 'lib/main.dart', isBuildingBundle: false, configOnly: false, localGradleErrors: const <GradleHandledError>[], ); }, throwsToolExit()); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build aar uses selected local engine with arm32 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_arm', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=2.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_arm', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-arm', 'assembleAarRelease', ], )); fileSystem.file('out/android_arm/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_arm/armeabi_v7a_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm/armeabi_v7a_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm/armeabi_v7a_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.directory('.android/gradle') .createSync(recursive: true); fileSystem.directory('.android/gradle/wrapper') .createSync(recursive: true); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo(BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '2.0', ); expect(fileSystem.link( 'build/outputs/repo/io/flutter/flutter_embedding_release/' '1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b/' 'flutter_embedding_release-1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b.pom' ), exists); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build aar uses selected local engine with x64 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_arm64', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=2.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_arm64', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-arm64', 'assembleAarRelease', ], )); fileSystem.file('out/android_arm64/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_arm64/arm64_v8a_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm64/arm64_v8a_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm64/arm64_v8a_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_arm64/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.directory('.android/gradle') .createSync(recursive: true); fileSystem.directory('.android/gradle/wrapper') .createSync(recursive: true); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo( BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '2.0', ); expect(fileSystem.link( 'build/outputs/repo/io/flutter/flutter_embedding_release/' '1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b/' 'flutter_embedding_release-1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b.pom' ), exists); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build aar uses selected local engine with x86 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_x86', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=2.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_x86', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-x86', 'assembleAarRelease', ], )); fileSystem.file('out/android_x86/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_x86/x86_release.pom').createSync(recursive: true); fileSystem.file('out/android_x86/x86_release.jar').createSync(recursive: true); fileSystem.file('out/android_x86/x86_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_x86/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.directory('.android/gradle') .createSync(recursive: true); fileSystem.directory('.android/gradle/wrapper') .createSync(recursive: true); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo( BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '2.0', ); expect(fileSystem.link( 'build/outputs/repo/io/flutter/flutter_embedding_release/' '1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b/' 'flutter_embedding_release-1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b.pom' ), exists); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); testUsingContext('build aar uses selected local engine on x64 ABI', () async { final AndroidGradleBuilder builder = AndroidGradleBuilder( java: FakeJava(), logger: logger, processManager: processManager, fileSystem: fileSystem, artifacts: Artifacts.testLocalEngine(localEngine: 'out/android_x64', localEngineHost: 'out/host_release'), usage: testUsage, analytics: fakeAnalytics, gradleUtils: FakeGradleUtils(), platform: FakePlatform(), androidStudio: FakeAndroidStudio(), ); processManager.addCommand(const FakeCommand( command: <String>[ 'gradlew', '-I=/packages/flutter_tools/gradle/aar_init_script.gradle', '-Pflutter-root=/', '-Poutput-dir=build/', '-Pis-plugin=false', '-PbuildNumber=2.0', '-q', '-Pdart-obfuscation=false', '-Ptrack-widget-creation=false', '-Ptree-shake-icons=false', '-Plocal-engine-repo=/.tmp_rand0/flutter_tool_local_engine_repo.rand0', '-Plocal-engine-build-mode=release', '-Plocal-engine-out=out/android_x64', '-Plocal-engine-host-out=out/host_release', '-Ptarget-platform=android-x64', 'assembleAarRelease', ], )); fileSystem.file('out/android_x64/flutter_embedding_release.pom') ..createSync(recursive: true) ..writeAsStringSync(''' <?xml version="1.0" encoding="UTF-8"?> <project> <version>1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b</version> <dependencies> </dependencies> </project> '''); fileSystem.file('out/android_x64/x86_64_release.pom').createSync(recursive: true); fileSystem.file('out/android_x64/x86_64_release.jar').createSync(recursive: true); fileSystem.file('out/android_x64/x86_64_release.maven-metadata.xml').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.jar').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.pom').createSync(recursive: true); fileSystem.file('out/android_x64/flutter_embedding_release.maven-metadata.xml').createSync(recursive: true); final File manifestFile = fileSystem.file('pubspec.yaml'); manifestFile.createSync(recursive: true); manifestFile.writeAsStringSync(''' flutter: module: androidPackage: com.example.test ''' ); fileSystem.directory('.android/gradle') .createSync(recursive: true); fileSystem.directory('.android/gradle/wrapper') .createSync(recursive: true); fileSystem.file('.android/gradlew').createSync(recursive: true); fileSystem.file('.android/gradle.properties') .writeAsStringSync('irrelevant'); fileSystem.file('.android/build.gradle') .createSync(recursive: true); fileSystem.directory('build/outputs/repo').createSync(recursive: true); await builder.buildGradleAar( androidBuildInfo: const AndroidBuildInfo( BuildInfo(BuildMode.release, null, treeShakeIcons: false)), project: FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), outputDirectory: fileSystem.directory('build/'), target: '', buildNumber: '2.0', ); expect(fileSystem.link( 'build/outputs/repo/io/flutter/flutter_embedding_release/' '1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b/' 'flutter_embedding_release-1.0.0-73fd6b049a80bcea2db1f26c7cee434907cd188b.pom' ), exists); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ AndroidStudio: () => FakeAndroidStudio(), }); }); } class FakeGradleUtils extends Fake implements GradleUtils { @override String getExecutable(FlutterProject project) { return 'gradlew'; } } class FakeAndroidStudio extends Fake implements AndroidStudio { @override String get javaPath => '/android-studio/jbr'; }
flutter/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart", "repo_id": "flutter", "token_count": 31719 }
959
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/platform_plugins.dart'; import '../src/common.dart'; void main() { testWithoutContext('AndroidPlugin throws tool exit if the plugin main class can not be found', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', package: 'com.company', pluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); expect(() => androidPlugin.toMap(), throwsToolExit( message: "The plugin `pluginA` doesn't have a main class defined in " '.pub_cache/plugin_a/android/src/main/java/com/company/PluginA.java ' 'or .pub_cache/plugin_a/android/src/main/kotlin/com/company/PluginA.kt' )); }); testWithoutContext('AndroidPlugin does not validate the main class for Dart-only plugins', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', dartPluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'dartPluginClass': 'PluginA', 'supportsEmbeddingV1': false, 'supportsEmbeddingV2': false, }); }); testWithoutContext('AndroidPlugin does not validate the main class for default_package', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', defaultPackage: 'plugin_a_android', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'default_package': 'plugin_a_android', 'supportsEmbeddingV1': false, 'supportsEmbeddingV2': false, }); }); testWithoutContext('AndroidPlugin parses embedding version 2 from the Java search path', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', package: 'com.company', pluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); fileSystem.file('.pub_cache/plugin_a/android/src/main/java/com/company/PluginA.java') ..createSync(recursive: true) ..writeAsStringSync('io.flutter.embedding.engine.plugins.FlutterPlugin'); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'package': 'com.company', 'class': 'PluginA', 'supportsEmbeddingV1': false, 'supportsEmbeddingV2': true, }); }); testWithoutContext('AndroidPlugin parses embedding version 1 from the Java search path', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', package: 'com.company', pluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); fileSystem.file('.pub_cache/plugin_a/android/src/main/java/com/company/PluginA.java') ..createSync(recursive: true) ..writeAsStringSync('some.other.string'); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'package': 'com.company', 'class': 'PluginA', 'supportsEmbeddingV1': true, 'supportsEmbeddingV2': false, }); }); testWithoutContext('AndroidPlugin parses embedding version 2 from the Kotlin search path', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', package: 'com.company', pluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); fileSystem.file('.pub_cache/plugin_a/android/src/main/kotlin/com/company/PluginA.kt') ..createSync(recursive: true) ..writeAsStringSync('io.flutter.embedding.engine.plugins.FlutterPlugin'); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'package': 'com.company', 'class': 'PluginA', 'supportsEmbeddingV1': false, 'supportsEmbeddingV2': true, }); }); testWithoutContext('AndroidPlugin parses embedding version 1 from the Kotlin search path', () { final FileSystem fileSystem = MemoryFileSystem.test(); final AndroidPlugin androidPlugin = AndroidPlugin( name: 'pluginA', package: 'com.company', pluginClass: 'PluginA', pluginPath: '.pub_cache/plugin_a', fileSystem: fileSystem, ); fileSystem.file('.pub_cache/plugin_a/android/src/main/kotlin/com/company/PluginA.kt') ..createSync(recursive: true) ..writeAsStringSync('some.other.string'); expect(androidPlugin.toMap(), <String, Object>{ 'name': 'pluginA', 'package': 'com.company', 'class': 'PluginA', 'supportsEmbeddingV1': true, 'supportsEmbeddingV2': false, }); }); }
flutter/packages/flutter_tools/test/general.shard/android_plugin_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/android_plugin_test.dart", "repo_id": "flutter", "token_count": 1947 }
960
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/context.dart'; import '../../src/common.dart'; void main() { group('throwToolExit', () { test('throws ToolExit', () { expect(() => throwToolExit('message'), throwsToolExit()); }); test('throws ToolExit with exitCode', () { expect(() => throwToolExit('message', exitCode: 42), throwsToolExit(exitCode: 42)); }); test('throws ToolExit with message', () { expect(() => throwToolExit('message'), throwsToolExit(message: 'message')); }); test('throws ToolExit with message and exit code', () { expect(() => throwToolExit('message', exitCode: 42), throwsToolExit(exitCode: 42, message: 'message')); }); testWithoutContext('Throws if accessing the Zone', () { expect(() => context.get<Object>(), throwsUnsupportedError); }); }); }
flutter/packages/flutter_tools/test/general.shard/base/common_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/base/common_test.dart", "repo_id": "flutter", "token_count": 352 }
961
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/terminal.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/fakes.dart'; void main() { group('output preferences', () { testWithoutContext('can wrap output', () async { final BufferLogger bufferLogger = BufferLogger( outputPreferences: OutputPreferences.test(wrapText: true, wrapColumn: 40), terminal: TestTerminal(platform: FakePlatform()..stdoutSupportsAnsi = true), ); bufferLogger.printStatus('0123456789' * 8); expect(bufferLogger.statusText, equals(('${'0123456789' * 4}\n') * 2)); }); testWithoutContext('can turn off wrapping', () async { final BufferLogger bufferLogger = BufferLogger( outputPreferences: OutputPreferences.test(), terminal: TestTerminal(platform: FakePlatform()..stdoutSupportsAnsi = true), ); final String testString = '0123456789' * 20; bufferLogger.printStatus(testString); expect(bufferLogger.statusText, equals('$testString\n')); }); }); group('ANSI coloring, bold, and clearing', () { late AnsiTerminal terminal; setUp(() { terminal = AnsiTerminal( stdio: Stdio(), // Danger, using real stdio. platform: FakePlatform()..stdoutSupportsAnsi = true, ); }); testWithoutContext('adding colors works', () { for (final TerminalColor color in TerminalColor.values) { expect( terminal.color('output', color), equals('${AnsiTerminal.colorCode(color)}output${AnsiTerminal.resetColor}'), ); } }); testWithoutContext('adding bold works', () { expect( terminal.bolden('output'), equals('${AnsiTerminal.bold}output${AnsiTerminal.resetBold}'), ); }); testWithoutContext('nesting bold within color works', () { expect( terminal.color(terminal.bolden('output'), TerminalColor.blue), equals('${AnsiTerminal.blue}${AnsiTerminal.bold}output${AnsiTerminal.resetBold}${AnsiTerminal.resetColor}'), ); expect( terminal.color('non-bold ${terminal.bolden('output')} also non-bold', TerminalColor.blue), equals('${AnsiTerminal.blue}non-bold ${AnsiTerminal.bold}output${AnsiTerminal.resetBold} also non-bold${AnsiTerminal.resetColor}'), ); }); testWithoutContext('nesting color within bold works', () { expect( terminal.bolden(terminal.color('output', TerminalColor.blue)), equals('${AnsiTerminal.bold}${AnsiTerminal.blue}output${AnsiTerminal.resetColor}${AnsiTerminal.resetBold}'), ); expect( terminal.bolden('non-color ${terminal.color('output', TerminalColor.blue)} also non-color'), equals('${AnsiTerminal.bold}non-color ${AnsiTerminal.blue}output${AnsiTerminal.resetColor} also non-color${AnsiTerminal.resetBold}'), ); }); testWithoutContext('nesting color within color works', () { expect( terminal.color(terminal.color('output', TerminalColor.blue), TerminalColor.magenta), equals('${AnsiTerminal.magenta}${AnsiTerminal.blue}output${AnsiTerminal.resetColor}${AnsiTerminal.magenta}${AnsiTerminal.resetColor}'), ); expect( terminal.color('magenta ${terminal.color('output', TerminalColor.blue)} also magenta', TerminalColor.magenta), equals('${AnsiTerminal.magenta}magenta ${AnsiTerminal.blue}output${AnsiTerminal.resetColor}${AnsiTerminal.magenta} also magenta${AnsiTerminal.resetColor}'), ); }); testWithoutContext('nesting bold within bold works', () { expect( terminal.bolden(terminal.bolden('output')), equals('${AnsiTerminal.bold}output${AnsiTerminal.resetBold}'), ); expect( terminal.bolden('bold ${terminal.bolden('output')} still bold'), equals('${AnsiTerminal.bold}bold output still bold${AnsiTerminal.resetBold}'), ); }); testWithoutContext('clearing lines works', () { expect( terminal.clearLines(3), equals( '${AnsiTerminal.cursorBeginningOfLineCode}' '${AnsiTerminal.clearEntireLineCode}' '${AnsiTerminal.cursorUpLineCode}' '${AnsiTerminal.clearEntireLineCode}' '${AnsiTerminal.cursorUpLineCode}' '${AnsiTerminal.clearEntireLineCode}' ), ); expect( terminal.clearLines(1), equals( '${AnsiTerminal.cursorBeginningOfLineCode}' '${AnsiTerminal.clearEntireLineCode}' ), ); }); testWithoutContext('clearing lines when color is not supported does not work', () { terminal = AnsiTerminal( stdio: Stdio(), // Danger, using real stdio. platform: FakePlatform()..stdoutSupportsAnsi = false, ); expect( terminal.clearLines(3), equals(''), ); }); }); group('character input prompt', () { late AnsiTerminal terminalUnderTest; setUp(() { terminalUnderTest = TestTerminal(stdio: FakeStdio()); }); testWithoutContext('character prompt throws if usesTerminalUi is false', () async { expect(terminalUnderTest.promptForCharInput( <String>['a', 'b', 'c'], prompt: 'Please choose something', logger: BufferLogger.test(), ), throwsStateError); }); testWithoutContext('character prompt', () async { final BufferLogger bufferLogger = BufferLogger( terminal: terminalUnderTest, outputPreferences: OutputPreferences.test(), ); terminalUnderTest.usesTerminalUi = true; mockStdInStream = Stream<String>.fromFutures(<Future<String>>[ Future<String>.value('d'), // Not in accepted list. Future<String>.value('\n'), // Not in accepted list Future<String>.value('b'), ]).asBroadcastStream(); final String choice = await terminalUnderTest.promptForCharInput( <String>['a', 'b', 'c'], prompt: 'Please choose something', logger: bufferLogger, ); expect(choice, 'b'); expect( bufferLogger.statusText, 'Please choose something [a|b|c]: d\n' 'Please choose something [a|b|c]: \n' 'Please choose something [a|b|c]: b\n'); }); testWithoutContext('default character choice without displayAcceptedCharacters', () async { final BufferLogger bufferLogger = BufferLogger( terminal: terminalUnderTest, outputPreferences: OutputPreferences.test(), ); terminalUnderTest.usesTerminalUi = true; mockStdInStream = Stream<String>.fromFutures(<Future<String>>[ Future<String>.value('\n'), // Not in accepted list ]).asBroadcastStream(); final String choice = await terminalUnderTest.promptForCharInput( <String>['a', 'b', 'c'], prompt: 'Please choose something', displayAcceptedCharacters: false, defaultChoiceIndex: 1, // which is b. logger: bufferLogger, ); expect(choice, 'b'); expect( bufferLogger.statusText, 'Please choose something: \n' ); }); testWithoutContext('Does not set single char mode when a terminal is not attached', () { final Stdio stdio = FakeStdio() ..stdinHasTerminal = false; final AnsiTerminal ansiTerminal = AnsiTerminal( stdio: stdio, platform: const LocalPlatform(), ); expect(() => ansiTerminal.singleCharMode = true, returnsNormally); }); }); testWithoutContext('AnsiTerminal.preferredStyle', () { final Stdio stdio = FakeStdio(); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform()).preferredStyle, 0); // Defaults to 0 for backwards compatibility. expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 2)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 3)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 4)).preferredStyle, 3); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 5)).preferredStyle, 4); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 6)).preferredStyle, 5); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 7)).preferredStyle, 5); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 8)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 9)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 10)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 11)).preferredStyle, 3); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 1, 1)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 2, 1)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 3, 1)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 4, 1)).preferredStyle, 3); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 5, 1)).preferredStyle, 4); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 6, 1)).preferredStyle, 6); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 7, 1)).preferredStyle, 6); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 8, 1)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 9, 1)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 10, 1)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 11, 1)).preferredStyle, 3); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 1, 23)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 2, 23)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 3, 23)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 4, 23)).preferredStyle, 3); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 5, 23)).preferredStyle, 4); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 6, 23)).preferredStyle, 28); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 7, 23)).preferredStyle, 28); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 8, 23)).preferredStyle, 0); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 9, 23)).preferredStyle, 1); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 10, 23)).preferredStyle, 2); expect(AnsiTerminal(stdio: stdio, platform: const LocalPlatform(), now: DateTime(2018, 1, 11, 23)).preferredStyle, 3); }); testWithoutContext('set singleCharMode resilient to StdinException', () async { final FakeStdio stdio = FakeStdio(); final AnsiTerminal terminal = AnsiTerminal(stdio: stdio, platform: const LocalPlatform()); stdio.stdinHasTerminal = true; stdio._stdin = FakeStdin()..echoModeCallback = (bool _) => throw const StdinException( 'Error setting terminal echo mode, OS Error: The handle is invalid.', ); terminal.singleCharMode = true; }); } late Stream<String> mockStdInStream; class TestTerminal extends AnsiTerminal { TestTerminal({ Stdio? stdio, super.platform = const LocalPlatform(), DateTime? now, }) : super(stdio: stdio ?? Stdio(), now: now ?? DateTime(2018)); @override Stream<String> get keystrokes { return mockStdInStream; } bool _singleCharMode = false; @override bool get singleCharMode => _singleCharMode; void Function(bool newMode)? _singleCharModeCallback; @override set singleCharMode(bool newMode) { _singleCharMode = newMode; if (_singleCharModeCallback != null) { _singleCharModeCallback!(newMode); } } @override int get preferredStyle => 0; } class FakeStdio extends Fake implements Stdio { Stream<List<int>>? _stdin; @override Stream<List<int>> get stdin { if (_stdin != null) { return _stdin!; } throw UnimplementedError('stdin'); } @override bool stdinHasTerminal = false; }
flutter/packages/flutter_tools/test/general.shard/base/terminal_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/base/terminal_test.dart", "repo_id": "flutter", "token_count": 5081 }
962
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/build_system/targets/android.dart'; import 'package:flutter_tools/src/build_system/targets/deferred_components.dart'; import '../../../src/common.dart'; import '../../../src/context.dart'; // These tests perform a simple check to verify if the check/task was executed at all. // Detailed per-check tests are in android/deferred_components_setup_validator_test.dart. void main() { late FileSystem fileSystem; late BufferLogger logger; setUp(() { logger = BufferLogger.test(); fileSystem = MemoryFileSystem.test(); }); testUsingContext('checkAppAndroidManifestComponentLoadingUnitMapping checks runs', () async { final Environment environment = Environment.test( fileSystem.currentDirectory, outputDir: fileSystem.directory('out')..createSync(), buildDir: fileSystem.directory('build')..createSync(), projectDir: fileSystem.directory('project')..createSync(), defines: <String, String>{ kDeferredComponents: 'true', }, artifacts: Artifacts.test(), processManager: FakeProcessManager.empty(), fileSystem: fileSystem, logger: logger, ); environment.buildDir.createSync(recursive: true); const AndroidAot androidAot = AndroidAot(TargetPlatform.android_arm64, BuildMode.release); const AndroidAotBundle androidAotBundle = AndroidAotBundle(androidAot); final AndroidAotDeferredComponentsBundle androidDefBundle = AndroidAotDeferredComponentsBundle(androidAotBundle); final DeferredComponentsGenSnapshotValidatorTarget validatorTarget = DeferredComponentsGenSnapshotValidatorTarget( deferredComponentsDependencies: <AndroidAotDeferredComponentsBundle>[androidDefBundle], nonDeferredComponentsDependencies: <Target>[], title: 'test checks', exitOnFail: false, ); await validatorTarget.build(environment); // We check the inputs to determine if the task was executed. expect(validatorTarget.validator!.inputs.length, 3); expect(validatorTarget.validator!.inputs[0].path, 'project/pubspec.yaml'); expect(validatorTarget.validator!.inputs[1].path, 'project/android/app/src/main/AndroidManifest.xml'); }); testUsingContext('checkAgainstLoadingUnitsCache checks runs', () async { final Environment environment = Environment.test( fileSystem.currentDirectory, outputDir: fileSystem.directory('out')..createSync(), buildDir: fileSystem.directory('build')..createSync(), projectDir: fileSystem.directory('project')..createSync(), defines: <String, String>{ kDeferredComponents: 'true', }, artifacts: Artifacts.test(), processManager: FakeProcessManager.empty(), fileSystem: fileSystem, logger: logger, ); environment.buildDir.createSync(recursive: true); const AndroidAot androidAot = AndroidAot(TargetPlatform.android_arm64, BuildMode.release); const AndroidAotBundle androidAotBundle = AndroidAotBundle(androidAot); final AndroidAotDeferredComponentsBundle androidDefBundle = AndroidAotDeferredComponentsBundle(androidAotBundle); final DeferredComponentsGenSnapshotValidatorTarget validatorTarget = DeferredComponentsGenSnapshotValidatorTarget( deferredComponentsDependencies: <AndroidAotDeferredComponentsBundle>[androidDefBundle], nonDeferredComponentsDependencies: <Target>[], title: 'test checks', exitOnFail: false, ); await validatorTarget.build(environment); // We check the inputs to determine if the task was executed. expect(validatorTarget.validator!.inputs.length, 3); expect(validatorTarget.validator!.inputs[2].path, 'project/deferred_components_loading_units.yaml'); }); testUsingContext('writeLoadingUnitsCache task runs', () async { final Environment environment = Environment.test( fileSystem.currentDirectory, outputDir: fileSystem.directory('out')..createSync(), buildDir: fileSystem.directory('build')..createSync(), projectDir: fileSystem.directory('project')..createSync(), defines: <String, String>{ kDeferredComponents: 'true', }, artifacts: Artifacts.test(), processManager: FakeProcessManager.empty(), fileSystem: fileSystem, logger: logger, ); environment.buildDir.createSync(recursive: true); const AndroidAot androidAot = AndroidAot(TargetPlatform.android_arm64, BuildMode.release); const AndroidAotBundle androidAotBundle = AndroidAotBundle(androidAot); final AndroidAotDeferredComponentsBundle androidDefBundle = AndroidAotDeferredComponentsBundle(androidAotBundle); final DeferredComponentsGenSnapshotValidatorTarget validatorTarget = DeferredComponentsGenSnapshotValidatorTarget( deferredComponentsDependencies: <AndroidAotDeferredComponentsBundle>[androidDefBundle], nonDeferredComponentsDependencies: <Target>[], title: 'test checks', exitOnFail: false, ); await validatorTarget.build(environment); // We check the inputs to determine if the task was executed. expect(validatorTarget.validator!.outputs.length, 1); expect(validatorTarget.validator!.outputs[0].path, 'project/deferred_components_loading_units.yaml'); }); }
flutter/packages/flutter_tools/test/general.shard/build_system/targets/deferred_components_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/build_system/targets/deferred_components_test.dart", "repo_id": "flutter", "token_count": 1869 }
963
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter_tools/src/commands/analyze_base.dart'; import '../../src/common.dart'; void main() { testWithoutContext('AnalyzeBase message formatting with zero issues', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 0, seconds: '10', ); expect(message, 'No issues found! (ran in 10s)'); }); testWithoutContext('AnalyzeBase message formatting with one issue', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 1, seconds: '10', ); expect(message, '1 issue found. (ran in 10s)'); }); testWithoutContext('AnalyzeBase message formatting with N issues', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 10, seconds: '10', ); expect(message, '10 issues found. (ran in 10s)'); }); testWithoutContext('AnalyzeBase message with analyze files', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 0, seconds: '10', files: 10, ); expect(message, 'No issues found! โ€ข analyzed 10 files (ran in 10s)'); }); testWithoutContext('AnalyzeBase message with positive issue diff', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 1, seconds: '10', issueDiff: 1, ); expect(message, '1 issue found. (1 new) (ran in 10s)'); }); testWithoutContext('AnalyzeBase message with negative issue diff', () async { final String message = AnalyzeBase.generateErrorsMessage( issueCount: 0, seconds: '10', issueDiff: -1, ); expect(message, 'No issues found! (1 fixed) (ran in 10s)'); }); }
flutter/packages/flutter_tools/test/general.shard/commands/analyze_base_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/commands/analyze_base_test.dart", "repo_id": "flutter", "token_count": 646 }
964
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/custom_devices/custom_device_config.dart'; import 'package:flutter_tools/src/custom_devices/custom_devices_config.dart'; import '../../src/common.dart'; import '../../src/custom_devices_common.dart'; Map<String, dynamic> copyJsonObjectWith( Map<String, dynamic> object, Map<String, dynamic> overrides ) => Map<String, dynamic>.of(object)..addAll(overrides); void main() { testWithoutContext("CustomDevicesConfig logs no error when 'custom-devices' key is missing in config", () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger ); expect(customDevicesConfig.devices, hasLength(0)); expect(logger.errorText, hasLength(0)); }); testWithoutContext("CustomDevicesConfig logs error when 'custom-devices' key is not a JSON array", () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <String, dynamic>{ 'test': 'testvalue', } ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger ); const String msg = "Could not load custom devices config. config['custom-devices'] is not a JSON array."; expect(() => customDevicesConfig.devices, throwsA(const CustomDeviceRevivalException(msg))); expect(logger.errorText, contains(msg)); }); testWithoutContext('CustomDeviceRevivalException serialization', () { expect( const CustomDeviceRevivalException('testmessage').toString(), equals('testmessage') ); expect( const CustomDeviceRevivalException.fromDescriptions('testfielddescription', 'testexpectedvaluedescription').toString(), equals('Expected testfielddescription to be testexpectedvaluedescription.') ); }); testWithoutContext('CustomDevicesConfig can load test config and logs no errors', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ testConfigJson, ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger ); final List<CustomDeviceConfig> devices = customDevicesConfig.devices; expect(logger.errorText, hasLength(0)); expect(devices, hasLength(1)); expect(devices.first, equals(testConfig)); }); testWithoutContext('CustomDevicesConfig logs error when id is null', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'id': null, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); const String msg = 'Could not load custom device from config index 0: Expected id to be a string.'; expect(() => customDevicesConfig.devices, throwsA(const CustomDeviceRevivalException(msg))); expect(logger.errorText, contains(msg)); }); testWithoutContext('CustomDevicesConfig logs error when id is not a string', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'id': 1, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); const String msg = 'Could not load custom device from config index 0: Expected id to be a string.'; expect(() => customDevicesConfig.devices, throwsA(const CustomDeviceRevivalException(msg))); expect(logger.errorText, contains(msg)); }); testWithoutContext('CustomDevicesConfig logs error when label is not a string', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'label': 1, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); const String msg = 'Could not load custom device from config index 0: Expected label to be a string.'; expect(() => customDevicesConfig.devices, throwsA(const CustomDeviceRevivalException(msg))); expect(logger.errorText, contains(msg)); }); testWithoutContext('CustomDevicesConfig loads config when postBuild is null', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'postBuild': null, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); expect(customDevicesConfig.devices, hasLength(1)); }); testWithoutContext('CustomDevicesConfig loads config without port forwarding', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'forwardPort': null, 'forwardPortSuccessRegex': null, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); final List<CustomDeviceConfig> devices = customDevicesConfig.devices; expect(devices, hasLength(1)); expect(devices.first.usesPortForwarding, false); }); testWithoutContext('CustomDevicesConfig logs error when port forward command is given but not regex', () { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final Directory directory = fileSystem.directory('custom_devices_config'); writeCustomDevicesConfigFile( directory, json: <dynamic>[ copyJsonObjectWith( testConfigJson, <String, dynamic>{ 'forwardPortSuccessRegex': null, }, ), ], ); final CustomDevicesConfig customDevicesConfig = CustomDevicesConfig.test( fileSystem: fileSystem, directory: directory, logger: logger, ); const String msg = 'Could not load custom device from config index 0: When forwardPort is given, forwardPortSuccessRegex must be specified too.'; expect(() => customDevicesConfig.devices, throwsA(const CustomDeviceRevivalException(msg))); expect(logger.errorText, contains(msg)); }); }
flutter/packages/flutter_tools/test/general.shard/custom_devices/custom_devices_config_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/custom_devices/custom_devices_config_test.dart", "repo_id": "flutter", "token_count": 3025 }
965
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/android/android_sdk.dart'; import 'package:flutter_tools/src/android/android_workflow.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/emulator.dart'; import 'package:flutter_tools/src/ios/ios_emulators.dart'; import 'package:flutter_tools/src/macos/xcode.dart'; import 'package:test/fake.dart'; import '../src/common.dart'; import '../src/context.dart'; import '../src/fake_process_manager.dart'; import '../src/fakes.dart'; const FakeEmulator emulator1 = FakeEmulator('Nexus_5', 'Nexus 5', 'Google'); const FakeEmulator emulator2 = FakeEmulator('Nexus_5X_API_27_x86', 'Nexus 5X', 'Google'); const FakeEmulator emulator3 = FakeEmulator('iOS Simulator', 'iOS Simulator', 'Apple'); const List<Emulator> emulators = <Emulator>[ emulator1, emulator2, emulator3, ]; // We have to send a command that fails in order to get the list of valid // system images paths. This is an example of the output to use in the fake. const String fakeCreateFailureOutput = 'Error: Package path (-k) not specified. Valid system image paths are:\n' 'system-images;android-27;google_apis;x86\n' 'system-images;android-P;google_apis;x86\n' 'system-images;android-27;google_apis_playstore;x86\n' 'null\n'; // Yep, these really end with null (on dantup's machine at least) const FakeCommand kListEmulatorsCommand = FakeCommand( command: <String>['avdmanager', 'create', 'avd', '-n', 'temp'], stderr: fakeCreateFailureOutput, exitCode: 1, ); void main() { late FakeProcessManager fakeProcessManager; late FakeAndroidSdk sdk; late FileSystem fileSystem; late Xcode xcode; setUp(() { fileSystem = MemoryFileSystem.test(); fakeProcessManager = FakeProcessManager.empty(); sdk = FakeAndroidSdk(); xcode = Xcode.test(processManager: fakeProcessManager, fileSystem: fileSystem); sdk ..avdManagerPath = 'avdmanager' ..emulatorPath = 'emulator' ..adbPath = 'adb'; }); group('EmulatorManager', () { // iOS discovery uses context. testUsingContext('getEmulators', () async { // Test that EmulatorManager.getEmulators() doesn't throw. final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['emulator', '-list-avds'], stdout: 'existing-avd-1', ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); await expectLater(() async => emulatorManager.getAllAvailableEmulators(), returnsNormally); }); testUsingContext('printEmulators prints the emualtors information with header', () { Emulator.printEmulators(emulators, testLogger); expect(testLogger.statusText, ''' Id โ€ข Name โ€ข Manufacturer โ€ข Platform Nexus_5 โ€ข Nexus 5 โ€ข Google โ€ข android Nexus_5X_API_27_x86 โ€ข Nexus 5X โ€ข Google โ€ข android iOS Simulator โ€ข iOS Simulator โ€ข Apple โ€ข android '''); }); testUsingContext('getEmulators with no Android SDK', () async { // Test that EmulatorManager.getEmulators() doesn't throw when there's no Android SDK. final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['emulator', '-list-avds'], stdout: 'existing-avd-1', ), ]), androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); await expectLater(() async => emulatorManager.getAllAvailableEmulators(), returnsNormally); }); testWithoutContext('getEmulatorsById', () async { final TestEmulatorManager testEmulatorManager = TestEmulatorManager(emulators, java: FakeJava(), logger: BufferLogger.test(), processManager: fakeProcessManager, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), fileSystem: fileSystem, ); expect(await testEmulatorManager.getEmulatorsMatching('Nexus_5'), <Emulator>[emulator1]); expect(await testEmulatorManager.getEmulatorsMatching('Nexus_5X'), <Emulator>[emulator2]); expect(await testEmulatorManager.getEmulatorsMatching('Nexus_5X_API_27_x86'), <Emulator>[emulator2]); expect(await testEmulatorManager.getEmulatorsMatching('Nexus'), <Emulator>[emulator1, emulator2]); expect(await testEmulatorManager.getEmulatorsMatching('iOS Simulator'), <Emulator>[emulator3]); expect(await testEmulatorManager.getEmulatorsMatching('ios'), <Emulator>[emulator3]); }); testUsingContext('create emulator with a missing avdmanager does not crash.', () async { sdk.avdManagerPath = null; final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['emulator', '-list-avds'], stdout: 'existing-avd-1', ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); final CreateEmulatorResult result = await emulatorManager.createEmulator(); expect(result.success, false); expect(result.error, contains('avdmanager is missing from the Android SDK')); }); // iOS discovery uses context. testUsingContext('create emulator with an empty name does not fail', () async { final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['emulator', '-list-avds'], stdout: 'existing-avd-1', ), const FakeCommand( command: <String>['avdmanager', 'list', 'device', '-c'], stdout: 'test\ntest2\npixel\npixel-xl\n', ), kListEmulatorsCommand, const FakeCommand( command: <String>[ 'avdmanager', 'create', 'avd', '-n', 'flutter_emulator', '-k', 'system-images;android-27;google_apis_playstore;x86', '-d', 'pixel', ], ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); final CreateEmulatorResult result = await emulatorManager.createEmulator(); expect(result.success, true); }); testWithoutContext('create emulator with a unique name does not throw', () async { final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['avdmanager', 'list', 'device', '-c'], stdout: 'test\ntest2\npixel\npixel-xl\n', ), kListEmulatorsCommand, const FakeCommand( command: <String>[ 'avdmanager', 'create', 'avd', // The specified name is given with the -n flag. '-n', 'test', '-k', 'system-images;android-27;google_apis_playstore;x86', '-d', 'pixel', ], ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); final CreateEmulatorResult result = await emulatorManager.createEmulator(name: 'test'); expect(result.success, true); }); testWithoutContext('create emulator with an existing name errors', () async { final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['avdmanager', 'list', 'device', '-c'], stdout: 'test\ntest2\npixel\npixel-xl\n', ), kListEmulatorsCommand, const FakeCommand( command: <String>[ 'avdmanager', 'create', 'avd', '-n', 'existing-avd-1', '-k', 'system-images;android-27;google_apis_playstore;x86', '-d', 'pixel', ], exitCode: 1, stderr: "Error: Android Virtual Device 'existing-avd-1' already exists.\n" 'Use --force if you want to replace it.', ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); final CreateEmulatorResult result = await emulatorManager.createEmulator(name: 'existing-avd-1'); expect(result.success, false); }); // iOS discovery uses context. testUsingContext('create emulator without a name but when default exists adds a suffix', () async { final EmulatorManager emulatorManager = EmulatorManager( java: FakeJava(), fileSystem: MemoryFileSystem.test(), logger: BufferLogger.test(), processManager: FakeProcessManager.list(<FakeCommand>[ const FakeCommand( command: <String>['emulator', '-list-avds'], stdout: 'existing-avd-1\nflutter_emulator', ), const FakeCommand( command: <String>['avdmanager', 'list', 'device', '-c'], stdout: 'test\ntest2\npixel\npixel-xl\n', ), kListEmulatorsCommand, const FakeCommand( command: <String>[ 'avdmanager', 'create', 'avd', // a "_2" suffix is added to disambiguate from the existing emulator. '-n', 'flutter_emulator_2', '-k', 'system-images;android-27;google_apis_playstore;x86', '-d', 'pixel', ], ), ]), androidSdk: sdk, androidWorkflow: AndroidWorkflow( androidSdk: sdk, featureFlags: TestFeatureFlags(), ), ); final CreateEmulatorResult result = await emulatorManager.createEmulator(); expect(result.success, true); expect(result.emulatorName, 'flutter_emulator_2'); }); }); group('ios_emulators', () { testUsingContext('runs correct launch commands', () async { fileSystem.directory('/fake/Xcode.app/Contents/Developer/Applications/Simulator.app').createSync(recursive: true); fakeProcessManager.addCommands( <FakeCommand>[ const FakeCommand( command: <String>['/usr/bin/xcode-select', '--print-path'], stdout: '/fake/Xcode.app/Contents/Developer', ), const FakeCommand(command: <String>[ 'open', '-n', '-a', '/fake/Xcode.app/Contents/Developer/Applications/Simulator.app', ]), const FakeCommand(command: <String>[ 'open', '-a', '/fake/Xcode.app/Contents/Developer/Applications/Simulator.app', ]), ], ); const Emulator emulator = IOSEmulator('ios'); await emulator.launch(); expect(fakeProcessManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ ProcessManager: () => fakeProcessManager, Xcode: () => xcode, FileSystem: () => fileSystem, }); }); } class TestEmulatorManager extends EmulatorManager { TestEmulatorManager(this.allEmulators, { required super.java, required super.logger, required super.processManager, required super.androidWorkflow, required super.fileSystem, }); final List<Emulator> allEmulators; @override Future<List<Emulator>> getAllAvailableEmulators() { return Future<List<Emulator>>.value(allEmulators); } } class FakeEmulator extends Emulator { const FakeEmulator(String id, this.name, this.manufacturer) : super(id, true); @override final String name; @override final String manufacturer; @override Category get category => Category.mobile; @override PlatformType get platformType => PlatformType.android; @override Future<void> launch({bool coldBoot = false}) { throw UnimplementedError('Not implemented in Mock'); } } class FakeAndroidSdk extends Fake implements AndroidSdk { @override String? avdManagerPath; @override String? emulatorPath; @override String? adbPath; @override String? getAvdManagerPath() => avdManagerPath; @override String getAvdPath() => 'avd'; }
flutter/packages/flutter_tools/test/general.shard/emulator_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/emulator_test.dart", "repo_id": "flutter", "token_count": 5929 }
966
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/localizations/gen_l10n.dart'; import 'package:flutter_tools/src/localizations/gen_l10n_types.dart'; import 'package:flutter_tools/src/localizations/localizations_utils.dart'; import 'package:yaml/yaml.dart'; import '../src/common.dart'; import '../src/fake_process_manager.dart'; const String defaultTemplateArbFileName = 'app_en.arb'; const String defaultOutputFileString = 'output-localization-file.dart'; const String defaultClassNameString = 'AppLocalizations'; const String singleMessageArbFileString = ''' { "title": "Title", "@title": { "description": "Title for the application." } }'''; const String twoMessageArbFileString = ''' { "title": "Title", "@title": { "description": "Title for the application." }, "subtitle": "Subtitle", "@subtitle": { "description": "Subtitle for the application." } }'''; const String esArbFileName = 'app_es.arb'; const String singleEsMessageArbFileString = ''' { "title": "Tรญtulo" }'''; const String singleZhMessageArbFileString = ''' { "title": "ๆ ‡้ข˜" }'''; const String intlImportDartCode = ''' import 'package:intl/intl.dart' as intl; '''; const String foundationImportDartCode = ''' import 'package:flutter/foundation.dart'; '''; void _standardFlutterDirectoryL10nSetup(FileSystem fs) { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile(defaultTemplateArbFileName) .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile(esArbFileName) .writeAsStringSync(singleEsMessageArbFileString); fs.file('pubspec.yaml') ..createSync(recursive: true) ..writeAsStringSync(''' flutter: generate: true '''); } void main() { late MemoryFileSystem fs; late BufferLogger logger; late Artifacts artifacts; late ProcessManager processManager; late String defaultL10nPathString; late String syntheticPackagePath; late String syntheticL10nPackagePath; LocalizationsGenerator setupLocalizations( Map<String, String> localeToArbFile, { String? yamlFile, String? outputPathString, String? outputFileString, String? headerString, String? headerFile, String? untranslatedMessagesFile, bool useSyntheticPackage = true, bool isFromYaml = false, bool usesNullableGetter = true, String? inputsAndOutputsListPath, List<String>? preferredSupportedLocales, bool useDeferredLoading = false, bool useEscaping = false, bool areResourceAttributeRequired = false, bool suppressWarnings = false, bool relaxSyntax = false, bool useNamedParameters = false, void Function(Directory)? setup, } ) { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); for (final String locale in localeToArbFile.keys) { l10nDirectory.childFile('app_$locale.arb') .writeAsStringSync(localeToArbFile[locale]!); } if (setup != null) { setup(l10nDirectory); } return LocalizationsGenerator( fileSystem: fs, inputPathString: l10nDirectory.path, outputPathString: outputPathString ?? l10nDirectory.path, templateArbFileName: defaultTemplateArbFileName, outputFileString: outputFileString ?? defaultOutputFileString, classNameString: defaultClassNameString, headerString: headerString, headerFile: headerFile, logger: logger, untranslatedMessagesFile: untranslatedMessagesFile, useSyntheticPackage: useSyntheticPackage, inputsAndOutputsListPath: inputsAndOutputsListPath, usesNullableGetter: usesNullableGetter, preferredSupportedLocales: preferredSupportedLocales, useDeferredLoading: useDeferredLoading, useEscaping: useEscaping, areResourceAttributesRequired: areResourceAttributeRequired, suppressWarnings: suppressWarnings, useRelaxedSyntax: relaxSyntax, useNamedParameters: useNamedParameters, ) ..loadResources() ..writeOutputFiles(isFromYaml: isFromYaml); } String getGeneratedFileContent({String? locale}) { final String fileName = locale == null ? 'output-localization-file.dart' : 'output-localization-file_$locale.dart'; return fs.file( fs.path.join(syntheticL10nPackagePath, fileName) ).readAsStringSync(); } setUp(() { fs = MemoryFileSystem.test(); logger = BufferLogger.test(); artifacts = Artifacts.test(); processManager = FakeProcessManager.empty(); defaultL10nPathString = fs.path.join('lib', 'l10n'); syntheticPackagePath = fs.path.join('.dart_tool', 'flutter_gen'); syntheticL10nPackagePath = fs.path.join(syntheticPackagePath, 'gen_l10n'); precacheLanguageAndRegionTags(); }); group('Setters', () { testWithoutContext('setInputDirectory fails if the directory does not exist', () { expect( () => LocalizationsGenerator.inputDirectoryFromPath(fs, 'lib', fs.directory('bogus')), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Make sure that the correct path was provided'), )), ); }); testWithoutContext('setting className fails if input string is empty', () { _standardFlutterDirectoryL10nSetup(fs); expect( () => LocalizationsGenerator.classNameFromString(''), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('cannot be empty'), )), ); }); testWithoutContext('sets absolute path of the target Flutter project', () { // Set up project directory. final Directory l10nDirectory = fs.currentDirectory .childDirectory('absolute') .childDirectory('path') .childDirectory('to') .childDirectory('flutter_project') .childDirectory('lib') .childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile(defaultTemplateArbFileName) .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile(esArbFileName) .writeAsStringSync(singleEsMessageArbFileString); // Run localizations generator in specified absolute path. final String flutterProjectPath = fs.path.join('absolute', 'path', 'to', 'flutter_project'); LocalizationsGenerator( fileSystem: fs, projectPathString: flutterProjectPath, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources() ..writeOutputFiles(); // Output files should be generated in the provided absolute path. expect( fs.isFileSync(fs.path.join( flutterProjectPath, '.dart_tool', 'flutter_gen', 'gen_l10n', 'output-localization-file_en.dart', )), true, ); expect( fs.isFileSync(fs.path.join( flutterProjectPath, '.dart_tool', 'flutter_gen', 'gen_l10n', 'output-localization-file_es.dart', )), true, ); }); testWithoutContext('throws error when directory at absolute path does not exist', () { // Set up project directory. final Directory l10nDirectory = fs.currentDirectory .childDirectory('lib') .childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile(defaultTemplateArbFileName) .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile(esArbFileName) .writeAsStringSync(singleEsMessageArbFileString); // Project path should be intentionally a directory that does not exist. expect( () => LocalizationsGenerator( fileSystem: fs, projectPathString: 'absolute/path/to/flutter_project', inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Directory does not exist'), )), ); }); testWithoutContext('throws error when arb file does not exist', () { // Set up project directory. fs.currentDirectory .childDirectory('lib') .childDirectory('l10n') .createSync(recursive: true); // Arb file should be nonexistent in the l10n directory. expect( () => LocalizationsGenerator( fileSystem: fs, projectPathString: './', inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains(', does not exist.'), )), ); }); group('className should only take valid Dart class names', () { setUp(() { _standardFlutterDirectoryL10nSetup(fs); }); testWithoutContext('fails on string with spaces', () { expect( () => LocalizationsGenerator.classNameFromString('String with spaces'), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('is not a valid public Dart class name'), )), ); }); testWithoutContext('fails on non-alphanumeric symbols', () { expect( () => LocalizationsGenerator.classNameFromString('TestClass@123'), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('is not a valid public Dart class name'), )), ); }); testWithoutContext('fails on camel-case', () { expect( () => LocalizationsGenerator.classNameFromString('camelCaseClassName'), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('is not a valid public Dart class name'), )), ); }); testWithoutContext('fails when starting with a number', () { expect( () => LocalizationsGenerator.classNameFromString('123ClassName'), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('is not a valid public Dart class name'), )), ); }); }); }); testWithoutContext('correctly adds a headerString when it is set', () { final LocalizationsGenerator generator = setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, headerString: '/// Sample header'); expect(generator.header, '/// Sample header'); }); testWithoutContext('correctly adds a headerFile when it is set', () { final LocalizationsGenerator generator = setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, headerFile: 'header.txt', setup: (Directory l10nDirectory) { l10nDirectory.childFile('header.txt').writeAsStringSync('/// Sample header in a text file'); }); expect(generator.header, '/// Sample header in a text file'); }); testWithoutContext('sets templateArbFileName with more than one underscore correctly', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); final Directory outputDirectory = fs.directory(syntheticL10nPackagePath); expect(outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_en.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_es.dart').existsSync(), isTrue); }); testWithoutContext('filenames with invalid locales should not be recognized', () { expect( () { // This attempts to create 'app_localizations_en_CA_foo.arb'. setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'en_CA_foo': singleMessageArbFileString, }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains("The following .arb file's locale could not be determined"), )), ); }); testWithoutContext('correctly creates an untranslated messages file (useSyntheticPackage = true)', () { final String untranslatedMessagesFilePath = fs.path.join('lib', 'l10n', 'unimplemented_message_translations.json'); setupLocalizations(<String, String>{ 'en': twoMessageArbFileString, 'es': singleEsMessageArbFileString, }, untranslatedMessagesFile: untranslatedMessagesFilePath); final String unimplementedOutputString = fs.file(untranslatedMessagesFilePath).readAsStringSync(); try { // Since ARB file is essentially JSON, decoding it should not fail. json.decode(unimplementedOutputString); } on Exception { fail('Parsing arb file should not fail'); } expect(unimplementedOutputString, contains('es')); expect(unimplementedOutputString, contains('subtitle')); }); testWithoutContext('correctly creates an untranslated messages file (useSyntheticPackage = false)', () { final String untranslatedMessagesFilePath = fs.path.join('lib', 'l10n', 'unimplemented_message_translations.json'); setupLocalizations(<String, String>{ 'en': twoMessageArbFileString, 'es': singleMessageArbFileString, }, useSyntheticPackage: false, untranslatedMessagesFile: untranslatedMessagesFilePath); final String unimplementedOutputString = fs.file(untranslatedMessagesFilePath).readAsStringSync(); try { // Since ARB file is essentially JSON, decoding it should not fail. json.decode(unimplementedOutputString); } on Exception { fail('Parsing arb file should not fail'); } expect(unimplementedOutputString, contains('es')); expect(unimplementedOutputString, contains('subtitle')); }); testWithoutContext( 'untranslated messages suggestion is printed when translation is missing: ' 'command line message', () { setupLocalizations(<String, String>{ 'en': twoMessageArbFileString, 'es': singleEsMessageArbFileString, }); expect( logger.statusText, contains('To see a detailed report, use the --untranslated-messages-file'), ); expect( logger.statusText, contains('flutter gen-l10n --untranslated-messages-file=desiredFileName.txt'), ); }, ); testWithoutContext( 'untranslated messages suggestion is printed when translation is missing: ' 'l10n.yaml message', () { setupLocalizations(<String, String>{ 'en': twoMessageArbFileString, 'es': singleEsMessageArbFileString, }, isFromYaml: true); expect( logger.statusText, contains('To see a detailed report, use the untranslated-messages-file'), ); expect( logger.statusText, contains('untranslated-messages-file: desiredFileName.txt'), ); }, ); testWithoutContext( 'unimplemented messages suggestion is not printed when all messages ' 'are fully translated', () { setupLocalizations(<String, String>{ 'en': twoMessageArbFileString, 'es': twoMessageArbFileString, }); expect(logger.statusText, equals('')); }, ); testWithoutContext('untranslated messages file included in generated JSON list of outputs', () { final String untranslatedMessagesFilePath = fs.path.join('lib', 'l10n', 'unimplemented_message_translations.json'); setupLocalizations( <String, String>{ 'en': twoMessageArbFileString, 'es': singleEsMessageArbFileString, }, untranslatedMessagesFile: untranslatedMessagesFilePath, inputsAndOutputsListPath: syntheticL10nPackagePath, ); final File inputsAndOutputsList = fs.file( fs.path.join(syntheticL10nPackagePath, 'gen_l10n_inputs_and_outputs.json') ); expect(inputsAndOutputsList.existsSync(), isTrue); final Map<String, dynamic> jsonResult = json.decode( inputsAndOutputsList.readAsStringSync(), ) as Map<String, dynamic>; expect(jsonResult.containsKey('outputs'), isTrue); final List<dynamic> outputList = jsonResult['outputs'] as List<dynamic>; expect(outputList, contains(contains('unimplemented_message_translations.json'))); }); testWithoutContext( 'uses inputPathString as outputPathString when the outputPathString is ' 'null while not using the synthetic package option', () { _standardFlutterDirectoryL10nSetup(fs); LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, // outputPathString is intentionally not defined templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, useSyntheticPackage: false, logger: logger, ) ..loadResources() ..writeOutputFiles(); final Directory outputDirectory = fs.directory('lib').childDirectory('l10n'); expect(outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_en.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_es.dart').existsSync(), isTrue); }, ); testWithoutContext( 'correctly generates output files in non-default output directory if it ' 'already exists while not using the synthetic package option', () { final Directory l10nDirectory = fs.currentDirectory .childDirectory('lib') .childDirectory('l10n') ..createSync(recursive: true); // Create the directory 'lib/l10n/output'. l10nDirectory.childDirectory('output'); l10nDirectory .childFile(defaultTemplateArbFileName) .writeAsStringSync(singleMessageArbFileString); l10nDirectory .childFile(esArbFileName) .writeAsStringSync(singleEsMessageArbFileString); LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: fs.path.join('lib', 'l10n', 'output'), templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, useSyntheticPackage: false, logger: logger, ) ..loadResources() ..writeOutputFiles(); final Directory outputDirectory = fs.directory('lib').childDirectory('l10n').childDirectory('output'); expect(outputDirectory.existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_en.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_es.dart').existsSync(), isTrue); }, ); testWithoutContext( 'correctly creates output directory if it does not exist and writes files ' 'in it while not using the synthetic package option', () { _standardFlutterDirectoryL10nSetup(fs); LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: fs.path.join('lib', 'l10n', 'output'), templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, useSyntheticPackage: false, logger: logger, ) ..loadResources() ..writeOutputFiles(); final Directory outputDirectory = fs.directory('lib').childDirectory('l10n').childDirectory('output'); expect(outputDirectory.existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_en.dart').existsSync(), isTrue); expect(outputDirectory.childFile('output-localization-file_es.dart').existsSync(), isTrue); }, ); testWithoutContext( 'generates nullable localizations class getter via static `of` method ' 'by default', () { final LocalizationsGenerator generator = setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); expect(generator.outputDirectory.existsSync(), isTrue); expect(generator.outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect( generator.outputDirectory.childFile('output-localization-file.dart').readAsStringSync(), contains('static AppLocalizations? of(BuildContext context)'), ); expect( generator.outputDirectory.childFile('output-localization-file.dart').readAsStringSync(), contains('return Localizations.of<AppLocalizations>(context, AppLocalizations);'), ); }, ); testWithoutContext( 'can generate non-nullable localizations class getter via static `of` method ', () { final LocalizationsGenerator generator = setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, usesNullableGetter: false); expect(generator.outputDirectory.existsSync(), isTrue); expect(generator.outputDirectory.childFile('output-localization-file.dart').existsSync(), isTrue); expect( generator.outputDirectory.childFile('output-localization-file.dart').readAsStringSync(), contains('static AppLocalizations of(BuildContext context)'), ); expect( generator.outputDirectory.childFile('output-localization-file.dart').readAsStringSync(), contains('return Localizations.of<AppLocalizations>(context, AppLocalizations)!;'), ); }, ); testWithoutContext('creates list of inputs and outputs when file path is specified', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, inputsAndOutputsListPath: syntheticL10nPackagePath); final File inputsAndOutputsList = fs.file( fs.path.join(syntheticL10nPackagePath, 'gen_l10n_inputs_and_outputs.json'), ); expect(inputsAndOutputsList.existsSync(), isTrue); final Map<String, dynamic> jsonResult = json.decode(inputsAndOutputsList.readAsStringSync()) as Map<String, dynamic>; expect(jsonResult.containsKey('inputs'), isTrue); final List<dynamic> inputList = jsonResult['inputs'] as List<dynamic>; expect(inputList, contains(fs.path.absolute('lib', 'l10n', 'app_en.arb'))); expect(inputList, contains(fs.path.absolute('lib', 'l10n', 'app_es.arb'))); expect(jsonResult.containsKey('outputs'), isTrue); final List<dynamic> outputList = jsonResult['outputs'] as List<dynamic>; expect(outputList, contains(fs.path.absolute(syntheticL10nPackagePath, 'output-localization-file.dart'))); expect(outputList, contains(fs.path.absolute(syntheticL10nPackagePath, 'output-localization-file_en.dart'))); expect(outputList, contains(fs.path.absolute(syntheticL10nPackagePath, 'output-localization-file_es.dart'))); }); testWithoutContext('setting both a headerString and a headerFile should fail', () { expect( () { setupLocalizations( <String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, headerString: '/// Sample header in a text file', headerFile: 'header.txt', setup: (Directory l10nDirectory) { l10nDirectory.childFile('header.txt').writeAsStringSync('/// Sample header in a text file'); }, ); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Cannot accept both header and header file arguments'), )), ); }); testWithoutContext('setting a headerFile that does not exist should fail', () { expect( () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, headerFile: 'header.txt'); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Failed to read header file'), )), ); }); group('generateLocalizations', () { testWithoutContext('works even if CWD does not have a pubspec.yaml', () async { final Directory projectDir = fs.currentDirectory.childDirectory('project')..createSync(recursive: true); final Directory l10nDirectory = projectDir.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile(defaultTemplateArbFileName) .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile(esArbFileName) .writeAsStringSync(singleEsMessageArbFileString); projectDir.childFile('pubspec.yaml') ..createSync(recursive: true) ..writeAsStringSync(''' flutter: generate: true '''); final Logger logger = BufferLogger.test(); logger.printError('An error output from a different tool in flutter_tools'); // Should run without error. await generateLocalizations( fileSystem: fs, options: LocalizationOptions( arbDir: Uri.directory(defaultL10nPathString).path, outputDir: Uri.directory(defaultL10nPathString, windows: false).path, templateArbFile: Uri.file(defaultTemplateArbFileName, windows: false).path, syntheticPackage: false, ), logger: logger, projectDir: projectDir, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); }); testWithoutContext('other logs from flutter_tools does not affect gen-l10n', () async { _standardFlutterDirectoryL10nSetup(fs); final Logger logger = BufferLogger.test(); logger.printError('An error output from a different tool in flutter_tools'); // Should run without error. await generateLocalizations( fileSystem: fs, options: LocalizationOptions( arbDir: Uri.directory(defaultL10nPathString).path, outputDir: Uri.directory(defaultL10nPathString, windows: false).path, templateArbFile: Uri.file(defaultTemplateArbFileName, windows: false).path, syntheticPackage: false, ), logger: logger, projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); }); testWithoutContext('forwards arguments correctly', () async { _standardFlutterDirectoryL10nSetup(fs); final LocalizationOptions options = LocalizationOptions( header: 'HEADER', arbDir: Uri.directory(defaultL10nPathString).path, useDeferredLoading: true, outputClass: 'Foo', outputLocalizationFile: Uri.file('bar.dart', windows: false).path, outputDir: Uri.directory(defaultL10nPathString, windows: false).path, preferredSupportedLocales: <String>['es'], templateArbFile: Uri.file(defaultTemplateArbFileName, windows: false).path, untranslatedMessagesFile: Uri.file('untranslated', windows: false).path, syntheticPackage: false, requiredResourceAttributes: true, nullableGetter: false, ); // Verify that values are correctly passed through the localizations target. final LocalizationsGenerator generator = await generateLocalizations( fileSystem: fs, options: options, logger: logger, projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); expect(generator.inputDirectory.path, '/lib/l10n/'); expect(generator.outputDirectory.path, '/lib/l10n/'); expect(generator.templateArbFile.path, '/lib/l10n/app_en.arb'); expect(generator.baseOutputFile.path, '/lib/l10n/bar.dart'); expect(generator.className, 'Foo'); expect(generator.preferredSupportedLocales.single, LocaleInfo.fromString('es')); expect(generator.header, 'HEADER'); expect(generator.useDeferredLoading, isTrue); expect(generator.inputsAndOutputsListFile?.path, '/gen_l10n_inputs_and_outputs.json'); expect(generator.useSyntheticPackage, isFalse); expect(generator.projectDirectory?.path, '/'); expect(generator.areResourceAttributesRequired, isTrue); expect(generator.untranslatedMessagesFile?.path, 'untranslated'); expect(generator.usesNullableGetter, isFalse); // Just validate one file. expect(fs.file('/lib/l10n/bar_en.dart').readAsStringSync(), ''' HEADER import 'bar.dart'; /// The translations for English (`en`). class FooEn extends Foo { FooEn([String locale = 'en']) : super(locale); @override String get title => 'Title'; } '''); }); testWithoutContext('throws exception on missing flutter: generate: true flag', () async { _standardFlutterDirectoryL10nSetup(fs); // Missing flutter: generate: true should throw exception. fs.file('pubspec.yaml') ..createSync(recursive: true) ..writeAsStringSync(''' flutter: uses-material-design: true '''); final LocalizationOptions options = LocalizationOptions( header: 'HEADER', headerFile: Uri.file('header', windows: false).path, arbDir: Uri.file('arb', windows: false).path, useDeferredLoading: true, outputClass: 'Foo', outputLocalizationFile: Uri.file('bar', windows: false).path, preferredSupportedLocales: <String>['en_US'], templateArbFile: Uri.file('example.arb', windows: false).path, untranslatedMessagesFile: Uri.file('untranslated', windows: false).path, ); expect( () => generateLocalizations( fileSystem: fs, options: options, logger: BufferLogger.test(), projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ), throwsToolExit( message: 'Attempted to generate localizations code without having the ' 'flutter: generate flag turned on.', ), ); }); testWithoutContext('uses the same line terminator as pubspec.yaml', () async { _standardFlutterDirectoryL10nSetup(fs); fs.file('pubspec.yaml') ..createSync(recursive: true) ..writeAsStringSync(''' flutter:\r generate: true\r '''); final LocalizationOptions options = LocalizationOptions( arbDir: fs.path.join('lib', 'l10n'), outputClass: defaultClassNameString, outputLocalizationFile: defaultOutputFileString, ); await generateLocalizations( fileSystem: fs, options: options, logger: BufferLogger.test(), projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains('\r\n')); }); testWithoutContext('blank lines generated nicely', () async { _standardFlutterDirectoryL10nSetup(fs); // Test without headers. await generateLocalizations( fileSystem: fs, options: LocalizationOptions( arbDir: Uri.directory(defaultL10nPathString).path, outputDir: Uri.directory(defaultL10nPathString, windows: false).path, templateArbFile: Uri.file(defaultTemplateArbFileName, windows: false).path, syntheticPackage: false, ), logger: BufferLogger.test(), projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); expect(fs.file('/lib/l10n/app_localizations_en.dart').readAsStringSync(), ''' import 'app_localizations.dart'; /// The translations for English (`en`). class AppLocalizationsEn extends AppLocalizations { AppLocalizationsEn([String locale = 'en']) : super(locale); @override String get title => 'Title'; } '''); // Test with headers. await generateLocalizations( fileSystem: fs, options: LocalizationOptions( header: 'HEADER', arbDir: Uri.directory(defaultL10nPathString).path, outputDir: Uri.directory(defaultL10nPathString, windows: false).path, templateArbFile: Uri.file(defaultTemplateArbFileName, windows: false).path, syntheticPackage: false, ), logger: logger, projectDir: fs.currentDirectory, dependenciesDir: fs.currentDirectory, artifacts: artifacts, processManager: processManager, ); expect(fs.file('/lib/l10n/app_localizations_en.dart').readAsStringSync(), ''' HEADER import 'app_localizations.dart'; /// The translations for English (`en`). class AppLocalizationsEn extends AppLocalizations { AppLocalizationsEn([String locale = 'en']) : super(locale); @override String get title => 'Title'; } '''); }); }); group('loadResources', () { testWithoutContext('correctly initializes supportedLocales and supportedLanguageCodes properties', () { _standardFlutterDirectoryL10nSetup(fs); final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources(); expect(generator.supportedLocales.contains(LocaleInfo.fromString('en')), true); expect(generator.supportedLocales.contains(LocaleInfo.fromString('es')), true); }); testWithoutContext('correctly sorts supportedLocales and supportedLanguageCodes alphabetically', () { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); // Write files in non-alphabetical order so that read performs in that order l10nDirectory.childFile('app_zh.arb') .writeAsStringSync(singleZhMessageArbFileString); l10nDirectory.childFile('app_es.arb') .writeAsStringSync(singleEsMessageArbFileString); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(singleMessageArbFileString); final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources(); expect(generator.supportedLocales.first, LocaleInfo.fromString('en')); expect(generator.supportedLocales.elementAt(1), LocaleInfo.fromString('es')); expect(generator.supportedLocales.elementAt(2), LocaleInfo.fromString('zh')); }); testWithoutContext('adds preferred locales to the top of supportedLocales and supportedLanguageCodes', () { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile('app_es.arb') .writeAsStringSync(singleEsMessageArbFileString); l10nDirectory.childFile('app_zh.arb') .writeAsStringSync(singleZhMessageArbFileString); const List<String> preferredSupportedLocale = <String>['zh', 'es']; final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, preferredSupportedLocales: preferredSupportedLocale, logger: logger, ) ..loadResources(); expect(generator.supportedLocales.first, LocaleInfo.fromString('zh')); expect(generator.supportedLocales.elementAt(1), LocaleInfo.fromString('es')); expect(generator.supportedLocales.elementAt(2), LocaleInfo.fromString('en')); }); testWithoutContext( 'throws an error attempting to add preferred locales when there is no corresponding arb file for that locale', () { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile('app_es.arb') .writeAsStringSync(singleEsMessageArbFileString); l10nDirectory.childFile('app_zh.arb') .writeAsStringSync(singleZhMessageArbFileString); const List<String> preferredSupportedLocale = <String>['am', 'es']; expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, preferredSupportedLocales: preferredSupportedLocale, logger: logger, ).loadResources(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains("The preferred supported locale, 'am', cannot be added."), )), ); }, ); testWithoutContext('correctly sorts arbPathString alphabetically', () { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); // Write files in non-alphabetical order so that read performs in that order l10nDirectory.childFile('app_zh.arb') .writeAsStringSync(singleZhMessageArbFileString); l10nDirectory.childFile('app_es.arb') .writeAsStringSync(singleEsMessageArbFileString); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(singleMessageArbFileString); final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: defaultTemplateArbFileName, outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources(); expect(generator.arbPathStrings.first, fs.path.join('lib', 'l10n', 'app_en.arb')); expect(generator.arbPathStrings.elementAt(1), fs.path.join('lib', 'l10n', 'app_es.arb')); expect(generator.arbPathStrings.elementAt(2), fs.path.join('lib', 'l10n', 'app_zh.arb')); }); testWithoutContext('correctly parses @@locale property in arb file', () { const String arbFileWithEnLocale = ''' { "@@locale": "en", "title": "Title", "@title": { "description": "Title for the application" } }'''; const String arbFileWithZhLocale = ''' { "@@locale": "zh", "title": "ๆ ‡้ข˜", "@title": { "description": "Title for the application" } }'''; final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('first_file.arb') .writeAsStringSync(arbFileWithEnLocale); l10nDirectory.childFile('second_file.arb') .writeAsStringSync(arbFileWithZhLocale); final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'first_file.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources(); expect(generator.supportedLocales.contains(LocaleInfo.fromString('en')), true); expect(generator.supportedLocales.contains(LocaleInfo.fromString('zh')), true); }); testWithoutContext('correctly requires @@locale property in arb file to match the filename locale suffix', () { const String arbFileWithEnLocale = ''' { "@@locale": "en", "title": "Stocks", "@title": { "description": "Title for the Stocks application" } }'''; const String arbFileWithZhLocale = ''' { "@@locale": "zh", "title": "ๆ ‡้ข˜", "@title": { "description": "Title for the Stocks application" } }'''; final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_es.arb') .writeAsStringSync(arbFileWithEnLocale); l10nDirectory.childFile('app_am.arb') .writeAsStringSync(arbFileWithZhLocale); expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app_es.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ).loadResources(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('The locale specified in @@locale and the arb filename do not match.'), )), ); }); testWithoutContext("throws when arb file's locale could not be determined", () { fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true) ..childFile('app.arb') .writeAsStringSync(singleMessageArbFileString); expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ).loadResources(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('locale could not be determined'), )), ); }); testWithoutContext('throws when an empty string is used as a key', () { const String arbFileStringWithEmptyResourceId = ''' { "market": "MARKET", "": { "description": "This key is invalid" } }'''; final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(arbFileStringWithEmptyResourceId); expect( () => LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app_en.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ).loadResources(), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Invalid ARB resource name ""'), )), ); }); testWithoutContext('throws when the same locale is detected more than once', () { const String secondMessageArbFileString = ''' { "market": "MARKET", "@market": { "description": "Label for the Market tab" } }'''; final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_en.arb') .writeAsStringSync(singleMessageArbFileString); l10nDirectory.childFile('app2_en.arb') .writeAsStringSync(secondMessageArbFileString); expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app_en.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ).loadResources(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains("Multiple arb files with the same 'en' locale detected"), )), ); }); testWithoutContext('throws when the base locale does not exist', () { final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_en_US.arb') .writeAsStringSync(singleMessageArbFileString); expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app_en_US.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ).loadResources(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Arb file for a fallback, en, does not exist'), )), ); }); testWithoutContext('AppResourceBundle throws if file contains non-string value', () { const String inputPathString = 'lib/l10n'; const String templateArbFileName = 'app_en.arb'; const String outputFileString = 'app_localizations.dart'; const String classNameString = 'AppLocalizations'; fs.file(fs.path.join(inputPathString, templateArbFileName)) ..createSync(recursive: true) ..writeAsStringSync('{ "helloWorld": "Hello World!" }'); fs.file(fs.path.join(inputPathString, 'app_es.arb')) ..createSync(recursive: true) ..writeAsStringSync('{ "helloWorld": {} }'); final LocalizationsGenerator generator = LocalizationsGenerator( fileSystem: fs, inputPathString: inputPathString, templateArbFileName: templateArbFileName, outputFileString: outputFileString, classNameString: classNameString, logger: logger, ); expect( () => generator.loadResources(), throwsToolExit(message: 'Localized message for key "helloWorld" in ' '"lib/l10n/app_es.arb" is not a string.'), ); }); }); group('writeOutputFiles', () { testWithoutContext('multiple messages with syntax error all log their errors', () { try { setupLocalizations(<String, String>{ 'en': r''' { "msg1": "{", "msg2": "{ {" }'''}); } on L10nException catch (error) { expect(error.message, equals('Found syntax errors.')); expect(logger.errorText, contains(''' [app_en.arb:msg1] ICU Syntax Error: Expected "identifier" but found no tokens. { ^ [app_en.arb:msg2] ICU Syntax Error: Expected "identifier" but found "{". { { ^''')); } }); testWithoutContext('no description generates generic comment', () { setupLocalizations(<String, String>{ 'en': r''' { "helloWorld": "Hello world!" }''' }); expect(getGeneratedFileContent(), contains('/// No description provided for @helloWorld.')); }); testWithoutContext('multiline descriptions are correctly formatted as comments', () { setupLocalizations(<String, String>{ 'en': r''' { "helloWorld": "Hello world!", "@helloWorld": { "description": "The generic example string in every language.\nUse this for tests!" } }'''}); expect(getGeneratedFileContent(), contains(''' /// The generic example string in every language. /// Use this for tests!''')); }); testWithoutContext('message without placeholders - should generate code comment with description and template message translation', () { setupLocalizations(<String, String> { 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); final String content = getGeneratedFileContent(); expect(content, contains('/// Title for the application.')); expect(content, contains(''' /// In en, this message translates to: /// **'Title'**''')); }); testWithoutContext('template message translation handles newline characters', () { setupLocalizations(<String, String>{ 'en': r''' { "title": "Title \n of the application", "@title": { "description": "Title for the application." } }''', 'es': singleEsMessageArbFileString }); final String content = getGeneratedFileContent(); expect(content, contains('/// Title for the application.')); expect(content, contains(r''' /// In en, this message translates to: /// **'Title \n of the application'**''')); }); testWithoutContext('message with placeholders - should generate code comment with description and template message translation', () { setupLocalizations(<String, String>{ 'en': r''' { "price": "The price of this item is: ${price}", "@price": { "description": "The price of an online shopping cart item.", "placeholders": { "price": { "type": "double", "format": "decimalPattern" } } } }''', 'es': r''' { "price": "El precio de este artรญculo es: ${price}" }''' }); final String content = getGeneratedFileContent(); expect(content, contains('/// The price of an online shopping cart item.')); expect(content, contains(r''' /// In en, this message translates to: /// **'The price of this item is: \${price}'**''')); }); testWithoutContext('should generate a file per language', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'en_CA': ''' { "title": "Canadian Title" }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('class AppLocalizationsEn extends AppLocalizations')); expect(getGeneratedFileContent(locale: 'en'), contains('class AppLocalizationsEnCa extends AppLocalizationsEn')); expect(() => getGeneratedFileContent(locale: 'en_US'), throwsException); }); testWithoutContext('language imports are sorted when preferredSupportedLocaleString is given', () { const List<String> preferredSupportedLocales = <String>['zh']; setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'zh': singleZhMessageArbFileString, 'es': singleEsMessageArbFileString, }, preferredSupportedLocales: preferredSupportedLocales); final String content = getGeneratedFileContent(); expect(content, contains( ''' import 'output-localization-file_en.dart'; import 'output-localization-file_es.dart'; import 'output-localization-file_zh.dart'; ''')); }); // Regression test for https://github.com/flutter/flutter/issues/88356 testWithoutContext('full output file suffix is retained', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }, outputFileString: 'output-localization-file.g.dart'); final String baseLocalizationsFile = fs.file( fs.path.join(syntheticL10nPackagePath, 'output-localization-file.g.dart'), ).readAsStringSync(); expect(baseLocalizationsFile, contains( ''' import 'output-localization-file_en.g.dart'; ''')); final String englishLocalizationsFile = fs.file( fs.path.join(syntheticL10nPackagePath, 'output-localization-file_en.g.dart'), ).readAsStringSync(); expect(englishLocalizationsFile, contains( ''' import 'output-localization-file.g.dart'; ''')); }); testWithoutContext('throws an exception when invalid output file name is passed in', () { expect( () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }, outputFileString: 'asdf'); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('output-localization-file'), contains('asdf'), contains('is invalid'), contains('The file name must have a .dart extension.'), ), )), ); expect( () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }, outputFileString: '.g.dart'); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('output-localization-file'), contains('.g.dart'), contains('is invalid'), contains('The base name cannot be empty.'), ), )), ); }); testWithoutContext('imports are deferred and loaded when useDeferredImports are set', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }, useDeferredLoading: true); final String content = getGeneratedFileContent(); expect(content, contains( ''' import 'output-localization-file_en.dart' deferred as output-localization-file_en; ''')); expect(content, contains('output-localization-file_en.loadLibrary()')); }); group('placeholder tests', () { testWithoutContext('should automatically infer placeholders that are not explicitly defined', () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorld": "Hello {name}" }''' }); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains('String helloWorld(Object name) {')); }); testWithoutContext('placeholder parameter list should be consistent between languages', () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorld": "Hello {name}", "@helloWorld": { "placeholders": { "name": {} } } }''', 'es': ''' { "helloWorld": "Hola" } ''', }); expect(getGeneratedFileContent(locale: 'en'), contains('String helloWorld(Object name) {')); expect(getGeneratedFileContent(locale: 'es'), contains('String helloWorld(Object name) {')); }); testWithoutContext('braces are ignored as special characters if placeholder does not exist', () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorld": "Hello {name}", "@@helloWorld": { "placeholders": { "names": {} } } }''' }, relaxSyntax: true); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains("String get helloWorld => 'Hello {name}'")); }); }); group('DateTime tests', () { testWithoutContext('imports package:intl', () { setupLocalizations(<String, String>{ 'en': ''' { "@@locale": "en", "springBegins": "Spring begins on {springStartDate}", "@springBegins": { "description": "The first day of spring", "placeholders": { "springStartDate": { "type": "DateTime", "format": "yMd" } } } }''' }); expect(getGeneratedFileContent(locale: 'en'), contains(intlImportDartCode)); }); testWithoutContext('throws an exception when improperly formatted date is passed in', () { expect( () { setupLocalizations(<String, String>{ 'en': ''' { "springBegins": "Spring begins on {springStartDate}", "@springBegins": { "placeholders": { "springStartDate": { "type": "DateTime", "format": "asdf" } } } }''' }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('asdf'), contains('springStartDate'), contains('does not have a corresponding DateFormat'), ), )), ); }); testWithoutContext('use standard date format whenever possible', () { setupLocalizations(<String, String>{ 'en': ''' { "springBegins": "Spring begins on {springStartDate}", "@springBegins": { "placeholders": { "springStartDate": { "type": "DateTime", "format": "yMd", "isCustomDateFormat": "true" } } } }''' }); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains('DateFormat.yMd(localeName)')); }); testWithoutContext('handle arbitrary formatted date', () { setupLocalizations(<String, String>{ 'en': ''' { "@@locale": "en", "springBegins": "Spring begins on {springStartDate}", "@springBegins": { "description": "The first day of spring", "placeholders": { "springStartDate": { "type": "DateTime", "format": "asdf o'clock", "isCustomDateFormat": "true" } } } }''' }); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains(r"DateFormat('asdf o\'clock', localeName)")); }); testWithoutContext('throws an exception when no format attribute is passed in', () { expect( () { setupLocalizations(<String, String>{ 'en': ''' { "springBegins": "Spring begins on {springStartDate}", "@springBegins": { "description": "The first day of spring", "placeholders": { "springStartDate": { "type": "DateTime" } } } }''' }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('the "format" attribute needs to be set'), )), ); }); }); group('NumberFormat tests', () { testWithoutContext('imports package:intl', () { setupLocalizations(<String, String>{ 'en': ''' { "courseCompletion": "You have completed {progress} of the course.", "@courseCompletion": { "description": "The amount of progress the student has made in their class.", "placeholders": { "progress": { "type": "double", "format": "percentPattern" } } } }''' }); final String content = getGeneratedFileContent(locale: 'en'); expect(content, contains(intlImportDartCode)); }); testWithoutContext('throws an exception when improperly formatted number is passed in', () { expect( () { setupLocalizations(<String, String>{ 'en': ''' { "courseCompletion": "You have completed {progress} of the course.", "@courseCompletion": { "description": "The amount of progress the student has made in their class.", "placeholders": { "progress": { "type": "double", "format": "asdf" } } } }''' }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('asdf'), contains('progress'), contains('does not have a corresponding NumberFormat'), ), )), ); }); }); group('plural messages', () { testWithoutContext('intl package import should be omitted in subclass files when no plurals are included', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); expect(getGeneratedFileContent(locale: 'es'), isNot(contains(intlImportDartCode))); }); testWithoutContext('warnings are generated when plural parts are repeated', () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorlds": "{count,plural, =0{Hello}zero{hello} other{hi}}", "@helloWorlds": { "description": "Properly formatted but has redundant zero cases." } }''' }); expect(logger.hadWarningOutput, isTrue); expect(logger.warningText, contains(''' [app_en.arb:helloWorlds] ICU Syntax Warning: The plural part specified below is overridden by a later plural part. {count,plural, =0{Hello}zero{hello} other{hi}} ^''')); }); testWithoutContext('undefined plural cases throws syntax error', () { try { setupLocalizations(<String, String>{ 'en': ''' { "count": "{count,plural, =0{None} =1{One} =2{Two} =3{Undefined Behavior!} other{Hmm...}}" }''' }); } on L10nException catch (error) { expect(error.message, contains('Found syntax errors.')); expect(logger.hadErrorOutput, isTrue); expect(logger.errorText, contains(''' [app_en.arb:count] The plural cases must be one of "=0", "=1", "=2", "zero", "one", "two", "few", "many", or "other. 3 is not a valid plural case. {count,plural, =0{None} =1{One} =2{Two} =3{Undefined Behavior!} other{Hmm...}} ^''')); } }); testWithoutContext('should automatically infer plural placeholders that are not explicitly defined', () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}", "@helloWorlds": { "description": "Improperly formatted since it has no placeholder attribute." } }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('String helloWorlds(num count) {')); }); testWithoutContext('should throw attempting to generate a plural message with incorrect format for placeholders', () { expect( () { setupLocalizations(<String, String>{ 'en': ''' { "helloWorlds": "{count,plural, =0{Hello}=1{Hello World}=2{Hello two worlds}few{Hello {count} worlds}many{Hello all {count} worlds}other{Hello other {count} worlds}}", "@helloWorlds": { "placeholders": "Incorrectly a string, should be a map." } }''' }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('is not properly formatted'), contains('Ensure that it is a map with string valued keys'), ), )), ); }); }); group('select messages', () { testWithoutContext('should automatically infer select placeholders that are not explicitly defined', () { setupLocalizations(<String, String>{ 'en': ''' { "genderSelect": "{gender, select, female {She} male {He} other {they} }", "@genderSelect": { "description": "Improperly formatted since it has no placeholder attribute." } }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('String genderSelect(String gender) {')); }); testWithoutContext('should throw attempting to generate a select message with incorrect format for placeholders', () { expect( () { setupLocalizations(<String, String>{ 'en': ''' { "genderSelect": "{gender, select, female {She} male {He} other {they} }", "@genderSelect": { "placeholders": "Incorrectly a string, should be a map." } }''' }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('is not properly formatted'), contains('Ensure that it is a map with string valued keys'), ), )), ); }); testWithoutContext('should throw attempting to generate a select message with an incorrect message', () { try { setupLocalizations(<String, String>{ 'en': ''' { "genderSelect": "{gender, select,}", "@genderSelect": { "placeholders": { "gender": {} } } }''' }); } on L10nException { expect(logger.errorText, contains(''' [app_en.arb:genderSelect] ICU Syntax Error: Select expressions must have an "other" case. {gender, select,} ^''') ); } }); }); group('argument messages', () { testWithoutContext('should generate proper calls to intl.DateFormat', () { setupLocalizations(<String, String>{ 'en': ''' { "datetime": "{today, date, ::yMd}" }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('intl.DateFormat.yMd(localeName).format(today)')); }); testWithoutContext('should generate proper calls to intl.DateFormat when using time', () { setupLocalizations(<String, String>{ 'en': ''' { "datetime": "{current, time, ::jms}" }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('intl.DateFormat.jms(localeName).format(current)')); }); testWithoutContext('should not complain when placeholders are explicitly typed to DateTime', () { setupLocalizations(<String, String>{ 'en': ''' { "datetime": "{today, date, ::yMd}", "@datetime": { "placeholders": { "today": { "type": "DateTime" } } } }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('String datetime(DateTime today) {')); }); testWithoutContext('should automatically infer date time placeholders that are not explicitly defined', () { setupLocalizations(<String, String>{ 'en': ''' { "datetime": "{today, date, ::yMd}" }''' }); expect(getGeneratedFileContent(locale: 'en'), contains('String datetime(DateTime today) {')); }); testWithoutContext('should throw on invalid DateFormat', () { try { setupLocalizations(<String, String>{ 'en': ''' { "datetime": "{today, date, ::yMMMMMd}" }''' }); assert(false); } on L10nException { expect(logger.errorText, contains('Date format "yMMMMMd" for placeholder today does not have a corresponding DateFormat constructor')); } }); }); // All error handling for messages should collect errors on a per-error // basis and log them out individually. Then, it will throw an L10nException. group('error handling tests', () { testWithoutContext('syntax/code-gen errors properly logs errors per message', () { // TODO(thkim1011): Fix error handling so that long indents don't get truncated. // See https://github.com/flutter/flutter/issues/120490. try { setupLocalizations(<String, String>{ 'en': ''' { "hello": "Hello { name", "plural": "This is an incorrectly formatted plural: { count, plural, zero{No frog} one{One frog} other{{count} frogs}", "explanationWithLexingError": "The 'string above is incorrect as it forgets to close the brace", "pluralWithInvalidCase": "{ count, plural, woohoo{huh?} other{lol} }" }''' }, useEscaping: true); } on L10nException { expect(logger.errorText, contains(''' [app_en.arb:hello] ICU Syntax Error: Expected "}" but found no tokens. Hello { name ^ [app_en.arb:plural] ICU Syntax Error: Expected "}" but found no tokens. This is an incorrectly formatted plural: { count, plural, zero{No frog} one{One frog} other{{count} frogs} ^ [app_en.arb:explanationWithLexingError] ICU Lexing Error: Unmatched single quotes. The 'string above is incorrect as it forgets to close the brace ^ [app_en.arb:pluralWithInvalidCase] ICU Syntax Error: Plural expressions case must be one of "zero", "one", "two", "few", "many", or "other". { count, plural, woohoo{huh?} other{lol} } ^''')); } }); testWithoutContext('errors thrown in multiple languages are all shown', () { try { setupLocalizations(<String, String>{ 'en': '{ "hello": "Hello { name" }', 'es': '{ "hello": "Hola { name" }', }); } on L10nException { expect(logger.errorText, contains(''' [app_en.arb:hello] ICU Syntax Error: Expected "}" but found no tokens. Hello { name ^ [app_es.arb:hello] ICU Syntax Error: Expected "}" but found no tokens. Hola { name ^''')); } }); }); testWithoutContext('intl package import should be kept in subclass files when plurals are included', () { const String pluralMessageArb = ''' { "helloWorlds": "{count,plural, =0{Hello} =1{Hello World} =2{Hello two worlds} few{Hello {count} worlds} many{Hello all {count} worlds} other{Hello other {count} worlds}}", "@helloWorlds": { "description": "A plural message", "placeholders": { "count": {} } } } '''; const String pluralMessageEsArb = ''' { "helloWorlds": "{count,plural, =0{ES - Hello} =1{ES - Hello World} =2{ES - Hello two worlds} few{ES - Hello {count} worlds} many{ES - Hello all {count} worlds} other{ES - Hello other {count} worlds}}" } '''; setupLocalizations(<String, String>{ 'en': pluralMessageArb, 'es': pluralMessageEsArb, }); expect(getGeneratedFileContent(locale: 'en'), contains(intlImportDartCode)); expect(getGeneratedFileContent(locale: 'es'), contains(intlImportDartCode)); }); testWithoutContext('intl package import should be kept in subclass files when select is included', () { const String selectMessageArb = ''' { "genderSelect": "{gender, select, female {She} male {He} other {they} }", "@genderSelect": { "description": "A select message", "placeholders": { "gender": {} } } } '''; const String selectMessageEsArb = ''' { "genderSelect": "{gender, select, female {ES - She} male {ES - He} other {ES - they} }" } '''; setupLocalizations(<String, String>{ 'en': selectMessageArb, 'es': selectMessageEsArb, }); expect(getGeneratedFileContent(locale: 'en'), contains(intlImportDartCode)); expect(getGeneratedFileContent(locale: 'es'), contains(intlImportDartCode)); }); testWithoutContext('check indentation on generated files', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); // Tests a few of the lines in the generated code. // Localizations lookup code final String localizationsFile = getGeneratedFileContent(); expect(localizationsFile.contains(' switch (locale.languageCode) {'), true); expect(localizationsFile.contains(" case 'en': return AppLocalizationsEn();"), true); expect(localizationsFile.contains(" case 'es': return AppLocalizationsEs();"), true); expect(localizationsFile.contains(' }'), true); // Supported locales list expect(localizationsFile.contains(' static const List<Locale> supportedLocales = <Locale>['), true); expect(localizationsFile.contains(" Locale('en'),"), true); expect(localizationsFile.contains(" Locale('es')"), true); expect(localizationsFile.contains(' ];'), true); }); testWithoutContext('foundation package import should be omitted from file template when deferred loading = true', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }, useDeferredLoading: true); expect(getGeneratedFileContent(), isNot(contains(foundationImportDartCode))); }); testWithoutContext('foundation package import should be kept in file template when deferred loading = false', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, 'es': singleEsMessageArbFileString, }); expect(getGeneratedFileContent(), contains(foundationImportDartCode)); }); testWithoutContext('check for string interpolation rules', () { const String enArbCheckList = ''' { "one": "The number of {one} elapsed is: 44", "@one": { "description": "test one", "placeholders": { "one": { "type": "String" } } }, "two": "ๅ“ˆ{two}ๅ“ˆ", "@two": { "description": "test two", "placeholders": { "two": { "type": "String" } } }, "three": "m{three}m", "@three": { "description": "test three", "placeholders": { "three": { "type": "String" } } }, "four": "I have to work _{four}_ sometimes.", "@four": { "description": "test four", "placeholders": { "four": { "type": "String" } } }, "five": "{five} elapsed.", "@five": { "description": "test five", "placeholders": { "five": { "type": "String" } } }, "six": "{six}m", "@six": { "description": "test six", "placeholders": { "six": { "type": "String" } } }, "seven": "hours elapsed: {seven}", "@seven": { "description": "test seven", "placeholders": { "seven": { "type": "String" } } }, "eight": " {eight}", "@eight": { "description": "test eight", "placeholders": { "eight": { "type": "String" } } }, "nine": "m{nine}", "@nine": { "description": "test nine", "placeholders": { "nine": { "type": "String" } } } } '''; // It's fine that the arb is identical -- Just checking // generated code for use of '${variable}' vs '$variable' const String esArbCheckList = ''' { "one": "The number of {one} elapsed is: 44", "two": "ๅ“ˆ{two}ๅ“ˆ", "three": "m{three}m", "four": "I have to work _{four}_ sometimes.", "five": "{five} elapsed.", "six": "{six}m", "seven": "hours elapsed: {seven}", "eight": " {eight}", "nine": "m{nine}" } '''; setupLocalizations(<String, String>{ 'en': enArbCheckList, 'es': esArbCheckList, }); final String localizationsFile = getGeneratedFileContent(locale: 'es'); expect(localizationsFile, contains(r'$one')); expect(localizationsFile, contains(r'$two')); expect(localizationsFile, contains(r'${three}')); expect(localizationsFile, contains(r'${four}')); expect(localizationsFile, contains(r'$five')); expect(localizationsFile, contains(r'${six}m')); expect(localizationsFile, contains(r'$seven')); expect(localizationsFile, contains(r'$eight')); expect(localizationsFile, contains(r'$nine')); }); testWithoutContext('check for string interpolation rules - plurals', () { const String enArbCheckList = ''' { "first": "{count,plural, =0{test {count} test} =1{ๅ“ˆ{count}ๅ“ˆ} =2{m{count}m} few{_{count}_} many{{count} test} other{{count}m}}", "@first": { "description": "First set of plural messages to test.", "placeholders": { "count": {} } }, "second": "{count,plural, =0{test {count}} other{ {count}}}", "@second": { "description": "Second set of plural messages to test.", "placeholders": { "count": {} } }, "third": "{total,plural, =0{test {total}} other{ {total}}}", "@third": { "description": "Third set of plural messages to test, for number.", "placeholders": { "total": { "type": "int", "format": "compactLong" } } } } '''; // It's fine that the arb is identical -- Just checking // generated code for use of '${variable}' vs '$variable' const String esArbCheckList = ''' { "first": "{count,plural, =0{test {count} test} =1{ๅ“ˆ{count}ๅ“ˆ} =2{m{count}m} few{_{count}_} many{{count} test} other{{count}m}}", "second": "{count,plural, =0{test {count}} other{ {count}}}" } '''; setupLocalizations(<String, String>{ 'en': enArbCheckList, 'es': esArbCheckList, }); final String localizationsFile = getGeneratedFileContent(locale: 'es'); expect(localizationsFile, contains(r'test $count test')); expect(localizationsFile, contains(r'ๅ“ˆ$countๅ“ˆ')); expect(localizationsFile, contains(r'm${count}m')); expect(localizationsFile, contains(r'_${count}_')); expect(localizationsFile, contains(r'$count test')); expect(localizationsFile, contains(r'${count}m')); expect(localizationsFile, contains(r'test $count')); expect(localizationsFile, contains(r' $count')); expect(localizationsFile, contains(r'String totalString = totalNumberFormat')); expect(localizationsFile, contains(r'totalString')); expect(localizationsFile, contains(r'totalString')); }); testWithoutContext( 'should throw with descriptive error message when failing to parse the ' 'arb file', () { const String arbFileWithTrailingComma = ''' { "title": "Stocks", "@title": { "description": "Title for the Stocks application" }, }'''; expect( () { setupLocalizations(<String, String>{ 'en': arbFileWithTrailingComma }); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', allOf( contains('app_en.arb'), contains('FormatException'), contains('Unexpected character'), ), )), ); }, ); testWithoutContext('should throw when resource is missing resource attribute (isResourceAttributeRequired = true)', () { const String arbFileWithMissingResourceAttribute = ''' { "title": "Stocks" }'''; expect( () { setupLocalizations( <String, String>{ 'en': arbFileWithMissingResourceAttribute }, areResourceAttributeRequired: true, ); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Resource attribute "@title" was not found'), )), ); }); group('checks for method/getter formatting', () { testWithoutContext('cannot contain non-alphanumeric symbols', () { const String nonAlphaNumericArbFile = ''' { "title!!": "Stocks", "@title!!": { "description": "Title for the Stocks application" } }'''; expect( () => setupLocalizations(<String, String>{ 'en': nonAlphaNumericArbFile }), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Invalid ARB resource name'), )), ); }); testWithoutContext('must start with lowercase character', () { const String nonAlphaNumericArbFile = ''' { "Title": "Stocks", "@Title": { "description": "Title for the Stocks application" } }'''; expect( () => setupLocalizations(<String, String>{ 'en': nonAlphaNumericArbFile }), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Invalid ARB resource name'), )), ); }); testWithoutContext('cannot start with a number', () { const String nonAlphaNumericArbFile = ''' { "123title": "Stocks", "@123title": { "description": "Title for the Stocks application" } }'''; expect( () => setupLocalizations(<String, String>{ 'en': nonAlphaNumericArbFile }), throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('Invalid ARB resource name'), )), ); }); testWithoutContext('can start with and contain a dollar sign', () { const String dollarArbFile = r''' { "$title$": "Stocks", "@$title$": { "description": "Title for the application" } }'''; setupLocalizations(<String, String>{ 'en': dollarArbFile }); }); }); testWithoutContext('throws when the language code is not supported', () { const String arbFileWithInvalidCode = ''' { "@@locale": "invalid", "title": "invalid" }'''; final Directory l10nDirectory = fs.currentDirectory.childDirectory('lib').childDirectory('l10n') ..createSync(recursive: true); l10nDirectory.childFile('app_invalid.arb') .writeAsStringSync(arbFileWithInvalidCode); expect( () { LocalizationsGenerator( fileSystem: fs, inputPathString: defaultL10nPathString, outputPathString: defaultL10nPathString, templateArbFileName: 'app_invalid.arb', outputFileString: defaultOutputFileString, classNameString: defaultClassNameString, logger: logger, ) ..loadResources() ..writeOutputFiles(); }, throwsA(isA<L10nException>().having( (L10nException e) => e.message, 'message', contains('"invalid" is not a supported language code.'), )), ); }); }); testWithoutContext('should generate a valid pubspec.yaml file when using synthetic package if it does not already exist', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }); final Directory outputDirectory = fs.directory(syntheticPackagePath); final File pubspecFile = outputDirectory.childFile('pubspec.yaml'); expect(pubspecFile.existsSync(), isTrue); final YamlNode yamlNode = loadYamlNode(pubspecFile.readAsStringSync()); expect(yamlNode, isA<YamlMap>()); final YamlMap yamlMap = yamlNode as YamlMap; final String pubspecName = yamlMap['name'] as String; final String pubspecDescription = yamlMap['description'] as String; expect(pubspecName, 'synthetic_package'); expect(pubspecDescription, "The Flutter application's synthetic package."); }); testWithoutContext('should not overwrite existing pubspec.yaml file when using synthetic package', () { final File pubspecFile = fs.file(fs.path.join(syntheticPackagePath, 'pubspec.yaml')) ..createSync(recursive: true) ..writeAsStringSync('abcd'); setupLocalizations(<String, String>{ 'en': singleMessageArbFileString, }); // The original pubspec file should not be overwritten. expect(pubspecFile.readAsStringSync(), 'abcd'); }); testWithoutContext('can use type: int without specifying a format', () { const String arbFile = ''' { "orderNumber": "This is order #{number}.", "@orderNumber": { "description": "The title for an order with a given number.", "placeholders": { "number": { "type": "int" } } } }'''; setupLocalizations(<String, String>{ 'en': arbFile, }); expect(getGeneratedFileContent(locale: 'en'), containsIgnoringWhitespace(r''' String orderNumber(int number) { return 'This is order #$number.'; } ''')); expect(getGeneratedFileContent(locale: 'en'), isNot(contains(intlImportDartCode))); }); testWithoutContext('app localizations lookup is a public method', () { setupLocalizations(<String, String>{ 'en': singleMessageArbFileString }); expect(getGeneratedFileContent(), containsIgnoringWhitespace(r''' AppLocalizations lookupAppLocalizations(Locale locale) { ''')); }); testWithoutContext('escaping with single quotes', () { const String arbFile = ''' { "singleQuote": "Flutter''s amazing!", "@singleQuote": { "description": "A message with a single quote." } }'''; setupLocalizations(<String, String>{ 'en': arbFile }, useEscaping: true); expect(getGeneratedFileContent(locale: 'en'), contains(r"Flutter\'s amazing")); }); testWithoutContext('suppress warnings flag actually suppresses warnings', () { const String pluralMessageWithOverriddenParts = ''' { "helloWorlds": "{count,plural, =0{Hello}zero{hello} other{hi}}", "@helloWorlds": { "description": "Properly formatted but has redundant zero cases.", "placeholders": { "count": {} } } }'''; setupLocalizations( <String, String>{ 'en': pluralMessageWithOverriddenParts }, suppressWarnings: true, ); expect(logger.hadWarningOutput, isFalse); }); testWithoutContext('can use decimalPatternDigits with decimalDigits optional parameter', () { const String arbFile = ''' { "treeHeight": "Tree height is {height}m.", "@treeHeight": { "placeholders": { "height": { "type": "double", "format": "decimalPatternDigits", "optionalParameters": { "decimalDigits": 3 } } } } }'''; setupLocalizations(<String, String>{ 'en': arbFile }); final String localizationsFile = getGeneratedFileContent(locale: 'en'); expect(localizationsFile, containsIgnoringWhitespace(r''' String treeHeight(double height) { ''')); expect(localizationsFile, containsIgnoringWhitespace(r''' NumberFormat.decimalPatternDigits( locale: localeName, decimalDigits: 3 ); ''')); }); // Regression test for https://github.com/flutter/flutter/issues/125461. testWithoutContext('dollar signs are escaped properly when there is a select clause', () { const String dollarSignWithSelect = r''' { "dollarSignWithSelect": "$nice_bug\nHello Bug! Manifestation #1 {selectPlaceholder, select, case{message} other{messageOther}}" }'''; setupLocalizations(<String, String>{ 'en': dollarSignWithSelect }); expect(getGeneratedFileContent(locale: 'en'), contains(r'\$nice_bug\nHello Bug! Manifestation #1 $_temp0')); }); testWithoutContext('can generate method with named parameter', () { const String arbFile = ''' { "helloName": "Hello {name}!", "@helloName": { "description": "A more personal greeting", "placeholders": { "name": { "type": "String", "description": "The name of the person to greet" } } }, "helloNameAndAge": "Hello {name}! You are {age} years old.", "@helloNameAndAge": { "description": "A more personal greeting", "placeholders": { "name": { "type": "String", "description": "The name of the person to greet" }, "age": { "type": "int", "description": "The age of the person to greet" } } } } '''; setupLocalizations(<String, String>{ 'en': arbFile }, useNamedParameters: true); final String localizationsFile = getGeneratedFileContent(locale: 'en'); expect(localizationsFile, containsIgnoringWhitespace(r''' String helloName({required String name}) { ''')); expect(localizationsFile, containsIgnoringWhitespace(r''' String helloNameAndAge({required String name, required int age}) { ''')); }); }
flutter/packages/flutter_tools/test/general.shard/generate_localizations_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/generate_localizations_test.dart", "repo_id": "flutter", "token_count": 35237 }
967
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:convert'; import 'package:fake_async/fake_async.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/process.dart'; import 'package:flutter_tools/src/base/template.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/device.dart'; import 'package:flutter_tools/src/device_port_forwarder.dart'; import 'package:flutter_tools/src/ios/application_package.dart'; import 'package:flutter_tools/src/ios/core_devices.dart'; import 'package:flutter_tools/src/ios/devices.dart'; import 'package:flutter_tools/src/ios/ios_deploy.dart'; import 'package:flutter_tools/src/ios/iproxy.dart'; import 'package:flutter_tools/src/ios/mac.dart'; import 'package:flutter_tools/src/ios/xcode_debug.dart'; import 'package:flutter_tools/src/mdns_discovery.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/fake_devices.dart'; import '../../src/fake_process_manager.dart'; import '../../src/fakes.dart'; // The command used to actually launch the app with args in release/profile. const FakeCommand kLaunchReleaseCommand = FakeCommand( command: <String>[ 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', '--no-wifi', '--justlaunch', // These args are the default on DebuggingOptions. '--args', '--enable-dart-profiling', ], environment: <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', } ); // The command used to just launch the app with args in debug. const FakeCommand kLaunchDebugCommand = FakeCommand(command: <String>[ 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', '--no-wifi', '--justlaunch', '--args', '--enable-dart-profiling --enable-checked-mode --verify-entry-points', ], environment: <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', }); // The command used to actually launch the app and attach the debugger with args in debug. FakeCommand attachDebuggerCommand({ IOSink? stdin, String stdout = '(lldb) run\nsuccess', Completer<void>? completer, bool isWirelessDevice = false, bool uninstallFirst = false, bool skipInstall = false, }) { return FakeCommand( command: <String>[ 'script', '-t', '0', '/dev/null', 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', if (uninstallFirst) '--uninstall', if (skipInstall) '--noinstall', '--debug', if (!isWirelessDevice) '--no-wifi', '--args', if (isWirelessDevice) '--enable-dart-profiling --enable-checked-mode --verify-entry-points --vm-service-host=0.0.0.0' else '--enable-dart-profiling --enable-checked-mode --verify-entry-points', ], completer: completer, environment: const <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', }, stdout: stdout, stdin: stdin, ); } void main() { testWithoutContext('disposing device disposes the portForwarder and logReader', () async { final IOSDevice device = setUpIOSDevice(); final FakeDevicePortForwarder devicePortForwarder = FakeDevicePortForwarder(); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: MemoryFileSystem.test().directory('bundle'), applicationPackage: MemoryFileSystem.test().directory('bundle'), ); device.portForwarder = devicePortForwarder; device.setLogReader(iosApp, deviceLogReader); await device.dispose(); expect(deviceLogReader.disposed, true); expect(devicePortForwarder.disposed, true); }); testWithoutContext('IOSDevice.startApp attaches in debug mode via log reading on iOS 13+', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand(), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), false); }); testWithoutContext('IOSDevice.startApp twice in a row where ios-deploy fails the first time', () async { final BufferLogger logger = BufferLogger.test(); final FileSystem fileSystem = MemoryFileSystem.test(); final Completer<void> completer = Completer<void>(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand( stdout: 'PROCESS_EXITED', ), attachDebuggerCommand( stdout: '(lldb) run\nsuccess\nThe Dart VM service is listening on http://127.0.0.1:456', completer: completer, ), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); device.portForwarder = const NoOpDevicePortForwarder(); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, false); expect(launchResult.hasVmService, false); final LaunchResult secondLaunchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, discoveryTimeout: Duration.zero, ); completer.complete(); expect(secondLaunchResult.started, true); expect(secondLaunchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); }); testWithoutContext('IOSDevice.startApp launches in debug mode via log reading on <iOS 13', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ kLaunchDebugCommand, ]); final IOSDevice device = setUpIOSDevice( sdkVersion: '12.4.4', processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), false); }); testWithoutContext('IOSDevice.startApp prints warning message if discovery takes longer than configured timeout for wired device', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final CompleterIOSink stdin = CompleterIOSink(); final Completer<void> completer = Completer<void>(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand(stdin: stdin, completer: completer), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, discoveryTimeout: Duration.zero, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); expect(logger.errorText, contains('The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...')); expect(utf8.decoder.convert(stdin.writes.first), contains('process interrupt')); completer.complete(); expect(processManager, hasNoRemainingExpectations); }); testUsingContext('IOSDevice.startApp prints warning message if discovery takes longer than configured timeout for wireless device', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final BufferLogger logger = BufferLogger.test(); final CompleterIOSink stdin = CompleterIOSink(); final Completer<void> completer = Completer<void>(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand(stdin: stdin, completer: completer, isWirelessDevice: true), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, interfaceType: DeviceConnectionInterface.wireless, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, discoveryTimeout: Duration.zero, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); expect(logger.errorText, contains('The Dart VM Service was not discovered after 45 seconds. This is taking much longer than expected...')); expect(logger.errorText, contains('Click "Allow" to the prompt asking if you would like to find and connect devices on your local network.')); completer.complete(); expect(processManager, hasNoRemainingExpectations); }, overrides: <Type, Generator>{ MDnsVmServiceDiscovery: () => FakeMDnsVmServiceDiscovery(), }); testWithoutContext('IOSDevice.startApp retries when ios-deploy loses connection the first time in CI', () async { final BufferLogger logger = BufferLogger.test(); final FileSystem fileSystem = MemoryFileSystem.test(); final Completer<void> completer = Completer<void>(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand( stdout: '(lldb) run\nsuccess\nProcess 525 exited with status = -1 (0xffffffff) lost connection', uninstallFirst: true, ), attachDebuggerCommand( stdout: '(lldb) run\nsuccess\nThe Dart VM service is listening on http://127.0.0.1:456', completer: completer, skipInstall: true, ), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); device.portForwarder = const NoOpDevicePortForwarder(); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, usingCISystem: true, uninstallFirst: true, ), platformArgs: <String, dynamic>{}, ); completer.complete(); expect(processManager, hasNoRemainingExpectations); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); }); testWithoutContext('IOSDevice.startApp does not retry when ios-deploy loses connection if not in CI', () async { final BufferLogger logger = BufferLogger.test(); final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ attachDebuggerCommand( stdout: '(lldb) run\nsuccess\nProcess 525 exited with status = -1 (0xffffffff) lost connection', ), ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); device.portForwarder = const NoOpDevicePortForwarder(); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, ), platformArgs: <String, dynamic>{}, ); expect(processManager, hasNoRemainingExpectations); expect(launchResult.started, false); expect(launchResult.hasVmService, false); expect(await device.stopApp(iosApp), false); }); testWithoutContext('IOSDevice.startApp succeeds in release mode', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ kLaunchReleaseCommand, ]); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.disabled(BuildInfo.release), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(launchResult.hasVmService, false); expect(await device.stopApp(iosApp), false); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('IOSDevice.startApp forwards all supported debugging options', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand( command: <String>[ 'script', '-t', '0', '/dev/null', 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', '--debug', '--no-wifi', // The arguments below are determined by what is passed into // the debugging options argument to startApp. '--args', <String>[ '--enable-dart-profiling', '--disable-service-auth-codes', '--disable-vm-service-publication', '--start-paused', '--dart-flags="--foo,--null_assertions"', '--use-test-fonts', '--enable-checked-mode', '--verify-entry-points', '--enable-software-rendering', '--trace-systrace', '--trace-to-file="path/to/trace.binpb"', '--skia-deterministic-rendering', '--trace-skia', '--trace-allowlist="foo"', '--trace-skia-allowlist="skia.a,skia.b"', '--endless-trace-buffer', '--dump-skp-on-shader-compilation', '--verbose-logging', '--cache-sksl', '--purge-persistent-cache', '--enable-impeller=false', '--enable-embedder-api', ].join(' '), ], environment: const <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', }, stdout: '(lldb) run\nsuccess', ), ]); final IOSDevice device = setUpIOSDevice( sdkVersion: '13.3', processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:1234'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, startPaused: true, disableServiceAuthCodes: true, disablePortPublication: true, dartFlags: '--foo', useTestFonts: true, enableSoftwareRendering: true, skiaDeterministicRendering: true, traceSkia: true, traceAllowlist: 'foo', traceSkiaAllowlist: 'skia.a,skia.b', traceSystrace: true, traceToFile: 'path/to/trace.binpb', endlessTraceBuffer: true, dumpSkpOnShaderCompilation: true, cacheSkSL: true, purgePersistentCache: true, verboseSystemLogs: true, enableImpeller: ImpellerStatus.disabled, nullAssertions: true, enableEmbedderApi: true, ), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(await device.stopApp(iosApp), false); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('startApp using route', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand( command: <String>[ 'script', '-t', '0', '/dev/null', 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', '--debug', '--no-wifi', '--args', <String>[ '--enable-dart-profiling', '--enable-checked-mode', '--verify-entry-points', // The --route argument below is determined by what is passed into // route argument to startApp. '--route=/animation', ].join(' '), ], environment: const <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', }, stdout: '(lldb) run\nsuccess', ), ]); final IOSDevice device = setUpIOSDevice( sdkVersion: '13.3', processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:1234'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, ), platformArgs: <String, dynamic>{}, route: '/animation', ); expect(launchResult.started, true); expect(await device.stopApp(iosApp), false); expect(processManager, hasNoRemainingExpectations); }); testWithoutContext('startApp using trace-startup', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[ FakeCommand( command: <String>[ 'script', '-t', '0', '/dev/null', 'HostArtifact.iosDeploy', '--id', '123', '--bundle', '/', '--debug', '--no-wifi', '--args', <String>[ '--enable-dart-profiling', '--enable-checked-mode', '--verify-entry-points', // The --trace-startup argument below is determined by what is passed into // platformArgs argument to startApp. '--trace-startup', ].join(' '), ], environment: const <String, String>{ 'PATH': '/usr/bin:null', 'DYLD_LIBRARY_PATH': '/path/to/libraries', }, stdout: '(lldb) run\nsuccess', ), ]); final IOSDevice device = setUpIOSDevice( sdkVersion: '13.3', processManager: processManager, fileSystem: fileSystem, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: fileSystem.currentDirectory, applicationPackage: fileSystem.currentDirectory, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:1234'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, ), platformArgs: <String, dynamic>{ 'trace-startup': true, }, ); expect(launchResult.started, true); expect(await device.stopApp(iosApp), false); expect(processManager, hasNoRemainingExpectations); }); group('IOSDevice.startApp for CoreDevice', () { group('in debug mode', () { testUsingContext('succeeds', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, ) ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); }); testUsingContext('prints warning message if it takes too long to start debugging', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); final BufferLogger logger = BufferLogger.test(); final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final Completer<void> completer = Completer<void>(); final FakeXcodeDebug xcodeDebug = FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, completer: completer, ); final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, logger: logger, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: xcodeDebug, ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); FakeAsync().run((FakeAsync fakeAsync) { device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); fakeAsync.flushTimers(); expect(logger.errorText, contains('Xcode is taking longer than expected to start debugging the app. Ensure the project is opened in Xcode.')); completer.complete(); }); }); testUsingContext('succeeds with shutdown hook added when running from CI', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, ) ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); final FakeShutDownHooks shutDownHooks = FakeShutDownHooks(); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug, usingCISystem: true), platformArgs: <String, dynamic>{}, shutdownHooks: shutDownHooks, ); expect(launchResult.started, true); expect(shutDownHooks.hooks.length, 1); }); testUsingContext('IOSDevice.startApp attaches in debug mode via mDNS when device logging fails', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, ) ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); }, overrides: <Type, Generator>{ MDnsVmServiceDiscovery: () => FakeMDnsVmServiceDiscovery(), }); group('IOSDevice.startApp attaches in debug mode via device logging', () { late FakeMDnsVmServiceDiscovery mdnsDiscovery; setUp(() { mdnsDiscovery = FakeMDnsVmServiceDiscovery(returnsNull: true); }); testUsingContext('when mDNS fails', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, ) ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); unawaited(mdnsDiscovery.completer.future.whenComplete(() { // Start writing messages to the log reader. Timer.run(() { deviceLogReader.addLine('Foo'); deviceLogReader.addLine('The Dart VM service is listening on http://127.0.0.1:456'); }); })); final LaunchResult launchResult = await device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: <String, dynamic>{}, ); expect(launchResult.started, true); expect(launchResult.hasVmService, true); expect(await device.stopApp(iosApp), true); }, overrides: <Type, Generator>{ MDnsVmServiceDiscovery: () => mdnsDiscovery, }); }); testUsingContext('IOSDevice.startApp fails to find Dart VM in CI', () async { final FileSystem fileSystem = MemoryFileSystem.test(); final FakeProcessManager processManager = FakeProcessManager.empty(); const String pathToFlutterLogs = '/path/to/flutter/logs'; const String pathToHome = '/path/to/home'; final Directory temporaryXcodeProjectDirectory = fileSystem.systemTempDirectory.childDirectory('flutter_empty_xcode.rand0'); final Directory bundleLocation = fileSystem.currentDirectory; final IOSDevice device = setUpIOSDevice( processManager: processManager, fileSystem: fileSystem, isCoreDevice: true, coreDeviceControl: FakeIOSCoreDeviceControl(), xcodeDebug: FakeXcodeDebug( expectedProject: XcodeDebugProject( scheme: 'Runner', xcodeWorkspace: temporaryXcodeProjectDirectory.childDirectory('Runner.xcworkspace'), xcodeProject: temporaryXcodeProjectDirectory.childDirectory('Runner.xcodeproj'), hostAppProjectName: 'Runner', ), expectedDeviceId: '123', expectedLaunchArguments: <String>['--enable-dart-profiling'], expectedBundlePath: bundleLocation.path, ), platform: FakePlatform( operatingSystem: 'macos', environment: <String, String>{ 'HOME': pathToHome, }, ), ); final IOSApp iosApp = PrebuiltIOSApp( projectBundleId: 'app', bundleName: 'Runner', uncompressedBundle: bundleLocation, applicationPackage: bundleLocation, ); final FakeDeviceLogReader deviceLogReader = FakeDeviceLogReader(); device.portForwarder = const NoOpDevicePortForwarder(); device.setLogReader(iosApp, deviceLogReader); const String projectLogsPath = 'Runner-project1/Logs/Launch/Runner.xcresults'; fileSystem.directory('$pathToHome/Library/Developer/Xcode/DerivedData/$projectLogsPath').createSync(recursive: true); final Completer<void> completer = Completer<void>(); await FakeAsync().run((FakeAsync time) { final Future<LaunchResult> futureLaunchResult = device.startApp(iosApp, prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled( BuildInfo.debug, usingCISystem: true, debugLogsDirectoryPath: pathToFlutterLogs, ), platformArgs: <String, dynamic>{}, ); futureLaunchResult.then((LaunchResult launchResult) { expect(launchResult.started, false); expect(launchResult.hasVmService, false); expect(fileSystem.directory('$pathToFlutterLogs/DerivedDataLogs/$projectLogsPath').existsSync(), true); completer.complete(); }); time.elapse(const Duration(minutes: 15)); time.flushMicrotasks(); return completer.future; }); }, overrides: <Type, Generator>{ MDnsVmServiceDiscovery: () => FakeMDnsVmServiceDiscovery(returnsNull: true), }); }); }); } IOSDevice setUpIOSDevice({ String sdkVersion = '13.0.1', FileSystem? fileSystem, Logger? logger, ProcessManager? processManager, IOSDeploy? iosDeploy, DeviceConnectionInterface interfaceType = DeviceConnectionInterface.attached, bool isCoreDevice = false, IOSCoreDeviceControl? coreDeviceControl, FakeXcodeDebug? xcodeDebug, FakePlatform? platform, }) { final Artifacts artifacts = Artifacts.test(); final FakePlatform macPlatform = platform ?? FakePlatform( operatingSystem: 'macos', environment: <String, String>{}, ); final Cache cache = Cache.test( platform: macPlatform, artifacts: <ArtifactSet>[ FakeDyldEnvironmentArtifact(), ], processManager: FakeProcessManager.any(), ); logger ??= BufferLogger.test(); return IOSDevice('123', name: 'iPhone 1', sdkVersion: sdkVersion, fileSystem: fileSystem ?? MemoryFileSystem.test(), platform: macPlatform, iProxy: IProxy.test(logger: logger, processManager: processManager ?? FakeProcessManager.any()), logger: logger, iosDeploy: iosDeploy ?? IOSDeploy( logger: logger, platform: macPlatform, processManager: processManager ?? FakeProcessManager.any(), artifacts: artifacts, cache: cache, ), iMobileDevice: IMobileDevice( logger: logger, processManager: processManager ?? FakeProcessManager.any(), artifacts: artifacts, cache: cache, ), coreDeviceControl: coreDeviceControl ?? FakeIOSCoreDeviceControl(), xcodeDebug: xcodeDebug ?? FakeXcodeDebug(), cpuArchitecture: DarwinArch.arm64, connectionInterface: interfaceType, isConnected: true, isPaired: true, devModeEnabled: true, isCoreDevice: isCoreDevice, ); } class FakeDevicePortForwarder extends Fake implements DevicePortForwarder { bool disposed = false; @override Future<void> dispose() async { disposed = true; } } class FakeMDnsVmServiceDiscovery extends Fake implements MDnsVmServiceDiscovery { FakeMDnsVmServiceDiscovery({this.returnsNull = false}); bool returnsNull; Completer<void> completer = Completer<void>(); @override Future<Uri?> getVMServiceUriForLaunch( String applicationId, Device device, { bool usesIpv6 = false, int? hostVmservicePort, int? deviceVmservicePort, bool useDeviceIPAsHost = false, Duration timeout = Duration.zero, }) async { completer.complete(); if (returnsNull) { return null; } return Uri.tryParse('http://0.0.0.0:1234'); } } class FakeXcodeDebug extends Fake implements XcodeDebug { FakeXcodeDebug({ this.debugSuccess = true, this.expectedProject, this.expectedDeviceId, this.expectedLaunchArguments, this.expectedBundlePath, this.completer, }); final bool debugSuccess; final XcodeDebugProject? expectedProject; final String? expectedDeviceId; final List<String>? expectedLaunchArguments; final String? expectedBundlePath; final Completer<void>? completer; @override bool debugStarted = false; @override Future<XcodeDebugProject> createXcodeProjectWithCustomBundle( String deviceBundlePath, { required TemplateRenderer templateRenderer, Directory? projectDestination, bool verboseLogging = false, }) async { if (expectedBundlePath != null) { expect(expectedBundlePath, deviceBundlePath); } return expectedProject!; } @override Future<bool> debugApp({ required XcodeDebugProject project, required String deviceId, required List<String> launchArguments, }) async { if (expectedProject != null) { expect(project.scheme, expectedProject!.scheme); expect(project.xcodeWorkspace.path, expectedProject!.xcodeWorkspace.path); expect(project.xcodeProject.path, expectedProject!.xcodeProject.path); expect(project.isTemporaryProject, expectedProject!.isTemporaryProject); } if (expectedDeviceId != null) { expect(deviceId, expectedDeviceId); } if (expectedLaunchArguments != null) { expect(expectedLaunchArguments, launchArguments); } debugStarted = debugSuccess; if (completer != null) { await completer!.future; } return debugSuccess; } @override Future<bool> exit({ bool force = false, bool skipDelay = false, }) async { return true; } } class FakeIOSCoreDeviceControl extends Fake implements IOSCoreDeviceControl {} class FakeShutDownHooks extends Fake implements ShutdownHooks { List<ShutdownHook> hooks = <ShutdownHook>[]; @override void addShutdownHook(ShutdownHook shutdownHook) { hooks.add(shutdownHook); } }
flutter/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart", "repo_id": "flutter", "token_count": 17215 }
968
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/build_system.dart'; import 'package:flutter_tools/src/dart/package_map.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/isolated/native_assets/macos/native_assets.dart'; import 'package:flutter_tools/src/isolated/native_assets/native_assets.dart'; import 'package:native_assets_cli/native_assets_cli_internal.dart' hide BuildMode, Target; import 'package:native_assets_cli/native_assets_cli_internal.dart' as native_assets_cli; import 'package:package_config/package_config_types.dart'; import '../../../src/common.dart'; import '../../../src/context.dart'; import '../../../src/fakes.dart'; import '../fake_native_assets_build_runner.dart'; void main() { late FakeProcessManager processManager; late Environment environment; late Artifacts artifacts; late FileSystem fileSystem; late BufferLogger logger; late Uri projectUri; setUp(() { processManager = FakeProcessManager.empty(); logger = BufferLogger.test(); artifacts = Artifacts.test(); fileSystem = MemoryFileSystem.test(); environment = Environment.test( fileSystem.currentDirectory, inputs: <String, String>{}, artifacts: artifacts, processManager: processManager, fileSystem: fileSystem, logger: logger, ); environment.buildDir.createSync(recursive: true); projectUri = environment.projectDir.uri; }); testUsingContext('dry run with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { expect( await dryRunNativeAssetsMacOS( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ), null, ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('build with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { await buildNativeAssetsMacOS( darwinArchs: <DarwinArch>[DarwinArch.arm64], projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('dry run for multiple OSes with no package config', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { await dryRunNativeAssetsMultipleOSes( projectUri: projectUri, fileSystem: fileSystem, targetPlatforms: <TargetPlatform>[ TargetPlatform.darwin, TargetPlatform.ios, ], buildRunner: FakeNativeAssetsBuildRunner( hasPackageConfigResult: false, ), ); expect( (globals.logger as BufferLogger).traceText, contains('No package config found. Skipping native assets compilation.'), ); }); testUsingContext('dry run with assets but not enabled', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsMacOS( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ), throwsToolExit( message: 'Package(s) bar require the native assets feature to be enabled. ' 'Enable using `flutter config --enable-native-assets`.', ), ); }); testUsingContext('dry run with assets', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final Uri? nativeAssetsYaml = await dryRunNativeAssetsMacOS( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.dynamic, target: native_assets_cli.Target.macOSArm64, path: AssetAbsolutePath(Uri.file('libbar.dylib')), ), Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.dynamic, target: native_assets_cli.Target.macOSX64, path: AssetAbsolutePath(Uri.file('libbar.dylib')), ), ], ), ), ); expect( (globals.logger as BufferLogger).traceText, stringContainsInOrder(<String>[ 'Dry running native assets for macos.', 'Dry running native assets for macos done.', ]), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/macos/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), contains('package:bar/bar.dart'), ); }); testUsingContext('build with assets but not enabled', overrides: <Type, Generator>{ ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => buildNativeAssetsMacOS( darwinArchs: <DarwinArch>[DarwinArch.arm64], projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ), throwsToolExit( message: 'Package(s) bar require the native assets feature to be enabled. ' 'Enable using `flutter config --enable-native-assets`.', ), ); }); testUsingContext('build no assets', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final (Uri? nativeAssetsYaml, _) = await buildNativeAssetsMacOS( darwinArchs: <DarwinArch>[DarwinArch.arm64], projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], ), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/macos/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), isNot(contains('package:bar/bar.dart')), ); }); for (final bool flutterTester in <bool>[false, true]) { String testName = ''; if (flutterTester) { testName += ' flutter tester'; } final String dylibPath; final String signPath; if (flutterTester) { // Just the dylib. dylibPath = '/build/native_assets/macos/libbar.dylib'; signPath = '/build/native_assets/macos/libbar.dylib'; } else { // Packaged in framework. dylibPath = '/build/native_assets/macos/bar.framework/Versions/A/bar'; signPath = '/build/native_assets/macos/bar.framework'; } testUsingContext('build with assets$testName', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.list( <FakeCommand>[ FakeCommand( command: <Pattern>[ 'lipo', '-create', '-output', dylibPath, 'arm64/libbar.dylib', 'x64/libbar.dylib', ], ), if (!flutterTester) FakeCommand( command: <Pattern>[ 'install_name_tool', '-id', '@rpath/bar.framework/bar', dylibPath, ], ), FakeCommand( command: <Pattern>[ 'codesign', '--force', '--sign', '-', '--timestamp=none', signPath, ], ), ], ), }, () async { if (const LocalPlatform().isWindows) { return; // Backslashes in commands, but we will never run these commands on Windows. } final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); final (Uri? nativeAssetsYaml, _) = await buildNativeAssetsMacOS( darwinArchs: <DarwinArch>[DarwinArch.arm64, DarwinArch.x86_64], projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, flutterTester: flutterTester, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], onBuild: (native_assets_cli.Target target) => FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.dynamic, target: target, path: AssetAbsolutePath(Uri.file('${target.architecture}/libbar.dylib')), ), ], ), ), ); expect( (globals.logger as BufferLogger).traceText, stringContainsInOrder(<String>[ 'Building native assets for [macos_arm64, macos_x64] debug.', 'Building native assets for [macos_arm64, macos_x64] done.', ]), ); expect( nativeAssetsYaml, projectUri.resolve('build/native_assets/macos/native_assets.yaml'), ); expect( await fileSystem.file(nativeAssetsYaml).readAsString(), stringContainsInOrder(<String>[ 'package:bar/bar.dart', if (flutterTester) // Tests run on host system, so the have the full path on the system. '- ${projectUri.resolve('build/native_assets/macos/libbar.dylib').toFilePath()}' else // Apps are a bundle with the dylibs on their dlopen path. '- bar.framework/bar', ]), ); }); } testUsingContext('static libs not supported', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsMacOS( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: FakeNativeAssetsBuilderResult( assets: <Asset>[ Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.static, target: native_assets_cli.Target.macOSArm64, path: AssetAbsolutePath(Uri.file('bar.a')), ), Asset( id: 'package:bar/bar.dart', linkMode: LinkMode.static, target: native_assets_cli.Target.macOSX64, path: AssetAbsolutePath(Uri.file('bar.a')), ), ], ), ), ), throwsToolExit( message: 'Native asset(s) package:bar/bar.dart have their link mode set to ' 'static, but this is not yet supported. ' 'For more info see https://github.com/dart-lang/sdk/issues/49418.', ), ); }); testUsingContext('Native assets dry run error', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => dryRunNativeAssetsMacOS( projectUri: projectUri, fileSystem: fileSystem, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], dryRunResult: const FakeNativeAssetsBuilderResult( success: false, ), ), ), throwsToolExit( message: 'Building native assets failed. See the logs for more details.', ), ); }); testUsingContext('Native assets build error', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.empty(), }, () async { final File packageConfig = environment.projectDir.childFile('.dart_tool/package_config.json'); await packageConfig.parent.create(); await packageConfig.create(); expect( () => buildNativeAssetsMacOS( darwinArchs: <DarwinArch>[DarwinArch.arm64], projectUri: projectUri, buildMode: BuildMode.debug, fileSystem: fileSystem, yamlParentDirectory: environment.buildDir.uri, buildRunner: FakeNativeAssetsBuildRunner( packagesWithNativeAssetsResult: <Package>[ Package('bar', projectUri), ], buildResult: const FakeNativeAssetsBuilderResult( success: false, ), ), ), throwsToolExit( message: 'Building native assets failed. See the logs for more details.', ), ); }); // This logic is mocked in the other tests to avoid having test order // randomization causing issues with what processes are invoked. // Exercise the parsing of the process output in this separate test. testUsingContext('NativeAssetsBuildRunnerImpl.cCompilerConfig', overrides: <Type, Generator>{ FeatureFlags: () => TestFeatureFlags(isNativeAssetsEnabled: true), ProcessManager: () => FakeProcessManager.list( <FakeCommand>[ const FakeCommand( command: <Pattern>['xcrun', 'clang', '--version'], stdout: ''' Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin''', ) ], ), }, () async { if (!const LocalPlatform().isMacOS) { return; } final File packagesFile = fileSystem .directory(projectUri) .childDirectory('.dart_tool') .childFile('package_config.json'); await packagesFile.parent.create(); await packagesFile.create(); final PackageConfig packageConfig = await loadPackageConfigWithLogging( packagesFile, logger: environment.logger, ); final NativeAssetsBuildRunner runner = NativeAssetsBuildRunnerImpl( projectUri, packageConfig, fileSystem, logger, ); final CCompilerConfig result = await runner.cCompilerConfig; expect( result.cc, Uri.file( '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang', ), ); }); }
flutter/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart", "repo_id": "flutter", "token_count": 7066 }
969
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/io.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/device_port_forwarder.dart'; import 'package:flutter_tools/src/ios/devices.dart'; import 'package:flutter_tools/src/mdns_discovery.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/reporting/reporting.dart'; import 'package:multicast_dns/multicast_dns.dart'; import 'package:test/fake.dart'; import 'package:unified_analytics/unified_analytics.dart'; import '../src/common.dart'; import '../src/fakes.dart'; void main() { group('mDNS Discovery', () { final int future = DateTime.now().add(const Duration(days: 1)).millisecondsSinceEpoch; setUp(() { setNetworkInterfaceLister( ({ bool? includeLoopback, bool? includeLinkLocal, InternetAddressType? type, }) async => <NetworkInterface>[], ); }); tearDown(() { resetNetworkInterfaceLister(); }); group('for attach', () { late MDnsClient emptyClient; setUp(() { emptyClient = FakeMDnsClient(<PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}); }); testWithoutContext('Find result in preliminary client', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.queryForAttach(); expect(result, isNotNull); }); testWithoutContext('Do not find result in preliminary client, but find in main client', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.queryForAttach(); expect(result, isNotNull); }); testWithoutContext('Find multiple in preliminary client', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), PtrResourceRecord('baz', future, domainName: 'fiz'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], 'fiz': <SrvResourceRecord>[ SrvResourceRecord('fiz', future, port: 321, weight: 1, priority: 1, target: 'local'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect(portDiscovery.queryForAttach, throwsToolExit()); }); testWithoutContext('Find duplicates in preliminary client', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.queryForAttach(); expect(result, isNotNull); }); testWithoutContext('Find similar named in preliminary client', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), PtrResourceRecord('foo', future, domainName: 'bar (2)'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], 'bar (2)': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect(portDiscovery.queryForAttach, throwsToolExit()); }); testWithoutContext('No ports available', () async { final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final int? port = (await portDiscovery.queryForAttach())?.port; expect(port, isNull); }); testWithoutContext('Prints helpful message when there is no ipv4 link local address.', () async { final BufferLogger logger = BufferLogger.test(); final MemoryFileSystem fs = MemoryFileSystem.test(); final FakeAnalytics fakeAnalytics = getInitializedFakeAnalyticsInstance( fs: fs, fakeFlutterVersion: FakeFlutterVersion(), ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: emptyClient, preliminaryMDnsClient: emptyClient, logger: logger, flutterUsage: TestUsage(), analytics: fakeAnalytics, ); final Uri? uri = await portDiscovery.getVMServiceUriForAttach( '', FakeIOSDevice(), ); expect(uri, isNull); expect(logger.errorText, contains('Personal Hotspot')); expect(fakeAnalytics.sentEvents, contains( Event.appleUsageEvent( workflow: 'ios-mdns', parameter: 'no-ipv4-link-local', ) )); }); testWithoutContext('One port available, no appId', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final int? port = (await portDiscovery.queryForAttach())?.port; expect(port, 123); }); testWithoutContext('One port available, no appId, with authCode', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'bar': <TxtResourceRecord>[ TxtResourceRecord('bar', future, text: 'authCode=xyz\n'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.queryForAttach(); expect(result?.port, 123); expect(result?.authCode, 'xyz/'); }); testWithoutContext('Multiple ports available, with appId', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), PtrResourceRecord('baz', future, domainName: 'fiz'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], 'fiz': <SrvResourceRecord>[ SrvResourceRecord('fiz', future, port: 321, weight: 1, priority: 1, target: 'local'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final int? port = (await portDiscovery.queryForAttach(applicationId: 'fiz'))?.port; expect(port, 321); }); testWithoutContext('Multiple ports available per process, with appId', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), PtrResourceRecord('baz', future, domainName: 'fiz'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 1234, weight: 1, priority: 1, target: 'appId'), SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], 'fiz': <SrvResourceRecord>[ SrvResourceRecord('fiz', future, port: 4321, weight: 1, priority: 1, target: 'local'), SrvResourceRecord('fiz', future, port: 321, weight: 1, priority: 1, target: 'local'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final int? port = (await portDiscovery.queryForAttach(applicationId: 'bar'))?.port; expect(port, 1234); }); testWithoutContext('Throws Exception when client throws OSError on start', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}, osErrorOnStart: true, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( () async => portDiscovery.queryForAttach(), throwsException, ); }); testWithoutContext('Correctly builds VM Service URI with hostVmservicePort == 0', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForAttach('bar', device, hostVmservicePort: 0); expect(uri.toString(), 'http://127.0.0.1:123/'); }); testWithoutContext('Get wireless device IP (iPv4)', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 1234, weight: 1, priority: 1, target: 'appId'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'appId': <IPAddressResourceRecord>[ IPAddressResourceRecord('Device IP', 0, address: InternetAddress.tryParse('111.111.111.111')!), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'bar': <TxtResourceRecord>[ TxtResourceRecord('bar', future, text: 'authCode=xyz\n'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForAttach( 'bar', device, useDeviceIPAsHost: true, ); expect(uri.toString(), 'http://111.111.111.111:1234/xyz/'); }); testWithoutContext('Get wireless device IP (iPv6)', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 1234, weight: 1, priority: 1, target: 'appId'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'appId': <IPAddressResourceRecord>[ IPAddressResourceRecord('Device IP', 0, address: InternetAddress.tryParse('1111:1111:1111:1111:1111:1111:1111:1111')!), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'bar': <TxtResourceRecord>[ TxtResourceRecord('bar', future, text: 'authCode=xyz\n'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForAttach( 'bar', device, useDeviceIPAsHost: true, ); expect(uri.toString(), 'http://[1111:1111:1111:1111:1111:1111:1111:1111]:1234/xyz/'); }); testWithoutContext('Throw error if unable to find VM service with app id and device port', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'target-foo'), ], 'srv-bar': <SrvResourceRecord>[ SrvResourceRecord('srv-bar', future, port: 123, weight: 1, priority: 1, target: 'target-bar'), ], 'srv-baz': <SrvResourceRecord>[ SrvResourceRecord('srv-baz', future, port: 123, weight: 1, priority: 1, target: 'target-baz'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( portDiscovery.getVMServiceUriForAttach( 'srv-bar', device, deviceVmservicePort: 321, ), throwsToolExit( message: 'Did not find a Dart VM Service advertised for srv-bar on port 321.' ), ); }); testWithoutContext('Throw error if unable to find VM Service with app id', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'target-foo'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, preliminaryMDnsClient: emptyClient, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( portDiscovery.getVMServiceUriForAttach( 'srv-asdf', device, ), throwsToolExit( message: 'Did not find a Dart VM Service advertised for srv-asdf.' ), ); }); }); group('for launch', () { testWithoutContext('Ensure either port or device name are provided', () async { final MDnsClient client = FakeMDnsClient(<PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect(() async => portDiscovery.queryForLaunch(applicationId: 'app-id'), throwsAssertionError); }); testWithoutContext('No ports available', () async { final MDnsClient client = FakeMDnsClient(<PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.queryForLaunch( applicationId: 'app-id', deviceVmservicePort: 123, ); expect(result, null); }); testWithoutContext('Prints helpful message when there is no ipv4 link local address.', () async { final MDnsClient client = FakeMDnsClient(<PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}); final BufferLogger logger = BufferLogger.test(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: logger, flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForLaunch( '', FakeIOSDevice(), deviceVmservicePort: 0, ); expect(uri, isNull); expect(logger.errorText, contains('Personal Hotspot')); }); testWithoutContext('Throws Exception when client throws OSError on start', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}, osErrorOnStart: true, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( () async => portDiscovery.queryForLaunch(applicationId: 'app-id', deviceVmservicePort: 123), throwsException, ); }); testWithoutContext('Correctly builds VM Service URI with hostVmservicePort == 0', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 123, weight: 1, priority: 1, target: 'appId'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForLaunch( 'bar', device, hostVmservicePort: 0, deviceVmservicePort: 123, ); expect(uri.toString(), 'http://127.0.0.1:123/'); }); testWithoutContext('Get wireless device IP (iPv4)', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 1234, weight: 1, priority: 1, target: 'appId'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'appId': <IPAddressResourceRecord>[ IPAddressResourceRecord('Device IP', 0, address: InternetAddress.tryParse('111.111.111.111')!), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'bar': <TxtResourceRecord>[ TxtResourceRecord('bar', future, text: 'authCode=xyz\n'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForLaunch( 'bar', device, useDeviceIPAsHost: true, deviceVmservicePort: 1234, ); expect(uri.toString(), 'http://111.111.111.111:1234/xyz/'); }); testWithoutContext('Get wireless device IP (iPv6)', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'bar'), ], <String, List<SrvResourceRecord>>{ 'bar': <SrvResourceRecord>[ SrvResourceRecord('bar', future, port: 1234, weight: 1, priority: 1, target: 'appId'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'appId': <IPAddressResourceRecord>[ IPAddressResourceRecord('Device IP', 0, address: InternetAddress.tryParse('1111:1111:1111:1111:1111:1111:1111:1111')!), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'bar': <TxtResourceRecord>[ TxtResourceRecord('bar', future, text: 'authCode=xyz\n'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForLaunch( 'bar', device, useDeviceIPAsHost: true, deviceVmservicePort: 1234, ); expect(uri.toString(), 'http://[1111:1111:1111:1111:1111:1111:1111:1111]:1234/xyz/'); }); testWithoutContext('Throw error if unable to find VM Service with app id and device port', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'target-foo'), ], 'srv-bar': <SrvResourceRecord>[ SrvResourceRecord('srv-bar', future, port: 123, weight: 1, priority: 1, target: 'target-bar'), ], 'srv-baz': <SrvResourceRecord>[ SrvResourceRecord('srv-baz', future, port: 123, weight: 1, priority: 1, target: 'target-baz'), ], }, ); final FakeIOSDevice device = FakeIOSDevice(); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( portDiscovery.getVMServiceUriForLaunch( 'srv-bar', device, deviceVmservicePort: 321, ), throwsToolExit( message:'Did not find a Dart VM Service advertised for srv-bar on port 321.'), ); }); testWithoutContext('Matches on application id and device name', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-bar': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'My-Phone.local'), ], }, ); final FakeIOSDevice device = FakeIOSDevice( name: 'My Phone', ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final Uri? uri = await portDiscovery.getVMServiceUriForLaunch( 'srv-bar', device, ); expect(uri.toString(), 'http://127.0.0.1:123/'); }); testWithoutContext('Throw error if unable to find VM Service with app id and device name', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'target-foo'), ], }, ); final FakeIOSDevice device = FakeIOSDevice( name: 'My Phone', ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect( portDiscovery.getVMServiceUriForLaunch( 'srv-bar', device, ), throwsToolExit( message:'Did not find a Dart VM Service advertised for srv-bar'), ); }); }); group('deviceNameMatchesTargetName', () { testWithoutContext('compares case insensitive and without spaces, hyphens, .local', () { final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: FakeMDnsClient( <PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}, ), logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect(portDiscovery.deviceNameMatchesTargetName('My phone', 'My-Phone.local'), isTrue); }); testWithoutContext('includes numbers in comparison', () { final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: FakeMDnsClient( <PtrResourceRecord>[], <String, List<SrvResourceRecord>>{}, ), logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); expect(portDiscovery.deviceNameMatchesTargetName('My phone', 'My-Phone-2.local'), isFalse); }); }); testWithoutContext('Find firstMatchingVmService with many available and no application id', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 123, weight: 1, priority: 1, target: 'target-foo'), ], 'srv-bar': <SrvResourceRecord>[ SrvResourceRecord('srv-bar', future, port: 123, weight: 1, priority: 1, target: 'target-bar'), ], 'srv-baz': <SrvResourceRecord>[ SrvResourceRecord('srv-baz', future, port: 123, weight: 1, priority: 1, target: 'target-baz'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.firstMatchingVmService(client); expect(result?.domainName, 'srv-foo'); }); testWithoutContext('Find firstMatchingVmService app id', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), PtrResourceRecord('bar', future, domainName: 'srv-bar'), PtrResourceRecord('baz', future, domainName: 'srv-boo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 111, weight: 1, priority: 1, target: 'target-foo'), ], 'srv-bar': <SrvResourceRecord>[ SrvResourceRecord('srv-bar', future, port: 222, weight: 1, priority: 1, target: 'target-bar'), SrvResourceRecord('srv-bar', future, port: 333, weight: 1, priority: 1, target: 'target-bar-2'), ], 'srv-baz': <SrvResourceRecord>[ SrvResourceRecord('srv-baz', future, port: 444, weight: 1, priority: 1, target: 'target-baz'), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.firstMatchingVmService( client, applicationId: 'srv-bar' ); expect(result?.domainName, 'srv-bar'); expect(result?.port, 222); }); testWithoutContext('find with no txt record', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 111, weight: 1, priority: 1, target: 'target-foo'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'target-foo': <IPAddressResourceRecord>[ IPAddressResourceRecord('target-foo', 0, address: InternetAddress.tryParse('111.111.111.111')!), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.firstMatchingVmService( client, applicationId: 'srv-foo', useDeviceIPAsHost: true, ); expect(result?.domainName, 'srv-foo'); expect(result?.port, 111); expect(result?.authCode, ''); expect(result?.ipAddress?.address, '111.111.111.111'); }); testWithoutContext('find with empty txt record', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 111, weight: 1, priority: 1, target: 'target-foo'), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'srv-foo': <TxtResourceRecord>[ TxtResourceRecord('srv-foo', future, text: ''), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'target-foo': <IPAddressResourceRecord>[ IPAddressResourceRecord('target-foo', 0, address: InternetAddress.tryParse('111.111.111.111')!), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.firstMatchingVmService( client, applicationId: 'srv-foo', useDeviceIPAsHost: true, ); expect(result?.domainName, 'srv-foo'); expect(result?.port, 111); expect(result?.authCode, ''); expect(result?.ipAddress?.address, '111.111.111.111'); }); testWithoutContext('find with valid txt record', () async { final MDnsClient client = FakeMDnsClient( <PtrResourceRecord>[ PtrResourceRecord('foo', future, domainName: 'srv-foo'), ], <String, List<SrvResourceRecord>>{ 'srv-foo': <SrvResourceRecord>[ SrvResourceRecord('srv-foo', future, port: 111, weight: 1, priority: 1, target: 'target-foo'), ], }, txtResponse: <String, List<TxtResourceRecord>>{ 'srv-foo': <TxtResourceRecord>[ TxtResourceRecord('srv-foo', future, text: 'authCode=xyz\n'), ], }, ipResponse: <String, List<IPAddressResourceRecord>>{ 'target-foo': <IPAddressResourceRecord>[ IPAddressResourceRecord('target-foo', 0, address: InternetAddress.tryParse('111.111.111.111')!), ], }, ); final MDnsVmServiceDiscovery portDiscovery = MDnsVmServiceDiscovery( mdnsClient: client, logger: BufferLogger.test(), flutterUsage: TestUsage(), analytics: const NoOpAnalytics(), ); final MDnsVmServiceDiscoveryResult? result = await portDiscovery.firstMatchingVmService( client, applicationId: 'srv-foo', useDeviceIPAsHost: true, ); expect(result?.domainName, 'srv-foo'); expect(result?.port, 111); expect(result?.authCode, 'xyz/'); expect(result?.ipAddress?.address, '111.111.111.111'); }); }); } class FakeMDnsClient extends Fake implements MDnsClient { FakeMDnsClient(this.ptrRecords, this.srvResponse, { this.txtResponse = const <String, List<TxtResourceRecord>>{}, this.ipResponse = const <String, List<IPAddressResourceRecord>>{}, this.osErrorOnStart = false, }); final List<PtrResourceRecord> ptrRecords; final Map<String, List<SrvResourceRecord>> srvResponse; final Map<String, List<TxtResourceRecord>> txtResponse; final Map<String, List<IPAddressResourceRecord>> ipResponse; final bool osErrorOnStart; @override Future<void> start({ InternetAddress? listenAddress, NetworkInterfacesFactory? interfacesFactory, int mDnsPort = 5353, InternetAddress? mDnsAddress, }) async { if (osErrorOnStart) { throw const OSError('Operation not supported on socket', 102); } } @override Stream<T> lookup<T extends ResourceRecord>( ResourceRecordQuery query, { Duration timeout = const Duration(seconds: 5), }) { if (T == PtrResourceRecord && query.fullyQualifiedName == MDnsVmServiceDiscovery.dartVmServiceName) { return Stream<PtrResourceRecord>.fromIterable(ptrRecords) as Stream<T>; } if (T == SrvResourceRecord) { final String key = query.fullyQualifiedName; return Stream<SrvResourceRecord>.fromIterable(srvResponse[key] ?? <SrvResourceRecord>[]) as Stream<T>; } if (T == TxtResourceRecord) { final String key = query.fullyQualifiedName; return Stream<TxtResourceRecord>.fromIterable(txtResponse[key] ?? <TxtResourceRecord>[]) as Stream<T>; } if (T == IPAddressResourceRecord) { final String key = query.fullyQualifiedName; return Stream<IPAddressResourceRecord>.fromIterable(ipResponse[key] ?? <IPAddressResourceRecord>[]) as Stream<T>; } throw UnsupportedError('Unsupported query type $T'); } @override void stop() {} } class FakeIOSDevice extends Fake implements IOSDevice { FakeIOSDevice({this.name = 'iPhone'}); @override final String name; @override Future<TargetPlatform> get targetPlatform async => TargetPlatform.ios; @override bool isSupported() => true; @override bool isSupportedForProject(FlutterProject flutterProject) => true; @override DevicePortForwarder get portForwarder => const NoOpDevicePortForwarder(); }
flutter/packages/flutter_tools/test/general.shard/mdns_discovery_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/mdns_discovery_test.dart", "repo_id": "flutter", "token_count": 17948 }
970
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/features.dart'; import 'package:flutter_tools/src/persistent_tool_state.dart'; import 'package:flutter_tools/src/reporting/first_run.dart'; import '../../src/common.dart'; void main() { testWithoutContext('FirstRunMessenger delegates to the first run message', () { final FirstRunMessenger messenger = setUpFirstRunMessenger(); expect(messenger.licenseTerms, contains('Welcome to Flutter')); }); testWithoutContext('FirstRunMessenger informs user how to disable animations', () { final FirstRunMessenger messenger = setUpFirstRunMessenger(redisplayWelcomeMessage: false); expect(messenger.licenseTerms, contains('flutter config --no-$kCliAnimationsFeatureName')); }); testWithoutContext('FirstRunMessenger requires redisplay if it has never been run before', () { final FirstRunMessenger messenger = setUpFirstRunMessenger(); expect(messenger.shouldDisplayLicenseTerms(), true); expect(messenger.shouldDisplayLicenseTerms(), true); // Once terms have been confirmed, then it will return false. messenger.confirmLicenseTermsDisplayed(); expect(messenger.shouldDisplayLicenseTerms(), false); }); testWithoutContext('FirstRunMessenger requires redisplay if the license terms have changed', () { final TestFirstRunMessenger messenger = setUpFirstRunMessenger(test: true) as TestFirstRunMessenger; messenger.confirmLicenseTermsDisplayed(); expect(messenger.shouldDisplayLicenseTerms(), false); messenger.overrideLicenseTerms = 'This is a new license'; expect(messenger.shouldDisplayLicenseTerms(), true); }); testWithoutContext('FirstRunMessenger does not require re-display if the persistent tool state disables it', () { final FirstRunMessenger messenger = setUpFirstRunMessenger(redisplayWelcomeMessage: false); expect(messenger.shouldDisplayLicenseTerms(), false); }); } FirstRunMessenger setUpFirstRunMessenger({bool? redisplayWelcomeMessage, bool test = false }) { final MemoryFileSystem fileSystem = MemoryFileSystem.test(); final PersistentToolState state = PersistentToolState.test(directory: fileSystem.currentDirectory, logger: BufferLogger.test()); if (redisplayWelcomeMessage != null) { state.setShouldRedisplayWelcomeMessage(redisplayWelcomeMessage); } if (test) { return TestFirstRunMessenger(state); } return FirstRunMessenger(persistentToolState: state); } class TestFirstRunMessenger extends FirstRunMessenger { TestFirstRunMessenger(PersistentToolState persistentToolState) : super(persistentToolState: persistentToolState); String? overrideLicenseTerms; @override String get licenseTerms => overrideLicenseTerms ?? super.licenseTerms; }
flutter/packages/flutter_tools/test/general.shard/reporting/first_run_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/reporting/first_run_test.dart", "repo_id": "flutter", "token_count": 844 }
971
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/compile.dart'; import 'package:flutter_tools/src/project.dart'; import 'package:flutter_tools/src/test/test_compiler.dart'; import 'package:flutter_tools/src/test/test_time_recorder.dart'; import 'package:package_config/package_config_types.dart'; import 'package:test/fake.dart'; import '../../src/common.dart'; import '../../src/context.dart'; import '../../src/logging_logger.dart'; final Platform linuxPlatform = FakePlatform( environment: <String, String>{}, ); final BuildInfo debugBuild = BuildInfo( BuildMode.debug, '', treeShakeIcons: false, packageConfig: PackageConfig(<Package>[ Package('test_api', Uri.parse('file:///test_api/')), ]) ); void main() { late FakeResidentCompiler residentCompiler; late FileSystem fileSystem; late LoggingLogger logger; setUp(() { fileSystem = MemoryFileSystem.test(); fileSystem.file('pubspec.yaml').createSync(); fileSystem.file('test/foo.dart').createSync(recursive: true); fileSystem.file('.packages').createSync(); residentCompiler = FakeResidentCompiler(fileSystem); logger = LoggingLogger(); }); testUsingContext('TestCompiler reports a dill file when compile is successful', () async { residentCompiler.compilerOutput = const CompilerOutput('abc.dill', 0, <Uri>[]); final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, ); expect(await testCompiler.compile(Uri.parse('test/foo.dart')), 'test/foo.dart.dill'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => BufferLogger.test(), }); testUsingContext('TestCompiler does not try to cache the dill file when precompiled dill is passed', () async { residentCompiler.compilerOutput = const CompilerOutput('abc.dill', 0, <Uri>[]); final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, precompiledDillPath: 'precompiled.dill', ); expect(await testCompiler.compile(Uri.parse('test/foo.dart')), 'abc.dill'); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => BufferLogger.test(), }); testUsingContext('TestCompiler reports null when a compile fails', () async { residentCompiler.compilerOutput = const CompilerOutput('abc.dill', 1, <Uri>[]); final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, ); expect(await testCompiler.compile(Uri.parse('test/foo.dart')), null); expect(residentCompiler.didShutdown, true); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => BufferLogger.test(), }); testUsingContext('TestCompiler records test timings when provided TestTimeRecorder', () async { residentCompiler.compilerOutput = const CompilerOutput('abc.dill', 0, <Uri>[]); final TestTimeRecorder testTimeRecorder = TestTimeRecorder(logger); final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, testTimeRecorder: testTimeRecorder, ); expect(await testCompiler.compile(Uri.parse('test/foo.dart')), 'test/foo.dart.dill'); testTimeRecorder.print(); // Expect one message for each phase. final List<String> logPhaseMessages = logger.messages.where((String m) => m.startsWith('Runtime for phase ')).toList(); expect(logPhaseMessages, hasLength(TestTimePhases.values.length)); // As the compile method adds a job to a queue etc we expect at // least one phase to take a non-zero amount of time. final List<String> logPhaseMessagesNonZero = logPhaseMessages.where((String m) => !m.contains(Duration.zero.toString())).toList(); expect(logPhaseMessagesNonZero, isNotEmpty); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => logger, }); testUsingContext('TestCompiler disposing test compiler shuts down backing compiler', () async { final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, ); testCompiler.compiler = residentCompiler; expect(testCompiler.compilerController.isClosed, false); await testCompiler.dispose(); expect(testCompiler.compilerController.isClosed, true); expect(residentCompiler.didShutdown, true); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => BufferLogger.test(), }); testUsingContext('TestCompiler updates dart_plugin_registrant.dart', () async { final Directory fakeDartPlugin = fileSystem.directory('a_plugin'); fileSystem.file('pubspec.yaml').writeAsStringSync(''' name: foo dependencies: flutter: sdk: flutter a_plugin: 1.0.0 '''); fileSystem.file('.packages').writeAsStringSync('a_plugin:/a_plugin/lib/'); fakeDartPlugin.childFile('pubspec.yaml') ..createSync(recursive: true) ..writeAsStringSync(''' name: a_plugin flutter: plugin: implements: a platforms: linux: dartPluginClass: APlugin environment: sdk: '>=3.2.0-0 <4.0.0' flutter: ">=2.5.0" '''); residentCompiler.compilerOutput = const CompilerOutput('abc.dill', 0, <Uri>[]); final FakeTestCompiler testCompiler = FakeTestCompiler( debugBuild, FlutterProject.fromDirectoryTest(fileSystem.currentDirectory), residentCompiler, ); await testCompiler.compile(Uri.parse('test/foo.dart')); final File generatedMain = fileSystem.directory('.dart_tool') .childDirectory('flutter_build') .childFile('dart_plugin_registrant.dart'); expect(generatedMain, exists); expect( generatedMain.readAsStringSync(), contains('APlugin.registerWith();') ); }, overrides: <Type, Generator>{ FileSystem: () => fileSystem, Platform: () => linuxPlatform, ProcessManager: () => FakeProcessManager.any(), Logger: () => BufferLogger.test(), }); } /// Override the creation of the Resident Compiler to simplify testing. class FakeTestCompiler extends TestCompiler { FakeTestCompiler( super.buildInfo, super.flutterProject, this.residentCompiler, { super.precompiledDillPath, super.testTimeRecorder, } ); final FakeResidentCompiler? residentCompiler; @override Future<ResidentCompiler?> createCompiler() async { return residentCompiler; } } class FakeResidentCompiler extends Fake implements ResidentCompiler { FakeResidentCompiler(this.fileSystem); final FileSystem? fileSystem; CompilerOutput? compilerOutput; bool didShutdown = false; @override Future<CompilerOutput?> recompile( Uri mainUri, List<Uri>? invalidatedFiles, { String? outputPath, PackageConfig? packageConfig, String? projectRootPath, FileSystem? fs, bool suppressErrors = false, bool checkDartPluginRegistry = false, File? dartPluginRegistrant, Uri? nativeAssetsYaml, }) async { if (compilerOutput != null) { fileSystem!.file(compilerOutput!.outputFilename).createSync(recursive: true); } return compilerOutput; } @override void accept() { } @override void reset() { } @override Future<Object> shutdown() async { didShutdown = true; return Object(); } }
flutter/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/test/test_compiler_test.dart", "repo_id": "flutter", "token_count": 2936 }
972
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:io' hide Directory, File; import 'package:dwds/dwds.dart'; import 'package:fake_async/fake_async.dart'; import 'package:flutter_tools/src/artifacts.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/logger.dart'; import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/build_info.dart'; import 'package:flutter_tools/src/build_system/tools/shader_compiler.dart'; import 'package:flutter_tools/src/compile.dart'; import 'package:flutter_tools/src/convert.dart'; import 'package:flutter_tools/src/devfs.dart'; import 'package:flutter_tools/src/globals.dart' as globals; import 'package:flutter_tools/src/isolated/devfs_web.dart'; import 'package:flutter_tools/src/web/compile.dart'; import 'package:flutter_tools/src/web_template.dart'; import 'package:logging/logging.dart' as logging; import 'package:package_config/package_config.dart'; import 'package:shelf/shelf.dart'; import 'package:test/fake.dart'; import 'package:vm_service/vm_service.dart' as vm_service; import '../../src/common.dart'; import '../../src/testbed.dart'; const List<int> kTransparentImage = <int>[ 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x08, 0x06, 0x00, 0x00, 0x00, 0x1F, 0x15, 0xC4, 0x89, 0x00, 0x00, 0x00, 0x0A, 0x49, 0x44, 0x41, 0x54, 0x78, 0x9C, 0x63, 0x00, 0x01, 0x00, 0x00, 0x05, 0x00, 0x01, 0x0D, 0x0A, 0x2D, 0xB4, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE, ]; void main() { late Testbed testbed; late WebAssetServer webAssetServer; late ReleaseAssetServer releaseAssetServer; late Platform linux; late PackageConfig packages; late Platform windows; late FakeHttpServer httpServer; late BufferLogger logger; const bool usesDdcModuleSystem = true; setUpAll(() async { packages = PackageConfig(<Package>[ Package('flutter_tools', Uri.file('/flutter_tools/lib/').normalizePath()), ]); }); setUp(() { httpServer = FakeHttpServer(); linux = FakePlatform(environment: <String, String>{}); windows = FakePlatform( operatingSystem: 'windows', environment: <String, String>{}); logger = BufferLogger.test(); testbed = Testbed( setup: () { webAssetServer = WebAssetServer( httpServer, packages, InternetAddress.loopbackIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.unsound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ); releaseAssetServer = ReleaseAssetServer( globals.fs.file('main.dart').uri, fileSystem: globals.fs, flutterRoot: null, // ignore: avoid_redundant_argument_values platform: FakePlatform(), webBuildDirectory: null, // ignore: avoid_redundant_argument_values ); }, overrides: <Type, Generator>{ Logger: () => logger, }); }); test( '.log() reports warnings', () => testbed.run(() { const String unresolvedUriMessage = 'Unresolved uri:'; const String otherMessage = 'Something bad happened'; final List<logging.LogRecord> events = <logging.LogRecord>[ logging.LogRecord( logging.Level.WARNING, unresolvedUriMessage, 'DartUri', ), logging.LogRecord( logging.Level.WARNING, otherMessage, 'DartUri', ), ]; events.forEach(log); expect(logger.warningText, contains(unresolvedUriMessage)); expect(logger.warningText, contains(otherMessage)); })); test( 'Handles against malformed manifest', () => testbed.run(() async { final File source = globals.fs.file('source') ..writeAsStringSync('main() {}'); final File sourcemap = globals.fs.file('sourcemap') ..writeAsStringSync('{}'); final File metadata = globals.fs.file('metadata') ..writeAsStringSync('{}'); // Missing ending offset. final File manifestMissingOffset = globals.fs.file('manifestA') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.js': <String, Object>{ 'code': <int>[0], 'sourcemap': <int>[0], 'metadata': <int>[0], }, })); final File manifestOutOfBounds = globals.fs.file('manifest') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.js': <String, Object>{ 'code': <int>[0, 100], 'sourcemap': <int>[0], 'metadata': <int>[0], }, })); expect( webAssetServer.write( source, manifestMissingOffset, sourcemap, metadata), isEmpty); expect( webAssetServer.write( source, manifestOutOfBounds, sourcemap, metadata), isEmpty); })); test( 'serves JavaScript files from in memory cache', () => testbed.run(() async { final File source = globals.fs.file('source') ..writeAsStringSync('main() {}'); final File sourcemap = globals.fs.file('sourcemap') ..writeAsStringSync('{}'); final File metadata = globals.fs.file('metadata') ..writeAsStringSync('{}'); final File manifest = globals.fs.file('manifest') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.js': <String, Object>{ 'code': <int>[0, source.lengthSync()], 'sourcemap': <int>[0, 2], 'metadata': <int>[0, 2], }, })); webAssetServer.write(source, manifest, sourcemap, metadata); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.js'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair( HttpHeaders.contentTypeHeader, 'application/javascript'), containsPair(HttpHeaders.etagHeader, isNotNull), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); }, overrides: <Type, Generator>{ Platform: () => linux, })); test( 'serves metadata files from in memory cache', () => testbed.run(() async { const String metadataContents = '{"name":"foo"}'; final File source = globals.fs.file('source') ..writeAsStringSync('main() {}'); final File sourcemap = globals.fs.file('sourcemap') ..writeAsStringSync('{}'); final File metadata = globals.fs.file('metadata') ..writeAsStringSync(metadataContents); final File manifest = globals.fs.file('manifest') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.js': <String, Object>{ 'code': <int>[0, source.lengthSync()], 'sourcemap': <int>[0, sourcemap.lengthSync()], 'metadata': <int>[0, metadata.lengthSync()], }, })); webAssetServer.write(source, manifest, sourcemap, metadata); final String? merged = await webAssetServer .metadataContents('main_module.ddc_merged_metadata'); expect(merged, equals(metadataContents)); final String? single = await webAssetServer.metadataContents('foo.js.metadata'); expect(single, equals(metadataContents)); }, overrides: <Type, Generator>{ Platform: () => linux, })); test( 'Removes leading slashes for valid requests to avoid requesting outside' ' of served directory', () => testbed.run(() async { globals.fs.file('foo.png').createSync(); globals.fs.currentDirectory = globals.fs.directory('project_directory')..createSync(); final File source = globals.fs.file(globals.fs.path.join('web', 'foo.png')) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar////foo.png'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'takes base path into account when serving', () => testbed.run(() async { webAssetServer.basePath = 'base/path'; globals.fs.file('foo.png').createSync(); globals.fs.currentDirectory = globals.fs.directory('project_directory')..createSync(); final File source = globals.fs.file(globals.fs.path.join('web', 'foo.png')) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/base/path/foo.png')), ); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves index.html at the base path', () => testbed.run(() async { webAssetServer.basePath = 'base/path'; const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); globals.fs.file(globals.fs.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', ))..createSync(recursive: true)..writeAsStringSync('flutter.js content'); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/base/path/'))); expect(response.statusCode, HttpStatus.ok); expect(await response.readAsString(), htmlContent); })); test( 'serves index.html at / if href attribute is $kBaseHrefPlaceholder', () => testbed.run(() async { const String htmlContent = '<html><head><base href ="$kBaseHrefPlaceholder"></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); globals.fs.file(globals.fs.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', ))..createSync(recursive: true)..writeAsStringSync('flutter.js content'); final Response response = await webAssetServer .handleRequest(Request('GET', Uri.parse('http://foobar/'))); expect(response.statusCode, HttpStatus.ok); expect(await response.readAsString(), htmlContent.replaceAll(kBaseHrefPlaceholder, '/')); })); test( 'does not serve outside the base path', () => testbed.run(() async { webAssetServer.basePath = 'base/path'; const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); final Response response = await webAssetServer .handleRequest(Request('GET', Uri.parse('http://foobar/'))); expect(response.statusCode, HttpStatus.notFound); })); test( 'parses base path from index.html', () => testbed.run(() async { const String htmlContent = '<html><head><base href="/foo/bar/"></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); final WebAssetServer webAssetServer = WebAssetServer( httpServer, packages, InternetAddress.loopbackIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.unsound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ); expect(webAssetServer.basePath, 'foo/bar'); })); test( 'handles lack of base path in index.html', () => testbed.run(() async { const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); final WebAssetServer webAssetServer = WebAssetServer( httpServer, packages, InternetAddress.loopbackIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.unsound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ); // Defaults to "/" when there's no base element. expect(webAssetServer.basePath, ''); })); test( 'throws if base path is relative', () => testbed.run(() async { const String htmlContent = '<html><head><base href="foo/bar/"></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); expect( () => WebAssetServer( httpServer, packages, InternetAddress.loopbackIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.unsound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ), throwsToolExit(), ); })); test( 'throws if base path does not end with slash', () => testbed.run(() async { const String htmlContent = '<html><head><base href="/foo/bar"></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); expect( () => WebAssetServer( httpServer, packages, InternetAddress.loopbackIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.unsound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ), throwsToolExit(), ); })); test( 'serves JavaScript files from in memory cache not from manifest', () => testbed.run(() async { webAssetServer.writeFile('foo.js', 'main() {}'); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.js'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, '9'), containsPair( HttpHeaders.contentTypeHeader, 'application/javascript'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, utf8.encode('main() {}')); })); test( 'Returns notModified when the ifNoneMatch header matches the etag', () => testbed.run(() async { webAssetServer.writeFile('foo.js', 'main() {}'); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.js'))); final String etag = response.headers[HttpHeaders.etagHeader]!; final Response cachedResponse = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.js'), headers: <String, String>{ HttpHeaders.ifNoneMatchHeader: etag, })); expect(cachedResponse.statusCode, HttpStatus.notModified); expect(await cachedResponse.read().toList(), isEmpty); })); test( 'serves index.html when path is unknown', () => testbed.run(() async { const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); globals.fs.file(globals.fs.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', ))..createSync(recursive: true)..writeAsStringSync('flutter.js content'); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/bar/baz'))); expect(response.statusCode, HttpStatus.ok); expect(await response.readAsString(), htmlContent); })); test( 'does not serve outside the base path', () => testbed.run(() async { webAssetServer.basePath = 'base/path'; const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); final Response response = await webAssetServer .handleRequest(Request('GET', Uri.parse('http://foobar/'))); expect(response.statusCode, HttpStatus.notFound); })); test( 'does not serve index.html when path is inside assets or packages', () => testbed.run(() async { const String htmlContent = '<html><head></head><body id="test"></body></html>'; final Directory webDir = globals.fs.currentDirectory.childDirectory('web')..createSync(); webDir.childFile('index.html').writeAsStringSync(htmlContent); Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/assets/foo/bar.png'))); expect(response.statusCode, HttpStatus.notFound); response = await webAssetServer.handleRequest(Request( 'GET', Uri.parse('http://foobar/packages/foo/bar.dart.js'))); expect(response.statusCode, HttpStatus.notFound); webAssetServer.basePath = 'base/path'; response = await webAssetServer.handleRequest(Request('GET', Uri.parse('http://foobar/base/path/assets/foo/bar.png'))); expect(response.statusCode, HttpStatus.notFound); response = await webAssetServer.handleRequest(Request('GET', Uri.parse('http://foobar/base/path/packages/foo/bar.dart.js'))); expect(response.statusCode, HttpStatus.notFound); })); test( 'serves default index.html', () => testbed.run(() async { globals.fs.file(globals.fs.path.join( globals.artifacts!.getHostArtifact(HostArtifact.flutterJsDirectory).path, 'flutter.js', ))..createSync(recursive: true)..writeAsStringSync('flutter.js content'); final Response response = await webAssetServer .handleRequest(Request('GET', Uri.parse('http://foobar/'))); expect(response.statusCode, HttpStatus.ok); expect((await response.read().toList()).first, containsAllInOrder(utf8.encode('<html>'))); })); test( 'handles web server paths without .lib extension', () => testbed.run(() async { final File source = globals.fs.file('source') ..writeAsStringSync('main() {}'); final File sourcemap = globals.fs.file('sourcemap') ..writeAsStringSync('{}'); final File metadata = globals.fs.file('metadata') ..writeAsStringSync('{}'); final File manifest = globals.fs.file('manifest') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.dart.lib.js': <String, Object>{ 'code': <int>[0, source.lengthSync()], 'sourcemap': <int>[0, 2], 'metadata': <int>[0, 2], }, })); webAssetServer.write(source, manifest, sourcemap, metadata); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.dart.js'))); expect(response.statusCode, HttpStatus.ok); })); test( 'serves JavaScript files from in memory cache on Windows', () => testbed.run(() async { final File source = globals.fs.file('source') ..writeAsStringSync('main() {}'); final File sourcemap = globals.fs.file('sourcemap') ..writeAsStringSync('{}'); final File metadata = globals.fs.file('metadata') ..writeAsStringSync('{}'); final File manifest = globals.fs.file('manifest') ..writeAsStringSync(json.encode(<String, Object>{ '/foo.js': <String, Object>{ 'code': <int>[0, source.lengthSync()], 'sourcemap': <int>[0, 2], 'metadata': <int>[0, 2], }, })); webAssetServer.write(source, manifest, sourcemap, metadata); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://localhost/foo.js'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair( HttpHeaders.contentTypeHeader, 'application/javascript'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); }, overrides: <Type, Generator>{ Platform: () => windows, })); test( 'serves asset files from in filesystem with url-encoded paths', () => testbed.run(() async { final File source = globals.fs.file(globals.fs.path .join('build', 'flutter_assets', Uri.encodeFull('abcd่ฑกๅฝขๅญ—.png'))) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest(Request( 'GET', Uri.parse( 'http://foobar/assets/abcd%25E8%25B1%25A1%25E5%25BD%25A2%25E5%25AD%2597.png'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves files from web directory', () => testbed.run(() async { final File source = globals.fs.file(globals.fs.path.join('web', 'foo.png')) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.png'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves asset files from in filesystem with known mime type on Windows', () => testbed.run(() async { final File source = globals.fs.file( globals.fs.path.join('build', 'flutter_assets', 'foo.png')) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/assets/foo.png'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), containsPair(HttpHeaders.etagHeader, isNotNull), containsPair(HttpHeaders.cacheControlHeader, 'max-age=0, must-revalidate'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); }, overrides: <Type, Generator>{ Platform: () => windows, })); test( 'serves Dart files from in filesystem on Linux/macOS', () => testbed.run(() async { final File source = globals.fs.file('foo.dart').absolute ..createSync(recursive: true) ..writeAsStringSync('void main() {}'); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.dart'))); expect( response.headers, containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString())); expect((await response.read().toList()).first, source.readAsBytesSync()); }, overrides: <Type, Generator>{ Platform: () => linux, })); test( 'serves asset files from in filesystem with known mime type', () => testbed.run(() async { final File source = globals.fs.file( globals.fs.path.join('build', 'flutter_assets', 'foo.png')) ..createSync(recursive: true) ..writeAsBytesSync(kTransparentImage); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/assets/foo.png'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, source.lengthSync().toString()), containsPair(HttpHeaders.contentTypeHeader, 'image/png'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves asset files from in filesystem with known mime type and empty content', () => testbed.run(() async { final File source = globals.fs .file(globals.fs.path.join('web', 'foo.js')) ..createSync(recursive: true); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/foo.js'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, '0'), containsPair( HttpHeaders.contentTypeHeader, 'text/javascript'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves asset files from in filesystem with unknown mime type', () => testbed.run(() async { final File source = globals.fs .file(globals.fs.path.join('build', 'flutter_assets', 'foo')) ..createSync(recursive: true) ..writeAsBytesSync(List<int>.filled(100, 0)); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/assets/foo'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, '100'), containsPair(HttpHeaders.contentTypeHeader, 'application/octet-stream'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'serves valid etag header for asset files with non-ascii characters', () => testbed.run(() async { globals.fs .file(globals.fs.path.join('build', 'flutter_assets', 'fooฯ€')) ..createSync(recursive: true) ..writeAsBytesSync(<int>[1, 2, 3]); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http://foobar/assets/fooฯ€'))); final String etag = response.headers[HttpHeaders.etagHeader]!; expect( etag.runes, everyElement(predicate((int char) => char < 255))); })); test( 'serves /packages/<package>/<path> files as if they were ' 'package:<package>/<path> uris', () => testbed.run(() async { final Uri? expectedUri = packages.resolve(Uri.parse('package:flutter_tools/foo.dart')); final File source = globals.fs.file(globals.fs.path.fromUri(expectedUri)) ..createSync(recursive: true) ..writeAsBytesSync(<int>[1, 2, 3]); final Response response = await webAssetServer.handleRequest( Request('GET', Uri.parse('http:///packages/flutter_tools/foo.dart'))); expect( response.headers, allOf(<Matcher>[ containsPair(HttpHeaders.contentLengthHeader, '3'), containsPair(HttpHeaders.contentTypeHeader, 'text/x-dart'), ])); expect((await response.read().toList()).first, source.readAsBytesSync()); })); test( 'calling dispose closes the http server', () => testbed.run(() async { await webAssetServer.dispose(); expect(httpServer.closed, true); })); test( 'Can start web server with specified DDC module system assets', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); outputFile.parent.childFile('a.metadata').writeAsStringSync('{}'); final ResidentCompiler residentCompiler = FakeResidentCompiler() ..output = const CompilerOutput('a', 0, <Uri>[]); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, nullSafetyMode: NullSafetyMode.unsound, ), enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.unsound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.html, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.flutterJs.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final Uri uri = await webDevFS.create(); webDevFS.webAssetServer.entrypointCacheDirectory = globals.fs.currentDirectory; final String webPrecompiledSdk = globals.artifacts! .getHostArtifact(HostArtifact.webPrecompiledDdcSdk) .path; final String webPrecompiledSdkSourcemaps = globals.artifacts! .getHostArtifact(HostArtifact.webPrecompiledDdcSdkSourcemaps) .path; final String webPrecompiledCanvaskitSdk = globals.artifacts! .getHostArtifact(HostArtifact.webPrecompiledDdcCanvaskitSdk) .path; final String webPrecompiledCanvaskitSdkSourcemaps = globals .artifacts! .getHostArtifact( HostArtifact.webPrecompiledDdcCanvaskitSdkSourcemaps) .path; globals.fs.currentDirectory .childDirectory('lib') .childFile('web_entrypoint.dart') ..createSync(recursive: true) ..writeAsStringSync('GENERATED'); globals.fs.file(webPrecompiledSdk) ..createSync(recursive: true) ..writeAsStringSync('HELLO'); globals.fs.file(webPrecompiledSdkSourcemaps) ..createSync(recursive: true) ..writeAsStringSync('THERE'); globals.fs.file(webPrecompiledCanvaskitSdk) ..createSync(recursive: true) ..writeAsStringSync('OL'); globals.fs.file(webPrecompiledCanvaskitSdkSourcemaps) ..createSync(recursive: true) ..writeAsStringSync('CHUM'); await webDevFS.update( mainUri: globals.fs.file(globals.fs.path.join('lib', 'main.dart')).uri, generator: residentCompiler, trackWidgetCreation: true, bundleFirstUpload: true, invalidatedFiles: <Uri>[], packageConfig: PackageConfig.empty, pathToReload: '', dillOutputPath: 'out.dill', shaderCompiler: const FakeShaderCompiler(), ); expect(webDevFS.webAssetServer.getFile('ddc_module_loader.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('stack_trace_mapper.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('main.dart'), isNotNull); expect(webDevFS.webAssetServer.getFile('manifest.json'), isNotNull); expect(webDevFS.webAssetServer.getFile('flutter.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('flutter_service_worker.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('version.json'), isNotNull); expect( await webDevFS.webAssetServer.dartSourceContents('dart_sdk.js'), 'HELLO'); expect( await webDevFS.webAssetServer .dartSourceContents('dart_sdk.js.map'), 'THERE'); // Update to the SDK. globals.fs.file(webPrecompiledSdk).writeAsStringSync('BELLOW'); // New SDK should be visible.. expect( await webDevFS.webAssetServer.dartSourceContents('dart_sdk.js'), 'BELLOW'); // Generated entrypoint. expect( await webDevFS.webAssetServer .dartSourceContents('web_entrypoint.dart'), contains('GENERATED')); // served on localhost expect(uri.host, 'localhost'); await webDevFS.destroy(); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), })); test( 'Can start web server with specified assets in sound null safety mode', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); outputFile.parent.childFile('a.metadata').writeAsStringSync('{}'); final ResidentCompiler residentCompiler = FakeResidentCompiler() ..output = const CompilerOutput('a', 0, <Uri>[]); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, ), enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.sound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.html, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.flutterJs.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final Uri uri = await webDevFS.create(); webDevFS.webAssetServer.entrypointCacheDirectory = globals.fs.currentDirectory; globals.fs.currentDirectory .childDirectory('lib') .childFile('web_entrypoint.dart') ..createSync(recursive: true) ..writeAsStringSync('GENERATED'); final String webPrecompiledSdk = globals.artifacts! .getHostArtifact(HostArtifact.webPrecompiledDdcSoundSdk) .path; final String webPrecompiledSdkSourcemaps = globals.artifacts! .getHostArtifact( HostArtifact.webPrecompiledDdcSoundSdkSourcemaps) .path; final String webPrecompiledCanvaskitSdk = globals.artifacts! .getHostArtifact( HostArtifact.webPrecompiledDdcCanvaskitSoundSdk) .path; final String webPrecompiledCanvaskitSdkSourcemaps = globals .artifacts! .getHostArtifact( HostArtifact.webPrecompiledDdcCanvaskitSoundSdkSourcemaps) .path; globals.fs.file(webPrecompiledSdk) ..createSync(recursive: true) ..writeAsStringSync('HELLO'); globals.fs.file(webPrecompiledSdkSourcemaps) ..createSync(recursive: true) ..writeAsStringSync('THERE'); globals.fs.file(webPrecompiledCanvaskitSdk) ..createSync(recursive: true) ..writeAsStringSync('OL'); globals.fs.file(webPrecompiledCanvaskitSdkSourcemaps) ..createSync(recursive: true) ..writeAsStringSync('CHUM'); await webDevFS.update( mainUri: globals.fs.file(globals.fs.path.join('lib', 'main.dart')).uri, generator: residentCompiler, trackWidgetCreation: true, bundleFirstUpload: true, invalidatedFiles: <Uri>[], packageConfig: PackageConfig.empty, pathToReload: '', dillOutputPath: '', shaderCompiler: const FakeShaderCompiler(), ); expect(webDevFS.webAssetServer.getFile('ddc_module_loader.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('stack_trace_mapper.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('main.dart'), isNotNull); expect(webDevFS.webAssetServer.getFile('manifest.json'), isNotNull); expect(webDevFS.webAssetServer.getFile('flutter.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('flutter_service_worker.js'), isNotNull); expect(webDevFS.webAssetServer.getFile('version.json'), isNotNull); expect( await webDevFS.webAssetServer.dartSourceContents('dart_sdk.js'), 'HELLO'); expect( await webDevFS.webAssetServer .dartSourceContents('dart_sdk.js.map'), 'THERE'); // Update to the SDK. globals.fs.file(webPrecompiledSdk).writeAsStringSync('BELLOW'); // New SDK should be visible.. expect( await webDevFS.webAssetServer.dartSourceContents('dart_sdk.js'), 'BELLOW'); // Generated entrypoint. expect( await webDevFS.webAssetServer .dartSourceContents('web_entrypoint.dart'), contains('GENERATED')); // served on localhost expect(uri.host, 'localhost'); await webDevFS.destroy(); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), })); test( '.connect() will never call vmServiceFactory twice', () => testbed.run(() async { await FakeAsync().run<Future<void>>((FakeAsync time) { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); outputFile.parent.childFile('a.metadata').writeAsStringSync('{}'); final WebDevFS webDevFS = WebDevFS( // if this is any other value, we will do a real ip lookup hostname: 'any', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, ), enableDwds: true, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, extraHeaders: const <String, String>{}, chromiumLauncher: null, nullSafetyMode: NullSafetyMode.sound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final FakeAppConnection firstConnection = FakeAppConnection(); final FakeAppConnection secondConnection = FakeAppConnection(); final Future<void> done = webDevFS.create().then<void>((Uri _) { // In non-test mode, webDevFS.create() would have initialized DWDS webDevFS.webAssetServer.dwds = FakeDwds( <AppConnection>[firstConnection, secondConnection]); int vmServiceFactoryInvocationCount = 0; Future<vm_service.VmService> vmServiceFactory(Uri uri, {CompressionOptions? compression, required Logger logger}) { if (vmServiceFactoryInvocationCount > 0) { fail('Called vmServiceFactory twice!'); } vmServiceFactoryInvocationCount += 1; return Future<vm_service.VmService>.delayed( const Duration(seconds: 2), () => FakeVmService(), ); } return webDevFS .connect(false, vmServiceFactory: vmServiceFactory) .then<void>((ConnectionResult? firstConnectionResult) { return webDevFS.destroy(); }); }); time.elapse(const Duration(seconds: 1)); time.elapse(const Duration(seconds: 2)); return done; }); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), })); test( 'Can start web server with hostname any', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); final WebDevFS webDevFS = WebDevFS( hostname: 'any', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, buildInfo: BuildInfo.debug, enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullAssertions: true, nativeNullAssertions: true, nullSafetyMode: NullSafetyMode.sound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final Uri uri = await webDevFS.create(); expect(uri.host, 'localhost'); await webDevFS.destroy(); })); test( 'Can start web server with canvaskit enabled', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: const BuildInfo(BuildMode.debug, '', treeShakeIcons: false, dartDefines: <String>[ 'FLUTTER_WEB_USE_SKIA=true', ]), enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.sound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); await webDevFS.create(); expect( webDevFS.webAssetServer.webRenderer, WebRendererMode.canvaskit); await webDevFS.destroy(); })); test( 'Can start web server with auto detect enabled', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: const BuildInfo(BuildMode.debug, '', treeShakeIcons: false, dartDefines: <String>[ 'FLUTTER_WEB_AUTO_DETECT=true', ]), enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.sound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.auto, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); await webDevFS.create(); expect(webDevFS.webAssetServer.webRenderer, WebRendererMode.auto); await webDevFS.destroy(); })); test( 'Can start web server with tls connection', () => testbed.run(() async { final String dataPath = globals.fs.path.join( getFlutterRoot(), 'packages', 'flutter_tools', 'test', 'data', 'asset_test', ); final String dummyCertPath = globals.fs.path.join(dataPath, 'tls_cert', 'dummy-cert.pem'); final String dummyCertKeyPath = globals.fs.path.join(dataPath, 'tls_cert', 'dummy-key.pem'); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: dummyCertPath, tlsCertKeyPath: dummyCertKeyPath, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: BuildInfo.debug, enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.unsound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final Uri uri = await webDevFS.create(); // Ensure the connection established is secure expect(uri.scheme, 'https'); await webDevFS.destroy(); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), })); test('allows frame embedding', () async { final WebAssetServer webAssetServer = await WebAssetServer.start( null, 'localhost', 0, null, null, null, true, true, true, const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, ), false, false, Uri.base, null, const <String, String>{}, NullSafetyMode.unsound, webRenderer: WebRendererMode.canvaskit, testMode: true); expect(webAssetServer.defaultResponseHeaders['x-frame-options'], null); await webAssetServer.dispose(); }); test('passes on extra headers', () async { const String extraHeaderKey = 'hurray'; const String extraHeaderValue = 'flutter'; final WebAssetServer webAssetServer = await WebAssetServer.start( null, 'localhost', 0, null, null, null, true, true, true, const BuildInfo( BuildMode.debug, '', treeShakeIcons: false, ), false, false, Uri.base, null, const <String, String>{ extraHeaderKey: extraHeaderValue, }, NullSafetyMode.unsound, webRenderer: WebRendererMode.canvaskit, testMode: true); expect(webAssetServer.defaultResponseHeaders[extraHeaderKey], <String>[extraHeaderValue]); await webAssetServer.dispose(); }); test( 'WebAssetServer responds to POST requests with 404 not found', () => testbed.run(() async { final Response response = await webAssetServer.handleRequest( Request('POST', Uri.parse('http://foobar/something')), ); expect(response.statusCode, 404); })); test( 'ReleaseAssetServer responds to POST requests with 404 not found', () => testbed.run(() async { final Response response = await releaseAssetServer.handle( Request('POST', Uri.parse('http://foobar/something')), ); expect(response.statusCode, 404); })); test( 'WebAssetServer strips leading base href off of asset requests', () => testbed.run(() async { const String htmlContent = '<html><head><base href="/foo/"></head><body id="test"></body></html>'; globals.fs.currentDirectory .childDirectory('web') .childFile('index.html') ..createSync(recursive: true) ..writeAsStringSync(htmlContent); final WebAssetServer webAssetServer = WebAssetServer( FakeHttpServer(), PackageConfig.empty, InternetAddress.anyIPv4, <String, String>{}, <String, String>{}, NullSafetyMode.sound, usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, ); expect( await webAssetServer .metadataContents('foo/main_module.ddc_merged_metadata'), null); // Not base href. expect( () async => webAssetServer .metadataContents('bar/main_module.ddc_merged_metadata'), throwsException); })); test( 'DevFS URI includes any specified base path.', () => testbed.run(() async { final File outputFile = globals.fs .file(globals.fs.path.join('lib', 'main.dart')) ..createSync(recursive: true); const String htmlContent = '<html><head><base href="/foo/"></head><body id="test"></body></html>'; globals.fs.currentDirectory .childDirectory('web') .childFile('index.html') ..createSync(recursive: true) ..writeAsStringSync(htmlContent); outputFile.parent.childFile('a.sources').writeAsStringSync(''); outputFile.parent.childFile('a.json').writeAsStringSync('{}'); outputFile.parent.childFile('a.map').writeAsStringSync('{}'); outputFile.parent.childFile('a.metadata').writeAsStringSync('{}'); final WebDevFS webDevFS = WebDevFS( hostname: 'localhost', port: 0, tlsCertPath: null, tlsCertKeyPath: null, packagesFilePath: '.packages', urlTunneller: null, // ignore: avoid_redundant_argument_values useSseForDebugProxy: true, useSseForDebugBackend: true, useSseForInjectedClient: true, nullAssertions: true, nativeNullAssertions: true, buildInfo: BuildInfo.debug, enableDwds: false, enableDds: false, entrypoint: Uri.base, testMode: true, expressionCompiler: null, // ignore: avoid_redundant_argument_values extraHeaders: const <String, String>{}, chromiumLauncher: null, // ignore: avoid_redundant_argument_values nullSafetyMode: NullSafetyMode.unsound, ddcModuleSystem: usesDdcModuleSystem, webRenderer: WebRendererMode.canvaskit, rootDirectory: globals.fs.currentDirectory, ); webDevFS.ddcModuleLoaderJS.createSync(recursive: true); webDevFS.stackTraceMapper.createSync(recursive: true); final Uri uri = await webDevFS.create(); // served on localhost expect(uri.host, 'localhost'); // Matches base URI specified in html. expect(uri.path, '/foo'); await webDevFS.destroy(); }, overrides: <Type, Generator>{ Artifacts: () => Artifacts.test(), })); } class FakeHttpServer extends Fake implements HttpServer { bool closed = false; @override Future<void> close({bool force = false}) async { closed = true; } } class FakeResidentCompiler extends Fake implements ResidentCompiler { CompilerOutput? output; @override void addFileSystemRoot(String root) {} @override Future<CompilerOutput?> recompile( Uri mainUri, List<Uri>? invalidatedFiles, { String? outputPath, PackageConfig? packageConfig, String? projectRootPath, FileSystem? fs, bool suppressErrors = false, bool checkDartPluginRegistry = false, File? dartPluginRegistrant, Uri? nativeAssetsYaml, }) async { return output; } } class FakeShaderCompiler implements DevelopmentShaderCompiler { const FakeShaderCompiler(); @override void configureCompiler(TargetPlatform? platform) {} @override Future<DevFSContent> recompileShader(DevFSContent inputShader) { throw UnimplementedError(); } } class FakeDwds extends Fake implements Dwds { FakeDwds(Iterable<AppConnection> connectedAppsIterable) : connectedApps = Stream<AppConnection>.fromIterable(connectedAppsIterable); @override final Stream<AppConnection> connectedApps; @override Future<DebugConnection> debugConnection(AppConnection appConnection) => Future<DebugConnection>.value(FakeDebugConnection()); } class FakeAppConnection extends Fake implements AppConnection { @override void runMain() {} } class FakeDebugConnection extends Fake implements DebugConnection { FakeDebugConnection({ this.uri = 'http://foo', }); @override final String uri; } class FakeVmService extends Fake implements vm_service.VmService {}
flutter/packages/flutter_tools/test/general.shard/web/devfs_web_ddc_modules_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/web/devfs_web_ddc_modules_test.dart", "repo_id": "flutter", "token_count": 32161 }
973
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/template.dart'; import 'package:flutter_tools/src/flutter_plugins.dart'; import 'package:flutter_tools/src/isolated/mustache_template.dart'; import 'package:flutter_tools/src/platform_plugins.dart'; import 'package:flutter_tools/src/plugins.dart'; import 'package:flutter_tools/src/project.dart'; import '../../src/common.dart'; const TemplateRenderer renderer = MustacheTemplateRenderer(); void main() { testWithoutContext('Win32 injects Win32 plugins', () async { final FileSystem fileSystem = MemoryFileSystem.test(); setUpProject(fileSystem); final FlutterProject flutterProject = FlutterProject.fromDirectoryTest(fileSystem.currentDirectory); await writeWindowsPluginFiles(flutterProject, <Plugin>[ Plugin( name: 'test', path: 'foo', defaultPackagePlatforms: const <String, String>{}, pluginDartClassPlatforms: const <String, String>{}, platforms: const <String, PluginPlatform>{ WindowsPlugin.kConfigKey: WindowsPlugin( name: 'test', pluginClass: 'Foo', variants: <PluginPlatformVariant>{PluginPlatformVariant.win32}, ), }, dependencies: <String>[], isDirectDependency: true, ), ], renderer); final Directory managed = flutterProject.windows.managedDirectory; expect(flutterProject.windows.generatedPluginCmakeFile, exists); expect(managed.childFile('generated_plugin_registrant.h'), exists); expect( managed.childFile('generated_plugin_registrant.cc').readAsStringSync(), contains('#include <test/foo.h>'), ); }); } void setUpProject(FileSystem fileSystem) { fileSystem.file('pubspec.yaml').createSync(); }
flutter/packages/flutter_tools/test/general.shard/windows/plugins_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/general.shard/windows/plugins_test.dart", "repo_id": "flutter", "token_count": 717 }
974
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; void main() { late Directory tempDir; setUp(() async { tempDir = createResolvedTempDirectorySync('gradle_daemon_test.'); }); tearDown(() async { tryToDelete(tempDir); }); testWithoutContext( 'gradle task succeeds when adding plugins with gradle daemon enabled', () async { final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); final Directory appDir = tempDir.childDirectory('testapp'); final Directory androidDir = appDir.childDirectory('android'); // Create dummy plugins processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'create', '--template=plugin', '--platforms=android', 'test_plugin_one', ], workingDirectory: tempDir.path); processManager.runSync(<String>[ flutterBin, ...getLocalEngineArguments(), 'create', '--template=plugin', '--platforms=android', 'test_plugin_two', ], workingDirectory: tempDir.path); // Create a new flutter project. ProcessResult result = await processManager.run(<String>[ flutterBin, 'create', appDir.path, '--project-name=testapp', ], workingDirectory: tempDir.path); expect(result, const ProcessResultMatcher()); // Enable gradle daemon for this project final File gradleProperties = androidDir.childFile('gradle.properties'); gradleProperties.writeAsStringSync(r''' org.gradle.daemon=true ''', mode: FileMode.append); // TODO(gustl22): Override with in 'gradle.properties' has no effect, set GRADLE_OPTS instead, // see https://github.com/gradle/gradle/issues/19501 final Map<String, String> envVars = <String, String>{ 'GRADLE_OPTS': '-Dorg.gradle.daemon=true' }; // Stop gradle daemon result = await processManager.run(<String>[ androidDir.childFile('gradlew').path, '--stop', ], workingDirectory: androidDir.path); expect(result, const ProcessResultMatcher()); result = await processManager.run(<String>[ flutterBin, 'pub', 'add', 'test_plugin_one', '--path', '../test_plugin_one', ], workingDirectory: appDir.path, environment: envVars); expect(result, const ProcessResultMatcher()); // Build with gradle daemon result = await processManager.run(<String>[ flutterBin, 'build', 'apk', '--debug', ], workingDirectory: appDir.path, environment: envVars); expect(result, const ProcessResultMatcher()); // Add second plugin result = await processManager.run(<String>[ flutterBin, 'pub', 'add', 'test_plugin_two', '--path', '../test_plugin_two', ], workingDirectory: appDir.path, environment: envVars); expect(result, const ProcessResultMatcher()); // Build again with cached plugin through daemon result = await processManager.run(<String>[ flutterBin, 'build', 'apk', '--debug', ], workingDirectory: appDir.path, environment: envVars); expect(result, const ProcessResultMatcher()); }); }
flutter/packages/flutter_tools/test/integration.shard/android_gradle_daemon_cache_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/android_gradle_daemon_cache_test.dart", "repo_id": "flutter", "token_count": 1277 }
975
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file_testing/file_testing.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; void main() { test('flutter build macOS --config only updates generated xcconfig file without performing build', () async { final String workingDirectory = fileSystem.path.join( getFlutterRoot(), 'dev', 'integration_tests', 'flutter_gallery', ); final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); await processManager.run(<String>[ flutterBin, ...getLocalEngineArguments(), 'clean', ], workingDirectory: workingDirectory); final List<String> buildCommand = <String>[ flutterBin, ...getLocalEngineArguments(), 'build', 'macos', '--config-only', '--release', '--obfuscate', '--split-debug-info=info', ]; final ProcessResult firstRunResult = await processManager.run(buildCommand, workingDirectory: workingDirectory); expect(firstRunResult, const ProcessResultMatcher(stdoutPattern: 'Running pod install')); final File generatedConfig = fileSystem.file(fileSystem.path.join( workingDirectory, 'macos', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig', )); // Config is updated if command succeeded. expect(generatedConfig, exists); expect(generatedConfig.readAsStringSync(), contains('DART_OBFUSCATION=true')); // file that only exists if app was fully built. final File frameworkPlist = fileSystem.file(fileSystem.path.join( workingDirectory, 'build', 'macos', 'Build', 'Products', 'Release', 'App.framework', 'Resources', 'Info.plist' )); expect(frameworkPlist, isNot(exists)); // Run again with no changes. final ProcessResult secondRunResult = await processManager.run(buildCommand, workingDirectory: workingDirectory); expect(secondRunResult, const ProcessResultMatcher()); }, skip: !platform.isMacOS); // [intended] macOS builds only work on macos. }
flutter/packages/flutter_tools/test/integration.shard/build_macos_config_only_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/build_macos_config_only_test.dart", "repo_id": "flutter", "token_count": 828 }
976
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; void main() { final String dartBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'dart'); late Directory tempDir; setUp(() { tempDir = createResolvedTempDirectorySync('exit_code_test.'); }); tearDown(() { tryToDelete(tempDir); }); testWithoutContext('dart.sh/bat can return a zero exit code', () async { tempDir.childFile('main.dart') .writeAsStringSync(''' import 'dart:io'; void main() { exit(0); } '''); final ProcessResult result = await processManager.run(<String>[ dartBin, fileSystem.path.join(tempDir.path, 'main.dart'), ]); expect(result, const ProcessResultMatcher()); }); testWithoutContext('dart.sh/bat can return a non-zero exit code', () async { tempDir.childFile('main.dart') .writeAsStringSync(''' import 'dart:io'; void main() { exit(1); } '''); final ProcessResult result = await processManager.run(<String>[ dartBin, fileSystem.path.join(tempDir.path, 'main.dart'), ]); expect(result, const ProcessResultMatcher(exitCode: 1)); }); }
flutter/packages/flutter_tools/test/integration.shard/exit_code_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/exit_code_test.dart", "repo_id": "flutter", "token_count": 496 }
977
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/file.dart'; import 'package:vm_service/vm_service.dart'; import '../src/common.dart'; import 'test_data/hot_reload_project.dart'; import 'test_driver.dart'; import 'test_utils.dart'; void main() { late Directory tempDir; final HotReloadProject project = HotReloadProject(); late FlutterRunTestDriver flutter; setUp(() async { tempDir = createResolvedTempDirectorySync('hot_reload_test.'); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir); }); tearDown(() async { await flutter.stop(); tryToDelete(tempDir); }); testWithoutContext('hot reload works without error', () async { await flutter.run(); await flutter.hotReload(); }); testWithoutContext('multiple overlapping hot reload are debounced and queued', () async { await flutter.run(); // Capture how many *real* hot reloads occur. int numReloads = 0; final StreamSubscription<void> subscription = flutter.stdout .map(parseFlutterResponse) .where(_isHotReloadCompletionEvent) .listen((_) => numReloads++); // To reduce tests flaking, override the debounce timer to something higher than // the default to ensure the hot reloads that are supposed to arrive within the // debounce period will even on slower CI machines. const int hotReloadDebounceOverrideMs = 250; const Duration delay = Duration(milliseconds: hotReloadDebounceOverrideMs * 2); Future<void> doReload([void _]) => flutter.hotReload(debounce: true, debounceDurationOverrideMs: hotReloadDebounceOverrideMs); try { await Future.wait<void>(<Future<void>>[ doReload(), doReload(), Future<void>.delayed(delay).then(doReload), Future<void>.delayed(delay).then(doReload), ]); // We should only get two reloads, as the first two will have been // merged together by the debounce, and the second two also. expect(numReloads, equals(2)); } finally { await subscription.cancel(); } }); testWithoutContext('newly added code executes during hot reload', () async { final StringBuffer stdout = StringBuffer(); final StreamSubscription<String> subscription = flutter.stdout.listen(stdout.writeln); await flutter.run(); project.uncommentHotReloadPrint(); try { await flutter.hotReload(); expect(stdout.toString(), contains('(((((RELOAD WORKED)))))')); } finally { await subscription.cancel(); } }); testWithoutContext('hot restart works without error', () async { await flutter.run(); await flutter.hotRestart(); }); testWithoutContext('breakpoints are hit after hot reload', () async { Isolate isolate; final Completer<void> sawTick1 = Completer<void>(); final Completer<void> sawDebuggerPausedMessage = Completer<void>(); final StreamSubscription<String> subscription = flutter.stdout.listen( (String line) { if (line.contains('((((TICK 1))))')) { expect(sawTick1.isCompleted, isFalse); sawTick1.complete(); } if (line.contains('The application is paused in the debugger on a breakpoint.')) { expect(sawDebuggerPausedMessage.isCompleted, isFalse); sawDebuggerPausedMessage.complete(); } }, ); await flutter.run(withDebugger: true, startPaused: true); await flutter.resume(); // we start paused so we can set up our TICK 1 listener before the app starts unawaited(sawTick1.future.timeout( const Duration(seconds: 5), onTimeout: () { // This print is useful for people debugging this test. Normally we would avoid printing in // a test but this is an exception because it's useful ambient information. // ignore: avoid_print print('The test app is taking longer than expected to print its synchronization line...'); }, )); printOnFailure('waiting for synchronization line...'); await sawTick1.future; // after this, app is in steady state await flutter.addBreakpoint( project.scheduledBreakpointUri, project.scheduledBreakpointLine, ); await Future<void>.delayed(const Duration(seconds: 2)); await flutter.hotReload(); // reload triggers code which eventually hits the breakpoint isolate = await flutter.waitForPause(); expect(isolate.pauseEvent?.kind, equals(EventKind.kPauseBreakpoint)); await flutter.resume(); await flutter.addBreakpoint( project.buildBreakpointUri, project.buildBreakpointLine, ); bool reloaded = false; final Future<void> reloadFuture = flutter.hotReload().then((void value) { reloaded = true; }); printOnFailure('waiting for pause...'); isolate = await flutter.waitForPause(); expect(isolate.pauseEvent?.kind, equals(EventKind.kPauseBreakpoint)); printOnFailure('waiting for debugger message...'); await sawDebuggerPausedMessage.future; expect(reloaded, isFalse); printOnFailure('waiting for resume...'); await flutter.resume(); printOnFailure('waiting for reload future...'); await reloadFuture; expect(reloaded, isTrue); reloaded = false; printOnFailure('subscription cancel...'); await subscription.cancel(); }); testWithoutContext("hot reload doesn't reassemble if paused", () async { final Completer<void> sawTick1 = Completer<void>(); final Completer<void> sawDebuggerPausedMessage1 = Completer<void>(); final Completer<void> sawDebuggerPausedMessage2 = Completer<void>(); final StreamSubscription<String> subscription = flutter.stdout.listen( (String line) { printOnFailure('[LOG]:"$line"'); if (line.contains('(((TICK 1)))')) { expect(sawTick1.isCompleted, isFalse); sawTick1.complete(); } if (line.contains('The application is paused in the debugger on a breakpoint.')) { expect(sawDebuggerPausedMessage1.isCompleted, isFalse); sawDebuggerPausedMessage1.complete(); } if (line.contains('The application is paused in the debugger on a breakpoint; interface might not update.')) { expect(sawDebuggerPausedMessage2.isCompleted, isFalse); sawDebuggerPausedMessage2.complete(); } }, ); await flutter.run(withDebugger: true); await Future<void>.delayed(const Duration(seconds: 1)); await sawTick1.future; await flutter.addBreakpoint( project.buildBreakpointUri, project.buildBreakpointLine, ); bool reloaded = false; await Future<void>.delayed(const Duration(seconds: 1)); final Future<void> reloadFuture = flutter.hotReload().then((void value) { reloaded = true; }); final Isolate isolate = await flutter.waitForPause(); expect(isolate.pauseEvent?.kind, equals(EventKind.kPauseBreakpoint)); expect(reloaded, isFalse); await sawDebuggerPausedMessage1.future; // this is the one where it say "uh, you broke into the debugger while reloading" await reloadFuture; // this is the one where it times out because you're in the debugger expect(reloaded, isTrue); await flutter.hotReload(); // now we're already paused await sawDebuggerPausedMessage2.future; // so we just get told that nothing is going to happen await flutter.resume(); await subscription.cancel(); }); } bool _isHotReloadCompletionEvent(Map<String, Object?>? event) { return event != null && event['event'] == 'app.progress' && event['params'] != null && (event['params']! as Map<String, Object?>)['progressId'] == 'hot.reload' && (event['params']! as Map<String, Object?>)['finished'] == true; }
flutter/packages/flutter_tools/test/integration.shard/hot_reload_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/hot_reload_test.dart", "repo_id": "flutter", "token_count": 2747 }
978
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:file/file.dart'; import '../test_utils.dart'; import 'project.dart'; class GenL10nProject extends Project { GenL10nProject({required this.useNamedParameters}); @override Future<void> setUpIn(Directory dir, { bool useDeferredLoading = false, bool useSyntheticPackage = false, }) { this.dir = dir; writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_en.arb'), appEn); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_en_CA.arb'), appEnCa); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_en_GB.arb'), appEnGb); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_es.arb'), appEs); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_es_419.arb'), appEs419); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_zh.arb'), appZh); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_zh_Hant.arb'), appZhHant); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_zh_Hans.arb'), appZhHans); writeFile(fileSystem.path.join(dir.path, 'lib', 'l10n', 'app_zh_Hant_TW.arb'), appZhHantTw); writeFile(fileSystem.path.join(dir.path, 'l10n.yaml'), l10nYaml( useDeferredLoading: useDeferredLoading, useSyntheticPackage: useSyntheticPackage, useNamedParameters: useNamedParameters, )); return super.setUpIn(dir); } @override final String pubspec = ''' name: test_l10n_project environment: sdk: '>=3.2.0-0 <4.0.0' dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter intl: any # Pick up the pinned version from flutter_localizations '''; String? _main; @override String get main => _main ??= (useNamedParameters ? _getMainWithNamedParameters() : _getMain()); final bool useNamedParameters; final String appEn = r''' { "@@locale": "en", "helloWorld": "Hello World", "@helloWorld": { "description": "The conventional newborn programmer greeting" }, "helloNewlineWorld": "Hello \n World", "@helloNewlineWorld": { "description": "The JSON decoder should convert backslash-n to a newline character in the generated Dart string." }, "testDollarSign": "Hello $ World", "@testDollarSign": { "description": "The generated Dart String should handle the dollar sign correctly." }, "hello": "Hello {world}", "@hello": { "description": "A message with a single parameter", "placeholders": { "world": {} } }, "greeting": "{hello} {world}", "@greeting": { "description": "A message with a two parameters", "placeholders": { "hello": {}, "world": {} } }, "helloWorldOn": "Hello World on {date}", "@helloWorldOn": { "description": "A message with a date parameter", "placeholders": { "date": { "type": "DateTime", "format": "yMMMMEEEEd" } } }, "helloWorldDuring": "Hello World from {startDate} to {endDate}", "@helloWorldDuring": { "description": "A message with two date parameters", "placeholders": { "startDate": { "type": "DateTime", "format": "y" }, "endDate": { "type": "DateTime", "format": "y" } } }, "helloOn": "Hello {world} on {date} at {time}", "@helloOn": { "description": "A message with date and string parameters", "placeholders": { "world": { }, "date": { "type": "DateTime", "format": "yMd" }, "time": { "type": "DateTime", "format": "Hm" } } }, "helloFor": "Hello for {value}", "@helloFor": { "description": "A message with a double parameter", "placeholders": { "value": { "type": "double", "format": "compact" } } }, "helloCost": "Hello for {price} {value}", "@helloCost": { "description": "A message with string and int (currency) parameters", "placeholders": { "price": { }, "value": { "type": "int", "format": "currency" } } }, "helloCostWithOptionalParam": "Hello for {price} {value} (with optional param)", "@helloCostWithOptionalParam": { "description": "A message with string and int (currency) parameters", "placeholders": { "price": {}, "value": { "type": "double", "format": "currency", "optionalParameters": { "name": "BTC" } } } }, "helloCostWithSpecialCharacter1": "Hello for {price} {value} (with special character)", "@helloCostWithSpecialCharacter1": { "description": "A message with string and int (currency) parameters", "placeholders": { "price": {}, "value": { "type": "double", "format": "currency", "optionalParameters": { "name": "BTC'" } } } }, "helloCostWithSpecialCharacter2": "Hello for {price} {value} (with special character)", "@helloCostWithSpecialCharacter2": { "description": "A message with string and int (currency) parameters", "placeholders": { "price": {}, "value": { "type": "double", "format": "currency", "optionalParameters": { "name": "BTC\"" } } } }, "helloCostWithSpecialCharacter3": "Hello for {price} {value} (with special character)", "@helloCostWithSpecialCharacter3": { "description": "A message with string and int (currency) parameters", "placeholders": { "price": {}, "value": { "type": "double", "format": "currency", "optionalParameters": { "name": "BTC\"'" } } } }, "helloDecimalPattern": "Hello for Decimal Pattern {value}", "@helloDecimalPattern": { "description": "A message which displays a number in decimal pattern", "placeholders": { "value": { "type": "double", "format": "decimalPattern" } } }, "helloPercentPattern": "Hello for Percent Pattern {value}", "@helloPercentPattern": { "description": "A message which displays a number in percent pattern", "placeholders": { "value": { "type": "double", "format": "percentPattern" } } }, "helloScientificPattern": "Hello for Scientific Pattern {value}", "@helloScientificPattern": { "description": "A message which displays scientific notation of a number", "placeholders": { "value": { "type": "double", "format": "scientificPattern" } } }, "helloWorlds": "{count,plural, =0{Hello} =1{Hello World} =2{Hello two worlds} few{Hello {count} worlds} many{Hello all {count} worlds} other{Hello other {count} worlds}}", "@helloWorlds": { "description": "A plural message", "placeholders": { "count": {} } }, "helloAdjectiveWorlds": "{count,plural, =0{Hello} =1{Hello {adjective} World} =2{Hello two {adjective} worlds} other{Hello other {count} {adjective} worlds}}", "@helloAdjectiveWorlds": { "description": "A plural message with an additional parameter", "placeholders": { "count": {}, "adjective": {} } }, "helloWorldsOn": "{count,plural, =0{Hello on {date}} =1{Hello World, on {date}} =2{Hello two worlds, on {date}} other{Hello other {count} worlds, on {date}}}", "@helloWorldsOn": { "description": "A plural message with an additional date parameter", "placeholders": { "count": {}, "date": { "type": "DateTime", "format": "yMMMMEEEEd" } } }, "helloWorldPopulation": "{count,plural, =1{Hello World of {population} citizens} =2{Hello two worlds with {population} total citizens} many{Hello all {count} worlds, with a total of {population} citizens} other{Hello other {count} worlds, with a total of {population} citizens}}", "@helloWorldPopulation": { "description": "A plural message with an additional integer parameter", "placeholders": { "count": {}, "population": { "type": "int", "format": "compactLong" } } }, "helloWorldInterpolation": "[{hello}] #{world}#", "@helloWorldInterpolation": { "description": "A message with parameters that need string interpolation braces", "placeholders": { "hello": {}, "world": {} } }, "helloWorldsInterpolation": "{count,plural, other {[{hello}] -{world}- #{count}#}}", "@helloWorldsInterpolation": { "description": "A plural message with parameters that need string interpolation braces", "placeholders": { "count": {}, "hello": {}, "world": {} } }, "dollarSign": "$!", "@dollarSign": { "description": "A message with a dollar sign." }, "dollarSignPlural": "{count,plural, =1{One $} other{Many $}}", "@dollarSignPlural": { "description": "A plural message with a dollar sign.", "placeholders": { "count": {} } }, "singleQuote": "Flutter's amazing!", "@singleQuote": { "description": "A message with a single quote." }, "singleQuotePlural": "{count,plural, =1{Flutter's amazing, times 1!} other{Flutter's amazing, times {count}!}}", "@singleQuotePlural": { "description": "A plural message with a single quote.", "placeholders": { "count": {} } }, "doubleQuote": "Flutter is \"amazing\"!", "@doubleQuote": { "description": "A message with double quotes." }, "doubleQuotePlural": "{count,plural, =1{Flutter is \"amazing\", times 1!} other{Flutter is \"amazing\", times {count}!}}", "@doubleQuotePlural": { "description": "A plural message with double quotes.", "placeholders": { "count": {} } }, "vehicleSelect": "{vehicleType, select, sedan{Sedan} cabriolet{Solid roof cabriolet} truck{16 wheel truck} other{Other}}", "@vehicleSelect": { "description": "A select message.", "placeholders": { "vehicleType": {} } }, "singleQuoteSelect": "{vehicleType, select, sedan{Sedan's elegance} cabriolet{Cabriolet's acceleration} truck{truck's heavy duty} other{Other's mirrors!}}", "@singleQuoteSelect": { "description": "A select message with a single quote.", "placeholders": { "vehicleType": {} } }, "doubleQuoteSelect": "{vehicleType, select, sedan{Sedan has \"elegance\"} cabriolet{Cabriolet has \"acceleration\"} truck{truck is \"heavy duty\"} other{Other have \"mirrors\"!}}", "@doubleQuoteSelect": { "description": "A select message with double quote.", "placeholders": { "vehicleType": {} } }, "pluralInString": "Oh, she found {count, plural, =1 {1 item} other {all {count} items} }!", "@pluralInString": { "description": "A plural message with prefix and suffix strings.", "placeholders": { "count": {} } }, "selectInString": "Indeed, {gender, select, male {he likes} female {she likes} other {they like} } Flutter!", "@selectInString": { "description": "A select message with prefix and suffix strings.", "placeholders": { "gender": {} } }, "selectWithPlaceholder": "Indeed, {gender, select, male {he likes {preference}} female {she likes {preference}} other {they like {preference}}}!", "@selectWithPlaceholder": { "description": "A select message with prefix, suffix strings, and a placeholder.", "placeholders": { "gender": {}, "preference": {} } }, "selectInPlural": "{count, plural, =1{{gender, select, male{he} female{she} other{they}}} other{they}}", "@selectInPlural": { "description": "Pronoun dependent on the count and gender.", "placeholders": { "gender": { "type": "String" }, "count": { "type": "num" } } }, "datetime1": "{today, date, ::yMd}", "datetime2": "{current, time, ::jms}" } '''; final String appEnCa = r''' { "@@locale": "en_CA", "helloWorld": "CA Hello World" } '''; final String appEnGb = r''' { "@@locale": "en_GB", "helloWorld": "GB Hello World" } '''; // All these messages are the template language's message with 'ES - ' // appended. This makes validating test behavior easier. The interpolated // messages are different where applicable. final String appEs = r''' { "@@locale": "es", "helloWorld": "ES - Hello world", "helloWorlds": "{count,plural, =0{ES - Hello} =1{ES - Hello World} =2{ES - Hello two worlds} few{ES - Hello {count} worlds} many{ES - Hello all {count} worlds} other{ES - Hello other {count} worlds}}", "helloNewlineWorld": "ES - Hello \n World", "testDollarSign": "ES - Hola $ Mundo", "hello": "ES - Hello {world}", "greeting": "ES - {hello} {world}", "helloWorldOn": "ES - Hello World on {date}", "helloWorldDuring": "ES - Hello World from {startDate} to {endDate}", "helloOn": "ES - Hello {world} on {date} at {time}", "helloFor": "ES - Hello for {value}", "helloAdjectiveWorlds": "{count,plural, =0{ES - Hello} =1{ES - Hello {adjective} World} =2{ES - Hello two {adjective} worlds} other{ES - Hello other {count} {adjective} worlds}}", "helloWorldsOn": "{count,plural, =0{ES - Hello on {date}} =1{ES - Hello World, on {date}} =2{ES - Hello two worlds, on {date}} other{ES - Hello other {count} worlds, on {date}}}", "helloWorldPopulation": "{count,plural, =1{ES - Hello World of {population} citizens} =2{ES - Hello two worlds with {population} total citizens} many{ES - Hello all {count} worlds, with a total of {population} citizens} other{ES - Hello other {count} worlds, with a total of {population} citizens}}", "helloWorldInterpolation": "ES - [{hello}] #{world}#", "helloWorldsInterpolation": "{count,plural, other {ES - [{hello}] -{world}- #{count}#}}", "dollarSign": "ES - $!", "dollarSignPlural": "{count,plural, =1{ES - One $} other{ES - Many $}}", "singleQuote": "ES - Flutter's amazing!", "singleQuotePlural": "{count,plural, =1{ES - Flutter's amazing, times 1!} other{ES - Flutter's amazing, times {count}!}}", "doubleQuote": "ES - Flutter is \"amazing\"!", "doubleQuotePlural": "{count,plural, =1{ES - Flutter is \"amazing\", times 1!} other{ES - Flutter is \"amazing\", times {count}!}}", "vehicleSelect": "{vehicleType, select, sedan{ES - Sedan} cabriolet{ES - Solid roof cabriolet} truck{ES - 16 wheel truck} other{ES - Other}}", "singleQuoteSelect": "{vehicleType, select, sedan{ES - Sedan's elegance} cabriolet{ES - Cabriolet' acceleration} truck{ES - truck's heavy duty} other{ES - Other's mirrors!}}", "doubleQuoteSelect": "{vehicleType, select, sedan{ES - Sedan has \"elegance\"} cabriolet{ES - Cabriolet has \"acceleration\"} truck{ES - truck is \"heavy duty\"} other{ES - Other have \"mirrors\"!}}", "pluralInString": "ES - Oh, she found {count, plural, =1 {ES - 1 item} other {ES - all {count} items} }ES - !", "selectInString": "ES - Indeed, {gender, select, male {ES - he likes} female {ES - she likes} other {ES - they like} } ES - Flutter!" } '''; final String appEs419 = r''' { "@@locale": "es_419", "helloWorld": "ES 419 - Hello World", "helloWorlds": "{count,plural, =0{ES 419 - Hello} =1{ES 419 - Hello World} =2{ES 419 - Hello two worlds} few{ES 419 - Hello {count} worlds} many{ES 419 - Hello all {count} worlds} other{ES - Hello other {count} worlds}}" } '''; final String appZh = r''' { "@@locale": "zh", "helloWorld": "ไฝ ๅฅฝไธ–็•Œ", "helloWorlds": "{count,plural, =0{ไฝ ๅฅฝ} =1{ไฝ ๅฅฝไธ–็•Œ} other{ไฝ ๅฅฝ{count}ไธชๅ…ถไป–ไธ–็•Œ}}", "helloCost": "zh - Hello for {price} {value}" } '''; final String appZhHans = r''' { "@@locale": "zh_Hans", "helloWorld": "็ฎ€ไฝ“ไฝ ๅฅฝไธ–็•Œ" } '''; final String appZhHant = r''' { "@@locale": "zh_Hant", "helloWorld": "็น้ซ”ไฝ ๅฅฝไธ–็•Œ" } '''; final String appZhHantTw = r''' { "@@locale": "zh_Hant_TW", "helloWorld": "ๅฐ็ฃ็น้ซ”ไฝ ๅฅฝไธ–็•Œ" } '''; String _getMain() => r''' import 'package:flutter/material.dart'; import 'l10n/app_localizations.dart'; class LocaleBuilder extends StatelessWidget { const LocaleBuilder({ Key? key, this.locale, this.test, required this.callback, }) : super(key: key); final Locale? locale; final String? test; final void Function (BuildContext context) callback; @override build(BuildContext context) { return Localizations.override( locale: locale, context: context, child: ResultBuilder( test: test, callback: callback, ), ); } } class ResultBuilder extends StatelessWidget { const ResultBuilder({ Key? key, this.test, required this.callback, }) : super(key: key); final String? test; final void Function (BuildContext context) callback; @override build(BuildContext context) { return Builder( builder: (BuildContext context) { try { callback(context); } on Exception catch (e) { print('#l10n A(n) $e has occurred trying to generate "$test" results.'); print('#l10n END'); } return Container(); }, ); } } class Home extends StatelessWidget { @override Widget build(BuildContext context) { final List<String> results = []; return Row( children: <Widget>[ LocaleBuilder( test: 'supportedLocales', callback: (BuildContext context) { results.add('--- supportedLocales tests ---'); int n = 0; for (Locale locale in AppLocalizations.supportedLocales) { String languageCode = locale.languageCode; String? countryCode = locale.countryCode; String? scriptCode = locale.scriptCode; results.add('supportedLocales[$n]: languageCode: $languageCode, countryCode: $countryCode, scriptCode: $scriptCode'); n += 1; } }, ), LocaleBuilder( locale: Locale('en', 'CA'), test: 'countryCode - en_CA', callback: (BuildContext context) { results.add('--- countryCode (en_CA) tests ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.hello("CA fallback World")); }, ), LocaleBuilder( locale: Locale('en', 'GB'), test: 'countryCode - en_GB', callback: (BuildContext context) { results.add('--- countryCode (en_GB) tests ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.hello("GB fallback World")); }, ), LocaleBuilder( locale: Locale('zh'), test: 'zh', callback: (BuildContext context) { results.add('--- zh ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.helloWorlds(0)); results.add(AppLocalizations.of(context)!.helloWorlds(1)); results.add(AppLocalizations.of(context)!.helloWorlds(2)); // Should use the fallback language, in this case, // "Hello ไธ–็•Œ" should be displayed. results.add(AppLocalizations.of(context)!.hello("ไธ–็•Œ")); // helloCost is tested in 'zh' because 'es' currency format contains a // non-breaking space character (U+00A0), which if removed, // makes it hard to decipher why the test is failing. results.add(AppLocalizations.of(context)!.helloCost("ไปท้’ฑ", 123)); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), test: 'zh', callback: (BuildContext context) { results.add('--- scriptCode: zh_Hans ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), test: 'scriptCode - zh_Hant', callback: (BuildContext context) { results.add('--- scriptCode - zh_Hant ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW', scriptCode: 'Hant'), test: 'scriptCode - zh_TW_Hant', callback: (BuildContext context) { results.add('--- scriptCode - zh_Hant_TW ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale('en'), test: 'General formatting', callback: (BuildContext context) { results.add('--- General formatting tests ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll(<String>[ '${localizations.helloWorld}', '${localizations.helloNewlineWorld}', '${localizations.testDollarSign}', '${localizations.hello("World")}', '${localizations.greeting("Hello", "World")}', '${localizations.helloWorldOn(DateTime(1960))}', '${localizations.helloOn("world argument", DateTime(1960), DateTime(1960))}', '${localizations.helloWorldDuring(DateTime(1960), DateTime(2020))}', '${localizations.helloFor(123)}', '${localizations.helloCost("price", 123)}', '${localizations.helloCostWithOptionalParam("price", .5)}', '${localizations.helloCostWithSpecialCharacter1("price", .5)}', '${localizations.helloCostWithSpecialCharacter2("price", .5)}', '${localizations.helloCostWithSpecialCharacter3("price", .5)}', '${localizations.helloDecimalPattern(1200000)}', '${localizations.helloPercentPattern(1200000)}', '${localizations.helloScientificPattern(1200000)}', '${localizations.helloWorlds(0)}', '${localizations.helloWorlds(1)}', '${localizations.helloWorlds(2)}', '${localizations.helloAdjectiveWorlds(0, "new")}', '${localizations.helloAdjectiveWorlds(1, "new")}', '${localizations.helloAdjectiveWorlds(2, "new")}', '${localizations.helloWorldsOn(0, DateTime(1960))}', '${localizations.helloWorldsOn(1, DateTime(1960))}', '${localizations.helloWorldsOn(2, DateTime(1960))}', '${localizations.helloWorldPopulation(0, 100)}', '${localizations.helloWorldPopulation(1, 101)}', '${localizations.helloWorldPopulation(2, 102)}', '${localizations.helloWorldsInterpolation(123, "Hello", "World")}', '${localizations.dollarSign}', '${localizations.dollarSignPlural(1)}', '${localizations.singleQuote}', '${localizations.singleQuotePlural(2)}', '${localizations.doubleQuote}', '${localizations.doubleQuotePlural(2)}', "${localizations.vehicleSelect('truck')}", "${localizations.singleQuoteSelect('sedan')}", "${localizations.doubleQuoteSelect('cabriolet')}", "${localizations.pluralInString(1)}", "${localizations.selectInString('he')}", "${localizations.selectWithPlaceholder('male', 'ice cream')}", "${localizations.selectWithPlaceholder('female', 'chocolate')}", "${localizations.selectInPlural('male', 1)}", "${localizations.selectInPlural('male', 2)}", "${localizations.selectInPlural('female', 1)}", '${localizations.datetime1(DateTime(2023, 6, 26))}', '${localizations.datetime2(DateTime(2023, 6, 26, 5, 23))}', ]); }, ), LocaleBuilder( locale: Locale('es'), test: '--- es ---', callback: (BuildContext context) { results.add('--- es ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll(<String>[ '${localizations.helloWorld}', '${localizations.helloNewlineWorld}', '${localizations.testDollarSign}', '${localizations.hello("Mundo")}', '${localizations.greeting("Hola", "Mundo")}', '${localizations.helloWorldOn(DateTime(1960))}', '${localizations.helloOn("world argument", DateTime(1960), DateTime(1960))}', '${localizations.helloWorldDuring(DateTime(1960), DateTime(2020))}', '${localizations.helloFor(123)}', // helloCost is tested in 'zh' because 'es' currency format contains a // non-breaking space character (U+00A0), which if removed, // makes it hard to decipher why the test is failing. '${localizations.helloWorlds(0)}', '${localizations.helloWorlds(1)}', '${localizations.helloWorlds(2)}', '${localizations.helloAdjectiveWorlds(0, "nuevo")}', '${localizations.helloAdjectiveWorlds(1, "nuevo")}', '${localizations.helloAdjectiveWorlds(2, "nuevo")}', '${localizations.helloWorldsOn(0, DateTime(1960))}', '${localizations.helloWorldsOn(1, DateTime(1960))}', '${localizations.helloWorldsOn(2, DateTime(1960))}', '${localizations.helloWorldPopulation(0, 100)}', '${localizations.helloWorldPopulation(1, 101)}', '${localizations.helloWorldPopulation(2, 102)}', '${localizations.helloWorldsInterpolation(123, "Hola", "Mundo")}', '${localizations.dollarSign}', '${localizations.dollarSignPlural(1)}', '${localizations.singleQuote}', '${localizations.singleQuotePlural(2)}', '${localizations.doubleQuote}', '${localizations.doubleQuotePlural(2)}', "${localizations.vehicleSelect('truck')}", "${localizations.singleQuoteSelect('sedan')}", "${localizations.doubleQuoteSelect('cabriolet')}", "${localizations.pluralInString(1)}", "${localizations.selectInString('he')}", ]); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'es', countryCode: '419'), test: 'countryCode - es_419', callback: (BuildContext context) { results.add('--- es_419 ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll([ '${localizations.helloWorld}', '${localizations.helloWorlds(0)}', '${localizations.helloWorlds(1)}', '${localizations.helloWorlds(2)}', ]); }, ), LocaleBuilder( callback: (BuildContext context) { try { int n = 0; for (final String result in results) { // Newline character replacement is necessary because // the stream breaks up stdout by new lines. print('#l10n $n (${result.replaceAll('\n', '_NEWLINE_')})'); n += 1; } } finally { print('#l10n END'); } }, ), ], ); } } void main() { runApp( MaterialApp( localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, home: Home(), ), ); } '''; String _getMainWithNamedParameters() => r''' import 'package:flutter/material.dart'; import 'l10n/app_localizations.dart'; class LocaleBuilder extends StatelessWidget { const LocaleBuilder({ Key? key, this.locale, this.test, required this.callback, }) : super(key: key); final Locale? locale; final String? test; final void Function (BuildContext context) callback; @override build(BuildContext context) { return Localizations.override( locale: locale, context: context, child: ResultBuilder( test: test, callback: callback, ), ); } } class ResultBuilder extends StatelessWidget { const ResultBuilder({ Key? key, this.test, required this.callback, }) : super(key: key); final String? test; final void Function (BuildContext context) callback; @override build(BuildContext context) { return Builder( builder: (BuildContext context) { try { callback(context); } on Exception catch (e) { print('#l10n A(n) $e has occurred trying to generate "$test" results.'); print('#l10n END'); } return Container(); }, ); } } class Home extends StatelessWidget { @override Widget build(BuildContext context) { final List<String> results = []; return Row( children: <Widget>[ LocaleBuilder( test: 'supportedLocales', callback: (BuildContext context) { results.add('--- supportedLocales tests ---'); int n = 0; for (Locale locale in AppLocalizations.supportedLocales) { String languageCode = locale.languageCode; String? countryCode = locale.countryCode; String? scriptCode = locale.scriptCode; results.add('supportedLocales[$n]: languageCode: $languageCode, countryCode: $countryCode, scriptCode: $scriptCode'); n += 1; } }, ), LocaleBuilder( locale: Locale('en', 'CA'), test: 'countryCode - en_CA', callback: (BuildContext context) { results.add('--- countryCode (en_CA) tests ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.hello(world: "CA fallback World")); }, ), LocaleBuilder( locale: Locale('en', 'GB'), test: 'countryCode - en_GB', callback: (BuildContext context) { results.add('--- countryCode (en_GB) tests ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.hello(world: "GB fallback World")); }, ), LocaleBuilder( locale: Locale('zh'), test: 'zh', callback: (BuildContext context) { results.add('--- zh ---'); results.add(AppLocalizations.of(context)!.helloWorld); results.add(AppLocalizations.of(context)!.helloWorlds(count: 0)); results.add(AppLocalizations.of(context)!.helloWorlds(count: 1)); results.add(AppLocalizations.of(context)!.helloWorlds(count: 2)); // Should use the fallback language, in this case, // "Hello ไธ–็•Œ" should be displayed. results.add(AppLocalizations.of(context)!.hello(world: "ไธ–็•Œ")); // helloCost is tested in 'zh' because 'es' currency format contains a // non-breaking space character (U+00A0), which if removed, // makes it hard to decipher why the test is failing. results.add(AppLocalizations.of(context)!.helloCost(price: "ไปท้’ฑ", value: 123)); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), test: 'zh', callback: (BuildContext context) { results.add('--- scriptCode: zh_Hans ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), test: 'scriptCode - zh_Hant', callback: (BuildContext context) { results.add('--- scriptCode - zh_Hant ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW', scriptCode: 'Hant'), test: 'scriptCode - zh_TW_Hant', callback: (BuildContext context) { results.add('--- scriptCode - zh_Hant_TW ---'); results.add(AppLocalizations.of(context)!.helloWorld); }, ), LocaleBuilder( locale: Locale('en'), test: 'General formatting', callback: (BuildContext context) { results.add('--- General formatting tests ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll(<String>[ '${localizations.helloWorld}', '${localizations.helloNewlineWorld}', '${localizations.testDollarSign}', '${localizations.hello(world: "World")}', '${localizations.greeting(hello: "Hello", world: "World")}', '${localizations.helloWorldOn(date: DateTime(1960))}', '${localizations.helloOn(world: "world argument", date: DateTime(1960), time: DateTime(1960))}', '${localizations.helloWorldDuring(startDate: DateTime(1960), endDate: DateTime(2020))}', '${localizations.helloFor(value: 123)}', '${localizations.helloCost(price: "price", value: 123)}', '${localizations.helloCostWithOptionalParam(price: "price", value: .5)}', '${localizations.helloCostWithSpecialCharacter1(price: "price", value: .5)}', '${localizations.helloCostWithSpecialCharacter2(price: "price", value: .5)}', '${localizations.helloCostWithSpecialCharacter3(price: "price", value: .5)}', '${localizations.helloDecimalPattern(value: 1200000)}', '${localizations.helloPercentPattern(value: 1200000)}', '${localizations.helloScientificPattern(value: 1200000)}', '${localizations.helloWorlds(count: 0)}', '${localizations.helloWorlds(count: 1)}', '${localizations.helloWorlds(count: 2)}', '${localizations.helloAdjectiveWorlds(count: 0, adjective: "new")}', '${localizations.helloAdjectiveWorlds(count: 1, adjective: "new")}', '${localizations.helloAdjectiveWorlds(count: 2, adjective: "new")}', '${localizations.helloWorldsOn(count: 0, date: DateTime(1960))}', '${localizations.helloWorldsOn(count: 1, date: DateTime(1960))}', '${localizations.helloWorldsOn(count: 2, date: DateTime(1960))}', '${localizations.helloWorldPopulation(count: 0, population: 100)}', '${localizations.helloWorldPopulation(count: 1, population: 101)}', '${localizations.helloWorldPopulation(count: 2, population: 102)}', '${localizations.helloWorldsInterpolation(count: 123, hello: "Hello", world: "World")}', '${localizations.dollarSign}', '${localizations.dollarSignPlural(count: 1)}', '${localizations.singleQuote}', '${localizations.singleQuotePlural(count: 2)}', '${localizations.doubleQuote}', '${localizations.doubleQuotePlural(count: 2)}', "${localizations.vehicleSelect(vehicleType: 'truck')}", "${localizations.singleQuoteSelect(vehicleType: 'sedan')}", "${localizations.doubleQuoteSelect(vehicleType: 'cabriolet')}", "${localizations.pluralInString(count: 1)}", "${localizations.selectInString(gender: 'he')}", "${localizations.selectWithPlaceholder(gender: 'male', preference: 'ice cream')}", "${localizations.selectWithPlaceholder(gender: 'female', preference: 'chocolate')}", "${localizations.selectInPlural(gender: 'male', count: 1)}", "${localizations.selectInPlural(gender: 'male', count: 2)}", "${localizations.selectInPlural(gender: 'female', count: 1)}", '${localizations.datetime1(today: DateTime(2023, 6, 26))}', '${localizations.datetime2(current: DateTime(2023, 6, 26, 5, 23))}', ]); }, ), LocaleBuilder( locale: Locale('es'), test: '--- es ---', callback: (BuildContext context) { results.add('--- es ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll(<String>[ '${localizations.helloWorld}', '${localizations.helloNewlineWorld}', '${localizations.testDollarSign}', '${localizations.hello(world: "Mundo")}', '${localizations.greeting(hello: "Hola", world: "Mundo")}', '${localizations.helloWorldOn(date: DateTime(1960))}', '${localizations.helloOn(world: "world argument", date: DateTime(1960), time: DateTime(1960))}', '${localizations.helloWorldDuring(startDate: DateTime(1960), endDate: DateTime(2020))}', '${localizations.helloFor(value: 123)}', // helloCost is tested in 'zh' because 'es' currency format contains a // non-breaking space character (U+00A0), which if removed, // makes it hard to decipher why the test is failing. '${localizations.helloWorlds(count: 0)}', '${localizations.helloWorlds(count: 1)}', '${localizations.helloWorlds(count: 2)}', '${localizations.helloAdjectiveWorlds(count: 0, adjective: "nuevo")}', '${localizations.helloAdjectiveWorlds(count: 1, adjective: "nuevo")}', '${localizations.helloAdjectiveWorlds(count: 2, adjective: "nuevo")}', '${localizations.helloWorldsOn(count: 0, date: DateTime(1960))}', '${localizations.helloWorldsOn(count: 1, date: DateTime(1960))}', '${localizations.helloWorldsOn(count: 2, date: DateTime(1960))}', '${localizations.helloWorldPopulation(count: 0, population: 100)}', '${localizations.helloWorldPopulation(count: 1, population: 101)}', '${localizations.helloWorldPopulation(count: 2, population: 102)}', '${localizations.helloWorldsInterpolation(count: 123, hello: "Hola", world: "Mundo")}', '${localizations.dollarSign}', '${localizations.dollarSignPlural(count: 1)}', '${localizations.singleQuote}', '${localizations.singleQuotePlural(count: 2)}', '${localizations.doubleQuote}', '${localizations.doubleQuotePlural(count: 2)}', "${localizations.vehicleSelect(vehicleType: 'truck')}", "${localizations.singleQuoteSelect(vehicleType: 'sedan')}", "${localizations.doubleQuoteSelect(vehicleType: 'cabriolet')}", "${localizations.pluralInString(count: 1)}", "${localizations.selectInString(gender: 'he')}", ]); }, ), LocaleBuilder( locale: Locale.fromSubtags(languageCode: 'es', countryCode: '419'), test: 'countryCode - es_419', callback: (BuildContext context) { results.add('--- es_419 ---'); final AppLocalizations localizations = AppLocalizations.of(context)!; results.addAll([ '${localizations.helloWorld}', '${localizations.helloWorlds(count: 0)}', '${localizations.helloWorlds(count: 1)}', '${localizations.helloWorlds(count: 2)}', ]); }, ), LocaleBuilder( callback: (BuildContext context) { try { int n = 0; for (final String result in results) { // Newline character replacement is necessary because // the stream breaks up stdout by new lines. print('#l10n $n (${result.replaceAll('\n', '_NEWLINE_')})'); n += 1; } } finally { print('#l10n END'); } }, ), ], ); } } void main() { runApp( MaterialApp( localizationsDelegates: AppLocalizations.localizationsDelegates, supportedLocales: AppLocalizations.supportedLocales, home: Home(), ), ); }'''; String l10nYaml({ required bool useDeferredLoading, required bool useSyntheticPackage, required bool useNamedParameters, }) { String l10nYamlString = ''; if (useDeferredLoading) { l10nYamlString += 'use-deferred-loading: true\n'; } if (!useSyntheticPackage) { l10nYamlString += 'synthetic-package: false\n'; } if (useNamedParameters) { l10nYamlString += 'use-named-parameters: true\n'; } return l10nYamlString; } }
flutter/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart", "repo_id": "flutter", "token_count": 17587 }
979
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO(gspencergoog): Remove this tag once this test's state leaks/test // dependencies have been fixed. // https://github.com/flutter/flutter/issues/85160 // Fails with "flutter test --test-randomize-ordering-seed=1000" @Tags(<String>['no-shuffle']) library; import 'dart:async'; import 'dart:convert'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/io.dart'; import '../src/common.dart'; import 'test_utils.dart'; // This test depends on some files in ///dev/automated_tests/flutter_test/* final String automatedTestsDirectory = fileSystem.path.join('..', '..', 'dev', 'automated_tests'); final String missingDependencyDirectory = fileSystem.path.join('..', '..', 'dev', 'missing_dependency_tests'); final String flutterTestDirectory = fileSystem.path.join(automatedTestsDirectory, 'flutter_test'); final String integrationTestDirectory = fileSystem.path.join(automatedTestsDirectory, 'integration_test'); final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', platform.isWindows ? 'flutter.bat' : 'flutter'); // Running Integration Tests in the Flutter Tester will still exercise the same // flows specific to Integration Tests. final List<String> integrationTestExtraArgs = <String>['-d', 'flutter-tester']; void main() { setUpAll(() async { expect( await processManager.run( <String>[ flutterBin, 'pub', 'get', ], workingDirectory: flutterTestDirectory ), const ProcessResultMatcher(), ); expect( await processManager.run( <String>[ flutterBin, 'pub', 'get', ], workingDirectory: missingDependencyDirectory ), const ProcessResultMatcher(), ); }); testWithoutContext('flutter test should not have extraneous error messages', () async { return _testFile('trivial_widget', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero); }); testWithoutContext('integration test should not have extraneous error messages', () async { return _testFile('trivial_widget', automatedTestsDirectory, integrationTestDirectory, exitCode: isZero, extraArguments: integrationTestExtraArgs); }); testWithoutContext('flutter test set the working directory correctly', () async { return _testFile('working_directory', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero); }); testWithoutContext('flutter test should report nice errors for exceptions thrown within testWidgets()', () async { return _testFile('exception_handling', automatedTestsDirectory, flutterTestDirectory); }); testWithoutContext('integration test should report nice errors for exceptions thrown within testWidgets()', () async { return _testFile('exception_handling', automatedTestsDirectory, integrationTestDirectory, extraArguments: integrationTestExtraArgs); }); testWithoutContext('flutter test should report a nice error when a guarded function was called without await', () async { return _testFile('test_async_utils_guarded', automatedTestsDirectory, flutterTestDirectory); }); testWithoutContext('flutter test should report a nice error when an async function was called without await', () async { return _testFile('test_async_utils_unguarded', automatedTestsDirectory, flutterTestDirectory); }); testWithoutContext('flutter test should report a nice error when a Ticker is left running', () async { return _testFile('ticker', automatedTestsDirectory, flutterTestDirectory); }); testWithoutContext('flutter test should report a nice error when a pubspec.yaml is missing a flutter_test dependency', () async { final String missingDependencyTests = fileSystem.path.join('..', '..', 'dev', 'missing_dependency_tests'); return _testFile('trivial', missingDependencyTests, missingDependencyTests); }); testWithoutContext('flutter test should report which user-created widget caused the error', () async { return _testFile('print_user_created_ancestor', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--track-widget-creation']); }); testWithoutContext('flutter test should report which user-created widget caused the error - no flag', () async { return _testFile('print_user_created_ancestor_no_flag', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--no-track-widget-creation']); }); testWithoutContext('flutter test should report the correct user-created widget that caused the error', () async { return _testFile('print_correct_local_widget', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--track-widget-creation']); }); testWithoutContext('flutter test should can load assets within its own package', () async { return _testFile('package_assets', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero); }); testWithoutContext('flutter test should support dart defines', () async { return _testFile('dart_defines', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero, extraArguments: <String>['--dart-define=flutter.test.foo=bar']); }); testWithoutContext('flutter test should run a test when its name matches a regexp', () async { final ProcessResult result = await _runFlutterTest( 'filtering', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--name', 'inc.*de'], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test when its name matches a regexp when --experimental-faster-testing is set', () async { final ProcessResult result = await _runFlutterTest( null, automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>[ '--experimental-faster-testing', '--name=inc.*de', ], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test when its name contains a string', () async { final ProcessResult result = await _runFlutterTest( 'filtering', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--plain-name', 'include'], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test when its name contains a string when --experimental-faster-testing is set', () async { final ProcessResult result = await _runFlutterTest( null, automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>[ '--experimental-faster-testing', '--plain-name=include', ], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test with a given tag', () async { final ProcessResult result = await _runFlutterTest( 'filtering_tag', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--tags', 'include-tag'], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test with a given tag when --experimental-faster-testing is set', () async { final ProcessResult result = await _runFlutterTest( null, automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>[ '--experimental-faster-testing', '--tags=include-tag', ], ); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should not run a test with excluded tag', () async { final ProcessResult result = await _runFlutterTest('filtering_tag', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--exclude-tags', 'exclude-tag']); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run all tests when tags are unspecified', () async { final ProcessResult result = await _runFlutterTest('filtering_tag', automatedTestsDirectory, flutterTestDirectory); expect( result, ProcessResultMatcher( exitCode: 1, stdoutPattern: RegExp(r'\+\d+ -1: Some tests failed\.'), ), ); }); testWithoutContext('flutter test should run all tests when tags are unspecified when --experimental-faster-testing is set', () async { final ProcessResult result = await _runFlutterTest( null, automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--experimental-faster-testing'], ); expect( result, ProcessResultMatcher( exitCode: 1, stdoutPattern: RegExp(r'\+\d+ -\d+: Some tests failed\.'), ), ); }); testWithoutContext('flutter test should run a widgetTest with a given tag', () async { final ProcessResult result = await _runFlutterTest('filtering_tag_widget', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--tags', 'include-tag']); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should not run a widgetTest with excluded tag', () async { final ProcessResult result = await _runFlutterTest('filtering_tag_widget', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--exclude-tags', 'exclude-tag']); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run all widgetTest when tags are unspecified', () async { final ProcessResult result = await _runFlutterTest('filtering_tag_widget', automatedTestsDirectory, flutterTestDirectory); expect( result, ProcessResultMatcher( exitCode: 1, stdoutPattern: RegExp(r'\+\d+ -1: Some tests failed\.'), ), ); }); testWithoutContext('flutter test should run a test with an exact name in URI format', () async { final ProcessResult result = await _runFlutterTest('uri_format', automatedTestsDirectory, flutterTestDirectory, query: 'full-name=exactTestName'); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should run a test by line number in URI format', () async { final ProcessResult result = await _runFlutterTest('uri_format', automatedTestsDirectory, flutterTestDirectory, query: 'line=11'); expect( result, ProcessResultMatcher(stdoutPattern: RegExp(r'\+\d+: All tests passed!')), ); }); testWithoutContext('flutter test should test runs to completion', () async { final ProcessResult result = await _runFlutterTest('trivial', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--verbose']); final String stdout = (result.stdout as String).replaceAll('\r', '\n'); expect(stdout, contains(RegExp(r'\+\d+: All tests passed\!'))); expect(stdout, contains('test 0: Starting flutter_tester process with command')); expect(stdout, contains('test 0: deleting temporary directory')); expect(stdout, contains('test 0: finished')); expect(stdout, contains('test package returned with exit code 0')); if ((result.stderr as String).isNotEmpty) { fail('unexpected error output from test:\n\n${result.stderr}\n-- end stderr --\n\n'); } expect(result, const ProcessResultMatcher()); }); testWithoutContext('flutter test should test runs to completion when --experimental-faster-testing is set', () async { final ProcessResult result = await _runFlutterTest( null, automatedTestsDirectory, '$flutterTestDirectory/child_directory', extraArguments: const <String>[ '--experimental-faster-testing', '--verbose', ], ); final String stdout = (result.stdout as String).replaceAll('\r', '\n'); expect(stdout, contains(RegExp(r'\+\d+: All tests passed\!'))); expect(stdout, contains('Starting flutter_tester process with command')); if ((result.stderr as String).isNotEmpty) { fail('unexpected error output from test:\n\n${result.stderr}\n-- end stderr --\n\n'); } expect(result, const ProcessResultMatcher()); }); testWithoutContext('flutter test should ignore --experimental-faster-testing when only a single test file is specified', () async { final ProcessResult result = await _runFlutterTest( 'trivial', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>[ '--experimental-faster-testing', '--verbose' ], ); final String stdout = (result.stdout as String).replaceAll('\r', '\n'); expect( stdout, contains('--experimental-faster-testing was parsed but will be ignored. ' 'This option should not be used when running a single test file.'), ); expect(stdout, contains(RegExp(r'\+\d+: All tests passed\!'))); expect(stdout, contains('test 0: Starting flutter_tester process with command')); expect(stdout, contains('test 0: deleting temporary directory')); expect(stdout, contains('test 0: finished')); expect(stdout, contains('test package returned with exit code 0')); if ((result.stderr as String).isNotEmpty) { fail('unexpected error output from test:\n\n${result.stderr}\n-- end stderr --\n\n'); } expect(result, const ProcessResultMatcher()); }); testWithoutContext('flutter test should ignore --experimental-faster-testing when running integration tests', () async { final ProcessResult result = await _runFlutterTest( 'trivial_widget', automatedTestsDirectory, integrationTestDirectory, extraArguments: <String>[ ...integrationTestExtraArgs, '--experimental-faster-testing', ], ); final String stdout = (result.stdout as String).replaceAll('\r', '\n'); expect( stdout, contains('--experimental-faster-testing was parsed but will be ignored. ' 'This option is not supported when running integration tests or web ' 'tests.'), ); if ((result.stderr as String).isNotEmpty) { fail('unexpected error output from test:\n\n${result.stderr}\n-- end stderr --\n\n'); } expect(result, const ProcessResultMatcher()); }); testWithoutContext('flutter test should run all tests inside of a directory with no trailing slash', () async { final ProcessResult result = await _runFlutterTest(null, automatedTestsDirectory, '$flutterTestDirectory/child_directory', extraArguments: const <String>['--verbose']); final String stdout = (result.stdout as String).replaceAll('\r', '\n'); expect(result.stdout, contains(RegExp(r'\+\d+: All tests passed\!'))); expect(stdout, contains('test 0: Starting flutter_tester process with command')); expect(stdout, contains('test 0: deleting temporary directory')); expect(stdout, contains('test 0: finished')); expect(stdout, contains('test package returned with exit code 0')); if ((result.stderr as String).isNotEmpty) { fail('unexpected error output from test:\n\n${result.stderr}\n-- end stderr --\n\n'); } expect(result, const ProcessResultMatcher()); }); testWithoutContext('flutter gold skips tests where the expectations are missing', () async { return _testFile('flutter_gold', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero); }); testWithoutContext('flutter test should respect --serve-observatory', () async { Process? process; StreamSubscription<String>? sub; try { process = await _runFlutterTestConcurrent('trivial', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--start-paused', '--serve-observatory']); final Completer<Uri> completer = Completer<Uri>(); final RegExp vmServiceUriRegExp = RegExp(r'((http)?:\/\/)[^\s]+'); sub = process.stdout.transform(utf8.decoder).listen((String e) { if (!completer.isCompleted && vmServiceUriRegExp.hasMatch(e)) { completer.complete(Uri.parse(vmServiceUriRegExp.firstMatch(e)!.group(0)!)); } }); final Uri vmServiceUri = await completer.future; final HttpClient client = HttpClient(); final HttpClientRequest request = await client.getUrl(vmServiceUri); final HttpClientResponse response = await request.close(); final String content = await response.transform(utf8.decoder).join(); expect(content, contains('Dart VM Observatory')); } finally { await sub?.cancel(); process?.kill(); } }); testWithoutContext('flutter test should serve DevTools', () async { Process? process; StreamSubscription<String>? sub; try { process = await _runFlutterTestConcurrent('trivial', automatedTestsDirectory, flutterTestDirectory, extraArguments: const <String>['--start-paused']); final Completer<Uri> completer = Completer<Uri>(); final RegExp devToolsUriRegExp = RegExp(r'The Flutter DevTools debugger and profiler is available at: (http://[^\s]+)'); sub = process.stdout.transform(utf8.decoder).listen((String e) { if (!completer.isCompleted && devToolsUriRegExp.hasMatch(e)) { completer.complete(Uri.parse(devToolsUriRegExp.firstMatch(e)!.group(1)!)); } }); final Uri devToolsUri = await completer.future; final HttpClient client = HttpClient(); final HttpClientRequest request = await client.getUrl(devToolsUri); final HttpClientResponse response = await request.close(); final String content = await response.transform(utf8.decoder).join(); expect(content, contains('DevTools')); } finally { await sub?.cancel(); process?.kill(); } }); } Future<void> _testFile( String testName, String workingDirectory, String testDirectory, { Matcher? exitCode, List<String> extraArguments = const <String>[], }) async { exitCode ??= isNonZero; final String fullTestExpectation = fileSystem.path.join(testDirectory, '${testName}_expectation.txt'); final File expectationFile = fileSystem.file(fullTestExpectation); if (!expectationFile.existsSync()) { fail('missing expectation file: $expectationFile'); } final ProcessResult exec = await _runFlutterTest( testName, workingDirectory, testDirectory, extraArguments: extraArguments, ); expect( exec.exitCode, exitCode, reason: '"$testName" returned code ${exec.exitCode}\n\nstdout:\n' '${exec.stdout}\nstderr:\n${exec.stderr}', ); List<String> output = (exec.stdout as String).split('\n'); output = _removeMacFontServerWarning(output); if (output.first.startsWith('Waiting for another flutter command to release the startup lock...')) { output.removeAt(0); } if (output.first.startsWith('Running "flutter pub get" in')) { output.removeAt(0); } // Whether cached artifacts need to be downloaded is dependent on what // previous tests have run. Disregard these messages. output.removeWhere(RegExp(r'Downloading .*\.\.\.').hasMatch); output.add('<<stderr>>'); output.addAll((exec.stderr as String).split('\n')); final List<String> expectations = fileSystem.file(fullTestExpectation).readAsLinesSync(); bool allowSkip = false; int expectationLineNumber = 0; int outputLineNumber = 0; bool haveSeenStdErrMarker = false; while (expectationLineNumber < expectations.length) { expect( output, hasLength(greaterThan(outputLineNumber)), reason: 'Failure in $testName to compare to $fullTestExpectation', ); final String expectationLine = expectations[expectationLineNumber]; String outputLine = output[outputLineNumber]; if (expectationLine == '<<skip until matching line>>') { allowSkip = true; expectationLineNumber += 1; continue; } if (allowSkip) { if (!RegExp(expectationLine).hasMatch(outputLine)) { outputLineNumber += 1; continue; } allowSkip = false; } if (expectationLine == '<<stderr>>') { expect(haveSeenStdErrMarker, isFalse); haveSeenStdErrMarker = true; } if (!RegExp(expectationLine).hasMatch(outputLine) && outputLineNumber + 1 < output.length) { // Check if the RegExp can match the next two lines in the output so // that it is possible to write expectations that still hold even if a // line is wrapped slightly differently due to for example a file name // being longer on one platform than another. final String mergedLines = '$outputLine\n${output[outputLineNumber+1]}'; if (RegExp(expectationLine).hasMatch(mergedLines)) { outputLineNumber += 1; outputLine = mergedLines; } } expect(outputLine, matches(expectationLine), reason: 'Full output:\n- - - -----8<----- - - -\n${output.join("\n")}\n- - - -----8<----- - - -'); expectationLineNumber += 1; outputLineNumber += 1; } expect(allowSkip, isFalse); if (!haveSeenStdErrMarker) { expect(exec.stderr, ''); } } final RegExp _fontServerProtocolPattern = RegExp(r'flutter_tester.*Font server protocol version mismatch'); final RegExp _unableToConnectToFontDaemonPattern = RegExp(r'flutter_tester.*XType: unable to make a connection to the font daemon!'); final RegExp _xtFontStaticRegistryPattern = RegExp(r'flutter_tester.*XType: XTFontStaticRegistry is enabled as fontd is not available'); // https://github.com/flutter/flutter/issues/132990 List<String> _removeMacFontServerWarning(List<String> output) { return output.where((String line) { if (_fontServerProtocolPattern.hasMatch(line)) { return false; } if (_unableToConnectToFontDaemonPattern.hasMatch(line)) { return false; } if (_xtFontStaticRegistryPattern.hasMatch(line)) { return false; } return true; }).toList(); } Future<ProcessResult> _runFlutterTest( String? testName, String workingDirectory, String testDirectory, { List<String> extraArguments = const <String>[], String? query, }) async { String testPath; if (testName == null) { // Test everything in the directory. testPath = testDirectory; final Directory directoryToTest = fileSystem.directory(testPath); if (!directoryToTest.existsSync()) { fail('missing test directory: $directoryToTest'); } } else { // Test just a specific test file. testPath = fileSystem.path.join(testDirectory, '${testName}_test.dart'); final File testFile = fileSystem.file(testPath); if (!testFile.existsSync()) { fail('missing test file: $testFile'); } } final List<String> args = <String>[ 'test', '--no-color', '--no-version-check', '--no-pub', '--reporter', 'compact', ...extraArguments, if (query != null) Uri.file(testPath).replace(query: query).toString() else testPath, ]; return Process.run( flutterBin, // Uses the precompiled flutter tool for faster tests, args, workingDirectory: workingDirectory, stdoutEncoding: utf8, stderrEncoding: utf8, ); } Future<Process> _runFlutterTestConcurrent( String? testName, String workingDirectory, String testDirectory, { List<String> extraArguments = const <String>[], }) async { String testPath; if (testName == null) { // Test everything in the directory. testPath = testDirectory; final Directory directoryToTest = fileSystem.directory(testPath); if (!directoryToTest.existsSync()) { fail('missing test directory: $directoryToTest'); } } else { // Test just a specific test file. testPath = fileSystem.path.join(testDirectory, '${testName}_test.dart'); final File testFile = fileSystem.file(testPath); if (!testFile.existsSync()) { fail('missing test file: $testFile'); } } final List<String> args = <String>[ 'test', '--no-color', '--no-version-check', '--no-pub', '--reporter', 'compact', ...extraArguments, testPath, ]; return Process.start( flutterBin, // Uses the precompiled flutter tool for faster tests, args, workingDirectory: workingDirectory, ); }
flutter/packages/flutter_tools/test/integration.shard/test_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/integration.shard/test_test.dart", "repo_id": "flutter", "token_count": 8628 }
980
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:collection/collection.dart'; /// The HTTP verb for a [FakeRequest]. enum HttpMethod { get, put, delete, post, patch, head, } HttpMethod _fromMethodString(String value) { final String name = value.toLowerCase(); switch (name) { case 'get': return HttpMethod.get; case 'put': return HttpMethod.put; case 'delete': return HttpMethod.delete; case 'post': return HttpMethod.post; case 'patch': return HttpMethod.patch; case 'head': return HttpMethod.head; default: throw StateError('Unrecognized HTTP method $value'); } } String _toMethodString(HttpMethod method) { return switch (method) { HttpMethod.get => 'GET', HttpMethod.put => 'PUT', HttpMethod.delete => 'DELETE', HttpMethod.post => 'POST', HttpMethod.patch => 'PATCH', HttpMethod.head => 'HEAD' }; } /// Create a fake request that configures the [FakeHttpClient] to respond /// with the provided [response]. /// /// By default, returns a response with a 200 OK status code and an /// empty response. If [responseError] is non-null, will throw this instead /// of returning the response when closing the request. class FakeRequest { const FakeRequest(this.uri, { this.method = HttpMethod.get, this.response = FakeResponse.empty, this.responseError, this.body, }); final Uri uri; final HttpMethod method; final FakeResponse response; final Object? responseError; final List<int>? body; @override String toString() => 'Request{${_toMethodString(method)}, $uri}'; } /// The response the server will create for a given [FakeRequest]. class FakeResponse { const FakeResponse({ this.statusCode = HttpStatus.ok, this.body = const <int>[], this.headers = const <String, List<String>>{}, }); static const FakeResponse empty = FakeResponse(); final int statusCode; final List<int> body; final Map<String, List<String>> headers; } /// A fake implementation of the HttpClient used for testing. /// /// This does not fully implement the HttpClient. If an additional method /// is actually needed by the test script, then it should be added here /// instead of in another fake. class FakeHttpClient implements HttpClient { /// Creates an HTTP client that responses to each provided /// fake request with the provided fake response. /// /// This does not enforce any order on the requests, but if multiple /// requests match then the first will be selected; FakeHttpClient.list(List<FakeRequest> requests) : _requests = requests.toList(); /// Creates an HTTP client that always returns an empty 200 request. FakeHttpClient.any() : _any = true, _requests = <FakeRequest>[]; bool _any = false; final List<FakeRequest> _requests; @override bool autoUncompress = true; @override Duration? connectionTimeout; @override Duration idleTimeout = Duration.zero; @override int? maxConnectionsPerHost; @override String? userAgent; @override void addCredentials(Uri url, String realm, HttpClientCredentials credentials) { throw UnimplementedError(); } @override void addProxyCredentials(String host, int port, String realm, HttpClientCredentials credentials) { throw UnimplementedError(); } @override Future<ConnectionTask<Socket>> Function(Uri url, String? proxyHost, int? proxyPort)? connectionFactory; @override Future<bool> Function(Uri url, String scheme, String realm)? authenticate; @override Future<bool> Function(String host, int port, String scheme, String realm)? authenticateProxy; @override bool Function(X509Certificate cert, String host, int port)? badCertificateCallback; @override void Function(String line)? keyLog; @override void close({bool force = false}) { } @override Future<HttpClientRequest> delete(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return deleteUrl(uri); } @override Future<HttpClientRequest> deleteUrl(Uri url) async { return _findRequest(HttpMethod.delete, url, StackTrace.current); } @override String Function(Uri url)? findProxy; @override Future<HttpClientRequest> get(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return getUrl(uri); } @override Future<HttpClientRequest> getUrl(Uri url) async { return _findRequest(HttpMethod.get, url, StackTrace.current); } @override Future<HttpClientRequest> head(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return headUrl(uri); } @override Future<HttpClientRequest> headUrl(Uri url) async { return _findRequest(HttpMethod.head, url, StackTrace.current); } @override Future<HttpClientRequest> open(String method, String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return openUrl(method, uri); } @override Future<HttpClientRequest> openUrl(String method, Uri url) async { return _findRequest(_fromMethodString(method), url, StackTrace.current); } @override Future<HttpClientRequest> patch(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return patchUrl(uri); } @override Future<HttpClientRequest> patchUrl(Uri url) async { return _findRequest(HttpMethod.patch, url, StackTrace.current); } @override Future<HttpClientRequest> post(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return postUrl(uri); } @override Future<HttpClientRequest> postUrl(Uri url) async { return _findRequest(HttpMethod.post, url, StackTrace.current); } @override Future<HttpClientRequest> put(String host, int port, String path) { final Uri uri = Uri(host: host, port: port, path: path); return putUrl(uri); } @override Future<HttpClientRequest> putUrl(Uri url) async { return _findRequest(HttpMethod.put, url, StackTrace.current); } int _requestCount = 0; _FakeHttpClientRequest _findRequest(HttpMethod method, Uri uri, StackTrace stackTrace) { // Ensure the fake client throws similar errors to the real client. if (uri.host.isEmpty) { throw ArgumentError('No host specified in URI $uri'); } else if (uri.scheme != 'http' && uri.scheme != 'https') { throw ArgumentError("Unsupported scheme '${uri.scheme}' in URI $uri"); } final String methodString = _toMethodString(method); if (_any) { return _FakeHttpClientRequest( FakeResponse.empty, uri, methodString, null, null, stackTrace, ); } FakeRequest? matchedRequest; for (final FakeRequest request in _requests) { if (request.method == method && request.uri.toString() == uri.toString()) { matchedRequest = request; break; } } if (matchedRequest == null) { throw StateError( 'Unexpected request for $method to $uri after $_requestCount requests.\n' 'Pending requests: ${_requests.join(',')}' ); } _requestCount += 1; _requests.remove(matchedRequest); return _FakeHttpClientRequest( matchedRequest.response, uri, methodString, matchedRequest.responseError, matchedRequest.body, stackTrace, ); } } class _FakeHttpClientRequest implements HttpClientRequest { _FakeHttpClientRequest(this._response, this._uri, this._method, this._responseError, this._expectedBody, this._stackTrace); final FakeResponse _response; final String _method; final Uri _uri; final Object? _responseError; final List<int> _body = <int>[]; final List<int>? _expectedBody; final StackTrace _stackTrace; @override bool bufferOutput = true; @override int contentLength = 0; @override late Encoding encoding; @override bool followRedirects = true; @override int maxRedirects = 5; @override bool persistentConnection = true; @override void abort([Object? exception, StackTrace? stackTrace]) { throw UnimplementedError(); } @override void add(List<int> data) { _body.addAll(data); } @override void addError(Object error, [StackTrace? stackTrace]) { } @override Future<void> addStream(Stream<List<int>> stream) async { final Completer<void> completer = Completer<void>(); stream.listen(_body.addAll, onDone: completer.complete); await completer.future; } @override Future<HttpClientResponse> close() async { final Completer<void> completer = Completer<void>(); Timer.run(() { if (_expectedBody != null && !const ListEquality<int>().equals(_expectedBody, _body)) { completer.completeError(StateError( 'Expected a request with the following body:\n$_expectedBody\n but found:\n$_body' ), _stackTrace); } else { completer.complete(); } }); await completer.future; if (_responseError != null) { return Future<HttpClientResponse>.error(_responseError); } return _FakeHttpClientResponse(_response); } @override HttpConnectionInfo get connectionInfo => throw UnimplementedError(); @override List<Cookie> get cookies => throw UnimplementedError(); @override Future<HttpClientResponse> get done => throw UnimplementedError(); @override Future<void> flush() async { } @override final HttpHeaders headers = _FakeHttpHeaders(<String, List<String>>{}); @override String get method => _method; @override Uri get uri => _uri; @override void write(Object? object) { _body.addAll(utf8.encode(object.toString())); } @override void writeAll(Iterable<dynamic> objects, [String separator = '']) { _body.addAll(utf8.encode(objects.join(separator))); } @override void writeCharCode(int charCode) { _body.add(charCode); } @override void writeln([Object? object = '']) { _body.addAll(utf8.encode('$object\n')); } } class _FakeHttpClientResponse extends Stream<List<int>> implements HttpClientResponse { _FakeHttpClientResponse(this._response) : headers = _FakeHttpHeaders(Map<String, List<String>>.from(_response.headers)); final FakeResponse _response; @override X509Certificate get certificate => throw UnimplementedError(); @override HttpClientResponseCompressionState get compressionState => throw UnimplementedError(); @override HttpConnectionInfo get connectionInfo => throw UnimplementedError(); @override int get contentLength => _response.body.length; @override List<Cookie> get cookies => throw UnimplementedError(); @override Future<Socket> detachSocket() { throw UnimplementedError(); } @override final HttpHeaders headers; @override bool get isRedirect => throw UnimplementedError(); @override StreamSubscription<List<int>> listen( void Function(List<int> event)? onData, { Function? onError, void Function()? onDone, bool? cancelOnError, }) { final Stream<List<int>> response = Stream<List<int>>.fromIterable(<List<int>>[ _response.body, ]); return response.listen(onData, onError: onError, onDone: onDone, cancelOnError: cancelOnError); } @override bool get persistentConnection => throw UnimplementedError(); @override String get reasonPhrase => 'OK'; @override Future<HttpClientResponse> redirect([String? method, Uri? url, bool? followLoops]) { throw UnimplementedError(); } @override List<RedirectInfo> get redirects => throw UnimplementedError(); @override int get statusCode => _response.statusCode; } class _FakeHttpHeaders implements HttpHeaders { _FakeHttpHeaders(this._backingData); final Map<String, List<String>> _backingData; @override List<String>? operator [](String name) => _backingData[name]; @override void add(String name, Object value, {bool preserveHeaderCase = false}) { _backingData[name] ??= <String>[]; _backingData[name]!.add(value.toString()); } @override late bool chunkedTransferEncoding; @override void clear() { _backingData.clear(); } @override int contentLength = -1; @override ContentType? contentType; @override DateTime? date; @override DateTime? expires; @override void forEach(void Function(String name, List<String> values) action) { } @override String? host; @override void noFolding(String name) { } @override void remove(String name, Object value) { _backingData[name]?.remove(value.toString()); } @override void removeAll(String name) { _backingData.remove(name); } @override void set(String name, Object value, {bool preserveHeaderCase = false}) { _backingData[name] = <String>[value.toString()]; } @override String? value(String name) { return _backingData[name]?.join('; '); } @override DateTime? ifModifiedSince; @override late bool persistentConnection; @override int? port; }
flutter/packages/flutter_tools/test/src/fake_http_client.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/src/fake_http_client.dart", "repo_id": "flutter", "token_count": 4506 }
981
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:file/file.dart'; import '../integration.shard/test_data/hot_reload_project.dart'; import '../integration.shard/test_driver.dart'; import '../integration.shard/test_utils.dart'; import '../src/common.dart'; import 'test_data/hot_reload_index_html_samples.dart'; void main() async { await _testProject(HotReloadProject()); // default await _testProject(HotReloadProject(constApp: true), name: 'Default) (with `const MyApp()`)'); // runApp(const MyApp()); await _testProject(HotReloadProject(indexHtml: indexHtmlFlutterJsCallback), name: 'flutter.js (callback)'); await _testProject(HotReloadProject(indexHtml: indexHtmlFlutterJsPromisesFull), name: 'flutter.js (promises)'); await _testProject(HotReloadProject(indexHtml: indexHtmlFlutterJsPromisesShort), name: 'flutter.js (promises, short)'); await _testProject(HotReloadProject(indexHtml: indexHtmlFlutterJsLoad), name: 'flutter.js (load)'); await _testProject(HotReloadProject(indexHtml: indexHtmlNoFlutterJs), name: 'No flutter.js'); await _testProject(HotReloadProject(indexHtml: indexHtmlWithFlutterBootstrapScriptTag), name: 'Using flutter_bootstrap.js script tag'); await _testProject(HotReloadProject(indexHtml: indexHtmlWithInlinedFlutterBootstrapScript), name: 'Using inlined flutter_bootstrap.js'); } Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) async { late Directory tempDir; late FlutterRunTestDriver flutter; final String testName = 'Hot reload (index.html: $name)'; setUp(() async { tempDir = createResolvedTempDirectorySync('hot_reload_test.'); await project.setUpIn(tempDir); flutter = FlutterRunTestDriver(tempDir); }); tearDown(() async { await flutter.stop(); await flutter.done; tryToDelete(tempDir); }); testWithoutContext('$testName: hot restart works without error', () async { flutter.stdout.listen(printOnFailure); await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']); await flutter.hotRestart(); }); testWithoutContext('$testName: newly added code executes during hot restart', () async { final Completer<void> completer = Completer<void>(); final StreamSubscription<String> subscription = flutter.stdout.listen((String line) { printOnFailure(line); if (line.contains('(((((RELOAD WORKED)))))')) { completer.complete(); } }); await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']); project.uncommentHotReloadPrint(); try { await flutter.hotRestart(); await completer.future.timeout(const Duration(seconds: 15)); } finally { await subscription.cancel(); } }); testWithoutContext('$testName: newly added code executes during hot restart - canvaskit', () async { final Completer<void> completer = Completer<void>(); final StreamSubscription<String> subscription = flutter.stdout.listen((String line) { printOnFailure(line); if (line.contains('(((((RELOAD WORKED)))))')) { completer.complete(); } }); await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=canvaskit']); project.uncommentHotReloadPrint(); try { await flutter.hotRestart(); await completer.future.timeout(const Duration(seconds: 15)); } finally { await subscription.cancel(); } }, skip: true); // Skipped for https://github.com/flutter/flutter/issues/110879. }
flutter/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart/0
{ "file_path": "flutter/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart", "repo_id": "flutter", "token_count": 1268 }
982
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:ui' as ui; import 'dart:ui_web' as ui_web; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; // Examples can assume: // import 'package:flutter_web_plugins/flutter_web_plugins.dart'; // import 'package:flutter/services.dart'; // import 'dart:ui_web' as ui_web; // void handleFrameworkMessage(String name, ByteData? data, PlatformMessageResponseCallback? callback) { } /// A registrar for Flutter plugins implemented in Dart. /// /// Plugins for the web platform are implemented in Dart and are /// registered with this class by code generated by the `flutter` tool /// when compiling the application. /// /// This class implements [BinaryMessenger] to route messages from the /// framework to registered plugins. /// /// Use this [BinaryMessenger] when creating platform channels in order for /// them to receive messages from the platform side. For example: /// /// ```dart /// class MyPlugin { /// static void registerWith(Registrar registrar) { /// final MethodChannel channel = MethodChannel( /// 'com.my_plugin/my_plugin', /// const StandardMethodCodec(), /// registrar, // the registrar is used as the BinaryMessenger /// ); /// final MyPlugin instance = MyPlugin(); /// channel.setMethodCallHandler(instance.handleMethodCall); /// } /// /// Future<dynamic> handleMethodCall(MethodCall call) async { /// // ... /// } /// /// // ... /// } /// ``` class Registrar extends BinaryMessenger { /// Creates a [Registrar]. /// /// The argument is ignored. To create a test [Registrar] with custom behavior, /// subclass the [Registrar] class and override methods as appropriate. Registrar([ @Deprecated( 'This argument is ignored. ' 'This feature was deprecated after v1.24.0-7.0.pre.' ) BinaryMessenger? binaryMessenger, ]); /// Registers the registrar's message handler /// ([handlePlatformMessage]) with the engine, so that plugin /// messages are correctly dispatched to the relevant registered /// plugin. /// /// Only one handler can be registered at a time. Calling this /// method a second time silently unregisters any /// previously-registered handler and replaces it with the handler /// from this object. /// /// This method uses a function called `setPluginHandler` in /// the [dart:ui_web] library. That function is only available when /// compiling for the web. void registerMessageHandler() { ui_web.setPluginHandler(handleFrameworkMessage); } /// Receives a platform message from the framework. /// /// This method has been replaced with the more clearly-named [handleFrameworkMessage]. @Deprecated( 'Use handleFrameworkMessage instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.' ) @override Future<void> handlePlatformMessage( String channel, ByteData? data, ui.PlatformMessageResponseCallback? callback, ) => handleFrameworkMessage(channel, data, callback); /// Message handler for web plugins. /// /// This method is called when handling messages from the framework. /// /// If a handler has been registered for the given `channel`, it is /// invoked, and the value it returns is passed to `callback` (if that /// is non-null). Then, the method's future is completed. /// /// If no handler has been registered for that channel, then the /// callback (if any) is invoked with null, then the method's future /// is completed. /// /// Messages are not buffered (unlike platform messages headed to /// the framework, which are managed by [ChannelBuffers]). /// /// This method is registered as the message handler by code /// autogenerated by the `flutter` tool when the application is /// compiled, if any web plugins are used. The code in question is /// the following: /// /// ```dart /// ui_web.setPluginHandler(handleFrameworkMessage); /// ``` Future<void> handleFrameworkMessage( String channel, ByteData? data, ui.PlatformMessageResponseCallback? callback, ) async { ByteData? response; try { final MessageHandler? handler = _handlers[channel]; if (handler != null) { response = await handler(data); } } catch (exception, stack) { FlutterError.reportError(FlutterErrorDetails( exception: exception, stack: stack, library: 'flutter web plugins', context: ErrorDescription('during a framework-to-plugin message'), )); } finally { if (callback != null) { callback(response); } } } /// Returns `this`. @Deprecated( 'This property is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.24.0-7.0.pre.' ) BinaryMessenger get messenger => this; final Map<String, MessageHandler> _handlers = <String, MessageHandler>{}; /// Sends a platform message from the platform side back to the framework. @override Future<ByteData?> send(String channel, ByteData? message) { final Completer<ByteData?> completer = Completer<ByteData?>(); ui.channelBuffers.push(channel, message, (ByteData? reply) { try { completer.complete(reply); } catch (exception, stack) { FlutterError.reportError(FlutterErrorDetails( exception: exception, stack: stack, library: 'flutter web plugins', context: ErrorDescription('during a plugin-to-framework message'), )); } }); return completer.future; } @override void setMessageHandler(String channel, MessageHandler? handler) { if (handler == null) { _handlers.remove(channel); } else { _handlers[channel] = handler; } } } /// This class was previously separate from [Registrar] but was merged into it /// as part of a simplification of the web plugins API. @Deprecated( 'Use Registrar instead. ' 'This feature was deprecated after v1.26.0-18.0.pre.' ) class PluginRegistry extends Registrar { /// Creates a [Registrar]. /// /// The argument is ignored. @Deprecated( 'Use Registrar instead. ' 'This feature was deprecated after v1.26.0-18.0.pre.' ) PluginRegistry([ @Deprecated( 'This argument is ignored. ' 'This feature was deprecated after v1.26.0-18.0.pre.' ) BinaryMessenger? binaryMessenger, ]) : super(); /// Returns `this`. The argument is ignored. @Deprecated( 'This method is redundant. It returns the object on which it is called. ' 'This feature was deprecated after v1.26.0-18.0.pre.' ) Registrar registrarFor(Type key) => this; } /// The default plugin registrar for the web. final Registrar webPluginRegistrar = PluginRegistry(); /// A deprecated alias for [webPluginRegistrar]. @Deprecated( 'Use webPluginRegistrar instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.' ) PluginRegistry get webPluginRegistry => webPluginRegistrar as PluginRegistry; /// A deprecated alias for [webPluginRegistrar]. @Deprecated( 'Use webPluginRegistrar instead. ' 'This feature was deprecated after v1.24.0-7.0.pre.' ) BinaryMessenger get pluginBinaryMessenger => webPluginRegistrar;
flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart/0
{ "file_path": "flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart", "repo_id": "flutter", "token_count": 2330 }
983
name: fuchsia_remote_debug_protocol publish_to: none description: Provides an API to test/debug Flutter applications on remote Fuchsia devices and emulators. homepage: https://flutter.dev environment: sdk: '>=3.2.0-0 <4.0.0' dependencies: process: 5.0.2 vm_service: 14.2.0 file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" meta: 1.12.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: test: 1.25.2 _fe_analyzer_shared: 67.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" analyzer: 6.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" test_api: 0.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" test_core: 0.6.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" web_socket_channel: 2.4.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dartdoc: # Exclude this package from the hosted API docs. nodoc: true # PUBSPEC CHECKSUM: d663
flutter/packages/fuchsia_remote_debug_protocol/pubspec.yaml/0
{ "file_path": "flutter/packages/fuchsia_remote_debug_protocol/pubspec.yaml", "repo_id": "flutter", "token_count": 1771 }
984
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package dev.flutter.plugins.integration_test; import android.app.Activity; import android.content.Context; import com.google.common.util.concurrent.SettableFuture; import io.flutter.embedding.engine.plugins.FlutterPlugin; import io.flutter.embedding.engine.plugins.activity.ActivityAware; import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding; import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel.MethodCallHandler; import io.flutter.plugin.common.MethodChannel.Result; import java.io.IOException; import java.util.Map; import java.util.concurrent.Future; /** IntegrationTestPlugin */ public class IntegrationTestPlugin implements MethodCallHandler, FlutterPlugin, ActivityAware { private static final String CHANNEL = "plugins.flutter.io/integration_test"; private static final SettableFuture<Map<String, String>> testResultsSettable = SettableFuture.create(); private MethodChannel methodChannel; private Activity flutterActivity; public static final Future<Map<String, String>> testResults = testResultsSettable; /** Plugin registration. */ @SuppressWarnings("deprecation") public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) { final IntegrationTestPlugin instance = new IntegrationTestPlugin(); instance.onAttachedToEngine(registrar.context(), registrar.messenger()); } @Override public void onAttachedToEngine(FlutterPluginBinding binding) { onAttachedToEngine(binding.getApplicationContext(), binding.getBinaryMessenger()); } private void onAttachedToEngine(Context unusedApplicationContext, BinaryMessenger messenger) { methodChannel = new MethodChannel(messenger, CHANNEL); methodChannel.setMethodCallHandler(this); } @Override public void onDetachedFromEngine(FlutterPluginBinding binding) { methodChannel.setMethodCallHandler(null); methodChannel = null; } @Override public void onAttachedToActivity(ActivityPluginBinding binding) { flutterActivity = binding.getActivity(); } @Override public void onReattachedToActivityForConfigChanges(ActivityPluginBinding binding) { flutterActivity = binding.getActivity(); } @Override public void onDetachedFromActivity() { flutterActivity = null; } @Override public void onDetachedFromActivityForConfigChanges() { flutterActivity = null; } @Override public void onMethodCall(MethodCall call, Result result) { switch (call.method) { case "allTestsFinished": final Map<String, String> results = call.argument("results"); testResultsSettable.set(results); result.success(null); return; case "convertFlutterSurfaceToImage": if (flutterActivity == null) { result.error("Could not convert to image", "Activity not initialized", null); return; } FlutterDeviceScreenshot.convertFlutterSurfaceToImage(flutterActivity); result.success(null); return; case "revertFlutterImage": if (flutterActivity == null) { result.error("Could not revert Flutter image", "Activity not initialized", null); return; } FlutterDeviceScreenshot.revertFlutterImage(flutterActivity); result.success(null); return; case "captureScreenshot": if (FlutterDeviceScreenshot.hasInstrumentation()) { byte[] image; try { image = FlutterDeviceScreenshot.captureWithUiAutomation(); } catch (IOException exception) { result.error("Could not capture screenshot", "UiAutomation failed", exception); return; } result.success(image); return; } if (flutterActivity == null) { result.error("Could not capture screenshot", "Activity not initialized", null); return; } FlutterDeviceScreenshot.captureView(flutterActivity, methodChannel, result); return; default: result.notImplemented(); } } }
flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/IntegrationTestPlugin.java/0
{ "file_path": "flutter/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/IntegrationTestPlugin.java", "repo_id": "flutter", "token_count": 1454 }
985
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import <Flutter/Flutter.h> NS_ASSUME_NONNULL_BEGIN /** A Flutter plugin that's responsible for communicating the test results back * to iOS XCTest. */ @interface IntegrationTestPlugin : NSObject <FlutterPlugin> /** * Test results that are sent from Dart when integration test completes. Before the * completion, it is @c nil. */ @property(nonatomic, readonly, nullable) NSDictionary<NSString *, NSString *> *testResults; /** * Mapping of screenshot images by suggested names, captured by the dart tests. */ @property (copy, readonly) NSDictionary<NSString *, UIImage *> *capturedScreenshotsByName; /** Fetches the singleton instance of the plugin. */ + (instancetype)instance; - (instancetype)init NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END
flutter/packages/integration_test/ios/Classes/IntegrationTestPlugin.h/0
{ "file_path": "flutter/packages/integration_test/ios/Classes/IntegrationTestPlugin.h", "repo_id": "flutter", "token_count": 275 }
986
buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir }
flutter_clock/analog_clock/android/build.gradle/0
{ "file_path": "flutter_clock/analog_clock/android/build.gradle", "repo_id": "flutter_clock", "token_count": 256 }
987
# This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # # This file should be version controlled and should not be manually edited. version: revision: ade8dfac3dfb4d2ea04b45ff589fd073d8fc4274 channel: master project_type: app
flutter_clock/digital_clock/.metadata/0
{ "file_path": "flutter_clock/digital_clock/.metadata", "repo_id": "flutter_clock", "token_count": 89 }
988
org.gradle.jvmargs=-Xmx1536M android.enableR8=true android.useAndroidX=true android.enableJetifier=true
flutter_clock/digital_clock/android/gradle.properties/0
{ "file_path": "flutter_clock/digital_clock/android/gradle.properties", "repo_id": "flutter_clock", "token_count": 39 }
989
# Flutter Clock Helper This package provides scaffolding code for the clock in the Flutter Clock contest. Contestants: Do not edit this code. ## Model Provides data that can change in the clock. Look in model.dart for more details. * Time format (12- or 24-hour) * Location * Temperature * Temperature high * Temperature low * Temperature unit * Weather unit ## Clock Customizer Provides customizations for your clock (based on the model). You can change the behavior of your clock based on these customizations. <img src='customizer.png' width='350'> To use inside your app's `main.dart`: ``` runApp(ClockCustomizer((ClockModel model) => AnalogClock(model))); ``` For more information, see the code inside [lib/](lib). For a full example, see the [Analog Clock](../analog_clock) or [Digital Clock](../digital_clock) in this GitHub repo.
flutter_clock/flutter_clock_helper/README.md/0
{ "file_path": "flutter_clock/flutter_clock_helper/README.md", "repo_id": "flutter_clock", "token_count": 238 }
990
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/cupertino.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; // BEGIN cupertinoButtonDemo class CupertinoButtonDemo extends StatelessWidget { const CupertinoButtonDemo({super.key}); @override Widget build(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, middle: Text(localizations.demoCupertinoButtonsTitle), ), child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ CupertinoButton( onPressed: () {}, child: Text( localizations.cupertinoButton, ), ), const SizedBox(height: 16), CupertinoButton.filled( onPressed: () {}, child: Text( localizations.cupertinoButtonWithBackground, ), ), const SizedBox(height: 30), // Disabled buttons CupertinoButton( onPressed: null, child: Text( localizations.cupertinoButton, ), ), const SizedBox(height: 16), CupertinoButton.filled( onPressed: null, child: Text( localizations.cupertinoButtonWithBackground, ), ), ], ), ), ); } } // END
gallery/lib/demos/cupertino/cupertino_button_demo.dart/0
{ "file_path": "gallery/lib/demos/cupertino/cupertino_button_demo.dart", "repo_id": "gallery", "token_count": 845 }
991
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:animations/animations.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/demos/material/material_demo_types.dart'; // BEGIN bottomNavigationDemo class BottomNavigationDemo extends StatefulWidget { const BottomNavigationDemo({ super.key, required this.restorationId, required this.type, }); final String restorationId; final BottomNavigationDemoType type; @override State<BottomNavigationDemo> createState() => _BottomNavigationDemoState(); } class _BottomNavigationDemoState extends State<BottomNavigationDemo> with RestorationMixin { final RestorableInt _currentIndex = RestorableInt(0); @override String get restorationId => widget.restorationId; @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_currentIndex, 'bottom_navigation_tab_index'); } @override void dispose() { _currentIndex.dispose(); super.dispose(); } String _title(BuildContext context) { final localizations = GalleryLocalizations.of(context)!; switch (widget.type) { case BottomNavigationDemoType.withLabels: return localizations.demoBottomNavigationPersistentLabels; case BottomNavigationDemoType.withoutLabels: return localizations.demoBottomNavigationSelectedLabel; } } @override Widget build(BuildContext context) { final colorScheme = Theme.of(context).colorScheme; final textTheme = Theme.of(context).textTheme; final localizations = GalleryLocalizations.of(context)!; var bottomNavigationBarItems = <BottomNavigationBarItem>[ BottomNavigationBarItem( icon: const Icon(Icons.add_comment), label: localizations.bottomNavigationCommentsTab, ), BottomNavigationBarItem( icon: const Icon(Icons.calendar_today), label: localizations.bottomNavigationCalendarTab, ), BottomNavigationBarItem( icon: const Icon(Icons.account_circle), label: localizations.bottomNavigationAccountTab, ), BottomNavigationBarItem( icon: const Icon(Icons.alarm_on), label: localizations.bottomNavigationAlarmTab, ), BottomNavigationBarItem( icon: const Icon(Icons.camera_enhance), label: localizations.bottomNavigationCameraTab, ), ]; if (widget.type == BottomNavigationDemoType.withLabels) { bottomNavigationBarItems = bottomNavigationBarItems.sublist( 0, bottomNavigationBarItems.length - 2); _currentIndex.value = _currentIndex.value .clamp(0, bottomNavigationBarItems.length - 1) .toInt(); } return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(_title(context)), ), body: Center( child: PageTransitionSwitcher( transitionBuilder: (child, animation, secondaryAnimation) { return FadeThroughTransition( animation: animation, secondaryAnimation: secondaryAnimation, child: child, ); }, child: _NavigationDestinationView( // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. key: UniqueKey(), item: bottomNavigationBarItems[_currentIndex.value], ), ), ), bottomNavigationBar: BottomNavigationBar( showUnselectedLabels: widget.type == BottomNavigationDemoType.withLabels, items: bottomNavigationBarItems, currentIndex: _currentIndex.value, type: BottomNavigationBarType.fixed, selectedFontSize: textTheme.bodySmall!.fontSize!, unselectedFontSize: textTheme.bodySmall!.fontSize!, onTap: (index) { setState(() { _currentIndex.value = index; }); }, selectedItemColor: colorScheme.onPrimary, unselectedItemColor: colorScheme.onPrimary.withOpacity(0.38), backgroundColor: colorScheme.primary, ), ); } } class _NavigationDestinationView extends StatelessWidget { const _NavigationDestinationView({ super.key, required this.item, }); final BottomNavigationBarItem item; @override Widget build(BuildContext context) { return Stack( children: [ ExcludeSemantics( child: Center( child: Padding( padding: const EdgeInsets.all(16), child: ClipRRect( borderRadius: BorderRadius.circular(8), child: Image.asset( 'assets/demos/bottom_navigation_background.png', package: 'flutter_gallery_assets', ), ), ), ), ), Center( child: IconTheme( data: const IconThemeData( color: Colors.white, size: 80, ), child: Semantics( label: GalleryLocalizations.of(context)! .bottomNavigationContentPlaceholder( item.label!, ), child: item.icon, ), ), ), ], ); } } // END
gallery/lib/demos/material/bottom_navigation_demo.dart/0
{ "file_path": "gallery/lib/demos/material/bottom_navigation_demo.dart", "repo_id": "gallery", "token_count": 2259 }
992
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; import 'package:gallery/demos/material/material_demo_types.dart'; // BEGIN progressIndicatorsDemo class ProgressIndicatorDemo extends StatefulWidget { const ProgressIndicatorDemo({super.key, required this.type}); final ProgressIndicatorDemoType type; @override State<ProgressIndicatorDemo> createState() => _ProgressIndicatorDemoState(); } class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo> with SingleTickerProviderStateMixin { late AnimationController _controller; late Animation<double> _animation; @override void initState() { super.initState(); _controller = AnimationController( duration: const Duration(milliseconds: 1500), vsync: this, animationBehavior: AnimationBehavior.preserve, )..forward(); _animation = CurvedAnimation( parent: _controller, curve: const Interval(0.0, 0.9, curve: Curves.fastOutSlowIn), reverseCurve: Curves.fastOutSlowIn, )..addStatusListener((status) { if (status == AnimationStatus.dismissed) { _controller.forward(); } else if (status == AnimationStatus.completed) { _controller.reverse(); } }); } @override void dispose() { _controller.stop(); super.dispose(); } String get _title { switch (widget.type) { case ProgressIndicatorDemoType.circular: return GalleryLocalizations.of(context)! .demoCircularProgressIndicatorTitle; case ProgressIndicatorDemoType.linear: return GalleryLocalizations.of(context)! .demoLinearProgressIndicatorTitle; } } Widget _buildIndicators(BuildContext context, Widget? child) { switch (widget.type) { case ProgressIndicatorDemoType.circular: return Column( children: [ CircularProgressIndicator( semanticsLabel: GalleryLocalizations.of(context)!.loading, ), const SizedBox(height: 32), CircularProgressIndicator(value: _animation.value), ], ); case ProgressIndicatorDemoType.linear: return Column( children: [ const LinearProgressIndicator(), const SizedBox(height: 32), LinearProgressIndicator(value: _animation.value), ], ); default: return Container(); } } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: Text(_title), ), body: Center( child: SingleChildScrollView( child: Container( padding: const EdgeInsets.all(8), child: AnimatedBuilder( animation: _animation, builder: _buildIndicators, ), ), ), ), ); } } // END
gallery/lib/demos/material/progress_indicator_demo.dart/0
{ "file_path": "gallery/lib/demos/material/progress_indicator_demo.dart", "repo_id": "gallery", "token_count": 1257 }
993
// Copyright 2019 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; // A generic widget for a list of selectable colors. @immutable class ColorPicker extends StatelessWidget { const ColorPicker({ super.key, required this.colors, required this.selectedColor, this.onColorSelection, }); final Set<Color> colors; final Color selectedColor; final ValueChanged<Color>? onColorSelection; @override Widget build(BuildContext context) { return Row( mainAxisAlignment: MainAxisAlignment.center, children: colors.map((color) { return _ColorPickerSwatch( color: color, selected: color == selectedColor, onTap: () { if (onColorSelection != null) { onColorSelection!(color); } }, ); }).toList(), ); } } // A single selectable color widget in the ColorPicker. @immutable class _ColorPickerSwatch extends StatelessWidget { const _ColorPickerSwatch({ required this.color, required this.selected, this.onTap, }); final Color color; final bool selected; final Function? onTap; @override Widget build(BuildContext context) { return Container( width: 60, height: 60, padding: const EdgeInsets.fromLTRB(2, 0, 2, 0), child: RawMaterialButton( fillColor: color, onPressed: () { if (onTap != null) { onTap!(); } }, child: !selected ? null : const Icon( Icons.check, color: Colors.white, ), ), ); } }
gallery/lib/demos/reference/transformations_demo_color_picker.dart/0
{ "file_path": "gallery/lib/demos/reference/transformations_demo_color_picker.dart", "repo_id": "gallery", "token_count": 751 }
994
{ "loading": "Yรผklษ™nir", "deselect": "Seรงimi lษ™ฤŸv edin", "select": "Seรงin", "selectable": "Seรงilษ™ bilษ™n (basฤฑb saxlayฤฑn)", "selected": "Seรงilib", "demo": "Demo", "bottomAppBar": "Alt tษ™tbiq paneli", "notSelected": "Seรงilmษ™yib", "demoCupertinoSearchTextFieldTitle": "AxtarฤฑลŸ mษ™tni sahษ™si", "demoCupertinoPicker": "Seรงici", "demoCupertinoSearchTextFieldSubtitle": "iOS รผslubunda axtarฤฑลŸ mษ™tni sahษ™si", "demoCupertinoSearchTextFieldDescription": "ฤฐstifadษ™รงiyษ™ mษ™tn daxil etmษ™klษ™ axtarฤฑลŸ etmษ™yษ™ imkan verษ™n vษ™ tษ™kliflษ™r vermษ™k vษ™ filtrdษ™n keรงirmษ™k imkanฤฑ verษ™n axtarฤฑลŸ mษ™tni sahษ™si.", "demoCupertinoSearchTextFieldPlaceholder": "Mษ™tn daxil edin", "demoCupertinoScrollbarTitle": "SรผrรผลŸdรผrmษ™ paneli", "demoCupertinoScrollbarSubtitle": "iOS รผslubunda sรผrรผลŸdรผrmษ™ paneli", "demoCupertinoScrollbarDescription": "VerilmiลŸ alt elementi รถrtษ™n sรผrรผลŸdรผrmษ™ paneli", "demoTwoPaneItem": "{value} elementi", "demoTwoPaneList": "Siyahฤฑ", "demoTwoPaneFoldableLabel": "Qatlanan", "demoTwoPaneSmallScreenLabel": "Kiรงik Ekran", "demoTwoPaneSmallScreenDescription": "TwoPane kiรงik ekranlฤฑ cihazda belษ™ davranฤฑr.", "demoTwoPaneTabletLabel": "PlanลŸet / Masaรผstรผ", "demoTwoPaneTabletDescription": "TwoPane planลŸet vษ™ ya masaรผstรผ kimi daha bรถyรผk ekranda belษ™ davranฤฑr.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Qatlanan, bรถyรผk vษ™ kiรงik ekranlarda responsiv dรผzษ™nlษ™r", "splashSelectDemo": "Demo seรงin", "demoTwoPaneFoldableDescription": "TwoPane qatlanan cihazda belษ™ davranฤฑr.", "demoTwoPaneDetails": "Mษ™lumat", "demoTwoPaneSelectItem": "Element seรงin", "demoTwoPaneItemDetails": "{value} elementinin detallarฤฑ", "demoCupertinoContextMenuActionText": "Kontekst menyusuna baxmaq รผรงรผn Flutter loqosuna basฤฑb saxlayฤฑn.", "demoCupertinoContextMenuDescription": "Element basฤฑlฤฑb saxlandฤฑqda gรถrรผnษ™n iOS รผslublu tam ekran kontekst menyusu.", "demoAppBarTitle": "Tษ™tbiq paneli", "demoAppBarDescription": "Tษ™tbiq paneli cari ekrana aid mษ™zmun vษ™ ษ™mษ™liyyatlarฤฑ tษ™min edir. O, brendinq, ekran baลŸlฤฑqlarฤฑ, naviqasiya vษ™ ษ™mษ™liyyatlar รผรงรผn istifadษ™ olunur", "demoDividerTitle": "Ayฤฑrฤฑcฤฑ", "demoDividerSubtitle": "Ayฤฑrฤฑcฤฑ mษ™zmunu siyahฤฑlarda vษ™ tษ™rtibatlarda qruplaลŸdฤฑran nazik bir xษ™ttdir.", "demoDividerDescription": "Ayฤฑrฤฑcฤฑlar mษ™zmunu ayฤฑrmaq รผรงรผn siyahฤฑlar, รงษ™kmษ™cษ™lษ™r vษ™ baลŸqa yerlษ™rdษ™ istifadษ™ edilษ™ bilษ™r.", "demoVerticalDividerTitle": "Vertikal Ayฤฑrฤฑcฤฑ", "demoCupertinoContextMenuTitle": "Kontekst Menyusu", "demoCupertinoContextMenuSubtitle": "iOS รผslublu kontekst menyusu", "demoAppBarSubtitle": "Cari ekrana aid mษ™lumatlarฤฑ vษ™ ษ™mษ™liyyatlarฤฑ gรถstษ™rir", "demoCupertinoContextMenuActionOne": "ฦmษ™liyyat bir", "demoCupertinoContextMenuActionTwo": "ฦmษ™liyyat iki", "demoDateRangePickerDescription": "Material Dizayn tarix aralฤฑฤŸฤฑ seรงicisini ehtiva edษ™n dialoq pษ™ncษ™rษ™sini gรถstษ™rir.", "demoDateRangePickerTitle": "Tarix AralฤฑฤŸฤฑ Seรงicisi", "demoNavigationDrawerUserName": "ฤฐstifadษ™รงi adฤฑ", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "ร‡ษ™kmษ™cษ™ni gรถrmษ™k รผรงรผn kษ™nardan sรผrรผลŸdรผrรผn vษ™ ya yuxarฤฑ sol ikonaya toxunun", "demoNavigationRailTitle": "Naviqasiya Relsi", "demoNavigationRailSubtitle": "Tษ™tbiqin iรงindษ™ Naviqasiya Relsi gรถstษ™rilir", "demoNavigationRailDescription": "Adษ™tษ™n รผรง-beลŸ baxฤฑลŸ arasฤฑnda naviqasiya etmษ™k รผรงรผn tษ™tbiqin solu vษ™ ya saฤŸฤฑnda gรถstษ™rilษ™n material vidcet.", "demoNavigationRailFirst": "Birinci", "demoNavigationDrawerTitle": "Naviqasiya ร‡ษ™kmษ™cษ™si", "demoNavigationRailThird": "รœรงรผncรผ", "replyStarredLabel": "Ulduzlu", "demoTextButtonDescription": "Mษ™tn dรผymษ™sinษ™ basdฤฑqda mรผrษ™kkษ™b rษ™ngi alฤฑr, lakฤฑn yuxarฤฑ qalxmฤฑr. Mษ™tn dรผymษ™lษ™rindษ™n alษ™tlษ™r panelindษ™, dialoqlarda vษ™ sษ™tir iรงlษ™rindษ™ dolฤŸu ilษ™ istifadษ™ edin", "demoElevatedButtonTitle": "Qabarฤฑq Dรผymษ™", "demoElevatedButtonDescription": "Qabarฤฑq dรผymษ™lษ™r ษ™sasษ™n yastฤฑ dรผzษ™nlษ™rin รผzษ™rindษ™ รถlรงรผcษ™ bรถyรผk olur. Onlar dolu vษ™ ya geniลŸ sษ™thlษ™rdษ™ funksiyalarฤฑ vurฤŸulayฤฑr.", "demoOutlinedButtonTitle": "HaลŸiyษ™li Dรผymษ™", "demoOutlinedButtonDescription": "HaลŸiyษ™li dรผymษ™lษ™rษ™ basdฤฑqda qeyri-ลŸษ™ffaf vษ™ qabarฤฑq olurlar. Onlar, adษ™tษ™n, alternativ, ikinci dษ™rษ™cษ™li ษ™mษ™liyyatฤฑ gรถstษ™rmษ™k รผรงรผn qabarฤฑq dรผymษ™lษ™rlษ™ birlษ™ลŸdirilir.", "demoContainerTransformDemoInstructions": "Kartlar, Siyahฤฑlar vษ™ FAB", "demoNavigationDrawerSubtitle": "Tษ™tbiq panelinin iรงindษ™ รงษ™kmษ™cษ™ gรถstษ™rilir", "replyDescription": "Effektiv, fokuslanmฤฑลŸ e-poรงt tษ™tbiqi", "demoNavigationDrawerDescription": "Tษ™tbiqdษ™ naviqasiya keรงidlษ™rini gรถstษ™rmษ™k รผรงรผn ekranฤฑn kษ™narฤฑndan รผfรผqi ลŸษ™kildษ™ sรผrรผลŸษ™n Material Dizayn paneli.", "replyDraftsLabel": "Qaralamalar", "demoNavigationDrawerToPageOne": "Birinci element", "replyInboxLabel": "Gษ™lษ™nlษ™r", "demoSharedXAxisDemoInstructions": "Nรถvbษ™ti vษ™ Geri Dรผymษ™lษ™ri", "replySpamLabel": "Spam", "replyTrashLabel": "Zibil qutusu", "replySentLabel": "Gรถndษ™rilษ™nlษ™r", "demoNavigationRailSecond": "ฤฐkinci", "demoNavigationDrawerToPageTwo": "ฤฐkinci element", "demoFadeScaleDemoInstructions": "Modal vษ™ FAB", "demoFadeThroughDemoInstructions": "Alt naviqasiya", "demoSharedZAxisDemoInstructions": "\"Ayarlar ikonasฤฑ\" dรผymษ™si", "demoSharedYAxisDemoInstructions": "\"Son Oxudulanlar\" รผzrษ™ รงeลŸidlษ™yin", "demoTextButtonTitle": "Mษ™tn Dรผymษ™si", "demoSharedZAxisBeefSandwichRecipeTitle": "Mal ษ™ti sendviรงi", "demoSharedZAxisDessertRecipeDescription": "Desert resepti", "demoSharedYAxisAlbumTileSubtitle": "ฤฐfaรงฤฑ", "demoSharedYAxisAlbumTileTitle": "Albom", "demoSharedYAxisRecentSortTitle": "Son oxudulan", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 albom", "demoSharedYAxisTitle": "PaylaลŸฤฑlan y oxu", "demoSharedXAxisCreateAccountButtonText": "HESAB YARADIN", "demoFadeScaleAlertDialogDiscardButton": "KฦNARLAลžDIRIN", "demoSharedXAxisSignInTextFieldLabel": "E-poรงt vษ™ ya telefon nรถmrษ™si", "demoSharedXAxisSignInSubtitleText": "Hesabฤฑnฤฑzla daxil olun", "demoSharedXAxisSignInWelcomeText": "Salam, David Park", "demoSharedXAxisIndividualCourseSubtitle": "Fษ™rdi Gรถstษ™rilir", "demoSharedXAxisBundledCourseSubtitle": "Paketlษ™nmiลŸ", "demoFadeThroughAlbumsDestination": "Albomlar", "demoSharedXAxisDesignCourseTitle": "Dizayn", "demoSharedXAxisIllustrationCourseTitle": "ฤฐllรผstrasiya", "demoSharedXAxisBusinessCourseTitle": "Biznes", "demoSharedXAxisArtsAndCraftsCourseTitle": "ฤฐncษ™sษ™nษ™t vษ™ Sษ™nษ™tkarlฤฑq", "demoMotionPlaceholderSubtitle": "ฤฐkinci dษ™rษ™cษ™li mษ™tn", "demoFadeScaleAlertDialogCancelButton": "LฦฤžV EDฤฐN", "demoFadeScaleAlertDialogHeader": "Xษ™bษ™rdarlฤฑq dialoqu", "demoFadeScaleHideFabButton": "FAB GฤฐZLฦDฤฐLSฤฐN", "demoFadeScaleShowFabButton": "FAB Gร–STฦRฤฐLSฤฐN", "demoFadeScaleShowAlertDialogButton": "MODAL Gร–STฦRฤฐLSฤฐN", "demoFadeScaleDescription": "SolฤŸunlaลŸma modeli ekranฤฑn mษ™rkษ™zindษ™ solฤŸunlaลŸan dialoq kimi ekran hรผdudlarฤฑna daxil olan vษ™ ya รงฤฑxan UI elementlษ™ri รผรงรผn istifadษ™ edilir.", "demoFadeScaleTitle": "SolฤŸunlaลŸma", "demoFadeThroughTextPlaceholder": "123 foto", "demoFadeThroughSearchDestination": "AxtarฤฑลŸ", "demoFadeThroughPhotosDestination": "Fotolar", "demoSharedXAxisCoursePageSubtitle": "Paketlษ™nmiลŸ kateqoriyalar lentinizdษ™ qruplar kimi gรถrรผnรผr. Bunu hษ™miลŸษ™ dษ™yiลŸษ™ bilษ™rsiniz.", "demoFadeThroughDescription": "Tษ™dricษ™n solฤŸunlaลŸma modeli bir-biri ilษ™ gรผclรผ ษ™laqษ™si olmayan UI elementlษ™ri arasฤฑnda keรงid รผรงรผn istifadษ™ edilir.", "demoFadeThroughTitle": "Tษ™dricษ™n solฤŸunlaลŸma", "demoSharedZAxisHelpSettingLabel": "Yardฤฑm", "demoMotionSubtitle": "ฦvvษ™ldษ™n mรผษ™yyษ™nlษ™ลŸdirilmiลŸ bรผtรผn keรงid modellษ™ri", "demoSharedZAxisNotificationSettingLabel": "BildiriลŸlษ™r", "demoSharedZAxisProfileSettingLabel": "Profil", "demoSharedZAxisSavedRecipesListTitle": "Yadda saxlanmฤฑลŸ reseptlษ™r", "demoSharedZAxisBeefSandwichRecipeDescription": "Mal ษ™ti sendviรงi resepti", "demoSharedZAxisCrabPlateRecipeDescription": "Krab yemษ™yi resepti", "demoSharedXAxisCoursePageTitle": "ฤฐstiqamษ™tlษ™rinizi dษ™qiqlษ™ลŸdirin", "demoSharedZAxisCrabPlateRecipeTitle": "Krab", "demoSharedZAxisShrimpPlateRecipeDescription": "Krevet yemษ™yi resepti", "demoSharedZAxisShrimpPlateRecipeTitle": "Krevet", "demoContainerTransformTypeFadeThrough": "TฦDRฤฐCฦN SOLฤžUNLAลžMA", "demoSharedZAxisDessertRecipeTitle": "Desert", "demoSharedZAxisSandwichRecipeDescription": "Sendviรง resepti", "demoSharedZAxisSandwichRecipeTitle": "Sendviรง", "demoSharedZAxisBurgerRecipeDescription": "Burger resepti", "demoSharedZAxisBurgerRecipeTitle": "Burger", "demoSharedZAxisSettingsPageTitle": "Ayarlar", "demoSharedZAxisTitle": "PaylaลŸฤฑlan z oxu", "demoSharedZAxisPrivacySettingLabel": "Mษ™xfilik", "demoMotionTitle": "Hษ™rษ™kษ™t", "demoContainerTransformTitle": "Konteyner Transformasiyasฤฑ", "demoContainerTransformDescription": "Konteyner transformasiya modeli konteyner ehtiva edษ™n UI elementlษ™ri arasฤฑnda keรงid รผรงรผn nษ™zษ™rdษ™ tutulmuลŸdur. Bu model iki UI elementi arasฤฑnda gรถrรผnษ™n baฤŸlantฤฑ yaradฤฑr", "demoContainerTransformModalBottomSheetTitle": "SolฤŸunlaลŸma rejimi", "demoContainerTransformTypeFade": "SOLฤžUNLAลžMA", "demoSharedYAxisAlbumTileDurationUnit": "dษ™q", "demoMotionPlaceholderTitle": "Ad", "demoSharedXAxisForgotEmailButtonText": "E-POร‡TUNUZU UNUTMUSUNUZ?", "demoMotionSmallPlaceholderSubtitle": "ฤฐkinci dษ™rษ™cษ™li", "demoMotionDetailsPageTitle": "Detallar Sษ™hifษ™si", "demoMotionListTileTitle": "Siyahฤฑ elementi", "demoSharedAxisDescription": "PaylaลŸฤฑlan ox modeli mษ™kan vษ™ ya naviqasiya ษ™laqษ™si olan UI elementlษ™ri arasฤฑnda keรงid รผรงรผn istifadษ™ edilir. Bu model elementlษ™r arasฤฑnda ษ™laqษ™ni gรผclษ™ndirmษ™k รผรงรผn x, y vษ™ ya z oxunda paylaลŸฤฑlan transformasiya istifadษ™ edir.", "demoSharedXAxisTitle": "PaylaลŸฤฑlan x oxu", "demoSharedXAxisBackButtonText": "GERฤฐ", "demoSharedXAxisNextButtonText": "Nร–VBฦTฤฐ", "demoSharedXAxisCulinaryCourseTitle": "Kulinariya", "githubRepo": "{repoName} GitHub yaddaลŸฤฑ", "fortnightlyMenuUS": "ABลž", "fortnightlyMenuBusiness": "Biznes", "fortnightlyMenuScience": "Elm", "fortnightlyMenuSports": "ฤฐdman", "fortnightlyMenuTravel": "Sษ™yahษ™t", "fortnightlyMenuCulture": "Mษ™dษ™niyyษ™t", "fortnightlyTrendingTechDesign": "Texnoloji Dizayn", "rallyBudgetDetailAmountLeft": "Qalan Mษ™blษ™ฤŸ", "fortnightlyHeadlineArmy": "Daxildษ™n YaลŸฤฑl Ordunun Yenidษ™nqurmasฤฑ", "fortnightlyDescription": "Mษ™zmuna fokuslanmฤฑลŸ xษ™bษ™r tษ™tbiqi", "rallyBillDetailAmountDue": "ร–dษ™nilษ™cษ™k Mษ™blษ™ฤŸ", "rallyBudgetDetailTotalCap": "Cษ™mi Kapital", "rallyBudgetDetailAmountUsed": "ฤฐstifadษ™ Edilษ™n Mษ™blษ™ฤŸ", "fortnightlyTrendingHealthcareRevolution": "Sษ™hiyyษ™ ฤฐnqilabฤฑ", "fortnightlyMenuFrontPage": "ร–n Sษ™hifษ™", "fortnightlyMenuWorld": "Dรผnya", "rallyBillDetailAmountPaid": "ร–dษ™nilษ™n Mษ™blษ™ฤŸ", "fortnightlyMenuPolitics": "Siyasษ™t", "fortnightlyHeadlineBees": "ร‡iรงษ™klษ™mษ™ dรถvrรผnรผn arฤฑlara tษ™siri", "fortnightlyHeadlineGasoline": "YanacaฤŸฤฑn gษ™lษ™cษ™yi", "fortnightlyTrendingGreenArmy": "YaลŸฤฑl Ordu", "fortnightlyHeadlineFeminists": "Feministlษ™r partiya tษ™rษ™finษ™ keรงmษ™si", "fortnightlyHeadlineFabrics": "Dizaynerlษ™r mรผasir parรงalar hazฤฑrlamaq รผรงรผn texnologiyadan istifadษ™ edir", "fortnightlyHeadlineStocks": "Sษ™hmlษ™rdษ™ hษ™rษ™kษ™t olmadฤฑqda, ษ™ksษ™r insanlar valyutaya yรถnษ™lir", "fortnightlyTrendingReform": "ฤฐslahat", "fortnightlyMenuTech": "Texnologiya", "fortnightlyHeadlineWar": "Mรผharibษ™ zamanฤฑ bรถlรผnmรผลŸ Amerika hษ™yatlarฤฑ", "fortnightlyHeadlineHealthcare": "Sakit, Lakin Gรผclรผ Sษ™hiyyษ™ ฤฐnqilabฤฑ", "fortnightlyLatestUpdates": "ฦn son gรผncษ™llษ™mษ™lษ™r", "fortnightlyTrendingStocks": "Sษ™hmlษ™r", "rallyBillDetailTotalAmount": "Cษ™mi Mษ™blษ™ฤŸ", "demoCupertinoPickerDateTime": "Tarix vษ™ Vaxt", "signIn": "GฤฐRฤฐลž", "dataTableRowWithSugar": "ลžษ™kษ™rli {value}", "dataTableRowApplePie": "Alma piroqu", "dataTableRowDonut": "Ponรงik", "dataTableRowHoneycomb": "Arฤฑ ลŸanฤฑ konfeti", "dataTableRowLollipop": "Nabat", "dataTableRowJellyBean": "Marmeladlฤฑ konfet", "dataTableRowGingerbread": "Zษ™ncษ™filli kรถkษ™", "dataTableRowCupcake": "Keks", "dataTableRowEclair": "Ekler", "dataTableRowIceCreamSandwich": "Dondurmalฤฑ sendviรง", "dataTableRowFrozenYogurt": "DondurulmuลŸ yoqurt", "dataTableColumnIron": "Dษ™mir (%)", "dataTableColumnCalcium": "Kalsium (%)", "dataTableColumnSodium": "Natrium (mq)", "demoTimePickerTitle": "Vaxt Seรงicisi", "demo2dTransformationsResetTooltip": "Transformasiyanฤฑ sฤฑfฤฑrlayฤฑn", "dataTableColumnFat": "YaฤŸ (q)", "dataTableColumnCalories": "Kalori", "dataTableColumnDessert": "Desert (1 porsiya)", "cardsDemoTravelDestinationLocation1": "Tancavur, Tamil Nadu", "demoTimePickerDescription": "Material Design vaxt seรงicisini ehtiva edษ™n dialoq pษ™ncษ™rษ™sini gรถstษ™rir.", "demoPickersShowPicker": "SEร‡ฤฐCฤฐNฤฐ Gร–STฦRฤฐN", "demoTabsScrollingTitle": "SรผrรผลŸษ™n", "demoTabsNonScrollingTitle": "SรผrรผลŸmษ™yษ™n", "craneHours": "{hours,plural,=1{1 saat}other{{hours} saat}}", "craneMinutes": "{minutes,plural,=1{1 dษ™q}other{{minutes} dษ™q}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "Qidalanma", "demoDatePickerTitle": "Tarix Seรงicisi", "demoPickersSubtitle": "Tarix vษ™ vaxt seรงimi", "demoPickersTitle": "Seรงicilษ™r", "demo2dTransformationsEditTooltip": "Lรถvhษ™ciyษ™ dรผzษ™liลŸ edin", "demoDataTableDescription": "Data cษ™dvษ™llษ™ri mษ™lumatlarฤฑ sฤฑra vษ™ sรผtunlardan ibarษ™t tor ลŸษ™klindษ™ gรถstษ™rir. Onlar mษ™lumatlarฤฑ skan etmษ™yi asanlaลŸdฤฑran qaydaya salฤฑr, belษ™cษ™ istifadษ™รงilษ™r struktur vษ™ mษ™lumatlarฤฑ axtara bilษ™rlษ™r.", "demo2dTransformationsDescription": "Lรถvhษ™ciklษ™rษ™ dรผzษ™liลŸ etmษ™k รผรงรผn toxunun vษ™ kadrฤฑ รงevirmษ™k รผรงรผn jestlษ™rdษ™n istifadษ™ edin. ร‡ษ™kษ™rษ™k kษ™narlarฤฑ yฤฑฤŸฤฑn, barmaqlarฤฑ birlษ™ลŸdirษ™rษ™k miqyasฤฑ dษ™yiลŸin, iki barmaqla fฤฑrladฤฑn. BaลŸlanฤŸฤฑc oriyentasiyaya qayฤฑtmaq รผรงรผn sฤฑfฤฑrlama dรผymษ™sini basฤฑn.", "demo2dTransformationsSubtitle": "Kษ™narlarฤฑ yฤฑฤŸma, miqyasฤฑ dษ™yiลŸmษ™, fฤฑrlatma", "demo2dTransformationsTitle": "2D transformasiya", "demoCupertinoTextFieldPIN": "PIN", "demoCupertinoTextFieldDescription": "Mษ™tn sahษ™si istifadษ™รงiyษ™ mษ™tni aparat klaviaturasฤฑndan vษ™ ya ekran klaviaturasฤฑndan daxil etmษ™yษ™ imkan verir.", "demoCupertinoTextFieldSubtitle": "iOS รผlublu mษ™tn sahษ™lษ™ri", "demoCupertinoTextFieldTitle": "Mษ™tn sahษ™lษ™ri", "demoDatePickerDescription": "Material Design tarix seรงicisini ehtiva edษ™n dialoq pษ™ncษ™rษ™sini gรถstษ™rir.", "demoCupertinoPickerTime": "Vaxt", "demoCupertinoPickerDate": "Tarix", "demoCupertinoPickerTimer": "Taymer", "demoCupertinoPickerDescription": "Sษ™tirlษ™ri, tarixi, vaxtฤฑ, yaxud eyni anda hษ™m tarixi, hษ™m dษ™ vaxtฤฑ seรงmษ™k รผรงรผn istifadษ™ oluna bilษ™cษ™k iOS รผslubunda seรงici vidceti.", "demoCupertinoPickerSubtitle": "iOS รผslubunda seรงicilษ™r", "demoCupertinoPickerTitle": "Seรงicilษ™r", "dataTableRowWithHoney": "Ballฤฑ {value}", "cardsDemoTravelDestinationCity2": "ร‡ettinad", "bannerDemoResetText": "Banneri sฤฑfฤฑrlayฤฑn", "bannerDemoMultipleText": "Bir neรงษ™ ษ™mษ™liyyat", "bannerDemoLeadingText": "ฦsas ikona", "dismiss": "RฦDD EDฤฐN", "cardsDemoTappable": "Toxunula bilษ™n", "cardsDemoSelectable": "Seรงilษ™ bilษ™n (basฤฑb saxlayฤฑn)", "cardsDemoExplore": "AraลŸdฤฑrฤฑn", "cardsDemoExploreSemantics": "{destinationName} mษ™kanฤฑnฤฑ araลŸdฤฑrฤฑn", "cardsDemoShareSemantics": "{destinationName} mษ™kanฤฑnฤฑ paylaลŸฤฑn", "cardsDemoTravelDestinationTitle1": "Tamil Nadu ลŸtatฤฑnda gษ™zmษ™li ษ™n populyar 10 ลŸษ™hษ™r", "cardsDemoTravelDestinationDescription1": "Nรถmrษ™ 10", "cardsDemoTravelDestinationCity1": "Tancavur", "dataTableColumnProtein": "Zรผlal (q)", "cardsDemoTravelDestinationTitle2": "Cษ™nubi Hindistandan olan sษ™nษ™tkarlar", "cardsDemoTravelDestinationDescription2": "ฤฐpษ™kษ™yirษ™nlษ™r", "bannerDemoText": "Parolunuz baลŸqa cihazฤฑnฤฑzda gรผncษ™llษ™nib. Yenidษ™n daxil olun.", "cardsDemoTravelDestinationLocation2": "Sivaqanqa, Tamil Nadu", "cardsDemoTravelDestinationTitle3": "Brihadisvara Mษ™bษ™di", "cardsDemoTravelDestinationDescription3": "Mษ™bษ™dlษ™r", "demoBannerTitle": "Banner", "demoBannerSubtitle": "Bannerin siyahฤฑda gรถstษ™rilmษ™si", "demoBannerDescription": "Banner vacib, qฤฑsa mesajฤฑ gรถstษ™rir vษ™ istifadษ™รงilษ™rษ™ yรถnlษ™ndirmษ™ (vษ™ ya banneri rษ™dd etmษ™) รผzrษ™ ษ™mษ™liyyatlar tษ™qdim edir. Rษ™dd edilmษ™si รผรงรผn istifadษ™รงi ษ™mษ™liyyatฤฑ tษ™lษ™b edilir.", "demoCardTitle": "Kartlar", "demoCardSubtitle": "Kษ™narlarฤฑ yuvarlaqlaลŸdฤฑrฤฑlmฤฑลŸ ษ™sas kartlar", "demoCardDescription": "Kart albom, coฤŸrafi mษ™kan, yemษ™k, ษ™laqษ™ mษ™lumatlarฤฑ vษ™ sair kimi ษ™laqษ™dar mษ™lumatlarฤฑn tษ™qdim edilmษ™si รผรงรผn istifadษ™ edilษ™n Material vษ™rษ™qidir.", "demoDataTableTitle": "Data Cษ™dvษ™llษ™ri", "demoDataTableSubtitle": "Mษ™lumat sฤฑralarฤฑ vษ™ sรผtunlarฤฑ", "dataTableColumnCarbs": "Karbohidrat (q)", "placeTanjore": "Tanjor", "demoGridListsTitle": "Tor Siyahฤฑlar", "placeFlowerMarket": "Gรผl Dรผkanฤฑ", "placeBronzeWorks": "Bรผrรผnc ฤฐลŸlษ™mษ™ Mรผษ™ssisษ™si", "placeMarket": "Market", "placeThanjavurTemple": "Tanjavur Mษ™bษ™di", "placeSaltFarm": "Duz Tษ™sษ™rrรผfatฤฑ", "placeScooters": "Skuterlษ™r", "placeSilkMaker": "ฤฐpษ™k hazฤฑrlayan", "placeLunchPrep": "Nahar hazฤฑrlanmasฤฑ", "placeBeach": "ร‡imษ™rlik", "placeFisherman": "Balฤฑqรงฤฑ", "demoMenuSelected": "Seรงilib: {value}", "demoMenuRemove": "Silin", "demoMenuGetLink": "Keรงid ษ™ldษ™ edin", "demoMenuShare": "PaylaลŸฤฑn", "demoBottomAppBarSubtitle": "Alt hissษ™dษ™ naviqasiya vษ™ ษ™mษ™liyyatlarฤฑ gรถstษ™rir", "demoMenuAnItemWithASectionedMenu": "Bรถlmษ™li menyu ilษ™ element", "demoMenuADisabledMenuItem": "Deaktiv menyu elementi", "demoLinearProgressIndicatorTitle": "Xษ™tti GediลŸat ฤฐndikatoru", "demoMenuContextMenuItemOne": "Birinci kontekst menyusu elementi", "demoMenuAnItemWithASimpleMenu": "Sadษ™ menyu ilษ™ element", "demoCustomSlidersTitle": "Fษ™rdi Slayderlษ™r", "demoMenuAnItemWithAChecklistMenu": "Yoxlama siyahฤฑsฤฑ menyusu ilษ™ element", "demoCupertinoActivityIndicatorTitle": "Fษ™aliyyษ™t indikatoru", "demoCupertinoActivityIndicatorSubtitle": "iOS รผslublu fษ™aliyyษ™t indikatorlarฤฑ", "demoCupertinoActivityIndicatorDescription": "Saatฤฑn ษ™qrษ™bi istiqamษ™tinษ™ fฤฑrlanan iOS รผslublu fษ™aliyyษ™t indikatoru.", "demoCupertinoNavigationBarTitle": "Naviqasiya paneli", "demoCupertinoNavigationBarSubtitle": "iOS รผslublu naviqasiya paneli", "demoCupertinoNavigationBarDescription": "iOS รผslublu naviqasiya paneli. Naviqasiya paneli ortasฤฑnda minimal sษ™hifษ™ baลŸlฤฑฤŸฤฑ olan alษ™t panelidir.", "demoCupertinoPullToRefreshTitle": "Yenilษ™mษ™k รผรงรผn รงษ™kin", "demoCupertinoPullToRefreshSubtitle": "iOS รผslublu \"yenilษ™mษ™k รผรงรผn รงษ™kin\" nizamlayฤฑcฤฑsฤฑ", "demoCupertinoPullToRefreshDescription": "iOS รผslublu \"yenilษ™mษ™k รผรงรผn รงษ™kin\" mษ™zmun nizamlayฤฑcฤฑsฤฑnฤฑ tษ™tbiq edษ™n vidcet.", "demoProgressIndicatorTitle": "GediลŸat indikatorlarฤฑ", "demoProgressIndicatorSubtitle": "Xษ™tti, dairษ™vi, qeyri-mรผษ™yyษ™n", "demoCircularProgressIndicatorTitle": "Dairษ™vi GediลŸat ฤฐndikatoru", "demoCircularProgressIndicatorDescription": "Fฤฑrlanaraq tษ™tbiqin mษ™ลŸฤŸul olduฤŸunu gรถstษ™rษ™n Material Dizaynlฤฑ dairษ™vi gediลŸat indikatoru.", "demoMenuFour": "Dรถrd", "demoLinearProgressIndicatorDescription": "GediลŸat paneli olaraq da tanฤฑnan Material Dizaynlฤฑ xษ™tti gediลŸat indikatoru.", "demoTooltipTitle": "ฤฐpucular", "demoTooltipSubtitle": "Basฤฑb saxladฤฑqda vษ™ ya รผzษ™rindษ™ sรผrรผลŸdรผrdรผkdษ™ gรถstษ™rilษ™n qฤฑsa mesaj", "demoTooltipDescription": "ฤฐpucular dรผymษ™ funksiyasฤฑnฤฑ vษ™ ya digษ™r istifadษ™รงi interfeysi ษ™mษ™liyyatฤฑnฤฑ izah etmษ™yษ™ kรถmษ™k edษ™n mษ™tn etiketlษ™ri tษ™min edir. ฤฐstifadษ™รงilษ™r elementin รผzษ™rindษ™ sรผrรผลŸdรผrdรผkdษ™, fokuslandฤฑqda vษ™ ya basฤฑb saxladฤฑqda ipucular mษ™lumatlandฤฑrฤฑcฤฑ mษ™tn gรถstษ™rir.", "demoTooltipInstructions": "ฤฐpucunu gรถstษ™rmษ™k รผรงรผn basฤฑb saxlayฤฑn vษ™ ya รผzษ™rindษ™ sรผrรผลŸdรผrรผn.", "placeChennai": "ร‡ennay", "demoMenuChecked": "ฤฐลŸarษ™lษ™nib: {value}", "placeChettinad": "ร‡ettinad", "demoMenuPreview": "ร–nizlษ™mษ™", "demoBottomAppBarTitle": "Alt tษ™tbiq paneli", "demoBottomAppBarDescription": "Alt tษ™tbiq panellษ™ri alt naviqasiya siyirmษ™si vษ™ dรถrdษ™ qษ™dษ™r ษ™mษ™liyyata, o cรผmlษ™dษ™n, รผzษ™n ษ™mษ™liyyat dรผymษ™sinษ™ giriลŸ tษ™min edir.", "bottomAppBarNotch": "NiลŸan", "bottomAppBarPosition": "รœzษ™n ฦmษ™liyyat Dรผymษ™si Mรถvqeyi", "bottomAppBarPositionDockedEnd": "ฦlavษ™ edilib - Son", "bottomAppBarPositionDockedCenter": "ฦlavษ™ edilib - Mษ™rkษ™z", "bottomAppBarPositionFloatingEnd": "รœzษ™n - Son", "bottomAppBarPositionFloatingCenter": "รœzษ™n - Mษ™rkษ™z", "demoSlidersEditableNumericalValue": "Redaktษ™ olunan rษ™qษ™mli dษ™yษ™r", "demoGridListsSubtitle": "Sฤฑra vษ™ sรผtun dรผzษ™ni", "demoGridListsDescription": "Tor Siyahฤฑlar ลŸษ™killษ™r kimi homogen datanฤฑn tษ™qdimatฤฑ รผรงรผn tam uyฤŸundur. Tor siyahฤฑdakฤฑ hษ™r element plitษ™ adlanฤฑr.", "demoGridListsImageOnlyTitle": "Yalnฤฑz ลŸษ™kil", "demoGridListsHeaderTitle": "Yuxarฤฑ sษ™rlรถvhษ™ ilษ™", "demoGridListsFooterTitle": "AลŸaฤŸฤฑ sษ™rlรถvhษ™ ilษ™", "demoSlidersTitle": "Slayderlษ™r", "demoSlidersSubtitle": "SรผrรผลŸdรผrษ™rษ™k dษ™yษ™r seรงmษ™k รผรงรผn vidcetlษ™r", "demoSlidersDescription": "Slayderlษ™r panel boyunca dษ™yษ™rlษ™r silsilษ™sini gรถstษ™rir, istifadษ™รงilษ™r bu dษ™yษ™rlษ™rdษ™n birini seรงษ™ bilษ™r. Onlar sษ™s sษ™viyyษ™si, parlaqlฤฑq kimi ayarlarฤฑ tษ™nzimlษ™mษ™yษ™ vษ™ ya ลŸษ™kil filtrlษ™rini tษ™tbiq etmษ™yษ™ imkan verir.", "demoRangeSlidersTitle": "Silsilษ™ Slayderlษ™r", "demoRangeSlidersDescription": "Slayderlษ™r panel boyunca dษ™yษ™rlษ™r silsilษ™sini gรถstษ™rir. ZolaฤŸฤฑn hษ™r iki ucunda dษ™yษ™rlษ™r silsilษ™sini gรถstษ™rษ™n ikonalar ola bilษ™r. Onlar sษ™s sษ™viyyษ™si, parlaqlฤฑq kimi ayarlarฤฑ tษ™nzimlษ™mษ™yษ™ vษ™ ya ลŸษ™kil filtrlษ™rini tษ™tbiq etmษ™yษ™ imkan verir.", "demoMenuAnItemWithAContextMenuButton": "Kontekst menyusu ilษ™ element", "demoCustomSlidersDescription": "Slayderlษ™r panel boyunca dษ™yษ™rlษ™r silsilษ™sini gรถstษ™rir, istifadษ™รงilษ™r bu dษ™yษ™rlษ™rdษ™n birini vษ™ ya dษ™yษ™r silsilษ™sini seรงษ™ bilษ™r. Slayderlษ™r tema ilษ™ bษ™zษ™dilษ™ vษ™ fษ™rdilษ™ลŸdirilษ™ bilษ™r.", "demoSlidersContinuousWithEditableNumericalValue": "Redaktษ™ olunan Rษ™qษ™mli Dษ™yษ™r ilษ™ Davamlฤฑ", "demoSlidersDiscrete": "Ayrฤฑ", "demoSlidersDiscreteSliderWithCustomTheme": "Fษ™rdi Temalฤฑ Ayrฤฑ Slayder", "demoSlidersContinuousRangeSliderWithCustomTheme": "Fษ™rdi Temalฤฑ Davamlฤฑ Silsilษ™ Slayder", "demoSlidersContinuous": "Davamlฤฑ", "placePondicherry": "Pondiรงerri", "demoMenuTitle": "Menyu", "demoContextMenuTitle": "Kontekst menyusu", "demoSectionedMenuTitle": "Bรถlmษ™li menyu", "demoSimpleMenuTitle": "Sadษ™ menyu", "demoChecklistMenuTitle": "Yoxlama siyahฤฑsฤฑ menyusu", "demoMenuSubtitle": "Menyu dรผymษ™lษ™ri vษ™ sadษ™ menyular", "demoMenuDescription": "Menyu mรผvษ™qqษ™ti sษ™thdษ™ seรงimlษ™rin siyahฤฑsฤฑnฤฑ gรถstษ™rir. ฤฐstifadษ™รงilษ™r dรผymษ™yษ™ toxunduqda, ษ™mษ™liyyat etdikdษ™ vษ™ ya baลŸqa nizamlayฤฑcฤฑya toxunduqda onlar gรถrรผnรผr.", "demoMenuItemValueOne": "Birinci menyu elementi", "demoMenuItemValueTwo": "ฤฐkinci menyu elementi", "demoMenuItemValueThree": "รœรงรผncรผ menyu elementi", "demoMenuOne": "Bir", "demoMenuTwo": "ฤฐki", "demoMenuThree": "รœรง", "demoMenuContextMenuItemThree": "รœรงรผncรผ kontekst menyusu elementi", "demoCupertinoSwitchSubtitle": "iOS รผslublu dษ™yiลŸdirici", "demoSnackbarsText": "Bu, snekpaneldir.", "demoCupertinoSliderSubtitle": "iOS รผslublu slayder", "demoCupertinoSliderDescription": "Ardฤฑcฤฑl vษ™ ya ayrฤฑ dษ™yษ™rlษ™r arasฤฑndan seรงim etmษ™k รผรงรผn slayder istifadษ™ edilษ™ bilษ™r.", "demoCupertinoSliderContinuous": "Ardฤฑcฤฑl: {value}", "demoCupertinoSliderDiscrete": "Ayrฤฑ: {value}", "demoSnackbarsAction": "Snekpanel ษ™mษ™liyyatฤฑna toxunmusunuz.", "backToGallery": "Qalereyaya geri qayฤฑdฤฑn", "demoCupertinoTabBarTitle": "Tab paneli", "demoCupertinoSwitchDescription": "Ayarฤฑ aktiv/deaktiv etmษ™k รผรงรผn dษ™yiลŸdirici istifadษ™ edilir.", "demoSnackbarsActionButtonLabel": "ฦMฦLฤฐYYAT", "cupertinoTabBarProfileTab": "Profil", "demoSnackbarsButtonLabel": "SNEKPANEL Gร–STฦRฤฐN", "demoSnackbarsDescription": "Snekpanellษ™r tษ™tbiqin icra etdiyi vษ™ ya edษ™cษ™yi prosesi istifadษ™รงilษ™rษ™ bildirir. Onlar ekranฤฑn aลŸaฤŸฤฑsฤฑna doฤŸru mรผvษ™qqษ™ti gรถstษ™rilir. Onlar istifadษ™รงinin tษ™crรผbษ™sinษ™ mane olmamalฤฑdฤฑr, yoxa รงฤฑxmaq รผรงรผn istifadษ™รงi giriลŸinษ™ ehtiyac duymurlar.", "demoSnackbarsSubtitle": "Snekpanellษ™r ekranฤฑn aลŸaฤŸฤฑsฤฑnda mesajlar gรถstษ™rir", "demoSnackbarsTitle": "Snekpanellษ™r", "demoCupertinoSliderTitle": "Slayder", "cupertinoTabBarChatTab": "Sรถhbษ™t", "cupertinoTabBarHomeTab": "ฦsas sษ™hifษ™", "demoCupertinoTabBarDescription": "iOS รผslublu alt naviqasiya tabฤฑ paneli. Bir tab aktiv olmaqla (defolt olaraq ilk tab) bir neรงษ™ tabฤฑ gรถstษ™rir.", "demoCupertinoTabBarSubtitle": "iOS รผslublu alt tab paneli", "demoOptionsFeatureTitle": "Seรงimlษ™rษ™ baxฤฑn", "demoOptionsFeatureDescription": "Bu demo รผรงรผn ษ™lรงatan seรงimlษ™rษ™ baxmaq รผรงรผn bura toxunun.", "demoCodeViewerCopyAll": "HAMISINI KOPYALAYIN", "shrineScreenReaderRemoveProductButton": "{product} mษ™hsulunu silin", "shrineScreenReaderProductAddToCart": "Sษ™bษ™tษ™ ษ™lavษ™ edin", "shrineScreenReaderCart": "{quantity,plural,=0{AlฤฑลŸ-veriลŸ sษ™bษ™ti, element yoxdur}=1{AlฤฑลŸ-veriลŸ sษ™bษ™ti, 1 element}other{AlฤฑลŸ-veriลŸ sษ™bษ™ti, {quantity} element}}", "demoCodeViewerFailedToCopyToClipboardMessage": "Mรผbadilษ™ buferinษ™ kopyalamaq alฤฑnmadฤฑ: {error}", "demoCodeViewerCopiedToClipboardMessage": "Mรผbadilษ™ buferinษ™ kopyalandฤฑ.", "craneSleep8SemanticLabel": "ร‡imษ™rlikdษ™ki qayalฤฑqlarda Maya xarabalฤฑฤŸฤฑ", "craneSleep4SemanticLabel": "DaฤŸlarฤฑn qarลŸฤฑsฤฑnda gรถl kษ™narฤฑ otel", "craneSleep2SemanticLabel": "Maรงu Pikรงu qalasฤฑ", "craneSleep1SemanticLabel": "Hษ™miลŸษ™yaลŸฤฑl aฤŸaclar olan qarlฤฑ yerdษ™ aฤŸacdan ev", "craneSleep0SemanticLabel": "Suรผstรผ bunqalolar", "craneFly13SemanticLabel": "Palma aฤŸaclarฤฑ olan dษ™nizkษ™narฤฑ hovuz", "craneFly12SemanticLabel": "Palma aฤŸaclarฤฑ olan hovuz", "craneFly11SemanticLabel": "Dษ™nizdษ™ kษ™rpic dษ™niz fษ™nษ™ri", "craneFly10SemanticLabel": "Gรผn batฤฑmฤฑ zamanฤฑ ฦl-ฦzhษ™r Mษ™scidinin minarษ™lษ™ri", "craneFly9SemanticLabel": "Qษ™dim mavi avtomobilษ™ sรถykษ™nษ™n kiลŸi", "craneFly8SemanticLabel": "Supertree Grove parkฤฑ", "craneEat9SemanticLabel": "Qษ™nnadฤฑ mษ™mulatlarฤฑ dรผzรผlmรผลŸ kafe piลŸtaxtasฤฑ", "craneEat2SemanticLabel": "Burger", "craneFly5SemanticLabel": "DaฤŸlarฤฑn qarลŸฤฑsฤฑnda gรถl kษ™narฤฑ otel", "demoSelectionControlsSubtitle": "Qeyd xanalarฤฑ, radio dรผymษ™lษ™ri vษ™ dษ™yiลŸdiricilษ™r", "craneEat10SemanticLabel": "ฦlindษ™ bรถyรผk basdฤฑrmalฤฑ sandviรง olan qadฤฑn", "craneFly4SemanticLabel": "Suรผstรผ bunqalolar", "craneEat7SemanticLabel": "Bulka dรผkanฤฑnฤฑn giriลŸi", "craneEat6SemanticLabel": "Krevetdษ™n hazฤฑrlanan xรถrษ™k", "craneEat5SemanticLabel": "ฤฐncษ™sษ™nษ™t รผslublu restoranda oturma sahษ™si", "craneEat4SemanticLabel": "ลžokolad deserti", "craneEat3SemanticLabel": "Koreya takosu", "craneFly3SemanticLabel": "Maรงu Pikรงu qalasฤฑ", "craneEat1SemanticLabel": "Bar oturacaqlarฤฑ olan boลŸ bar", "craneEat0SemanticLabel": "Odun sobasฤฑnda pizza", "craneSleep11SemanticLabel": "Taybey 101 gรถydษ™lษ™ni", "craneSleep10SemanticLabel": "Gรผn batฤฑmฤฑ zamanฤฑ ฦl-ฦzhษ™r Mษ™scidinin minarษ™lษ™ri", "craneSleep9SemanticLabel": "Dษ™nizdษ™ kษ™rpic dษ™niz fษ™nษ™ri", "craneEat8SemanticLabel": "Bir boลŸqab xษ™rรงษ™ng", "craneSleep7SemanticLabel": "Ribeyra Meydanฤฑnda rษ™ngarษ™ng mษ™nzillษ™r", "craneSleep6SemanticLabel": "Palma aฤŸaclarฤฑ olan hovuz", "craneSleep5SemanticLabel": "Sahษ™dษ™ รงadฤฑr", "settingsButtonCloseLabel": "Ayarlarฤฑ qapadฤฑn", "demoSelectionControlsCheckboxDescription": "Qeyd xanalarฤฑ istifadษ™รงiyษ™ dษ™stdษ™n bir neรงษ™ seรงim etmษ™k imkanฤฑ verir. Adi qeyd xanasฤฑndakฤฑ dษ™yษ™r doฤŸru vษ™ ya yanlฤฑลŸ olur, รผรง vษ™ziyyษ™tli qeyd xanasฤฑndakฤฑ dษ™yษ™r isษ™ boลŸ da ola bilษ™r.", "settingsButtonLabel": "Ayarlar", "demoListsTitle": "Siyahฤฑlar", "demoListsSubtitle": "SรผrรผลŸษ™n siyahฤฑ dรผzษ™nlษ™ri", "demoListsDescription": "Adษ™tษ™n mษ™tn, รถndษ™ vษ™ sonda ikona daxil olan hรผndรผrlรผyรผ sabit olan bir sษ™tir.", "demoOneLineListsTitle": "Bir sษ™tir", "demoTwoLineListsTitle": "ฤฐki sษ™tir", "demoListsSecondary": "ฤฐkinci dษ™rษ™cษ™li mษ™tn", "demoSelectionControlsTitle": "Seรงim idarษ™ elementlษ™ri", "craneFly7SemanticLabel": "RaลŸmor daฤŸฤฑ", "demoSelectionControlsCheckboxTitle": "Qeyd xanasฤฑ", "craneSleep3SemanticLabel": "Qษ™dim mavi avtomobilษ™ sรถykษ™nษ™n kiลŸi", "demoSelectionControlsRadioTitle": "Radio", "demoSelectionControlsRadioDescription": "Radio dรผymษ™lษ™ri istifadษ™รงiyษ™ dษ™stdษ™n bir seรงim etmษ™k imkanฤฑ verir. ฤฐstifadษ™รงinin bรผtรผn ษ™lรงatan seรงimlษ™ri yan-yana gรถrmษ™li olduฤŸunu dรผลŸรผnsษ™niz, eksklรผziv seรงim รผรงรผn radio dรผymษ™lษ™rindษ™n istifadษ™ edin.", "demoSelectionControlsSwitchTitle": "Dษ™yiลŸdirici", "demoSelectionControlsSwitchDescription": "Aktiv/deaktiv etmษ™ dษ™yiลŸdiricilษ™ri bir ayarlar seรงiminin vษ™ziyyษ™tini dษ™yiลŸir. Dษ™yiลŸdirici vasitษ™silษ™ idarษ™ edilษ™n seรงim vษ™ onun olduฤŸu vษ™ziyyษ™t mรผvafiq daxili niลŸandan aydฤฑn olmalฤฑdฤฑr.", "craneFly0SemanticLabel": "Hษ™miลŸษ™yaลŸฤฑl aฤŸaclar olan qarlฤฑ yerdษ™ aฤŸacdan ev", "craneFly1SemanticLabel": "Sahษ™dษ™ รงadฤฑr", "craneFly2SemanticLabel": "Qarlฤฑ daฤŸฤฑn qarลŸฤฑsฤฑnda dua bayraqlarฤฑ", "craneFly6SemanticLabel": "ฤฐncษ™sษ™nษ™t Sarayฤฑnฤฑn yuxarฤฑdan gรถrรผnรผลŸรผ", "rallySeeAllAccounts": "Bรผtรผn hesablara baxฤฑn", "rallyBillAmount": "{date} tarixinษ™ {amount} mษ™blษ™ฤŸindษ™ {billName} รถdษ™niลŸi.", "shrineTooltipCloseCart": "Sษ™bษ™ti baฤŸlayฤฑn", "shrineTooltipCloseMenu": "Menyunu baฤŸlayฤฑn", "shrineTooltipOpenMenu": "Menyunu aรงฤฑn", "shrineTooltipSettings": "Ayarlar", "shrineTooltipSearch": "AxtarฤฑลŸ", "demoTabsDescription": "Tablar mรผxtษ™lif ekranlar, data dษ™stlษ™ri vษ™ digษ™r qarลŸฤฑlฤฑqlฤฑ ษ™mษ™liyyatlarda mษ™zmunu tษ™ลŸkil edir.", "demoTabsSubtitle": "Mรผstษ™qil ลŸษ™kildษ™ sรผrรผลŸdรผrรผlษ™ bilษ™n baxฤฑลŸlarla tablar", "demoTabsTitle": "Tablar", "rallyBudgetAmount": "{budgetName} bรผdcษ™si {amountUsed}/{amountTotal} istifadษ™ edilib, {amountLeft} qalฤฑb", "shrineTooltipRemoveItem": "Elementi silin", "rallyAccountAmount": "{amount} ilษ™ {accountName} hesabฤฑ {accountNumber}.", "rallySeeAllBudgets": "Bรผtรผn bรผdcษ™lษ™rษ™ baxฤฑn", "rallySeeAllBills": "Bรผtรผn fakturalara baxฤฑn", "craneFormDate": "Tarix seรงin", "craneFormOrigin": "Sษ™yahษ™tin baลŸladฤฑฤŸฤฑ yeri seรงin", "craneFly2": "Xumbu vadisi, Nepal", "craneFly3": "Maรงu Pikรงu, Peru", "craneFly4": "Male, Maldiv adalarฤฑ", "craneFly5": "Vitznau, ฤฐsveรงrษ™", "craneFly6": "Mexiko ลŸษ™hษ™ri, Meksika", "craneFly7": "RaลŸmor daฤŸฤฑ, ABลž", "settingsTextDirectionLocaleBased": "Yerli xรผsusiyyษ™tlษ™rษ™ ษ™saslanฤฑr", "craneFly9": "Havana, Kuba", "craneFly10": "Qahirษ™, Misir", "craneFly11": "Lissabon, Portuqaliya", "craneFly12": "Napa, ABลž", "craneFly13": "Bali, ฤฐndoneziya", "craneSleep0": "Male, Maldiv adalarฤฑ", "craneSleep1": "Aspen, ABลž", "craneSleep2": "Maรงu Pikรงu, Peru", "demoCupertinoSegmentedControlTitle": "Seqmentlษ™ลŸdirilmiลŸ nษ™zarษ™t", "craneSleep4": "Vitznau, ฤฐsveรงrษ™", "craneSleep5": "Biq Sur, ABลž", "craneSleep6": "Napa, ABลž", "craneSleep7": "Portu, Portuqaliya", "craneSleep8": "Tulum, Meksika", "craneEat5": "Seul, Cษ™nubi Koreya", "demoChipTitle": "ร‡iplษ™r", "demoChipSubtitle": "Mษ™lumat, atribut vษ™ ya ษ™mษ™liyyatฤฑ ษ™ks etdirษ™n yฤฑฤŸcam elementlษ™r", "demoActionChipTitle": "ฦmษ™liyyat ร‡ipi", "demoActionChipDescription": "ฦmษ™liyyat รงiplษ™ri ษ™sas mษ™zmun ilษ™ ษ™laqษ™dar ษ™mษ™liyyatฤฑ iลŸษ™ salan seรงimlษ™r qrupudur. ฦmษ™liyyat รงiplษ™ri ฤฐstifadษ™รงi ฤฐnterfeysindษ™ dinamik vษ™ kontekstual tษ™rzdษ™ gรถrรผnmษ™lidir.", "demoChoiceChipTitle": "Seรงim ร‡ipi", "demoChoiceChipDescription": "Seรงim รงiplษ™ri qrupun iรงindษ™n tษ™k bir seรงimi tษ™qdim edir. Seรงim รงiplษ™ri ษ™laqษ™dar tษ™sviri mษ™tn vษ™ ya kateqoriyalar ehtiva edir.", "demoFilterChipTitle": "Filtr ร‡ipi", "demoFilterChipDescription": "Filtr รงiplษ™ri mษ™zmunu filtrlษ™mษ™k รผรงรผn teqlษ™rdษ™n vษ™ ya tษ™sviri sรถzlษ™rdษ™n istifadษ™ edir.", "demoInputChipTitle": "Mษ™lumat ร‡ipi", "demoInputChipDescription": "Mษ™lumat รงiplษ™ri obyekt (ลŸษ™xs, mษ™kan vษ™ ya ษ™ลŸya) vษ™ ya danฤฑลŸฤฑq mษ™tni kimi qarฤฑลŸฤฑq mษ™lumatlar toplusunu yฤฑฤŸcam formada tษ™qdim edir.", "craneSleep9": "Lissabon, Portuqaliya", "craneEat10": "Lissabon, Portuqaliya", "demoCupertinoSegmentedControlDescription": "QarลŸฤฑlฤฑqlฤฑ eksklรผziv variantlar arasฤฑndan seรงmษ™k รผรงรผn istifadษ™ edilir. Seqmentlษ™ลŸdirilmiลŸ nษ™zarษ™tdษ™ bir variant seรงildikdษ™, digษ™r variantlarฤฑ seรงmษ™k olmur.", "chipTurnOnLights": "ฤฐลŸฤฑqlarฤฑ yandฤฑrฤฑn", "chipSmall": "Kiรงik", "chipMedium": "Orta", "chipLarge": "Bรถyรผk", "chipElevator": "Lift", "chipWasher": "Paltaryuyan", "chipFireplace": "Buxarฤฑ", "chipBiking": "Velosiped", "craneFormDiners": "Restoranlar", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Potensial vergi รถdษ™niลŸini artฤฑrฤฑn! 1 tษ™yin edilmษ™miลŸ ษ™mษ™liyyata kateqoriya tษ™yin edin.}other{Potensial vergi รถdษ™niลŸini artฤฑrฤฑn! {count} tษ™yin edilmษ™miลŸ ษ™mษ™liyyata kateqoriya tษ™yin edin.}}", "craneFormTime": "Vaxt seรงin", "craneFormLocation": "Mษ™kan seรงin", "craneFormTravelers": "Sษ™yahษ™tรงilษ™r", "craneEat8": "Atlanta, ABลž", "craneFormDestination": "Tษ™yinat yeri seรงin", "craneFormDates": "Tarixlษ™r seรงin", "craneFly": "Uร‡Uลž", "craneSleep": "YUXU", "craneEat": "YEMฦK", "craneFlySubhead": "Tษ™yinat yeri รผzrษ™ uรงuลŸlarฤฑ araลŸdฤฑrฤฑn", "craneSleepSubhead": "Tษ™yinat yeri รผzrษ™ ษ™mlaklarฤฑ araลŸdฤฑrฤฑn", "craneEatSubhead": "Tษ™yinat yeri รผzrษ™ restoranlarฤฑ araลŸdฤฑrฤฑn", "craneFlyStops": "{numberOfStops,plural,=0{BirbaลŸa}=1{1 dayanacaq}other{{numberOfStops} dayanacaq}}", "craneSleepProperties": "{totalProperties,plural,=0{ฦlรงatan obyekt yoxdur}=1{1 ษ™lรงatan obyekt}other{{totalProperties} ษ™lรงatan obyekt}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{Restoran yoxdur}=1{1 restoran}other{{totalRestaurants} restoran}}", "craneFly0": "Aspen, ABลž", "demoCupertinoSegmentedControlSubtitle": "iOS รผslubunda seqmentlษ™ลŸdirilmiลŸ nษ™zarษ™t", "craneSleep10": "Qahirษ™, Misir", "craneEat9": "Madrid, ฤฐspaniya", "craneFly1": "Biq Sur, ABลž", "craneEat7": "NeลŸvill, ABลž", "craneEat6": "Sietl, ABลž", "craneFly8": "Sinqapur", "craneEat4": "Paris, Fransa", "craneEat3": "Portlend, ABลž", "craneEat2": "Kordova, Argentina", "craneEat1": "Dallas, ABลž", "craneEat0": "Neapol, ฤฐtaliya", "craneSleep11": "Taybey, Tayvan", "craneSleep3": "Havana, Kuba", "shrineLogoutButtonCaption": "ร‡IXIลž EDฤฐN", "rallyTitleBills": "HESABLAR", "rallyTitleAccounts": "HESABLAR", "shrineProductVagabondSack": "Vegabond รงantasฤฑ", "rallyAccountDetailDataInterestYtd": "Faiz: ฤฐlin ษ™vvษ™lindษ™n bษ™ri", "shrineProductWhitneyBelt": "Vitni kษ™mษ™ri", "shrineProductGardenStrand": "Garden strand", "shrineProductStrutEarrings": "ฦl iลŸi sฤฑrฤŸalar", "shrineProductVarsitySocks": "Kollec corablarฤฑ", "shrineProductWeaveKeyring": "Toxunma aรงarlฤฑq", "shrineProductGatsbyHat": "Yastฤฑ papaq", "shrineProductShrugBag": "ร‡iyin รงantasฤฑ", "shrineProductGiltDeskTrio": "รœรงlรผ masa dษ™sti", "shrineProductCopperWireRack": "Mis rษ™ngli tor asฤฑlqan", "shrineProductSootheCeramicSet": "Soothe keramika dษ™sti", "shrineProductHurrahsTeaSet": "ฦla รงay dษ™sti", "shrineProductBlueStoneMug": "Mavi daลŸ parรง", "shrineProductRainwaterTray": "YaฤŸฤฑลŸ suyu รงuxuru", "shrineProductChambrayNapkins": "Kษ™tan dษ™smallar", "shrineProductSucculentPlanters": "Sukkulent bitkilษ™r", "shrineProductQuartetTable": "Dรถrbucaq masa", "shrineProductKitchenQuattro": "Quattro mษ™tbษ™xi", "shrineProductClaySweater": "Gil rษ™ngli sviter", "shrineProductSeaTunic": "Dษ™niz koftasฤฑ", "shrineProductPlasterTunic": "Aรงฤฑq rษ™ngli kofta", "rallyBudgetCategoryRestaurants": "Restoranlar", "shrineProductChambrayShirt": "Mavi kษ™tan kรถynษ™k", "shrineProductSeabreezeSweater": "Dษ™niz mavisi rษ™ngindษ™ sviter", "shrineProductGentryJacket": "Centri gรถdษ™kcษ™si", "shrineProductNavyTrousers": "Tรผnd mavi ลŸalvar", "shrineProductWalterHenleyWhite": "Gรผndษ™lik kiลŸi koftasฤฑ (aฤŸ)", "shrineProductSurfAndPerfShirt": "Sรถrf koftasฤฑ", "shrineProductGingerScarf": "Zษ™ncษ™fil rษ™ngindษ™ ลŸษ™rf", "shrineProductRamonaCrossover": "Ramona krossover", "shrineProductClassicWhiteCollar": "Klassik aฤŸ yaxalฤฑq", "shrineProductSunshirtDress": "Gรผnษ™ลŸ libasฤฑ", "rallyAccountDetailDataInterestRate": "Faiz Normasฤฑ", "rallyAccountDetailDataAnnualPercentageYield": "ฤฐllik faiz gษ™liri", "rallyAccountDataVacation": "Tษ™til", "shrineProductFineLinesTee": "T formalฤฑ, cฤฑzฤฑqlฤฑ koftalar", "rallyAccountDataHomeSavings": "Ev Qษ™naษ™ti", "rallyAccountDataChecking": "YoxlanฤฑลŸ", "rallyAccountDetailDataInterestPaidLastYear": "Keรงษ™n il รถdษ™nilษ™n faiz", "rallyAccountDetailDataNextStatement": "Nรถvbษ™ti bษ™yanat", "rallyAccountDetailDataAccountOwner": "Hesab Sahibi", "rallyBudgetCategoryCoffeeShops": "Kafelษ™r", "rallyBudgetCategoryGroceries": "ฦrzaq dรผkanlarฤฑ", "shrineProductCeriseScallopTee": "T formalฤฑ qฤฑrmฤฑzฤฑ kofta", "rallyBudgetCategoryClothing": "Geyim", "rallySettingsManageAccounts": "Hesablarฤฑ idarษ™ edin", "rallyAccountDataCarSavings": "Avtomobil Qษ™naษ™ti", "rallySettingsTaxDocuments": "Vergi Sษ™nษ™dlษ™ri", "rallySettingsPasscodeAndTouchId": "Parol vษ™ Sensor ID", "rallySettingsNotifications": "BildiriลŸlษ™r", "rallySettingsPersonalInformation": "ลžษ™xsi Mษ™lumatlar", "rallySettingsPaperlessSettings": "KaฤŸฤฑzsฤฑz Ayarlar", "rallySettingsFindAtms": "Bankomatlar tapฤฑn", "rallySettingsHelp": "Kรถmษ™k", "rallySettingsSignOut": "ร‡ฤฑxฤฑn", "rallyAccountTotal": "Cษ™mi", "rallyBillsDue": "Son tarix", "rallyBudgetLeft": "Qalฤฑq", "rallyAccounts": "Hesablar", "rallyBills": "Hesablar", "rallyBudgets": "Bรผdcษ™lษ™r", "rallyAlerts": "Xษ™bษ™rdarlฤฑqlar", "rallySeeAll": "HAMISINA BAXIN", "rallyFinanceLeft": "QALIQ", "rallyTitleOverview": "ฤฐCMAL", "shrineProductShoulderRollsTee": "ร‡iyni dษ™yirmi formada aรงฤฑq olan kofta", "shrineNextButtonCaption": "Nร–VBฦTฤฐ", "rallyTitleBudgets": "BรœDCฦLฦR", "rallyTitleSettings": "AYARLAR", "rallyLoginLoginToRally": "Rally'ya daxil olun", "rallyLoginNoAccount": "Hesabฤฑnฤฑz yoxdur?", "rallyLoginSignUp": "QEYDฤฐYYATDAN KEร‡ฤฐN", "rallyLoginUsername": "ฤฐstifadษ™รงi adฤฑ", "rallyLoginPassword": "Parol", "rallyLoginLabelLogin": "GiriลŸ", "rallyLoginRememberMe": "Mษ™ni yadda saxlayฤฑn", "rallyLoginButtonLogin": "GฤฐRฤฐลž", "rallyAlertsMessageHeadsUpShopping": "Nษ™zษ™rษ™ alฤฑn ki, bu aylฤฑq AlฤฑลŸ-veriลŸ bรผdcษ™nizin {percent} qษ™dษ™rindษ™n รงoxunu istifadษ™ etmisiniz.", "rallyAlertsMessageSpentOnRestaurants": "Bu hษ™ftษ™ restoranlarda {amount} xษ™rclษ™misiniz.", "rallyAlertsMessageATMFees": "Bu ay bankomat rรผsumlarฤฑ รผรงรผn {amount} xษ™rclษ™misiniz", "rallyAlertsMessageCheckingAccount": "Afษ™rin! ร–dษ™niลŸ hesabฤฑnฤฑzฤฑn balansฤฑ keรงษ™n ayla mรผqayisษ™dษ™ {percent} รงoxdur.", "shrineMenuCaption": "MENYU", "shrineCategoryNameAll": "HAMISI", "shrineCategoryNameAccessories": "AKSESUARLAR", "shrineCategoryNameClothing": "GEYฤฐM", "shrineCategoryNameHome": "EV", "shrineLoginUsernameLabel": "ฤฐstifadษ™รงi adฤฑ", "shrineLoginPasswordLabel": "Parol", "shrineCancelButtonCaption": "LฦฤžV EDฤฐN", "shrineCartTaxCaption": "Vergi:", "shrineCartPageCaption": "SฦBฦT", "shrineProductQuantity": "Miqdar: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{ELEMENT YOXDUR}=1{1 ELEMENT}other{{quantity} ELEMENT}}", "shrineCartClearButtonCaption": "SฦBฦTฤฐ TฦMฤฐZLฦYฤฐN", "shrineCartTotalCaption": "CฦMฤฐ", "shrineCartSubtotalCaption": "Aralฤฑq cษ™m:", "shrineCartShippingCaption": "Gรถndษ™rmษ™:", "shrineProductGreySlouchTank": "Qolsuz boz kofta", "shrineProductStellaSunglasses": "Stella gรผn eynษ™klษ™ri", "shrineProductWhitePinstripeShirt": "Cฤฑzฤฑqlฤฑ aฤŸ kรถynษ™k", "demoTextFieldWhereCanWeReachYou": "Sizinlษ™ necษ™ ษ™laqษ™ saxlaya bilษ™rik?", "settingsTextDirectionLTR": "Soldan saฤŸa", "settingsTextScalingLarge": "Bรถyรผk", "demoBottomSheetHeader": "BaลŸlฤฑq", "demoBottomSheetItem": "Element {value}", "demoBottomTextFieldsTitle": "Mษ™tn sahษ™lษ™ri", "demoTextFieldTitle": "Mษ™tn sahษ™lษ™ri", "demoTextFieldSubtitle": "Redaktษ™ edilษ™ bilษ™n mษ™tn vษ™ rษ™qษ™mlษ™rdษ™n ibarษ™t tษ™k sฤฑra", "demoTextFieldDescription": "Mษ™tn sahษ™lษ™ri istifadษ™รงilษ™rษ™ ฤฐstifadษ™รงi ฤฐnterfeysinษ™ mษ™tn daxil etmษ™k imkanฤฑ verir. Onlar, ษ™sasษ™n, forma vษ™ dialoqlarda gรถrรผnรผr.", "demoTextFieldShowPasswordLabel": "Parol gรถrรผnsรผn", "demoTextFieldHidePasswordLabel": "Parolu gizlษ™din", "demoTextFieldFormErrors": "Tษ™qdim etmษ™zdษ™n ษ™vvษ™l qฤฑrmฤฑzฤฑ rษ™ngdษ™ olan xษ™talara dรผzษ™liลŸ edin.", "demoTextFieldNameRequired": "Ad tษ™lษ™b edilir.", "demoTextFieldOnlyAlphabeticalChars": "Yalnฤฑz hษ™rf daxil edin.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - ABลž telefon nรถmrษ™si daxil edin.", "demoTextFieldEnterPassword": "Parol daxil edin.", "demoTextFieldPasswordsDoNotMatch": "Parollar uyฤŸun gษ™lmir", "demoTextFieldWhatDoPeopleCallYou": "Adฤฑnฤฑz nษ™dir?", "demoTextFieldNameField": "Ad*", "demoBottomSheetButtonText": "AลžAฤžIDAKI VฦRฦQฤฐ Gร–STฦRฤฐN", "demoTextFieldPhoneNumber": "Telefon nรถmrษ™si*", "demoBottomSheetTitle": "AลŸaฤŸฤฑdakฤฑ vษ™rษ™q", "demoTextFieldEmail": "E-poรงt", "demoTextFieldTellUsAboutYourself": "ร–zรผnรผz barษ™dษ™ bildirin (mษ™sษ™lษ™n, nษ™ iลŸlษ™ mษ™ลŸฤŸul olduฤŸunuz vษ™ ya maraqlarฤฑnฤฑz barษ™dษ™ yazฤฑn)", "demoTextFieldKeepItShort": "Qฤฑsa edin. Bu, sadษ™cษ™ nรผmayiลŸdir.", "starterAppGenericButton": "DรœYMฦ", "demoTextFieldLifeStory": "Hษ™yat hekayษ™si", "demoTextFieldSalary": "MaaลŸ", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "8 simvoldan รงox olmamalฤฑdฤฑr.", "demoTextFieldPassword": "Parol*", "demoTextFieldRetypePassword": "Parolu yenidษ™n yazฤฑn*", "demoTextFieldSubmit": "Gร–NDฦRฤฐN", "demoBottomNavigationSubtitle": "ร‡arpaz solฤŸun gรถrรผnรผลŸlรผ alt naviqasiya", "demoBottomSheetAddLabel": "ฦlavษ™ edin", "demoBottomSheetModalDescription": "Modal alt vษ™rษ™q menyu vษ™ ya dialoqa alternativdir vษ™ istifadษ™รงinin tษ™tbiqin qalan hissษ™lษ™ri ilษ™ iลŸlษ™mษ™sinin qarลŸฤฑsฤฑnฤฑ alฤฑr.", "demoBottomSheetModalTitle": "Modal alt vษ™rษ™q", "demoBottomSheetPersistentDescription": "Sabit alt vษ™rษ™q tษ™tbiqin ilkin mษ™zmununa ษ™lavษ™ edilษ™n mษ™lumatlarฤฑ gรถstษ™rir. Sabit alt vษ™rษ™q istifadษ™รงi tษ™tbiqin digษ™r hissษ™lษ™ri ilษ™ iลŸlษ™dikdษ™ belษ™ gรถrรผnรผr.", "demoBottomSheetPersistentTitle": "Sabit alt vษ™rษ™q", "demoBottomSheetSubtitle": "Sabit vษ™ modal alt vษ™rษ™qlษ™r", "demoTextFieldNameHasPhoneNumber": "{name} telefon nรถmrษ™si: {phoneNumber}", "buttonText": "DรœYMฦ", "demoTypographyDescription": "Material Dizaynฤฑndakฤฑ mรผxtษ™lif tipoqrafik รผslublarฤฑn izahlarฤฑ.", "demoTypographySubtitle": "ฦvvษ™ldษ™n mรผษ™yyษ™nlษ™ลŸdirilmiลŸ bรผtรผn mษ™tn รผslublarฤฑ", "demoTypographyTitle": "Tipoqrafiya", "demoFullscreenDialogDescription": "Tam ekran dialoqu xรผsusiyyษ™ti yeni sษ™hifษ™nin tam ekran modal dialoqu olub-olmadฤฑฤŸฤฑnฤฑ gรถstษ™rir", "demoFlatButtonDescription": "Yastฤฑ dรผymษ™yษ™ basdฤฑqda mรผrษ™kkษ™b rษ™ngi alฤฑr, lakฤฑn yuxarฤฑ qalxmฤฑr. Yastฤฑ dรผymษ™lษ™rdษ™n alษ™tlษ™r panelindษ™, dialoqlarda vษ™ sษ™tir iรงlษ™rindษ™ dolฤŸu ilษ™ istifadษ™ edin", "demoBottomNavigationDescription": "Alt naviqasiya panellษ™ri ekranฤฑn aลŸaฤŸฤฑsฤฑnda รผรง-beลŸ tษ™yinat yeri gรถstษ™rir. Hษ™r bir tษ™yinat yeri ikona vษ™ ลŸษ™rti mษ™tn niลŸanฤฑ ilษ™ tษ™qdim edilir. Alt naviqasiya ikonasฤฑna toxunulduqda istifadษ™รงi hษ™min ikona ilษ™ ษ™laqษ™lษ™ndirilษ™n รผst sษ™viyyษ™ naviqasiya tษ™yinatฤฑna yรถnlษ™ndirilir.", "demoBottomNavigationSelectedLabel": "SeรงilmiลŸ niลŸan", "demoBottomNavigationPersistentLabels": "Sabit niลŸanlar", "starterAppDrawerItem": "Element {value}", "demoTextFieldRequiredField": "* tษ™lษ™b olunan sahษ™lษ™ri gรถstษ™rir", "demoBottomNavigationTitle": "Alt naviqasiya", "settingsLightTheme": "ฤฐลŸฤฑqlฤฑ", "settingsTheme": "Tema", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "SaฤŸdan sola", "settingsTextScalingHuge": "Bรถyรผk", "cupertinoButton": "Dรผymษ™", "settingsTextScalingNormal": "Normal", "settingsTextScalingSmall": "Kiรงik", "settingsSystemDefault": "Sistem", "settingsTitle": "Ayarlar", "rallyDescription": "ลžษ™xsi maliyyษ™ tษ™tbiqi", "aboutDialogDescription": "Bu tษ™tbiqin mษ™nbษ™ koduna baxmaq รผรงรผn {repoLink} รผnvanฤฑna daxil olun.", "bottomNavigationCommentsTab": "ลžษ™rhlษ™r", "starterAppGenericBody": "ฦsas", "starterAppGenericHeadline": "BaลŸlฤฑq", "starterAppGenericSubtitle": "Alt baลŸlฤฑq", "starterAppGenericTitle": "BaลŸlฤฑq", "starterAppTooltipSearch": "AxtarฤฑลŸ", "starterAppTooltipShare": "PaylaลŸฤฑn", "starterAppTooltipFavorite": "Sevimli", "starterAppTooltipAdd": "ฦlavษ™ edin", "bottomNavigationCalendarTab": "Tษ™qvim", "starterAppDescription": "Responsiv starter tษ™tbiq dรผzษ™ni", "starterAppTitle": "Starter tษ™tbiq", "aboutFlutterSamplesRepo": "Flutter nรผmunษ™lษ™rinin GitHub yaddaลŸ yeri", "bottomNavigationContentPlaceholder": "{title} tabeli รผรงรผn yertutan", "bottomNavigationCameraTab": "Kamera", "bottomNavigationAlarmTab": "Xษ™bษ™rdarlฤฑq", "bottomNavigationAccountTab": "Hesab", "demoTextFieldYourEmailAddress": "E-poรงt รผnvanฤฑnฤฑz", "demoToggleButtonDescription": "Dษ™yiลŸdirici dรผymษ™lษ™rdษ™n ษ™laqษ™li seรงimlษ™ri qruplaลŸdฤฑrmaq รผรงรผn istifadษ™ etmษ™k mรผmkรผndรผr. ฦlaqษ™li dษ™yiลŸdirici dรผymษ™lษ™r qrupunu vurฤŸulamaq รผรงรผn qrupun รผmumi konteyneri olmalฤฑdฤฑr", "colorsGrey": "BOZ", "colorsBrown": "QฦHVฦYฤฐ", "colorsDeepOrange": "TรœND NARINCI", "colorsOrange": "NARINCI", "colorsAmber": "KฦHRฦBA", "colorsYellow": "SARI", "colorsLime": "Aร‡IQ YAลžIL", "colorsLightGreen": "Aร‡IQ YAลžIL", "colorsGreen": "YAลžIL", "homeHeaderGallery": "Qalereya", "homeHeaderCategories": "Kateqoriyalar", "shrineDescription": "Dษ™bli pษ™rakษ™ndษ™ satฤฑลŸ tษ™tbiqi", "craneDescription": "Fษ™rdilษ™ลŸdirilmiลŸ sษ™yahษ™t tษ™tbiqi", "homeCategoryReference": "รœSLUBLAR Vฦ DฤฐGฦR", "demoInvalidURL": "URL'i gรถstษ™rmษ™k mรผmkรผn olmadฤฑ:", "demoOptionsTooltip": "Seรงimlษ™r", "demoInfoTooltip": "Mษ™lumat", "demoCodeTooltip": "Demo Kodu", "demoDocumentationTooltip": "API Sษ™nษ™di", "demoFullscreenTooltip": "Tam Ekran", "settingsTextScaling": "Mษ™tn miqyasฤฑ", "settingsTextDirection": "Mษ™tn istiqamษ™ti", "settingsLocale": "Lokal gรถstษ™rici", "settingsPlatformMechanics": "Platforma mexanikasฤฑ", "settingsDarkTheme": "Tรผnd", "settingsSlowMotion": "AลŸaฤŸฤฑ sรผrษ™tli", "settingsAbout": "Flutter Qalereya haqqฤฑnda", "settingsFeedback": "Rษ™y gรถndษ™rin", "settingsAttribution": "Londonda TOASTER tษ™rษ™findษ™n hazฤฑrlanmฤฑลŸdฤฑr", "demoButtonTitle": "Dรผymษ™lษ™r", "demoButtonSubtitle": "Mษ™tn, qabarฤฑq, haลŸiyษ™li vษ™ daha รงoxu", "demoFlatButtonTitle": "Yastฤฑ Dรผymษ™", "demoRaisedButtonDescription": "Qabarฤฑq dรผymษ™lษ™r ษ™sasษ™n yastฤฑ dรผzษ™nlษ™rin รผzษ™rindษ™ รถlรงรผcษ™ bรถyรผk olur. Onlar dolu vษ™ ya geniลŸ sษ™thlษ™rdษ™ funksiyalarฤฑ vurฤŸulayฤฑr.", "demoRaisedButtonTitle": "Qabarฤฑq Dรผymษ™", "demoOutlineButtonTitle": "HaลŸiyษ™li Dรผymษ™", "demoOutlineButtonDescription": "HaลŸiyษ™li dรผymษ™lษ™rษ™ basdฤฑqda qeyri-ลŸษ™ffaf vษ™ qabarฤฑq olurlar. Onlar, adษ™tษ™n, alternativ, ikinci dษ™rษ™cษ™li ษ™mษ™liyyatฤฑ gรถstษ™rmษ™k รผรงรผn qabarฤฑq dรผymษ™lษ™rlษ™ birlษ™ลŸdirilir.", "demoToggleButtonTitle": "Dษ™yiลŸdirici Dรผymษ™lษ™r", "colorsTeal": "FฤฐRUZฦYฤฐ", "demoFloatingButtonTitle": "รœzษ™n ฦmษ™liyyat Dรผymษ™si", "demoFloatingButtonDescription": "รœzษ™n ษ™mษ™liyyat dรผymษ™si tษ™tbiqdษ™ ษ™sas ษ™mษ™liyyatฤฑ รถnษ™ รงฤฑxarmaq รผรงรผn mษ™zmun รผzษ™rindษ™ hษ™rษ™kษ™t edษ™n dairษ™vi ikona dรผymษ™sidir.", "demoDialogTitle": "Dialoqlar", "demoDialogSubtitle": "Sadษ™, xษ™bษ™rdarlฤฑq vษ™ tam ekran", "demoAlertDialogTitle": "Xษ™bษ™rdarlฤฑq", "demoAlertDialogDescription": "Xษ™bษ™rdarlฤฑq dialoqu istifadษ™รงiyษ™ razฤฑlฤฑq tษ™lษ™b edษ™n mษ™qamlar barษ™dษ™ bildirir. Xษ™bษ™rdarlฤฑq dialoqunda ลŸษ™rti baลŸlฤฑq vษ™ ษ™mษ™liyyatlarฤฑn ลŸษ™rti siyahฤฑsฤฑ olur.", "demoAlertTitleDialogTitle": "BaลŸlฤฑqlฤฑ Xษ™bษ™rdarlฤฑq", "demoSimpleDialogTitle": "Sadษ™", "demoSimpleDialogDescription": "Sadษ™ dialoq istifadษ™รงiyษ™ bir neรงษ™ seรงim tษ™qdim edir. Sadษ™ dialoqda seรงimlษ™rin yuxarฤฑsฤฑnda gรถstษ™rilษ™n ลŸษ™rti baลŸlฤฑq olur.", "demoFullscreenDialogTitle": "Tam ekran", "demoCupertinoButtonsTitle": "Dรผymษ™lษ™r", "demoCupertinoButtonsSubtitle": "iOS รผslublu dรผymษ™lษ™r", "demoCupertinoButtonsDescription": "iOS รผslublu dรผymษ™. O, toxunduqda solฤŸunlaลŸan vษ™ tรผndlษ™ลŸษ™n mษ™tn vษ™/vษ™ ya ikonanฤฑ ษ™ks etdirir. ฤฐstษ™yษ™ uyฤŸun arxa fon tษ™yin edilษ™ bilษ™r.", "demoCupertinoAlertsTitle": "Xษ™bษ™rdarlฤฑqlar", "demoCupertinoAlertsSubtitle": "iOS รผslubunda xษ™bษ™rdarlฤฑq dialoqlarฤฑ", "demoCupertinoAlertTitle": "Xษ™bษ™rdarlฤฑq", "demoCupertinoAlertDescription": "Xษ™bษ™rdarlฤฑq dialoqu istifadษ™รงiyษ™ razฤฑlฤฑq tษ™lษ™b edษ™n mษ™qamlar barษ™dษ™ bildirir. Xษ™bษ™rdarlฤฑq dialoqunda ลŸษ™rti baลŸlฤฑq, ลŸษ™rti mษ™zmun vษ™ ษ™mษ™liyyatlarฤฑn ลŸษ™rti siyahฤฑsฤฑ olur. BaลŸlฤฑq mษ™zmunun yuxarฤฑsฤฑnda, ษ™mษ™liyyatlar isษ™ mษ™zmunun aลŸaฤŸฤฑsฤฑnda gรถstษ™rilir.", "demoCupertinoAlertWithTitleTitle": "BaลŸlฤฑqlฤฑ Xษ™bษ™rdarlฤฑq", "demoCupertinoAlertButtonsTitle": "Dรผymษ™lษ™rlษ™ Xษ™bษ™rdarlฤฑq", "demoCupertinoAlertButtonsOnlyTitle": "Yalnฤฑz Xษ™bษ™rdarlฤฑq Dรผymษ™lษ™ri", "demoCupertinoActionSheetTitle": "ฦmษ™liyyat Cษ™dvษ™li", "demoCupertinoActionSheetDescription": "ฦmษ™liyyat cษ™dvษ™li istifadษ™รงiyษ™ cari kontekstlษ™ ษ™laqษ™li iki vษ™ ya daha รงox seรงim dษ™sti tษ™qdim edษ™n xรผsusi xษ™bษ™rdarlฤฑq รผslubudur. ฦmษ™liyyat cษ™dvษ™lindษ™ baลŸlฤฑq, ษ™lavษ™ mesaj vษ™ ษ™mษ™liyyatlarฤฑn siyahฤฑsฤฑ ola bilษ™r.", "demoColorsTitle": "Rษ™nglษ™r", "demoColorsSubtitle": "ฦvvษ™lcษ™dษ™n tษ™yin edilmiลŸ rษ™nglษ™rin hamฤฑsฤฑ", "demoColorsDescription": "Material Dizaynฤฑnฤฑn rษ™ng palitrasฤฑnฤฑ ษ™ks etdirษ™n rษ™ng vษ™ rษ™ng nรผmunษ™si konstantlarฤฑ.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Yaradฤฑn", "dialogSelectedOption": "\"{value}\" seรงdiniz", "dialogDiscardTitle": "Qaralama silinsin?", "dialogLocationTitle": "Google'un mษ™kan xidmษ™tindษ™n istifadษ™ edilsin?", "dialogLocationDescription": "Google'a mษ™kanฤฑ mรผษ™yyษ™nlษ™ลŸdirmษ™kdษ™ tษ™tbiqlษ™rษ™ kรถmษ™k etmษ™k imkanฤฑ verin. Bu, hษ™tta heรง bir tษ™tbiq icra olunmadฤฑqda belษ™ Google'a anonim mษ™kan mษ™lumatlarฤฑ gรถndษ™rmษ™k demษ™kdir.", "dialogCancel": "LฦฤžV EDฤฐN", "dialogDiscard": "ฤฐMTฤฐNA EDฤฐN", "dialogDisagree": "RAZI DEYฤฐLฦM", "dialogAgree": "RAZIYAM", "dialogSetBackup": "Yedษ™klษ™mษ™ hesabฤฑ ayarlayฤฑn", "colorsBlueGrey": "MAVฤฐ-BOZ", "dialogShow": "DฤฐALOQU Gร–STฦRฤฐN", "dialogFullscreenTitle": "Tam Ekran Dialoqu", "dialogFullscreenSave": "YADDA SAXLAYIN", "dialogFullscreenDescription": "Tam ekran dialoq demosu", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "Arxa fonlu", "cupertinoAlertCancel": "Lษ™ฤŸv edin", "cupertinoAlertDiscard": "ฤฐmtina edin", "cupertinoAlertLocationTitle": "Tษ™tbiqdษ™n istifadษ™ etdiyiniz zaman \"Xษ™ritษ™\"yษ™ mษ™kanฤฑnฤฑza giriลŸ imkanฤฑ verilsin?", "cupertinoAlertLocationDescription": "Cari mษ™kanฤฑnฤฑz xษ™ritษ™dษ™ gรถstษ™rilษ™cษ™k vษ™ istiqamษ™tlษ™r, yaxฤฑnlฤฑqdakฤฑ axtarฤฑลŸ nษ™ticษ™lษ™ri vษ™ tษ™qribi sษ™yahษ™t vaxtlarฤฑ รผรงรผn istifadษ™ edilษ™cษ™k.", "cupertinoAlertAllow": "ฤฐcazษ™ verin", "cupertinoAlertDontAllow": "ฤฐcazษ™ vermษ™yin", "cupertinoAlertFavoriteDessert": "Sevimli Desertinizi Seรงin", "cupertinoAlertDessertDescription": "AลŸaฤŸฤฑdakฤฑ siyahฤฑdan sevimli desert nรถvรผnรผzรผ seรงin. Seรงiminiz ษ™razinizdษ™ tษ™klif edilษ™n restoranlardan ibarษ™t siyahฤฑnฤฑ fษ™rdilษ™ลŸdirmษ™k รผรงรผn istifadษ™ edilษ™cษ™k.", "cupertinoAlertCheesecake": "ร‡izkeyk", "cupertinoAlertTiramisu": "Tiramisu", "cupertinoAlertApplePie": "Alma Piroqu", "cupertinoAlertChocolateBrownie": "ลžokoladlฤฑ Brauni", "cupertinoShowAlert": "Xษ™bษ™rdarlฤฑฤŸฤฑ Gรถstษ™rin", "colorsRed": "QIRMIZI", "colorsPink": "ร‡ฦHRAYI", "colorsPurple": "BฦNร–VลžฦYฤฐ", "colorsDeepPurple": "TรœND BฦNร–VลžฦYฤฐ", "colorsIndigo": "Gร–Y RฦNG", "colorsBlue": "MAVฤฐ", "colorsLightBlue": "Aร‡IQ MAVฤฐ", "colorsCyan": "MAVฤฐ", "dialogAddAccount": "Hesab ษ™lavษ™ edin", "Gallery": "Qalereya", "Categories": "Kateqoriyalar", "SHRINE": "MฦQBฦRฦ", "Basic shopping app": "Tษ™mษ™l alฤฑลŸ-veriลŸ tษ™tbiqi", "RALLY": "RALLฤฐ", "CRANE": "KRAN", "Travel app": "Sษ™yahษ™t tษ™tbiqi", "MATERIAL": "MATERฤฐAL", "CUPERTINO": "KUPERTฤฐNO", "REFERENCE STYLES & MEDIA": "ฤฐSTฤฐNAD รœSLUBLAR Vฦ MEDฤฐA" }
gallery/lib/l10n/intl_az.arb/0
{ "file_path": "gallery/lib/l10n/intl_az.arb", "repo_id": "gallery", "token_count": 25258 }
995
{ "loading": "Loading", "deselect": "Deselect", "select": "Select", "selectable": "Selectable (long press)", "selected": "Selected", "demo": "Demo", "bottomAppBar": "Bottom app bar", "notSelected": "Not selected", "demoCupertinoSearchTextFieldTitle": "Search text field", "demoCupertinoPicker": "Picker", "demoCupertinoSearchTextFieldSubtitle": "iOS-style search text field", "demoCupertinoSearchTextFieldDescription": "A search text field that lets the user search by entering text and that can offer and filter suggestions.", "demoCupertinoSearchTextFieldPlaceholder": "Enter some text", "demoCupertinoScrollbarTitle": "Scrollbar", "demoCupertinoScrollbarSubtitle": "iOS-style scrollbar", "demoCupertinoScrollbarDescription": "A scrollbar that wraps the given child", "demoTwoPaneItem": "Item {value}", "demoTwoPaneList": "List", "demoTwoPaneFoldableLabel": "Foldable", "demoTwoPaneSmallScreenLabel": "Small screen", "demoTwoPaneSmallScreenDescription": "This is how TwoPane behaves on a small screen device.", "demoTwoPaneTabletLabel": "Tablet/Desktop", "demoTwoPaneTabletDescription": "This is how TwoPane behaves on a larger screen like a tablet or desktop.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Responsive layouts on foldable, large and small screens", "splashSelectDemo": "Select a demo", "demoTwoPaneFoldableDescription": "This is how TwoPane behaves on a foldable device.", "demoTwoPaneDetails": "Details", "demoTwoPaneSelectItem": "Select an item", "demoTwoPaneItemDetails": "Item {value} details", "demoCupertinoContextMenuActionText": "Tap and hold the Flutter logo to see the context menu.", "demoCupertinoContextMenuDescription": "An iOS-style full screen contextual menu that appears when an element is long-pressed.", "demoAppBarTitle": "App bar", "demoAppBarDescription": "The app bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation and actions", "demoDividerTitle": "Divider", "demoDividerSubtitle": "A divider is a thin line that groups content in lists and layouts.", "demoDividerDescription": "Dividers can be used in lists, drawers and elsewhere to separate content.", "demoVerticalDividerTitle": "Vertical divider", "demoCupertinoContextMenuTitle": "Context menu", "demoCupertinoContextMenuSubtitle": "iOS-style context menu", "demoAppBarSubtitle": "Displays information and actions relating to the current screen", "demoCupertinoContextMenuActionOne": "Action one", "demoCupertinoContextMenuActionTwo": "Action two", "demoDateRangePickerDescription": "Shows a dialogue containing a Material Design date range picker.", "demoDateRangePickerTitle": "Date range picker", "demoNavigationDrawerUserName": "User name", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "Swipe from the edge or tap the upper-left icon to see the drawer", "demoNavigationRailTitle": "Navigation rail", "demoNavigationRailSubtitle": "Displaying a navigation rail within an app", "demoNavigationRailDescription": "A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.", "demoNavigationRailFirst": "First", "demoNavigationDrawerTitle": "Navigation drawer", "demoNavigationRailThird": "Third", "replyStarredLabel": "Starred", "demoTextButtonDescription": "A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogues and inline with padding", "demoElevatedButtonTitle": "Elevated button", "demoElevatedButtonDescription": "Elevated buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.", "demoOutlinedButtonTitle": "Outlined button", "demoOutlinedButtonDescription": "Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", "demoContainerTransformDemoInstructions": "Cards, lists and FAB", "demoNavigationDrawerSubtitle": "Displaying a drawer within app bar", "replyDescription": "An efficient, focused email app", "demoNavigationDrawerDescription": "A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.", "replyDraftsLabel": "Drafts", "demoNavigationDrawerToPageOne": "Item one", "replyInboxLabel": "Inbox", "demoSharedXAxisDemoInstructions": "Next and back buttons", "replySpamLabel": "Spam", "replyTrashLabel": "Bin", "replySentLabel": "Sent", "demoNavigationRailSecond": "Second", "demoNavigationDrawerToPageTwo": "Item two", "demoFadeScaleDemoInstructions": "Modal and FAB", "demoFadeThroughDemoInstructions": "Bottom navigation", "demoSharedZAxisDemoInstructions": "Settings icon button", "demoSharedYAxisDemoInstructions": "Sort by 'Recently played'", "demoTextButtonTitle": "Text button", "demoSharedZAxisBeefSandwichRecipeTitle": "Beef sandwich", "demoSharedZAxisDessertRecipeDescription": "Dessert recipe", "demoSharedYAxisAlbumTileSubtitle": "Artist", "demoSharedYAxisAlbumTileTitle": "Album", "demoSharedYAxisRecentSortTitle": "Recently played", "demoSharedYAxisAlphabeticalSortTitle": "Aโ€“Z", "demoSharedYAxisAlbumCount": "268 albums", "demoSharedYAxisTitle": "Shared y-axis", "demoSharedXAxisCreateAccountButtonText": "CREATE ACCOUNT", "demoFadeScaleAlertDialogDiscardButton": "DISCARD", "demoSharedXAxisSignInTextFieldLabel": "Email or phone number", "demoSharedXAxisSignInSubtitleText": "Sign in with your account", "demoSharedXAxisSignInWelcomeText": "Hi David Park", "demoSharedXAxisIndividualCourseSubtitle": "Shown individually", "demoSharedXAxisBundledCourseSubtitle": "Bundled", "demoFadeThroughAlbumsDestination": "Albums", "demoSharedXAxisDesignCourseTitle": "Design", "demoSharedXAxisIllustrationCourseTitle": "Illustration", "demoSharedXAxisBusinessCourseTitle": "Business", "demoSharedXAxisArtsAndCraftsCourseTitle": "Arts and crafts", "demoMotionPlaceholderSubtitle": "Secondary text", "demoFadeScaleAlertDialogCancelButton": "CANCEL", "demoFadeScaleAlertDialogHeader": "Alert dialogue", "demoFadeScaleHideFabButton": "HIDE FAB", "demoFadeScaleShowFabButton": "SHOW FAB", "demoFadeScaleShowAlertDialogButton": "SHOW MODAL", "demoFadeScaleDescription": "The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialogue that fades in the centre of the screen.", "demoFadeScaleTitle": "Fade", "demoFadeThroughTextPlaceholder": "123 photos", "demoFadeThroughSearchDestination": "Search", "demoFadeThroughPhotosDestination": "Photos", "demoSharedXAxisCoursePageSubtitle": "Bundled categories appear as groups in your feed. You can always change this later.", "demoFadeThroughDescription": "The fade-through pattern is used for transitions between UI elements that do not have a strong relationship to each other.", "demoFadeThroughTitle": "Fade through", "demoSharedZAxisHelpSettingLabel": "Help", "demoMotionSubtitle": "All of the predefined transition patterns", "demoSharedZAxisNotificationSettingLabel": "Notifications", "demoSharedZAxisProfileSettingLabel": "Profile", "demoSharedZAxisSavedRecipesListTitle": "Saved recipes", "demoSharedZAxisBeefSandwichRecipeDescription": "Beef sandwich recipe", "demoSharedZAxisCrabPlateRecipeDescription": "Crab plate recipe", "demoSharedXAxisCoursePageTitle": "Streamline your courses", "demoSharedZAxisCrabPlateRecipeTitle": "Crab", "demoSharedZAxisShrimpPlateRecipeDescription": "Shrimp plate recipe", "demoSharedZAxisShrimpPlateRecipeTitle": "Shrimp", "demoContainerTransformTypeFadeThrough": "FADE THROUGH", "demoSharedZAxisDessertRecipeTitle": "Dessert", "demoSharedZAxisSandwichRecipeDescription": "Sandwich recipe", "demoSharedZAxisSandwichRecipeTitle": "Sandwich", "demoSharedZAxisBurgerRecipeDescription": "Burger recipe", "demoSharedZAxisBurgerRecipeTitle": "Burger", "demoSharedZAxisSettingsPageTitle": "Settings", "demoSharedZAxisTitle": "Shared z-axis", "demoSharedZAxisPrivacySettingLabel": "Privacy", "demoMotionTitle": "Motion", "demoContainerTransformTitle": "Container transform", "demoContainerTransformDescription": "The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements", "demoContainerTransformModalBottomSheetTitle": "Fade mode", "demoContainerTransformTypeFade": "FADE", "demoSharedYAxisAlbumTileDurationUnit": "min", "demoMotionPlaceholderTitle": "Title", "demoSharedXAxisForgotEmailButtonText": "FORGOT EMAIL?", "demoMotionSmallPlaceholderSubtitle": "Secondary", "demoMotionDetailsPageTitle": "Details page", "demoMotionListTileTitle": "List item", "demoSharedAxisDescription": "The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y or z axis to reinforce the relationship between elements.", "demoSharedXAxisTitle": "Shared x-axis", "demoSharedXAxisBackButtonText": "BACK", "demoSharedXAxisNextButtonText": "NEXT", "demoSharedXAxisCulinaryCourseTitle": "Culinary", "githubRepo": "{repoName} GitHub repository", "fortnightlyMenuUS": "US", "fortnightlyMenuBusiness": "Business", "fortnightlyMenuScience": "Science", "fortnightlyMenuSports": "Sport", "fortnightlyMenuTravel": "Travel", "fortnightlyMenuCulture": "Culture", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "Amount left", "fortnightlyHeadlineArmy": "Reforming The Green Army from Within", "fortnightlyDescription": "A content-focused news app", "rallyBillDetailAmountDue": "Amount due", "rallyBudgetDetailTotalCap": "Total cap", "rallyBudgetDetailAmountUsed": "Amount used", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "Front page", "fortnightlyMenuWorld": "World", "rallyBillDetailAmountPaid": "Amount paid", "fortnightlyMenuPolitics": "Politics", "fortnightlyHeadlineBees": "Farmland Bees in Short Supply", "fortnightlyHeadlineGasoline": "The Future of Petrol", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "Feminists take on Partisanship", "fortnightlyHeadlineFabrics": "Designers use Tech to make Futuristic Fabrics", "fortnightlyHeadlineStocks": "As Stocks Stagnate, many Look to Currency", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "Tech", "fortnightlyHeadlineWar": "Divided American Lives During War", "fortnightlyHeadlineHealthcare": "The Quiet, yet Powerful Healthcare Revolution", "fortnightlyLatestUpdates": "Latest updates", "fortnightlyTrendingStocks": "Stocks", "rallyBillDetailTotalAmount": "Total amount", "demoCupertinoPickerDateTime": "Date and time", "signIn": "SIGN IN", "dataTableRowWithSugar": "{value} with sugar", "dataTableRowApplePie": "Apple pie", "dataTableRowDonut": "Doughnut", "dataTableRowHoneycomb": "Honeycomb", "dataTableRowLollipop": "Lollipop", "dataTableRowJellyBean": "Jelly bean", "dataTableRowGingerbread": "Gingerbread", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Eclair", "dataTableRowIceCreamSandwich": "Ice cream sandwich", "dataTableRowFrozenYogurt": "Frozen yogurt", "dataTableColumnIron": "Iron (%)", "dataTableColumnCalcium": "Calcium (%)", "dataTableColumnSodium": "Sodium (mg)", "demoTimePickerTitle": "Time picker", "demo2dTransformationsResetTooltip": "Reset transformations", "dataTableColumnFat": "Fat (gm)", "dataTableColumnCalories": "Calories", "dataTableColumnDessert": "Dessert (1 serving)", "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", "demoTimePickerDescription": "Shows a dialogue containing a material design time picker.", "demoPickersShowPicker": "SHOW PICKER", "demoTabsScrollingTitle": "Scrolling", "demoTabsNonScrollingTitle": "Non-scrolling", "craneHours": "{hours,plural,=1{1 h}other{{hours}h}}", "craneMinutes": "{minutes,plural,=1{1 m}other{{minutes}m}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "Nutrition", "demoDatePickerTitle": "Date picker", "demoPickersSubtitle": "Date and time selection", "demoPickersTitle": "Pickers", "demo2dTransformationsEditTooltip": "Edit tile", "demoDataTableDescription": "Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights.", "demo2dTransformationsDescription": "Tap to edit tiles, and use gestures to move around the scene. Drag to pan, pinch to zoom, rotate with two fingers. Press the reset button to return to the starting orientation.", "demo2dTransformationsSubtitle": "Pan, zoom, rotate", "demo2dTransformationsTitle": "2D transformations", "demoCupertinoTextFieldPIN": "PIN", "demoCupertinoTextFieldDescription": "A text field allows the user to enter text, either with a hardware keyboard or with an on-screen keyboard.", "demoCupertinoTextFieldSubtitle": "iOS-style text fields", "demoCupertinoTextFieldTitle": "Text fields", "demoDatePickerDescription": "Shows a dialogue containing a material design date picker.", "demoCupertinoPickerTime": "Time", "demoCupertinoPickerDate": "Date", "demoCupertinoPickerTimer": "Timer", "demoCupertinoPickerDescription": "An iOS-style picker widget that can be used to select strings, dates, times or both date and time.", "demoCupertinoPickerSubtitle": "iOS-style pickers", "demoCupertinoPickerTitle": "Pickers", "dataTableRowWithHoney": "{value} with honey", "cardsDemoTravelDestinationCity2": "Chettinad", "bannerDemoResetText": "Reset the banner", "bannerDemoMultipleText": "Multiple actions", "bannerDemoLeadingText": "Leading icon", "dismiss": "DISMISS", "cardsDemoTappable": "Tappable", "cardsDemoSelectable": "Selectable (long press)", "cardsDemoExplore": "Explore", "cardsDemoExploreSemantics": "Explore {destinationName}", "cardsDemoShareSemantics": "Share {destinationName}", "cardsDemoTravelDestinationTitle1": "Top 10 cities to visit in Tamil Nadu", "cardsDemoTravelDestinationDescription1": "Number 10", "cardsDemoTravelDestinationCity1": "Thanjavur", "dataTableColumnProtein": "Protein (gm)", "cardsDemoTravelDestinationTitle2": "Artisans of Southern India", "cardsDemoTravelDestinationDescription2": "Silk spinners", "bannerDemoText": "Your password was updated on your other device. Please sign in again.", "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", "cardsDemoTravelDestinationTitle3": "Brihadisvara Temple", "cardsDemoTravelDestinationDescription3": "Temples", "demoBannerTitle": "Banner", "demoBannerSubtitle": "Displaying a banner within a list", "demoBannerDescription": "A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.", "demoCardTitle": "Cards", "demoCardSubtitle": "Baseline cards with rounded corners", "demoCardDescription": "A card is a sheet of material used to represent some related information, for example, an album, a geographical location, a meal, contact details, etc.", "demoDataTableTitle": "Data tables", "demoDataTableSubtitle": "Rows and columns of information", "dataTableColumnCarbs": "Carbs (gm)", "placeTanjore": "Tanjore", "demoGridListsTitle": "Grid lists", "placeFlowerMarket": "Flower market", "placeBronzeWorks": "Bronze works", "placeMarket": "Market", "placeThanjavurTemple": "Thanjavur Temple", "placeSaltFarm": "Salt farm", "placeScooters": "Scooters", "placeSilkMaker": "Silk maker", "placeLunchPrep": "Lunch prep", "placeBeach": "Beach", "placeFisherman": "Fisherman", "demoMenuSelected": "Selected: {value}", "demoMenuRemove": "Remove", "demoMenuGetLink": "Get link", "demoMenuShare": "Share", "demoBottomAppBarSubtitle": "Displays navigation and actions at the bottom", "demoMenuAnItemWithASectionedMenu": "An item with a sectioned menu", "demoMenuADisabledMenuItem": "Disabled menu item", "demoLinearProgressIndicatorTitle": "Linear progress indicator", "demoMenuContextMenuItemOne": "Context menu item one", "demoMenuAnItemWithASimpleMenu": "An item with a simple menu", "demoCustomSlidersTitle": "Custom sliders", "demoMenuAnItemWithAChecklistMenu": "An item with a checklist menu", "demoCupertinoActivityIndicatorTitle": "Activity indicator", "demoCupertinoActivityIndicatorSubtitle": "iOS-style activity indicators", "demoCupertinoActivityIndicatorDescription": "An iOS-style activity indicator that spins clockwise.", "demoCupertinoNavigationBarTitle": "Navigation bar", "demoCupertinoNavigationBarSubtitle": "iOS-style navigation bar", "demoCupertinoNavigationBarDescription": "An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.", "demoCupertinoPullToRefreshTitle": "Pull to refresh", "demoCupertinoPullToRefreshSubtitle": "iOS-style pull to refresh control", "demoCupertinoPullToRefreshDescription": "A widget implementing the iOS-style pull to refresh content control.", "demoProgressIndicatorTitle": "Progress indicators", "demoProgressIndicatorSubtitle": "Linear, circular, indeterminate", "demoCircularProgressIndicatorTitle": "Circular progress indicator", "demoCircularProgressIndicatorDescription": "A material design circular progress indicator, which spins to indicate that the application is busy.", "demoMenuFour": "Four", "demoLinearProgressIndicatorDescription": "A material design linear progress indicator, also known as a progress bar.", "demoTooltipTitle": "Tooltips", "demoTooltipSubtitle": "Short message displayed on long press or hover", "demoTooltipDescription": "Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.", "demoTooltipInstructions": "Long press or hover to display the tooltip.", "placeChennai": "Chennai", "demoMenuChecked": "Checked: {value}", "placeChettinad": "Chettinad", "demoMenuPreview": "Preview", "demoBottomAppBarTitle": "Bottom app bar", "demoBottomAppBarDescription": "Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.", "bottomAppBarNotch": "Notch", "bottomAppBarPosition": "Floating action button position", "bottomAppBarPositionDockedEnd": "Docked - End", "bottomAppBarPositionDockedCenter": "Docked - Centre", "bottomAppBarPositionFloatingEnd": "Floating - End", "bottomAppBarPositionFloatingCenter": "Floating - Centre", "demoSlidersEditableNumericalValue": "Editable numerical value", "demoGridListsSubtitle": "Row and column layout", "demoGridListsDescription": "Grid lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.", "demoGridListsImageOnlyTitle": "Image only", "demoGridListsHeaderTitle": "With header", "demoGridListsFooterTitle": "With footer", "demoSlidersTitle": "Sliders", "demoSlidersSubtitle": "Widgets for selecting a value by swiping", "demoSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness or applying image filters.", "demoRangeSlidersTitle": "Range sliders", "demoRangeSlidersDescription": "Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness or applying image filters.", "demoMenuAnItemWithAContextMenuButton": "An item with a context menu", "demoCustomSlidersDescription": "Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customised.", "demoSlidersContinuousWithEditableNumericalValue": "Continuous with editable numerical value", "demoSlidersDiscrete": "Discrete", "demoSlidersDiscreteSliderWithCustomTheme": "Discrete slider with custom theme", "demoSlidersContinuousRangeSliderWithCustomTheme": "Continuous range slider with custom theme", "demoSlidersContinuous": "Continuous", "placePondicherry": "Pondicherry", "demoMenuTitle": "Menu", "demoContextMenuTitle": "Context menu", "demoSectionedMenuTitle": "Sectioned menu", "demoSimpleMenuTitle": "Simple menu", "demoChecklistMenuTitle": "Checklist menu", "demoMenuSubtitle": "Menu buttons and simple menus", "demoMenuDescription": "A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action or other control.", "demoMenuItemValueOne": "Menu item one", "demoMenuItemValueTwo": "Menu item two", "demoMenuItemValueThree": "Menu item three", "demoMenuOne": "One", "demoMenuTwo": "Two", "demoMenuThree": "Three", "demoMenuContextMenuItemThree": "Context menu item three", "demoCupertinoSwitchSubtitle": "iOS-style switch", "demoSnackbarsText": "This is a snackbar.", "demoCupertinoSliderSubtitle": "iOS-style slider", "demoCupertinoSliderDescription": "A slider can be used to select from either a continuous or a discrete set of values.", "demoCupertinoSliderContinuous": "Continuous: {value}", "demoCupertinoSliderDiscrete": "Discrete: {value}", "demoSnackbarsAction": "You pressed the snackbar action.", "backToGallery": "Back to Gallery", "demoCupertinoTabBarTitle": "Tab bar", "demoCupertinoSwitchDescription": "A switch is used to toggle the on/off state of a single setting.", "demoSnackbarsActionButtonLabel": "ACTION", "cupertinoTabBarProfileTab": "Profile", "demoSnackbarsButtonLabel": "SHOW A SNACKBAR", "demoSnackbarsDescription": "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear.", "demoSnackbarsSubtitle": "Snackbars show messages at the bottom of the screen", "demoSnackbarsTitle": "Snackbars", "demoCupertinoSliderTitle": "Slider", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "Home", "demoCupertinoTabBarDescription": "An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.", "demoCupertinoTabBarSubtitle": "iOS-style bottom tab bar", "demoOptionsFeatureTitle": "View options", "demoOptionsFeatureDescription": "Tap here to view available options for this demo.", "demoCodeViewerCopyAll": "COPY ALL", "shrineScreenReaderRemoveProductButton": "Remove {product}", "shrineScreenReaderProductAddToCart": "Add to basket", "shrineScreenReaderCart": "{quantity,plural,=0{Shopping basket, no items}=1{Shopping basket, 1 item}other{Shopping basket, {quantity} items}}", "demoCodeViewerFailedToCopyToClipboardMessage": "Failed to copy to clipboard: {error}", "demoCodeViewerCopiedToClipboardMessage": "Copied to clipboard.", "craneSleep8SemanticLabel": "Mayan ruins on a cliff above a beach", "craneSleep4SemanticLabel": "Lake-side hotel in front of mountains", "craneSleep2SemanticLabel": "Machu Picchu citadel", "craneSleep1SemanticLabel": "Chalet in a snowy landscape with evergreen trees", "craneSleep0SemanticLabel": "Overwater bungalows", "craneFly13SemanticLabel": "Seaside pool with palm trees", "craneFly12SemanticLabel": "Pool with palm trees", "craneFly11SemanticLabel": "Brick lighthouse at sea", "craneFly10SemanticLabel": "Al-Azhar Mosque towers during sunset", "craneFly9SemanticLabel": "Man leaning on an antique blue car", "craneFly8SemanticLabel": "Supertree Grove", "craneEat9SemanticLabel": "Cafรฉ counter with pastries", "craneEat2SemanticLabel": "Burger", "craneFly5SemanticLabel": "Lake-side hotel in front of mountains", "demoSelectionControlsSubtitle": "Tick boxes, radio buttons and switches", "craneEat10SemanticLabel": "Woman holding huge pastrami sandwich", "craneFly4SemanticLabel": "Overwater bungalows", "craneEat7SemanticLabel": "Bakery entrance", "craneEat6SemanticLabel": "Shrimp dish", "craneEat5SemanticLabel": "Artsy restaurant seating area", "craneEat4SemanticLabel": "Chocolate dessert", "craneEat3SemanticLabel": "Korean taco", "craneFly3SemanticLabel": "Machu Picchu citadel", "craneEat1SemanticLabel": "Empty bar with diner-style stools", "craneEat0SemanticLabel": "Pizza in a wood-fired oven", "craneSleep11SemanticLabel": "Taipei 101 skyscraper", "craneSleep10SemanticLabel": "Al-Azhar Mosque towers during sunset", "craneSleep9SemanticLabel": "Brick lighthouse at sea", "craneEat8SemanticLabel": "Plate of crawfish", "craneSleep7SemanticLabel": "Colourful apartments at Ribeira Square", "craneSleep6SemanticLabel": "Pool with palm trees", "craneSleep5SemanticLabel": "Tent in a field", "settingsButtonCloseLabel": "Close settings", "demoSelectionControlsCheckboxDescription": "Tick boxes allow the user to select multiple options from a set. A normal tick box's value is true or false and a tristate tick box's value can also be null.", "settingsButtonLabel": "Settings", "demoListsTitle": "Lists", "demoListsSubtitle": "Scrolling list layouts", "demoListsDescription": "A single fixed-height row that typically contains some text as well as a leading or trailing icon.", "demoOneLineListsTitle": "One line", "demoTwoLineListsTitle": "Two lines", "demoListsSecondary": "Secondary text", "demoSelectionControlsTitle": "Selection controls", "craneFly7SemanticLabel": "Mount Rushmore", "demoSelectionControlsCheckboxTitle": "Tick box", "craneSleep3SemanticLabel": "Man leaning on an antique blue car", "demoSelectionControlsRadioTitle": "Radio", "demoSelectionControlsRadioDescription": "Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side by side.", "demoSelectionControlsSwitchTitle": "Switch", "demoSelectionControlsSwitchDescription": "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label.", "craneFly0SemanticLabel": "Chalet in a snowy landscape with evergreen trees", "craneFly1SemanticLabel": "Tent in a field", "craneFly2SemanticLabel": "Prayer flags in front of snowy mountain", "craneFly6SemanticLabel": "Aerial view of Palacio de Bellas Artes", "rallySeeAllAccounts": "See all accounts", "rallyBillAmount": "{billName} bill due {date} for {amount}.", "shrineTooltipCloseCart": "Close basket", "shrineTooltipCloseMenu": "Close menu", "shrineTooltipOpenMenu": "Open menu", "shrineTooltipSettings": "Settings", "shrineTooltipSearch": "Search", "demoTabsDescription": "Tabs organise content across different screens, data sets and other interactions.", "demoTabsSubtitle": "Tabs with independently scrollable views", "demoTabsTitle": "Tabs", "rallyBudgetAmount": "{budgetName} budget with {amountUsed} used of {amountTotal}, {amountLeft} left", "shrineTooltipRemoveItem": "Remove item", "rallyAccountAmount": "{accountName} account {accountNumber} with {amount}.", "rallySeeAllBudgets": "See all budgets", "rallySeeAllBills": "See all bills", "craneFormDate": "Select date", "craneFormOrigin": "Choose origin", "craneFly2": "Khumbu Valley, Nepal", "craneFly3": "Machu Picchu, Peru", "craneFly4": "Malรฉ, Maldives", "craneFly5": "Vitznau, Switzerland", "craneFly6": "Mexico City, Mexico", "craneFly7": "Mount Rushmore, United States", "settingsTextDirectionLocaleBased": "Based on locale", "craneFly9": "Havana, Cuba", "craneFly10": "Cairo, Egypt", "craneFly11": "Lisbon, Portugal", "craneFly12": "Napa, United States", "craneFly13": "Bali, Indonesia", "craneSleep0": "Malรฉ, Maldives", "craneSleep1": "Aspen, United States", "craneSleep2": "Machu Picchu, Peru", "demoCupertinoSegmentedControlTitle": "Segmented control", "craneSleep4": "Vitznau, Switzerland", "craneSleep5": "Big Sur, United States", "craneSleep6": "Napa, United States", "craneSleep7": "Porto, Portugal", "craneSleep8": "Tulum, Mexico", "craneEat5": "Seoul, South Korea", "demoChipTitle": "Chips", "demoChipSubtitle": "Compact elements that represent an input, attribute or action", "demoActionChipTitle": "Action chip", "demoActionChipDescription": "Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.", "demoChoiceChipTitle": "Choice chip", "demoChoiceChipDescription": "Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.", "demoFilterChipTitle": "Filter chip", "demoFilterChipDescription": "Filter chips use tags or descriptive words as a way to filter content.", "demoInputChipTitle": "Input chip", "demoInputChipDescription": "Input chips represent a complex piece of information, such as an entity (person, place or thing) or conversational text, in a compact form.", "craneSleep9": "Lisbon, Portugal", "craneEat10": "Lisbon, Portugal", "demoCupertinoSegmentedControlDescription": "Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.", "chipTurnOnLights": "Turn on lights", "chipSmall": "Small", "chipMedium": "Medium", "chipLarge": "Large", "chipElevator": "Lift", "chipWasher": "Washing machine", "chipFireplace": "Fireplace", "chipBiking": "Cycling", "craneFormDiners": "Diners", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Increase your potential tax deduction! Assign categories to 1 unassigned transaction.}other{Increase your potential tax deduction! Assign categories to {count} unassigned transactions.}}", "craneFormTime": "Select time", "craneFormLocation": "Select location", "craneFormTravelers": "Travellers", "craneEat8": "Atlanta, United States", "craneFormDestination": "Choose destination", "craneFormDates": "Select dates", "craneFly": "FLY", "craneSleep": "SLEEP", "craneEat": "EAT", "craneFlySubhead": "Explore flights by destination", "craneSleepSubhead": "Explore properties by destination", "craneEatSubhead": "Explore restaurants by destination", "craneFlyStops": "{numberOfStops,plural,=0{Non-stop}=1{1 stop}other{{numberOfStops} stops}}", "craneSleepProperties": "{totalProperties,plural,=0{No available properties}=1{1 available property}other{{totalProperties} available properties}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{No restaurants}=1{1 restaurant}other{{totalRestaurants} restaurants}}", "craneFly0": "Aspen, United States", "demoCupertinoSegmentedControlSubtitle": "iOS-style segmented control", "craneSleep10": "Cairo, Egypt", "craneEat9": "Madrid, Spain", "craneFly1": "Big Sur, United States", "craneEat7": "Nashville, United States", "craneEat6": "Seattle, United States", "craneFly8": "Singapore", "craneEat4": "Paris, France", "craneEat3": "Portland, United States", "craneEat2": "Cรณrdoba, Argentina", "craneEat1": "Dallas, United States", "craneEat0": "Naples, Italy", "craneSleep11": "Taipei, Taiwan", "craneSleep3": "Havana, Cuba", "shrineLogoutButtonCaption": "LOGOUT", "rallyTitleBills": "BILLS", "rallyTitleAccounts": "ACCOUNTS", "shrineProductVagabondSack": "Vagabond sack", "rallyAccountDetailDataInterestYtd": "Interest YTD", "shrineProductWhitneyBelt": "Whitney belt", "shrineProductGardenStrand": "Garden strand", "shrineProductStrutEarrings": "Strut earrings", "shrineProductVarsitySocks": "Varsity socks", "shrineProductWeaveKeyring": "Weave keyring", "shrineProductGatsbyHat": "Gatsby hat", "shrineProductShrugBag": "Shrug bag", "shrineProductGiltDeskTrio": "Gilt desk trio", "shrineProductCopperWireRack": "Copper wire rack", "shrineProductSootheCeramicSet": "Soothe ceramic set", "shrineProductHurrahsTeaSet": "Hurrahs tea set", "shrineProductBlueStoneMug": "Blue stone mug", "shrineProductRainwaterTray": "Rainwater tray", "shrineProductChambrayNapkins": "Chambray napkins", "shrineProductSucculentPlanters": "Succulent planters", "shrineProductQuartetTable": "Quartet table", "shrineProductKitchenQuattro": "Kitchen quattro", "shrineProductClaySweater": "Clay sweater", "shrineProductSeaTunic": "Sea tunic", "shrineProductPlasterTunic": "Plaster tunic", "rallyBudgetCategoryRestaurants": "Restaurants", "shrineProductChambrayShirt": "Chambray shirt", "shrineProductSeabreezeSweater": "Seabreeze sweater", "shrineProductGentryJacket": "Gentry jacket", "shrineProductNavyTrousers": "Navy trousers", "shrineProductWalterHenleyWhite": "Walter henley (white)", "shrineProductSurfAndPerfShirt": "Surf and perf shirt", "shrineProductGingerScarf": "Ginger scarf", "shrineProductRamonaCrossover": "Ramona crossover", "shrineProductClassicWhiteCollar": "Classic white collar", "shrineProductSunshirtDress": "Sunshirt dress", "rallyAccountDetailDataInterestRate": "Interest rate", "rallyAccountDetailDataAnnualPercentageYield": "Annual percentage yield", "rallyAccountDataVacation": "Holiday", "shrineProductFineLinesTee": "Fine lines tee", "rallyAccountDataHomeSavings": "Home savings", "rallyAccountDataChecking": "Current", "rallyAccountDetailDataInterestPaidLastYear": "Interest paid last year", "rallyAccountDetailDataNextStatement": "Next statement", "rallyAccountDetailDataAccountOwner": "Account owner", "rallyBudgetCategoryCoffeeShops": "Coffee shops", "rallyBudgetCategoryGroceries": "Groceries", "shrineProductCeriseScallopTee": "Cerise scallop tee", "rallyBudgetCategoryClothing": "Clothing", "rallySettingsManageAccounts": "Manage accounts", "rallyAccountDataCarSavings": "Car savings", "rallySettingsTaxDocuments": "Tax documents", "rallySettingsPasscodeAndTouchId": "Passcode and Touch ID", "rallySettingsNotifications": "Notifications", "rallySettingsPersonalInformation": "Personal information", "rallySettingsPaperlessSettings": "Paperless settings", "rallySettingsFindAtms": "Find ATMs", "rallySettingsHelp": "Help", "rallySettingsSignOut": "Sign out", "rallyAccountTotal": "Total", "rallyBillsDue": "Due", "rallyBudgetLeft": "Left", "rallyAccounts": "Accounts", "rallyBills": "Bills", "rallyBudgets": "Budgets", "rallyAlerts": "Alerts", "rallySeeAll": "SEE ALL", "rallyFinanceLeft": "LEFT", "rallyTitleOverview": "OVERVIEW", "shrineProductShoulderRollsTee": "Shoulder rolls tee", "shrineNextButtonCaption": "NEXT", "rallyTitleBudgets": "BUDGETS", "rallyTitleSettings": "SETTINGS", "rallyLoginLoginToRally": "Log in to Rally", "rallyLoginNoAccount": "Don't have an account?", "rallyLoginSignUp": "SIGN UP", "rallyLoginUsername": "Username", "rallyLoginPassword": "Password", "rallyLoginLabelLogin": "Log in", "rallyLoginRememberMe": "Remember me", "rallyLoginButtonLogin": "LOGIN", "rallyAlertsMessageHeadsUpShopping": "Heads up: you've used up {percent} of your shopping budget for this month.", "rallyAlertsMessageSpentOnRestaurants": "You've spent {amount} on restaurants this week.", "rallyAlertsMessageATMFees": "You've spent {amount} in ATM fees this month", "rallyAlertsMessageCheckingAccount": "Good work! Your current account is {percent} higher than last month.", "shrineMenuCaption": "MENU", "shrineCategoryNameAll": "ALL", "shrineCategoryNameAccessories": "ACCESSORIES", "shrineCategoryNameClothing": "CLOTHING", "shrineCategoryNameHome": "HOME", "shrineLoginUsernameLabel": "Username", "shrineLoginPasswordLabel": "Password", "shrineCancelButtonCaption": "CANCEL", "shrineCartTaxCaption": "Tax:", "shrineCartPageCaption": "BASKET", "shrineProductQuantity": "Quantity: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{NO ITEMS}=1{1 ITEM}other{{quantity} ITEMS}}", "shrineCartClearButtonCaption": "CLEAR BASKET", "shrineCartTotalCaption": "TOTAL", "shrineCartSubtotalCaption": "Subtotal:", "shrineCartShippingCaption": "Delivery:", "shrineProductGreySlouchTank": "Grey slouch tank top", "shrineProductStellaSunglasses": "Stella sunglasses", "shrineProductWhitePinstripeShirt": "White pinstripe shirt", "demoTextFieldWhereCanWeReachYou": "Where can we contact you?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "Large", "demoBottomSheetHeader": "Header", "demoBottomSheetItem": "Item {value}", "demoBottomTextFieldsTitle": "Text fields", "demoTextFieldTitle": "Text fields", "demoTextFieldSubtitle": "Single line of editable text and numbers", "demoTextFieldDescription": "Text fields allow users to enter text into a UI. They typically appear in forms and dialogues.", "demoTextFieldShowPasswordLabel": "Show password", "demoTextFieldHidePasswordLabel": "Hide password", "demoTextFieldFormErrors": "Please fix the errors in red before submitting.", "demoTextFieldNameRequired": "Name is required.", "demoTextFieldOnlyAlphabeticalChars": "Please enter only alphabetical characters.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### โ€“ Enter a US phone number.", "demoTextFieldEnterPassword": "Please enter a password.", "demoTextFieldPasswordsDoNotMatch": "The passwords don't match", "demoTextFieldWhatDoPeopleCallYou": "What do people call you?", "demoTextFieldNameField": "Name*", "demoBottomSheetButtonText": "SHOW BOTTOM SHEET", "demoTextFieldPhoneNumber": "Phone number*", "demoBottomSheetTitle": "Bottom sheet", "demoTextFieldEmail": "Email", "demoTextFieldTellUsAboutYourself": "Tell us about yourself (e.g. write down what you do or what hobbies you have)", "demoTextFieldKeepItShort": "Keep it short, this is just a demo.", "starterAppGenericButton": "BUTTON", "demoTextFieldLifeStory": "Life story", "demoTextFieldSalary": "Salary", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "No more than 8 characters.", "demoTextFieldPassword": "Password*", "demoTextFieldRetypePassword": "Re-type password*", "demoTextFieldSubmit": "SUBMIT", "demoBottomNavigationSubtitle": "Bottom navigation with cross-fading views", "demoBottomSheetAddLabel": "Add", "demoBottomSheetModalDescription": "A modal bottom sheet is an alternative to a menu or a dialogue and prevents the user from interacting with the rest of the app.", "demoBottomSheetModalTitle": "Modal bottom sheet", "demoBottomSheetPersistentDescription": "A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.", "demoBottomSheetPersistentTitle": "Persistent bottom sheet", "demoBottomSheetSubtitle": "Persistent and modal bottom sheets", "demoTextFieldNameHasPhoneNumber": "{name} phone number is {phoneNumber}", "buttonText": "BUTTON", "demoTypographyDescription": "Definitions for the various typographical styles found in Material Design.", "demoTypographySubtitle": "All of the predefined text styles", "demoTypographyTitle": "Typography", "demoFullscreenDialogDescription": "The fullscreenDialog property specifies whether the incoming page is a full-screen modal dialogue", "demoFlatButtonDescription": "A flat button displays an ink splash on press but does not lift. Use flat buttons on toolbars, in dialogues and inline with padding", "demoBottomNavigationDescription": "Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.", "demoBottomNavigationSelectedLabel": "Selected label", "demoBottomNavigationPersistentLabels": "Persistent labels", "starterAppDrawerItem": "Item {value}", "demoTextFieldRequiredField": "* indicates required field", "demoBottomNavigationTitle": "Bottom navigation", "settingsLightTheme": "Light", "settingsTheme": "Theme", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "Huge", "cupertinoButton": "Button", "settingsTextScalingNormal": "Normal", "settingsTextScalingSmall": "Small", "settingsSystemDefault": "System", "settingsTitle": "Settings", "rallyDescription": "A personal finance app", "aboutDialogDescription": "To see the source code for this app, please visit the {repoLink}.", "bottomNavigationCommentsTab": "Comments", "starterAppGenericBody": "Body", "starterAppGenericHeadline": "Headline", "starterAppGenericSubtitle": "Subtitle", "starterAppGenericTitle": "Title", "starterAppTooltipSearch": "Search", "starterAppTooltipShare": "Share", "starterAppTooltipFavorite": "Favourite", "starterAppTooltipAdd": "Add", "bottomNavigationCalendarTab": "Calendar", "starterAppDescription": "A responsive starter layout", "starterAppTitle": "Starter app", "aboutFlutterSamplesRepo": "Flutter samples GitHub repo", "bottomNavigationContentPlaceholder": "Placeholder for {title} tab", "bottomNavigationCameraTab": "Camera", "bottomNavigationAlarmTab": "Alarm", "bottomNavigationAccountTab": "Account", "demoTextFieldYourEmailAddress": "Your email address", "demoToggleButtonDescription": "Toggle buttons can be used to group related options. To emphasise groups of related toggle buttons, a group should share a common container", "colorsGrey": "GREY", "colorsBrown": "BROWN", "colorsDeepOrange": "DEEP ORANGE", "colorsOrange": "ORANGE", "colorsAmber": "AMBER", "colorsYellow": "YELLOW", "colorsLime": "LIME", "colorsLightGreen": "LIGHT GREEN", "colorsGreen": "GREEN", "homeHeaderGallery": "Gallery", "homeHeaderCategories": "Categories", "shrineDescription": "A fashionable retail app", "craneDescription": "A personalised travel app", "homeCategoryReference": "STYLES AND OTHER", "demoInvalidURL": "Couldn't display URL:", "demoOptionsTooltip": "Options", "demoInfoTooltip": "Info", "demoCodeTooltip": "Demo code", "demoDocumentationTooltip": "API Documentation", "demoFullscreenTooltip": "Full screen", "settingsTextScaling": "Text scaling", "settingsTextDirection": "Text direction", "settingsLocale": "Locale", "settingsPlatformMechanics": "Platform mechanics", "settingsDarkTheme": "Dark", "settingsSlowMotion": "Slow motion", "settingsAbout": "About Flutter Gallery", "settingsFeedback": "Send feedback", "settingsAttribution": "Designed by TOASTER in London", "demoButtonTitle": "Buttons", "demoButtonSubtitle": "Text, elevated, outlined and more", "demoFlatButtonTitle": "Flat Button", "demoRaisedButtonDescription": "Raised buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.", "demoRaisedButtonTitle": "Raised Button", "demoOutlineButtonTitle": "Outline Button", "demoOutlineButtonDescription": "Outline buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.", "demoToggleButtonTitle": "Toggle Buttons", "colorsTeal": "TEAL", "demoFloatingButtonTitle": "Floating Action Button", "demoFloatingButtonDescription": "A floating action button is a circular icon button that hovers over content to promote a primary action in the application.", "demoDialogTitle": "Dialogues", "demoDialogSubtitle": "Simple, alert and full-screen", "demoAlertDialogTitle": "Alert", "demoAlertDialogDescription": "An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title and an optional list of actions.", "demoAlertTitleDialogTitle": "Alert With Title", "demoSimpleDialogTitle": "Simple", "demoSimpleDialogDescription": "A simple dialogue offers the user a choice between several options. A simple dialogue has an optional title that is displayed above the choices.", "demoFullscreenDialogTitle": "Full screen", "demoCupertinoButtonsTitle": "Buttons", "demoCupertinoButtonsSubtitle": "iOS-style buttons", "demoCupertinoButtonsDescription": "An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.", "demoCupertinoAlertsTitle": "Alerts", "demoCupertinoAlertsSubtitle": "iOS-style alert dialogues", "demoCupertinoAlertTitle": "Alert", "demoCupertinoAlertDescription": "An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title, optional content and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.", "demoCupertinoAlertWithTitleTitle": "Alert with title", "demoCupertinoAlertButtonsTitle": "Alert With Buttons", "demoCupertinoAlertButtonsOnlyTitle": "Alert Buttons Only", "demoCupertinoActionSheetTitle": "Action Sheet", "demoCupertinoActionSheetDescription": "An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message and a list of actions.", "demoColorsTitle": "Colours", "demoColorsSubtitle": "All of the predefined colours", "demoColorsDescription": "Colour and colour swatch constants which represent Material Design's colour palette.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Create", "dialogSelectedOption": "You selected: '{value}'", "dialogDiscardTitle": "Discard draft?", "dialogLocationTitle": "Use Google's location service?", "dialogLocationDescription": "Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.", "dialogCancel": "CANCEL", "dialogDiscard": "DISCARD", "dialogDisagree": "DISAGREE", "dialogAgree": "AGREE", "dialogSetBackup": "Set backup account", "colorsBlueGrey": "BLUE GREY", "dialogShow": "SHOW DIALOGUE", "dialogFullscreenTitle": "Full-Screen Dialogue", "dialogFullscreenSave": "SAVE", "dialogFullscreenDescription": "A full-screen dialogue demo", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "With background", "cupertinoAlertCancel": "Cancel", "cupertinoAlertDiscard": "Discard", "cupertinoAlertLocationTitle": "Allow 'Maps' to access your location while you are using the app?", "cupertinoAlertLocationDescription": "Your current location will be displayed on the map and used for directions, nearby search results and estimated travel times.", "cupertinoAlertAllow": "Allow", "cupertinoAlertDontAllow": "Don't allow", "cupertinoAlertFavoriteDessert": "Select Favourite Dessert", "cupertinoAlertDessertDescription": "Please select your favourite type of dessert from the list below. Your selection will be used to customise the suggested list of eateries in your area.", "cupertinoAlertCheesecake": "Cheesecake", "cupertinoAlertTiramisu": "Tiramisu", "cupertinoAlertApplePie": "Apple Pie", "cupertinoAlertChocolateBrownie": "Chocolate brownie", "cupertinoShowAlert": "Show alert", "colorsRed": "RED", "colorsPink": "PINK", "colorsPurple": "PURPLE", "colorsDeepPurple": "DEEP PURPLE", "colorsIndigo": "INDIGO", "colorsBlue": "BLUE", "colorsLightBlue": "LIGHT BLUE", "colorsCyan": "CYAN", "dialogAddAccount": "Add account", "Gallery": "Gallery", "Categories": "Categories", "SHRINE": "SHRINE", "Basic shopping app": "Basic shopping app", "RALLY": "RALLY", "CRANE": "CRANE", "Travel app": "Travel app", "MATERIAL": "MATERIAL", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "REFERENCE STYLES & MEDIA" }
gallery/lib/l10n/intl_en_GB.arb/0
{ "file_path": "gallery/lib/l10n/intl_en_GB.arb", "repo_id": "gallery", "token_count": 14929 }
996
{ "loading": "Cargando", "deselect": "Anular selecciรณn", "select": "Seleccionar", "selectable": "Se puede seleccionar (mantener presionado)", "selected": "Seleccionado", "demo": "Demostraciรณn", "bottomAppBar": "Barra de la aplicaciรณn inferior", "notSelected": "Sin seleccionar", "demoCupertinoSearchTextFieldTitle": "Campo de texto de bรบsqueda", "demoCupertinoPicker": "Selector", "demoCupertinoSearchTextFieldSubtitle": "Campo de texto de bรบsqueda similar al de iOS", "demoCupertinoSearchTextFieldDescription": "Es un campo de texto de bรบsqueda que permite al usuario ingresar texto para hacer bรบsquedas y que puede ofrecer y filtrar sugerencias.", "demoCupertinoSearchTextFieldPlaceholder": "Ingresa texto", "demoCupertinoScrollbarTitle": "Barra de desplazamiento", "demoCupertinoScrollbarSubtitle": "Barra de desplazamiento similar a la de iOS", "demoCupertinoScrollbarDescription": "Es una barra de desplazamiento que une el elemento secundario proporcionado.", "demoTwoPaneItem": "Artรญculo {value}", "demoTwoPaneList": "Lista", "demoTwoPaneFoldableLabel": "Plegable", "demoTwoPaneSmallScreenLabel": "Pantalla pequeรฑa", "demoTwoPaneSmallScreenDescription": "Asรญ es como se comporta TwoPane en un dispositivo con pantalla pequeรฑa.", "demoTwoPaneTabletLabel": "Tablet/computadora", "demoTwoPaneTabletDescription": "Asรญ es como se comporta TwoPane en una pantalla de mayor tamaรฑo, como la de una tablet o una computadora.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Diseรฑo responsivo en pantallas plegables, grandes y pequeรฑas", "splashSelectDemo": "Selecciona una demostraciรณn", "demoTwoPaneFoldableDescription": "Asรญ es cรณmo se comporta TwoPane en un dispositivo plegable.", "demoTwoPaneDetails": "Detalles", "demoTwoPaneSelectItem": "Selecciona un elemento", "demoTwoPaneItemDetails": "Detalles del artรญculo {value}", "demoCupertinoContextMenuActionText": "Mantรฉn presionado el logotipo de Flutter para ver el menรบ contextual.", "demoCupertinoContextMenuDescription": "Un menรบ contextual de pantalla completa con estilo de iOS que aparece cuando se mantiene presionado un elemento.", "demoAppBarTitle": "Barra de la aplicaciรณn", "demoAppBarDescription": "La barra de la app incluye contenido y acciones relacionadas a la pantalla actual. Se usa para desarrollo de la marca, tรญtulos en pantalla, navegaciรณn y acciones.", "demoDividerTitle": "Divisor", "demoDividerSubtitle": "Un divisor es una lรญnea fina que agrupa contenido en listas y paneles.", "demoDividerDescription": "Un divisor se puede usar en listas, paneles laterales y cualquier otro lugar para separar contenido.", "demoVerticalDividerTitle": "Divisor vertical", "demoCupertinoContextMenuTitle": "Menรบ contextual", "demoCupertinoContextMenuSubtitle": "Menรบ contextual con estilo de iOS", "demoAppBarSubtitle": "Muestra informaciรณn y acciones relacionadas a la pantalla actual", "demoCupertinoContextMenuActionOne": "Acciรณn uno", "demoCupertinoContextMenuActionTwo": "Acciรณn dos", "demoDateRangePickerDescription": "Muestra un diรกlogo que contiene un selector de perรญodos de Materialย Design.", "demoDateRangePickerTitle": "Selector de perรญodos", "demoNavigationDrawerUserName": "Nombre de usuario", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "Desliza el dedo desde el borde o presiona el รญcono superior izquierdo para ver el panel lateral", "demoNavigationRailTitle": "Riel de navegaciรณn", "demoNavigationRailSubtitle": "Cรณmo mostrar un riel de navegaciรณn dentro de una app", "demoNavigationRailDescription": "Un widget de Material que debe mostrarse a la izquierda o la derecha de una app para navegar entre una pequeรฑa cantidad de vistas, generalmente entre tres y cinco.", "demoNavigationRailFirst": "Primera", "demoNavigationDrawerTitle": "Panel lateral de navegaciรณn", "demoNavigationRailThird": "Tercera", "replyStarredLabel": "Destacados", "demoTextButtonDescription": "Un botรณn plano que muestra una gota de tinta cuando se lo presiona, pero que no tiene sombra. Usa los botones planos en barras de herramientas, diรกlogos y tambiรฉn intercalados con el relleno.", "demoElevatedButtonTitle": "Botรณn con relieve", "demoElevatedButtonDescription": "Los botones con relieve agregan profundidad a los diseรฑos que son principalmente planos. Destacan las funciones en espacios amplios o con muchos elementos.", "demoOutlinedButtonTitle": "Botรณn con contorno", "demoOutlinedButtonDescription": "Los botones con contorno se vuelven opacos y se elevan cuando se los presiona. A menudo, se combinan con botones con relieve para indicar una acciรณn secundaria alternativa.", "demoContainerTransformDemoInstructions": "Tarjetas, Listas y BAF", "demoNavigationDrawerSubtitle": "Cรณmo mostrar un panel lateral dentro de la barra de la app", "replyDescription": "Una app de correo electrรณnico especializada y eficiente", "demoNavigationDrawerDescription": "Un panel de Materialย Design que se desliza horizontalmente desde el borde de la pantalla para mostrar vรญnculos de navegaciรณn en una aplicaciรณn.", "replyDraftsLabel": "Borradores", "demoNavigationDrawerToPageOne": "Elemento uno", "replyInboxLabel": "Recibidos", "demoSharedXAxisDemoInstructions": "Botones Atrรกs y Siguiente", "replySpamLabel": "Spam", "replyTrashLabel": "Papelera", "replySentLabel": "Enviados", "demoNavigationRailSecond": "Segunda", "demoNavigationDrawerToPageTwo": "Elemento dos", "demoFadeScaleDemoInstructions": "Modal y BAF", "demoFadeThroughDemoInstructions": "Navegaciรณn inferior", "demoSharedZAxisDemoInstructions": "Botรณn de รญcono de configuraciรณn", "demoSharedYAxisDemoInstructions": "Ordenado por \"Reproducido recientemente\"", "demoTextButtonTitle": "Botรณn plano", "demoSharedZAxisBeefSandwichRecipeTitle": "Sรกndwich de carne de res", "demoSharedZAxisDessertRecipeDescription": "Receta de postre", "demoSharedYAxisAlbumTileSubtitle": "Artista", "demoSharedYAxisAlbumTileTitle": "รlbum", "demoSharedYAxisRecentSortTitle": "Reproducido recientemente", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 รกlbumes", "demoSharedYAxisTitle": "Eje Y compartido", "demoSharedXAxisCreateAccountButtonText": "CREAR CUENTA", "demoFadeScaleAlertDialogDiscardButton": "DESCARTAR", "demoSharedXAxisSignInTextFieldLabel": "Correo electrรณnico o nรบmero de telรฉfono", "demoSharedXAxisSignInSubtitleText": "Accede con tu cuenta", "demoSharedXAxisSignInWelcomeText": "Hola, David Park", "demoSharedXAxisIndividualCourseSubtitle": "Mostrados por separado", "demoSharedXAxisBundledCourseSubtitle": "Adherido", "demoFadeThroughAlbumsDestination": "รlbumes", "demoSharedXAxisDesignCourseTitle": "Diseรฑo", "demoSharedXAxisIllustrationCourseTitle": "Ilustraciรณn", "demoSharedXAxisBusinessCourseTitle": "Empresa", "demoSharedXAxisArtsAndCraftsCourseTitle": "Artes y manualidades", "demoMotionPlaceholderSubtitle": "Texto secundario", "demoFadeScaleAlertDialogCancelButton": "CANCELAR", "demoFadeScaleAlertDialogHeader": "Cuadro de diรกlogo de alerta", "demoFadeScaleHideFabButton": "OCULTAR BAF", "demoFadeScaleShowFabButton": "MOSTRAR BAF", "demoFadeScaleShowAlertDialogButton": "MOSTRAR CUADRO", "demoFadeScaleDescription": "El patrรณn de atenuaciรณn se usa para los elementos de la IU que entran o salen dentro de los lรญmites de la pantalla, como un diรกlogo que se atenรบa en el centro de ella.", "demoFadeScaleTitle": "Atenuaciรณn", "demoFadeThroughTextPlaceholder": "123 fotos", "demoFadeThroughSearchDestination": "Buscar", "demoFadeThroughPhotosDestination": "Fotos", "demoSharedXAxisCoursePageSubtitle": "Las categorรญas adheridas aparecen como grupos en tu feed. Puedes modificar esto mรกs adelante.", "demoFadeThroughDescription": "El patrรณn de atenuaciรณn rรกpida se usa para hacer transiciones entre elementos de la IU que no tienen una relaciรณn estrecha entre sรญ.", "demoFadeThroughTitle": "Atenuaciรณn rรกpida", "demoSharedZAxisHelpSettingLabel": "Ayuda", "demoMotionSubtitle": "Todos los patrones de transiciรณn predefinidos", "demoSharedZAxisNotificationSettingLabel": "Notificaciones", "demoSharedZAxisProfileSettingLabel": "Perfil", "demoSharedZAxisSavedRecipesListTitle": "Recetas guardadas", "demoSharedZAxisBeefSandwichRecipeDescription": "Receta de sรกndwich de carne de res", "demoSharedZAxisCrabPlateRecipeDescription": "Receta de bandeja de cangrejos", "demoSharedXAxisCoursePageTitle": "Optimiza los cursos", "demoSharedZAxisCrabPlateRecipeTitle": "Cangrejo", "demoSharedZAxisShrimpPlateRecipeDescription": "Receta de bandeja de camarones", "demoSharedZAxisShrimpPlateRecipeTitle": "Camarรณn", "demoContainerTransformTypeFadeThrough": "ATENUACIร“N RรPIDA", "demoSharedZAxisDessertRecipeTitle": "Postre", "demoSharedZAxisSandwichRecipeDescription": "Receta de sรกndwich", "demoSharedZAxisSandwichRecipeTitle": "Sรกndwich", "demoSharedZAxisBurgerRecipeDescription": "Receta de hamburguesa", "demoSharedZAxisBurgerRecipeTitle": "Hamburguesa", "demoSharedZAxisSettingsPageTitle": "Configuraciรณn", "demoSharedZAxisTitle": "Eje Z compartido", "demoSharedZAxisPrivacySettingLabel": "Privacidad", "demoMotionTitle": "Movimiento", "demoContainerTransformTitle": "Transformaciรณn de contenedores", "demoContainerTransformDescription": "El patrรณn de transformaciรณn de contenedores estรก diseรฑado para hacer transiciones entre elementos de la IU que incluyen un contenedor. Este patrรณn crea una conexiรณn visible entre dos elementos de la IU", "demoContainerTransformModalBottomSheetTitle": "Modo de atenuaciรณn", "demoContainerTransformTypeFade": "ATENUACIร“N", "demoSharedYAxisAlbumTileDurationUnit": "min", "demoMotionPlaceholderTitle": "Tรญtulo", "demoSharedXAxisForgotEmailButtonText": "ยฟOLVIDASTE EL CORREO ELECTRร“NICO?", "demoMotionSmallPlaceholderSubtitle": "Secundario", "demoMotionDetailsPageTitle": "Pรกgina de detalles", "demoMotionListTileTitle": "Elemento de la lista", "demoSharedAxisDescription": "El patrรณn de eje compartido se usa para hacer transiciones entre los elementos de la IU que tienen una relaciรณn espacial o de navegaciรณn. Este patrรณn utiliza una transformaciรณn compartida en los ejes X, Y o Z para reforzar la relaciรณn entre los elementos.", "demoSharedXAxisTitle": "Eje X compartido", "demoSharedXAxisBackButtonText": "ATRรS", "demoSharedXAxisNextButtonText": "SIGUIENTE", "demoSharedXAxisCulinaryCourseTitle": "Cocina", "githubRepo": "Repositorio de GitHub {repoName}", "fortnightlyMenuUS": "EE.UU.", "fortnightlyMenuBusiness": "Negocios", "fortnightlyMenuScience": "Ciencia", "fortnightlyMenuSports": "Deportes", "fortnightlyMenuTravel": "Viajes", "fortnightlyMenuCulture": "Cultura", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "Importe disponible", "fortnightlyHeadlineArmy": "Reforma interna del \"Ejรฉrcito verde\"", "fortnightlyDescription": "Una app enfocada en el contenido", "rallyBillDetailAmountDue": "Importe a pagar", "rallyBudgetDetailTotalCap": "Capital total", "rallyBudgetDetailAmountUsed": "Importe gastado", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "Portada", "fortnightlyMenuWorld": "Internacional", "rallyBillDetailAmountPaid": "Importe pagado", "fortnightlyMenuPolitics": "Polรญtica", "fortnightlyHeadlineBees": "Escasez de abejas obreras", "fortnightlyHeadlineGasoline": "El futuro del combustible", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "Feministas toman partido", "fortnightlyHeadlineFabrics": "Diseรฑadores usan la tecnologรญa para crear telas futuristas", "fortnightlyHeadlineStocks": "A medida que se estanca el mercado de acciones, muchos apuestan a las divisas", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "Tecnologรญa", "fortnightlyHeadlineWar": "Estadounidenses que viven separados durante la guerra", "fortnightlyHeadlineHealthcare": "La revoluciรณn silenciosa, pero importante, del sector sanitario", "fortnightlyLatestUpdates": "Novedades mรกs recientes", "fortnightlyTrendingStocks": "Stocks", "rallyBillDetailTotalAmount": "Importe total", "demoCupertinoPickerDateTime": "Fecha y hora", "signIn": "ACCEDER", "dataTableRowWithSugar": "{value} con azรบcar", "dataTableRowApplePie": "Pastel de manzana", "dataTableRowDonut": "Dona", "dataTableRowHoneycomb": "Caramelo de miel", "dataTableRowLollipop": "Paleta de caramelo", "dataTableRowJellyBean": "Gragea", "dataTableRowGingerbread": "Bizcocho de jengibre", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Profiterol", "dataTableRowIceCreamSandwich": "Sรกndwich de helado", "dataTableRowFrozenYogurt": "Yogur helado", "dataTableColumnIron": "Hierro (%)", "dataTableColumnCalcium": "Calcio (%)", "dataTableColumnSodium": "Sodio (mg)", "demoTimePickerTitle": "Selector de hora", "demo2dTransformationsResetTooltip": "Restablecer transformaciones", "dataTableColumnFat": "Grasas (g)", "dataTableColumnCalories": "Calorรญas", "dataTableColumnDessert": "Postre (1 porciรณn)", "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", "demoTimePickerDescription": "Muestra un diรกlogo que contiene un selector de hora de materialย design.", "demoPickersShowPicker": "MOSTRAR SELECTOR", "demoTabsScrollingTitle": "Con desplazamiento", "demoTabsNonScrollingTitle": "Sin desplazamiento", "craneHours": "{hours,plural,=1{1ย h}other{{hours}ย h}}", "craneMinutes": "{minutes,plural,=1{1ย m}other{{minutes}ย m}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "Nutriciรณn", "demoDatePickerTitle": "Selector de fecha", "demoPickersSubtitle": "Selecciรณn de fecha y hora", "demoPickersTitle": "Selectores", "demo2dTransformationsEditTooltip": "Editar mosaico", "demoDataTableDescription": "Las tablas de datos muestran informaciรณn en un formato similar a una grilla con filas y columnas. Se usan para organizar datos de modo que sean fรกciles de analizar, y que los usuarios puedan buscar patrones y estadรญsticas en ellas.", "demo2dTransformationsDescription": "Presiona para editar mosaicos y usa los gestos para moverte en la escena. Arrastra el dedo para desplazarte lateralmente, pellizca para hacer zoom o usa dos dedos para rotar. Presiona el botรณn restablecer para volver a la orientaciรณn inicial.", "demo2dTransformationsSubtitle": "Desplazamiento lateral, zoom y rotaciรณn", "demo2dTransformationsTitle": "Transformaciones en 2D", "demoCupertinoTextFieldPIN": "PIN", "demoCupertinoTextFieldDescription": "Un campo de texto permite que el usuario ingrese texto con un teclado de hardware o en pantalla.", "demoCupertinoTextFieldSubtitle": "Campos de texto similares a los de iOS", "demoCupertinoTextFieldTitle": "Campos de texto", "demoDatePickerDescription": "Muestra un diรกlogo que contiene un selector de fecha de materialย design.", "demoCupertinoPickerTime": "Hora", "demoCupertinoPickerDate": "Fecha", "demoCupertinoPickerTimer": "Temporizador", "demoCupertinoPickerDescription": "Corresponde al widget de un selector similar al de iOS que se puede usar para elegir strings, fechas, horas, o tanto fechas como horas.", "demoCupertinoPickerSubtitle": "Selectores similares a los de iOS", "demoCupertinoPickerTitle": "Selectores", "dataTableRowWithHoney": "{value} con miel", "cardsDemoTravelDestinationCity2": "Chettinad", "bannerDemoResetText": "Restablecer el banner", "bannerDemoMultipleText": "Varias acciones", "bannerDemoLeadingText": "รcono inicial", "dismiss": "DESCARTAR", "cardsDemoTappable": "Se puede presionar", "cardsDemoSelectable": "Se puede seleccionar (mantener presionado)", "cardsDemoExplore": "Explorar", "cardsDemoExploreSemantics": "Explorar {destinationName}", "cardsDemoShareSemantics": "Compartir {destinationName}", "cardsDemoTravelDestinationTitle1": "Las 10 ciudades de Tamil Nadu que debes visitar", "cardsDemoTravelDestinationDescription1": "Nรบmero 10", "cardsDemoTravelDestinationCity1": "Thanjavur", "dataTableColumnProtein": "Proteรญnas (g)", "cardsDemoTravelDestinationTitle2": "Artesanos del sur de India", "cardsDemoTravelDestinationDescription2": "Hilanderos de seda", "bannerDemoText": "Se actualizรณ la contraseรฑa en tu otro dispositivo. Vuelve a acceder a la cuenta.", "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", "cardsDemoTravelDestinationTitle3": "Templo Brihadisvara", "cardsDemoTravelDestinationDescription3": "Templos", "demoBannerTitle": "Banner", "demoBannerSubtitle": "Mostrando un banner en una lista", "demoBannerDescription": "Los banners muestran mensajes importantes y breves con acciones para realizar. Se requiere una acciรณn del usuario para descartarlos.", "demoCardTitle": "Tarjetas", "demoCardSubtitle": "Tarjetas de modelo de referencia con esquinas redondeadas", "demoCardDescription": "Las tarjetas son hojas de materialย design que se usan para representar informaciรณn relacionada (como un รกlbum, una ubicaciรณn geogrรกfica, una comida, datos de un contacto, etc.).", "demoDataTableTitle": "Tablas de datos", "demoDataTableSubtitle": "Filas y columnas de informaciรณn", "dataTableColumnCarbs": "Carbohidratos (g)", "placeTanjore": "Thanjavur", "demoGridListsTitle": "Listas de cuadrรญcula", "placeFlowerMarket": "Mercado de flores", "placeBronzeWorks": "Fundidora de bronce", "placeMarket": "Mercado", "placeThanjavurTemple": "Templo en Thanjavur", "placeSaltFarm": "Salina", "placeScooters": "Escรบteres", "placeSilkMaker": "Fabricante de seda", "placeLunchPrep": "Preparaciรณn del almuerzo", "placeBeach": "Playa", "placeFisherman": "Pescador", "demoMenuSelected": "Seleccionado: {value}", "demoMenuRemove": "Quitar", "demoMenuGetLink": "Obtener vรญnculo", "demoMenuShare": "Compartir", "demoBottomAppBarSubtitle": "Muestra la navegaciรณn y las acciones en la parte inferior", "demoMenuAnItemWithASectionedMenu": "Un elemento con un menรบ dividido", "demoMenuADisabledMenuItem": "Elemento de menรบ inhabilitado", "demoLinearProgressIndicatorTitle": "Indicador de progreso lineal", "demoMenuContextMenuItemOne": "Primer elemento del menรบ contextual", "demoMenuAnItemWithASimpleMenu": "Un elemento con un menรบ simple", "demoCustomSlidersTitle": "Controles deslizantes personalizados", "demoMenuAnItemWithAChecklistMenu": "Un elemento con un menรบ de lista de tareas", "demoCupertinoActivityIndicatorTitle": "Indicador de actividad", "demoCupertinoActivityIndicatorSubtitle": "Indicadores de actividad de estilo iOS", "demoCupertinoActivityIndicatorDescription": "Corresponde a un indicador de actividad de estilo iOS que gira en el sentido de las manecillas del reloj.", "demoCupertinoNavigationBarTitle": "Barra de navegaciรณn", "demoCupertinoNavigationBarSubtitle": "Barra de navegaciรณn similar a la de iOS", "demoCupertinoNavigationBarDescription": "Corresponde a una barra de navegaciรณn similar a la de iOS. La barra de navegaciรณn es una barra de herramientas que bรกsicamente contiene el tรญtulo de una pรกgina en medio de la barra.", "demoCupertinoPullToRefreshTitle": "Desliza el dedo hacia abajo para actualizar", "demoCupertinoPullToRefreshSubtitle": "Control con la funciรณn \"desliza hacia abajo para actualizar\" similar al de iOS", "demoCupertinoPullToRefreshDescription": "Corresponde a un widget que implementa el control de contenido con la funciรณn \"desliza hacia abajo para actualizar\" similar al de iOS.", "demoProgressIndicatorTitle": "Indicadores de progreso", "demoProgressIndicatorSubtitle": "Lineales, circulares, indeterminados", "demoCircularProgressIndicatorTitle": "Indicador de progreso circular", "demoCircularProgressIndicatorDescription": "Corresponde a un indicador de progreso circular de materialย design que gira para indicar que la aplicaciรณn estรก ocupada.", "demoMenuFour": "Cuatro", "demoLinearProgressIndicatorDescription": "Corresponde a un indicador de progreso lineal de materialย design, tambiรฉn conocido como barra de progreso.", "demoTooltipTitle": "Informaciรณn sobre la herramienta", "demoTooltipSubtitle": "Mensaje breve que se muestra cuando se mantiene presionado o se coloca el cursor sobre un elemento", "demoTooltipDescription": "La informaciรณn sobre la herramienta proporciona etiquetas de texto para explicar la funciรณn que cumple un botรณn, o bien otra acciรณn de la interfaz de usuario. Este texto informativo se muestra cuando un usuario coloca el cursor sobre un elemento, lo enfoca o lo mantiene presionado.", "demoTooltipInstructions": "Coloca el cursor sobre un elemento o mantenlo presionado para que se muestre la informaciรณn sobre la herramienta.", "placeChennai": "Chennai", "demoMenuChecked": "Marcado: {value}", "placeChettinad": "Chettinad", "demoMenuPreview": "Obtener vista previa", "demoBottomAppBarTitle": "Barra de la app inferior", "demoBottomAppBarDescription": "Las barras de apps inferiores proporcionan acceso a un panel lateral de navegaciรณn en la parte inferior y hasta cuatro acciones, incluido el botรณn de acciรณn flotante.", "bottomAppBarNotch": "Con recorte", "bottomAppBarPosition": "Posiciรณn del botรณn de acciรณn flotante", "bottomAppBarPositionDockedEnd": "Anclado (extremo)", "bottomAppBarPositionDockedCenter": "Anclado (centro)", "bottomAppBarPositionFloatingEnd": "Flotante (extremo)", "bottomAppBarPositionFloatingCenter": "Flotante (centro)", "demoSlidersEditableNumericalValue": "Valor numรฉrico que se puede editar", "demoGridListsSubtitle": "Diseรฑo de filas y columnas", "demoGridListsDescription": "Las listas de cuadrรญcula funcionan mejor para mostrar datos homogรฉneos, como imรกgenes. Cada elemento de una lista de cuadrรญcula se llama mosaico.", "demoGridListsImageOnlyTitle": "Solo imagen", "demoGridListsHeaderTitle": "Con encabezado", "demoGridListsFooterTitle": "Con pie de pรกgina", "demoSlidersTitle": "Controles deslizantes", "demoSlidersSubtitle": "Widgets para seleccionar un valor mediante el gesto de deslizar", "demoSlidersDescription": "Los controles deslizantes reflejan un rango de valores en una barra, en la que los usuarios pueden elegir un solo valor. Son ideales para ajustar opciones de configuraciรณn como el volumen y el brillo, o bien para aplicar filtros de imagen.", "demoRangeSlidersTitle": "Controles deslizantes de rangos", "demoRangeSlidersDescription": "Los controles deslizantes reflejan un rango de valores en una barra. Es posible que tengan รญconos en ambos extremos de la barra que suponen un rango de valores. Son ideales para ajustar opciones de configuraciรณn como el volumen y el brillo, o bien para aplicar filtros de imagen.", "demoMenuAnItemWithAContextMenuButton": "Un elemento con un menรบ contextual", "demoCustomSlidersDescription": "Los controles deslizantes reflejan un rango de valores en una barra, en la que los usuarios pueden elegir un solo valor o un rango. Los controles se pueden personalizar segรบn un tema.", "demoSlidersContinuousWithEditableNumericalValue": "Continuos con un valor numรฉrico que se puede editar", "demoSlidersDiscrete": "Discretos", "demoSlidersDiscreteSliderWithCustomTheme": "Control deslizante discreto con tema personalizado", "demoSlidersContinuousRangeSliderWithCustomTheme": "Control deslizante de rango continuo con tema personalizado", "demoSlidersContinuous": "Continuos", "placePondicherry": "Puducherry", "demoMenuTitle": "Menรบ", "demoContextMenuTitle": "Menรบ contextual", "demoSectionedMenuTitle": "Menรบ dividido", "demoSimpleMenuTitle": "Menรบ simple", "demoChecklistMenuTitle": "Menรบ de lista de tareas", "demoMenuSubtitle": "Botones de menรบ y menรบs simples", "demoMenuDescription": "Un menรบ muestra una lista de opciones en una superficie temporal. Aparece cuando los usuarios interactรบan con un botรณn, una acciรณn u otro control.", "demoMenuItemValueOne": "Primer elemento del menรบ", "demoMenuItemValueTwo": "Segundo elemento del menรบ", "demoMenuItemValueThree": "Tercer elemento del menรบ", "demoMenuOne": "Uno", "demoMenuTwo": "Dos", "demoMenuThree": "Tres", "demoMenuContextMenuItemThree": "Tercer elemento del menรบ contextual", "demoCupertinoSwitchSubtitle": "Interruptor de estilo iOS", "demoSnackbarsText": "Esta es una barra de notificaciones.", "demoCupertinoSliderSubtitle": "Control deslizante de estilo iOS", "demoCupertinoSliderDescription": "Un control deslizante se puede utilizar para seleccionar contenido de un conjunto de valores continuos o discretos.", "demoCupertinoSliderContinuous": "Continuo: {value}", "demoCupertinoSliderDiscrete": "Discreto: {value}", "demoSnackbarsAction": "Presionaste la acciรณn de la barra de notificaciones.", "backToGallery": "Volver a la Galerรญa", "demoCupertinoTabBarTitle": "Barra de pestaรฑas", "demoCupertinoSwitchDescription": "Un interruptor se utiliza para cambiar el estado de una รบnica opciรณn de configuraciรณn a activado o desactivado.", "demoSnackbarsActionButtonLabel": "ACCIร“N", "cupertinoTabBarProfileTab": "Perfil", "demoSnackbarsButtonLabel": "MOSTRAR UNA BARRA DE NOTIFICACIONES", "demoSnackbarsDescription": "Las barras de notificaciones informan a los usuarios sobre un proceso que realizรณ o realizarรก una app. Aparecen temporalmente en la parte inferior de la pantalla. No deberรญan interrumpir la experiencia del usuario, y no requieren una entrada del usuario para desaparecer.", "demoSnackbarsSubtitle": "Las barras de notificaciones muestran mensajes en la parte inferior de la pantalla", "demoSnackbarsTitle": "Barras de notificaciones", "demoCupertinoSliderTitle": "Control deslizante", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "Inicio", "demoCupertinoTabBarDescription": "Corresponde a una barra de pestaรฑas de navegaciรณn inferior de estilo iOS. Muestra varias pestaรฑas (la primera activa de forma predeterminada).", "demoCupertinoTabBarSubtitle": "Barra de pestaรฑas inferior de estilo iOS", "demoOptionsFeatureTitle": "Ver opciones", "demoOptionsFeatureDescription": "Presiona aquรญ para ver las opciones disponibles en esta demostraciรณn.", "demoCodeViewerCopyAll": "COPIAR TODO", "shrineScreenReaderRemoveProductButton": "Quitar {product}", "shrineScreenReaderProductAddToCart": "Agregar al carrito", "shrineScreenReaderCart": "{quantity,plural,=0{Carrito de compras sin artรญculos}=1{Carrito de compras con 1 artรญculo}other{Carrito de compras con {quantity} artรญculos}}", "demoCodeViewerFailedToCopyToClipboardMessage": "No se pudo copiar al portapapeles: {error}", "demoCodeViewerCopiedToClipboardMessage": "Se copiรณ el contenido en el portapapeles.", "craneSleep8SemanticLabel": "Ruinas mayas en un acantilado sobre una playa", "craneSleep4SemanticLabel": "Hotel a orillas de un lago frente a las montaรฑas", "craneSleep2SemanticLabel": "Ciudadela de Machu Picchu", "craneSleep1SemanticLabel": "Chalรฉ en un paisaje nevado con รกrboles de hoja perenne", "craneSleep0SemanticLabel": "Cabaรฑas sobre el agua", "craneFly13SemanticLabel": "Piscina con palmeras a orillas del mar", "craneFly12SemanticLabel": "Piscina con palmeras", "craneFly11SemanticLabel": "Faro de ladrillos en el mar", "craneFly10SemanticLabel": "Torres de la mezquita de al-Azhar durante una puesta de sol", "craneFly9SemanticLabel": "Hombre reclinado sobre un auto azul antiguo", "craneFly8SemanticLabel": "Arboleda de superรกrboles", "craneEat9SemanticLabel": "Mostrador de cafeterรญa con pastelerรญa", "craneEat2SemanticLabel": "Hamburguesa", "craneFly5SemanticLabel": "Hotel a orillas de un lago frente a las montaรฑas", "demoSelectionControlsSubtitle": "Casillas de verificaciรณn, interruptores y botones de selecciรณn", "craneEat10SemanticLabel": "Mujer que sostiene un gran sรกndwich de pastrami", "craneFly4SemanticLabel": "Cabaรฑas sobre el agua", "craneEat7SemanticLabel": "Entrada de panaderรญa", "craneEat6SemanticLabel": "Plato de camarones", "craneEat5SemanticLabel": "รrea de descanso de restaurante artรญstico", "craneEat4SemanticLabel": "Postre de chocolate", "craneEat3SemanticLabel": "Taco coreano", "craneFly3SemanticLabel": "Ciudadela de Machu Picchu", "craneEat1SemanticLabel": "Bar vacรญo con banquetas estilo cafeterรญa", "craneEat0SemanticLabel": "Pizza en un horno de leรฑa", "craneSleep11SemanticLabel": "Rascacielos Taipei 101", "craneSleep10SemanticLabel": "Torres de la mezquita de al-Azhar durante una puesta de sol", "craneSleep9SemanticLabel": "Faro de ladrillos en el mar", "craneEat8SemanticLabel": "Plato de langosta", "craneSleep7SemanticLabel": "Casas coloridas en la Plaza Ribeira", "craneSleep6SemanticLabel": "Piscina con palmeras", "craneSleep5SemanticLabel": "Tienda en un campo", "settingsButtonCloseLabel": "Cerrar configuraciรณn", "demoSelectionControlsCheckboxDescription": "Las casillas de verificaciรณn permiten que el usuario seleccione varias opciones de un conjunto. El valor de una casilla de verificaciรณn normal es verdadero o falso y el valor de una casilla de verificaciรณn de triestado tambiรฉn puede ser nulo.", "settingsButtonLabel": "Configuraciรณn", "demoListsTitle": "Listas", "demoListsSubtitle": "Diseรฑos de lista que se puede desplazar", "demoListsDescription": "Una fila de altura รบnica y fija que suele tener texto y un รญcono al principio o al final", "demoOneLineListsTitle": "Una lรญnea", "demoTwoLineListsTitle": "Dos lรญneas", "demoListsSecondary": "Texto secundario", "demoSelectionControlsTitle": "Controles de selecciรณn", "craneFly7SemanticLabel": "Monte Rushmore", "demoSelectionControlsCheckboxTitle": "Casilla de verificaciรณn", "craneSleep3SemanticLabel": "Hombre reclinado sobre un auto azul antiguo", "demoSelectionControlsRadioTitle": "Selecciรณn", "demoSelectionControlsRadioDescription": "Los botones de selecciรณn permiten al usuario seleccionar una opciรณn de un conjunto. Usa los botones de selecciรณn para una selecciรณn exclusiva si crees que el usuario necesita ver todas las opciones disponibles una al lado de la otra.", "demoSelectionControlsSwitchTitle": "Interruptor", "demoSelectionControlsSwitchDescription": "Los interruptores de activado/desactivado cambian el estado de un รบnico parรกmetro de configuraciรณn. La opciรณn que controla el interruptor, como tambiรฉn el estado en que se encuentra, deberรญa resultar evidente desde la etiqueta intercalada correspondiente.", "craneFly0SemanticLabel": "Chalรฉ en un paisaje nevado con รกrboles de hoja perenne", "craneFly1SemanticLabel": "Tienda en un campo", "craneFly2SemanticLabel": "Banderas de plegaria frente a una montaรฑa nevada", "craneFly6SemanticLabel": "Vista aรฉrea del Palacio de Bellas Artes", "rallySeeAllAccounts": "Ver todas las cuentas", "rallyBillAmount": "Factura de {billName} con vencimiento el {date} de {amount}", "shrineTooltipCloseCart": "Cerrar carrito", "shrineTooltipCloseMenu": "Cerrar menรบ", "shrineTooltipOpenMenu": "Abrir menรบ", "shrineTooltipSettings": "Configuraciรณn", "shrineTooltipSearch": "Buscar", "demoTabsDescription": "Las pestaรฑas organizan el contenido en diferentes pantallas, conjuntos de datos y otras interacciones.", "demoTabsSubtitle": "Pestaรฑas con vistas independientes en las que el usuario puede desplazarse", "demoTabsTitle": "Pestaรฑas", "rallyBudgetAmount": "Se usรณ un total de {amountUsed} de {amountTotal} del presupuesto {budgetName}; el saldo restante es {amountLeft}", "shrineTooltipRemoveItem": "Quitar elemento", "rallyAccountAmount": "Cuenta {accountName} {accountNumber} con {amount}", "rallySeeAllBudgets": "Ver todos los presupuestos", "rallySeeAllBills": "Ver todas las facturas", "craneFormDate": "Seleccionar fecha", "craneFormOrigin": "Seleccionar origen", "craneFly2": "Khumbu, Nepal", "craneFly3": "Machu Picchu, Perรบ", "craneFly4": "Malรฉ, Maldivas", "craneFly5": "Vitznau, Suiza", "craneFly6": "Ciudad de Mรฉxico, Mรฉxico", "craneFly7": "Monte Rushmore, Estados Unidos", "settingsTextDirectionLocaleBased": "En funciรณn de la configuraciรณn regional", "craneFly9": "La Habana, Cuba", "craneFly10": "El Cairo, Egipto", "craneFly11": "Lisboa, Portugal", "craneFly12": "Napa, Estados Unidos", "craneFly13": "Bali, Indonesia", "craneSleep0": "Malรฉ, Maldivas", "craneSleep1": "Aspen, Estados Unidos", "craneSleep2": "Machu Picchu, Perรบ", "demoCupertinoSegmentedControlTitle": "Control segmentado", "craneSleep4": "Vitznau, Suiza", "craneSleep5": "Big Sur, Estados Unidos", "craneSleep6": "Napa, Estados Unidos", "craneSleep7": "Oporto, Portugal", "craneSleep8": "Tulum, Mรฉxico", "craneEat5": "Seรบl, Corea del Sur", "demoChipTitle": "Chips", "demoChipSubtitle": "Son elementos compactos que representan una entrada, un atributo o una acciรณn", "demoActionChipTitle": "Chip de acciรณn", "demoActionChipDescription": "Los chips de acciones son un conjunto de opciones que activan una acciรณn relacionada al contenido principal. Deben aparecer de forma dinรกmica y en contexto en la IU.", "demoChoiceChipTitle": "Chip de selecciรณn", "demoChoiceChipDescription": "Los chips de selecciones representan una รบnica selecciรณn de un conjunto. Estos incluyen categorรญas o texto descriptivo relacionado.", "demoFilterChipTitle": "Chip de filtro", "demoFilterChipDescription": "Los chips de filtros usan etiquetas o palabras descriptivas para filtrar contenido.", "demoInputChipTitle": "Chip de entrada", "demoInputChipDescription": "Los chips de entrada representan datos complejos, como una entidad (persona, objeto o lugar), o texto conversacional de forma compacta.", "craneSleep9": "Lisboa, Portugal", "craneEat10": "Lisboa, Portugal", "demoCupertinoSegmentedControlDescription": "Se usa para seleccionar entre varias opciones mutuamente excluyentes. Cuando se selecciona una opciรณn del control segmentado, se anula la selecciรณn de las otras.", "chipTurnOnLights": "Encender luces", "chipSmall": "Pequeรฑo", "chipMedium": "Mediano", "chipLarge": "Grande", "chipElevator": "Ascensor", "chipWasher": "Lavadora", "chipFireplace": "Chimenea", "chipBiking": "Bicicletas", "craneFormDiners": "Restaurantes", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Aumenta tu potencial de deducciรณn de impuestos. Asigna categorรญas a 1 transacciรณn sin asignar.}other{Aumenta tu potencial de deducciรณn de impuestos. Asigna categorรญas a {count} transacciones sin asignar.}}", "craneFormTime": "Seleccionar hora", "craneFormLocation": "Seleccionar ubicaciรณn", "craneFormTravelers": "Viajeros", "craneEat8": "Atlanta, Estados Unidos", "craneFormDestination": "Seleccionar destino", "craneFormDates": "Seleccionar fechas", "craneFly": "VUELOS", "craneSleep": "ALOJAMIENTO", "craneEat": "GASTRONOMรA", "craneFlySubhead": "Explora vuelos por destino", "craneSleepSubhead": "Explora propiedades por destino", "craneEatSubhead": "Explora restaurantes por ubicaciรณn", "craneFlyStops": "{numberOfStops,plural,=0{Directo}=1{1ย escala}other{{numberOfStops}ย escalas}}", "craneSleepProperties": "{totalProperties,plural,=0{No hay propiedades disponibles}=1{1 propiedad disponible}other{{totalProperties} propiedades disponibles}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{No hay restaurantes}=1{1 restaurante}other{{totalRestaurants} restaurantes}}", "craneFly0": "Aspen, Estados Unidos", "demoCupertinoSegmentedControlSubtitle": "Control segmentado de estilo iOS", "craneSleep10": "El Cairo, Egipto", "craneEat9": "Madrid, Espaรฑa", "craneFly1": "Big Sur, Estados Unidos", "craneEat7": "Nashville, Estados Unidos", "craneEat6": "Seattle, Estados Unidos", "craneFly8": "Singapur", "craneEat4": "Parรญs, Francia", "craneEat3": "Portland, Estados Unidos", "craneEat2": "Cรณrdoba, Argentina", "craneEat1": "Dallas, Estados Unidos", "craneEat0": "Nรกpoles, Italia", "craneSleep11": "Taipรฉi, Taiwรกn", "craneSleep3": "La Habana, Cuba", "shrineLogoutButtonCaption": "SALIR", "rallyTitleBills": "FACTURAS", "rallyTitleAccounts": "CUENTAS", "shrineProductVagabondSack": "Bolso Vagabond", "rallyAccountDetailDataInterestYtd": "Interรฉs del comienzo del aรฑo fiscal", "shrineProductWhitneyBelt": "Cinturรณn", "shrineProductGardenStrand": "Hebras para jardรญn", "shrineProductStrutEarrings": "Aros Strut", "shrineProductVarsitySocks": "Medias varsity", "shrineProductWeaveKeyring": "Llavero de tela", "shrineProductGatsbyHat": "Boina gatsby", "shrineProductShrugBag": "Bolso de hombro", "shrineProductGiltDeskTrio": "Juego de tres mesas", "shrineProductCopperWireRack": "Estante de metal color cobre", "shrineProductSootheCeramicSet": "Juego de cerรกmica", "shrineProductHurrahsTeaSet": "Juego de tรฉ de cerรกmica", "shrineProductBlueStoneMug": "Taza de color azul piedra", "shrineProductRainwaterTray": "Bandeja para recolectar agua de lluvia", "shrineProductChambrayNapkins": "Servilletas de chambray", "shrineProductSucculentPlanters": "Macetas de suculentas", "shrineProductQuartetTable": "Mesa para cuatro", "shrineProductKitchenQuattro": "Cocina quattro", "shrineProductClaySweater": "Suรฉter color arcilla", "shrineProductSeaTunic": "Vestido de verano", "shrineProductPlasterTunic": "Tรบnica color yeso", "rallyBudgetCategoryRestaurants": "Restaurantes", "shrineProductChambrayShirt": "Camisa de chambray", "shrineProductSeabreezeSweater": "Suรฉter de hilo liviano", "shrineProductGentryJacket": "Chaqueta estilo gentry", "shrineProductNavyTrousers": "Pantalones azul marino", "shrineProductWalterHenleyWhite": "Camiseta con botones (blanca)", "shrineProductSurfAndPerfShirt": "Camiseta estilo surf and perf", "shrineProductGingerScarf": "Paรฑuelo color tierra", "shrineProductRamonaCrossover": "Mezcla de estilos Ramona", "shrineProductClassicWhiteCollar": "Camisa clรกsica de cuello blanco", "shrineProductSunshirtDress": "Camisa larga de verano", "rallyAccountDetailDataInterestRate": "Tasa de interรฉs", "rallyAccountDetailDataAnnualPercentageYield": "Porcentaje de rendimiento anual", "rallyAccountDataVacation": "Vacaciones", "shrineProductFineLinesTee": "Camiseta de rayas finas", "rallyAccountDataHomeSavings": "Ahorros del hogar", "rallyAccountDataChecking": "Cuenta corriente", "rallyAccountDetailDataInterestPaidLastYear": "Intereses pagados el aรฑo pasado", "rallyAccountDetailDataNextStatement": "Prรณximo resumen", "rallyAccountDetailDataAccountOwner": "Propietario de la cuenta", "rallyBudgetCategoryCoffeeShops": "Cafeterรญas", "rallyBudgetCategoryGroceries": "Compras de comestibles", "shrineProductCeriseScallopTee": "Camiseta de cuello cerrado color cereza", "rallyBudgetCategoryClothing": "Indumentaria", "rallySettingsManageAccounts": "Administrar cuentas", "rallyAccountDataCarSavings": "Ahorros de vehรญculo", "rallySettingsTaxDocuments": "Documentos de impuestos", "rallySettingsPasscodeAndTouchId": "Contraseรฑa y Touchย ID", "rallySettingsNotifications": "Notificaciones", "rallySettingsPersonalInformation": "Informaciรณn personal", "rallySettingsPaperlessSettings": "Configuraciรณn para recibir resรบmenes en formato digital", "rallySettingsFindAtms": "Buscar cajeros automรกticos", "rallySettingsHelp": "Ayuda", "rallySettingsSignOut": "Salir", "rallyAccountTotal": "Total", "rallyBillsDue": "Debes", "rallyBudgetLeft": "Restante", "rallyAccounts": "Cuentas", "rallyBills": "Facturas", "rallyBudgets": "Presupuestos", "rallyAlerts": "Alertas", "rallySeeAll": "VER TODO", "rallyFinanceLeft": "RESTANTE", "rallyTitleOverview": "DESCRIPCIร“N GENERAL", "shrineProductShoulderRollsTee": "Camiseta con mangas", "shrineNextButtonCaption": "SIGUIENTE", "rallyTitleBudgets": "PRESUPUESTOS", "rallyTitleSettings": "CONFIGURACIร“N", "rallyLoginLoginToRally": "Accede a Rally", "rallyLoginNoAccount": "ยฟNo tienes una cuenta?", "rallyLoginSignUp": "REGISTRARSE", "rallyLoginUsername": "Nombre de usuario", "rallyLoginPassword": "Contraseรฑa", "rallyLoginLabelLogin": "Acceder", "rallyLoginRememberMe": "Recordarme", "rallyLoginButtonLogin": "ACCEDER", "rallyAlertsMessageHeadsUpShopping": "Atenciรณn, utilizaste un {percent} del presupuesto para compras de este mes.", "rallyAlertsMessageSpentOnRestaurants": "Esta semana, gastaste {amount} en restaurantes.", "rallyAlertsMessageATMFees": "Este mes, gastaste {amount} en tarifas de cajeros automรกticos.", "rallyAlertsMessageCheckingAccount": "ยกBuen trabajo! El saldo de la cuenta corriente es un {percent} mayor al mes pasado.", "shrineMenuCaption": "MENรš", "shrineCategoryNameAll": "TODAS", "shrineCategoryNameAccessories": "ACCESORIOS", "shrineCategoryNameClothing": "INDUMENTARIA", "shrineCategoryNameHome": "HOGAR", "shrineLoginUsernameLabel": "Nombre de usuario", "shrineLoginPasswordLabel": "Contraseรฑa", "shrineCancelButtonCaption": "CANCELAR", "shrineCartTaxCaption": "Impuesto:", "shrineCartPageCaption": "CARRITO", "shrineProductQuantity": "Cantidad: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{SIN ARTรCULOS}=1{1 ARTรCULO}other{{quantity} ARTรCULOS}}", "shrineCartClearButtonCaption": "VACIAR CARRITO", "shrineCartTotalCaption": "TOTAL", "shrineCartSubtotalCaption": "Subtotal:", "shrineCartShippingCaption": "Envรญo:", "shrineProductGreySlouchTank": "Camiseta gris holgada de tirantes", "shrineProductStellaSunglasses": "Anteojos Stella", "shrineProductWhitePinstripeShirt": "Camisa de rayas finas", "demoTextFieldWhereCanWeReachYou": "ยฟCรณmo podemos comunicarnos contigo?", "settingsTextDirectionLTR": "IZQ. a DER.", "settingsTextScalingLarge": "Grande", "demoBottomSheetHeader": "Encabezado", "demoBottomSheetItem": "Artรญculo {value}", "demoBottomTextFieldsTitle": "Campos de texto", "demoTextFieldTitle": "Campos de texto", "demoTextFieldSubtitle": "Lรญnea รบnica de texto y nรบmeros editables", "demoTextFieldDescription": "Los campos de texto permiten que los usuarios escriban en una IU. Suelen aparecer en diรกlogos y formularios.", "demoTextFieldShowPasswordLabel": "Mostrar contraseรฑa", "demoTextFieldHidePasswordLabel": "Ocultar contraseรฑa", "demoTextFieldFormErrors": "Antes de enviar, corrige los errores marcados con rojo.", "demoTextFieldNameRequired": "El nombre es obligatorio.", "demoTextFieldOnlyAlphabeticalChars": "Ingresa solo caracteres alfabรฉticos.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - Ingresa un nรบmero de telรฉfono de EE.UU.", "demoTextFieldEnterPassword": "Ingresa una contraseรฑa.", "demoTextFieldPasswordsDoNotMatch": "Las contraseรฑas no coinciden", "demoTextFieldWhatDoPeopleCallYou": "ยฟCรณmo te llaman otras personas?", "demoTextFieldNameField": "Nombre*", "demoBottomSheetButtonText": "MOSTRAR HOJA INFERIOR", "demoTextFieldPhoneNumber": "Nรบmero de telรฉfono*", "demoBottomSheetTitle": "Hoja inferior", "demoTextFieldEmail": "Correo electrรณnico", "demoTextFieldTellUsAboutYourself": "Cuรฉntanos sobre ti (p.ย ej., escribe sobre lo que haces o tus pasatiempos)", "demoTextFieldKeepItShort": "Sรฉ breve, ya que esta es una demostraciรณn.", "starterAppGenericButton": "BOTร“N", "demoTextFieldLifeStory": "Historia de vida", "demoTextFieldSalary": "Sueldo", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "Incluye hasta 8 caracteres.", "demoTextFieldPassword": "Contraseรฑa*", "demoTextFieldRetypePassword": "Vuelve a escribir la contraseรฑa*", "demoTextFieldSubmit": "ENVIAR", "demoBottomNavigationSubtitle": "Navegaciรณn inferior con vistas encadenadas", "demoBottomSheetAddLabel": "Agregar", "demoBottomSheetModalDescription": "Una hoja modal inferior es una alternativa a un menรบ o diรกlogo que impide que el usuario interactรบe con el resto de la app.", "demoBottomSheetModalTitle": "Hoja modal inferior", "demoBottomSheetPersistentDescription": "Una hoja inferior persistente muestra informaciรณn que suplementa el contenido principal de la app. La hoja permanece visible, incluso si el usuario interactรบa con otras partes de la app.", "demoBottomSheetPersistentTitle": "Hoja inferior persistente", "demoBottomSheetSubtitle": "Hojas inferiores modales y persistentes", "demoTextFieldNameHasPhoneNumber": "El nรบmero de telรฉfono de {name} es {phoneNumber}", "buttonText": "BOTร“N", "demoTypographyDescription": "Definiciones de distintos estilos de tipografรญa que se encuentran en materialย design.", "demoTypographySubtitle": "Todos los estilos de texto predefinidos", "demoTypographyTitle": "Tipografรญa", "demoFullscreenDialogDescription": "La propiedad fullscreenDialog especifica si la pรกgina nueva es un diรกlogo modal de pantalla completa.", "demoFlatButtonDescription": "Un botรณn plano que muestra una gota de tinta cuando se lo presiona, pero que no tiene sombra. Usa los botones planos en barras de herramientas, diรกlogos y tambiรฉn intercalados con el relleno.", "demoBottomNavigationDescription": "Las barras de navegaciรณn inferiores muestran entre tres y cinco destinos en la parte inferior de la pantalla. Cada destino se representa con un รญcono y una etiqueta de texto opcional. Cuando el usuario presiona un รญcono de navegaciรณn inferior, se lo redirecciona al destino de navegaciรณn de nivel superior que estรก asociado con el รญcono.", "demoBottomNavigationSelectedLabel": "Etiqueta seleccionada", "demoBottomNavigationPersistentLabels": "Etiquetas persistentes", "starterAppDrawerItem": "Artรญculo {value}", "demoTextFieldRequiredField": "El asterisco (*) indica que es un campo obligatorio", "demoBottomNavigationTitle": "Navegaciรณn inferior", "settingsLightTheme": "Claro", "settingsTheme": "Tema", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "DER. a IZQ.", "settingsTextScalingHuge": "Enorme", "cupertinoButton": "Botรณn", "settingsTextScalingNormal": "Normal", "settingsTextScalingSmall": "Pequeรฑo", "settingsSystemDefault": "Sistema", "settingsTitle": "Configuraciรณn", "rallyDescription": "Una app personal de finanzas", "aboutDialogDescription": "Para ver el cรณdigo fuente de esta app, visita {repoLink}.", "bottomNavigationCommentsTab": "Comentarios", "starterAppGenericBody": "Cuerpo", "starterAppGenericHeadline": "Tรญtulo", "starterAppGenericSubtitle": "Subtรญtulo", "starterAppGenericTitle": "Tรญtulo", "starterAppTooltipSearch": "Buscar", "starterAppTooltipShare": "Compartir", "starterAppTooltipFavorite": "Favoritos", "starterAppTooltipAdd": "Agregar", "bottomNavigationCalendarTab": "Calendario", "starterAppDescription": "Diseรฑo de inicio responsivo", "starterAppTitle": "App de partida", "aboutFlutterSamplesRepo": "Repositorio de GitHub con muestras de Flutter", "bottomNavigationContentPlaceholder": "Marcador de posiciรณn de la pestaรฑa {title}", "bottomNavigationCameraTab": "Cรกmara", "bottomNavigationAlarmTab": "Alarma", "bottomNavigationAccountTab": "Cuenta", "demoTextFieldYourEmailAddress": "Tu direcciรณn de correo electrรณnico", "demoToggleButtonDescription": "Puedes usar los botones de activaciรณn para agrupar opciones relacionadas. Para destacar los grupos de botones de activaciรณn relacionados, el grupo debe compartir un contenedor comรบn.", "colorsGrey": "GRIS", "colorsBrown": "MARRร“N", "colorsDeepOrange": "NARANJA OSCURO", "colorsOrange": "NARANJA", "colorsAmber": "รMBAR", "colorsYellow": "AMARILLO", "colorsLime": "VERDE LIMA", "colorsLightGreen": "VERDE CLARO", "colorsGreen": "VERDE", "homeHeaderGallery": "Galerรญa", "homeHeaderCategories": "Categorรญas", "shrineDescription": "Una app de venta minorista a la moda", "craneDescription": "Una app personalizada para viajes", "homeCategoryReference": "ESTILOS Y MรS", "demoInvalidURL": "No se pudo mostrar la URL:", "demoOptionsTooltip": "Opciones", "demoInfoTooltip": "Informaciรณn", "demoCodeTooltip": "Cรณdigo de demostraciรณn", "demoDocumentationTooltip": "Documentaciรณn de la API", "demoFullscreenTooltip": "Pantalla completa", "settingsTextScaling": "Ajuste de texto", "settingsTextDirection": "Direcciรณn del texto", "settingsLocale": "Configuraciรณn regional", "settingsPlatformMechanics": "Mecรกnica de la plataforma", "settingsDarkTheme": "Oscuro", "settingsSlowMotion": "Cรกmara lenta", "settingsAbout": "Acerca de Flutterย Gallery", "settingsFeedback": "Envรญa comentarios", "settingsAttribution": "Diseรฑo de TOASTER (Londres)", "demoButtonTitle": "Botones", "demoButtonSubtitle": "Plano, con relieve, con contorno y mรกs", "demoFlatButtonTitle": "Botรณn plano", "demoRaisedButtonDescription": "Los botones con relieve agregan profundidad a los diseรฑos mรกs que nada planos. Destacan las funciones en espacios amplios o con muchos elementos.", "demoRaisedButtonTitle": "Botรณn con relieve", "demoOutlineButtonTitle": "Botรณn con contorno", "demoOutlineButtonDescription": "Los botones con contorno se vuelven opacos y se elevan cuando se los presiona. A menudo, se combinan con botones con relieve para indicar una acciรณn secundaria alternativa.", "demoToggleButtonTitle": "Botones de activaciรณn", "colorsTeal": "VERDE AZULADO", "demoFloatingButtonTitle": "Botรณn de acciรณn flotante", "demoFloatingButtonDescription": "Un botรณn de acciรณn flotante es un botรณn de รญcono circular que se coloca sobre el contenido para propiciar una acciรณn principal en la aplicaciรณn.", "demoDialogTitle": "Diรกlogos", "demoDialogSubtitle": "Simple, de alerta y de pantalla completa", "demoAlertDialogTitle": "Alerta", "demoAlertDialogDescription": "Un diรกlogo de alerta informa al usuario sobre situaciones que debe conocer para poder seguir usando la app. Un diรกlogo de alerta tiene un tรญtulo y una lista de acciones que son opcionales.", "demoAlertTitleDialogTitle": "Alerta con tรญtulo", "demoSimpleDialogTitle": "Simple", "demoSimpleDialogDescription": "Un diรกlogo simple le ofrece al usuario la posibilidad de elegir entre varias opciones. Un diรกlogo simple tiene un tรญtulo opcional que se muestra encima de las opciones.", "demoFullscreenDialogTitle": "Pantalla completa", "demoCupertinoButtonsTitle": "Botones", "demoCupertinoButtonsSubtitle": "Botones con estilo de iOS", "demoCupertinoButtonsDescription": "Un botรณn con el estilo de iOS. Contiene texto o un รญcono que aparece o desaparece poco a poco cuando se lo toca. De manera opcional, puede tener un fondo.", "demoCupertinoAlertsTitle": "Alertas", "demoCupertinoAlertsSubtitle": "Diรกlogos de alerta con estilo de iOS", "demoCupertinoAlertTitle": "Alerta", "demoCupertinoAlertDescription": "Un diรกlogo de alerta informa al usuario sobre situaciones que debe conocer para poder seguir usando la app. Un diรกlogo de alerta tiene un tรญtulo, un contenido y una lista de acciones que son opcionales. El tรญtulo se muestra encima del contenido y las acciones debajo del contenido.", "demoCupertinoAlertWithTitleTitle": "Alerta con tรญtulo", "demoCupertinoAlertButtonsTitle": "Alerta con botones", "demoCupertinoAlertButtonsOnlyTitle": "Solo botones de alerta", "demoCupertinoActionSheetTitle": "Hoja de acciรณn", "demoCupertinoActionSheetDescription": "Una hoja de acciones es un estilo especรญfico de alerta que brinda al usuario un conjunto de dos o mรกs opciones relacionadas con el contexto actual. Una hoja de acciones puede tener un tรญtulo, un mensaje adicional y una lista de acciones.", "demoColorsTitle": "Colores", "demoColorsSubtitle": "Todos los colores predefinidos", "demoColorsDescription": "Son las constantes de colores y de muestras de color que representan la paleta de materialย design.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Crear", "dialogSelectedOption": "Seleccionaste: \"{value}\"", "dialogDiscardTitle": "ยฟQuieres descartar el borrador?", "dialogLocationTitle": "ยฟQuieres usar el servicio de ubicaciรณn de Google?", "dialogLocationDescription": "Permite que Google ayude a las apps a determinar la ubicaciรณn. Esto implica el envรญo de datos de ubicaciรณn anรณnimos a Google, incluso cuando no se estรฉn ejecutando apps.", "dialogCancel": "CANCELAR", "dialogDiscard": "DESCARTAR", "dialogDisagree": "RECHAZAR", "dialogAgree": "ACEPTAR", "dialogSetBackup": "Configurar cuenta para copia de seguridad", "colorsBlueGrey": "GRIS AZULADO", "dialogShow": "MOSTRAR DIรLOGO", "dialogFullscreenTitle": "Diรกlogo de pantalla completa", "dialogFullscreenSave": "GUARDAR", "dialogFullscreenDescription": "Una demostraciรณn de diรกlogo de pantalla completa", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "Con fondo", "cupertinoAlertCancel": "Cancelar", "cupertinoAlertDiscard": "Descartar", "cupertinoAlertLocationTitle": "ยฟQuieres permitir que \"Maps\" acceda a tu ubicaciรณn mientras usas la app?", "cupertinoAlertLocationDescription": "Tu ubicaciรณn actual se mostrarรก en el mapa y se usarรก para obtener instrucciones sobre cรณmo llegar a lugares, resultados cercanos de la bรบsqueda y tiempos de viaje aproximados.", "cupertinoAlertAllow": "Permitir", "cupertinoAlertDontAllow": "No permitir", "cupertinoAlertFavoriteDessert": "Selecciona tu postre favorito", "cupertinoAlertDessertDescription": "Selecciona tu postre favorito de la siguiente lista. Se usarรก tu elecciรณn para personalizar la lista de restaurantes sugeridos en tu รกrea.", "cupertinoAlertCheesecake": "Cheesecake", "cupertinoAlertTiramisu": "Tiramisรบ", "cupertinoAlertApplePie": "Pastel de manzana", "cupertinoAlertChocolateBrownie": "Brownie de chocolate", "cupertinoShowAlert": "Mostrar alerta", "colorsRed": "ROJO", "colorsPink": "ROSADO", "colorsPurple": "PรšRPURA", "colorsDeepPurple": "PรšRPURA OSCURO", "colorsIndigo": "รNDIGO", "colorsBlue": "AZUL", "colorsLightBlue": "CELESTE", "colorsCyan": "CIAN", "dialogAddAccount": "Agregar cuenta", "Gallery": "Galerรญa", "Categories": "Categorรญas", "SHRINE": "SHRINE", "Basic shopping app": "App de compras bรกsica", "RALLY": "RALLY", "CRANE": "CRANE", "Travel app": "App de viajes", "MATERIAL": "MATERIAL", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "ESTILOS Y CONTENIDO MULTIMEDIA DE REFERENCIA" }
gallery/lib/l10n/intl_es_GT.arb/0
{ "file_path": "gallery/lib/l10n/intl_es_GT.arb", "repo_id": "gallery", "token_count": 19544 }
997
{ "loading": "Naglo-load", "deselect": "I-deselect", "select": "Piliin", "selectable": "Napipili (matagal na pagpindot)", "selected": "Napili", "demo": "Demo", "bottomAppBar": "Bar ng app sa ibaba", "notSelected": "Hindi napili", "demoCupertinoSearchTextFieldTitle": "Field ng text ng paghahanap", "demoCupertinoPicker": "Picker", "demoCupertinoSearchTextFieldSubtitle": "Field ng text ng paghahanap na may istilong pang-iOS", "demoCupertinoSearchTextFieldDescription": "Field ng text ng paghahanap na nagbibigay-daan sa user na maghanap sa pamamagitan ng paglalagay ng text, at puwedeng mag-alok at mag-filter ng mga suhestyon.", "demoCupertinoSearchTextFieldPlaceholder": "Maglagay ng text", "demoCupertinoScrollbarTitle": "Scrollbar", "demoCupertinoScrollbarSubtitle": "Scrollbar na may istilong pang-iOS", "demoCupertinoScrollbarDescription": "Scrollbar na nagra-wrap sa partikular na child", "demoTwoPaneItem": "Item {value}", "demoTwoPaneList": "Listahan", "demoTwoPaneFoldableLabel": "Foldable", "demoTwoPaneSmallScreenLabel": "Maliit na Screen", "demoTwoPaneSmallScreenDescription": "Ganito ang gawi ng TwoPane sa isang device na may maliit na screen.", "demoTwoPaneTabletLabel": "Tablet / Desktop", "demoTwoPaneTabletDescription": "Ganito ang gawi ng TwoPane sa isang mas malaking screen tulad ng tablet o desktop.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "Mga responsive na layout sa mga foldable, malaki, at maliit na screen", "splashSelectDemo": "Pumili ng demo", "demoTwoPaneFoldableDescription": "Ganito ang gawi ng TwoPane sa isang foldable na device.", "demoTwoPaneDetails": "Mga Detalye", "demoTwoPaneSelectItem": "Pumili ng item", "demoTwoPaneItemDetails": "Mga detalye ng tem {value}", "demoCupertinoContextMenuActionText": "I-tap at i-hold ang Flutter logo para makita ang menu ng konteksto.", "demoCupertinoContextMenuDescription": "Isang full screen na menu ng konteksto na may istilong pang-iOS na lumalabas kapag matagal na pinindot ang isang element.", "demoAppBarTitle": "Bar ng app", "demoAppBarDescription": "Ang Bar ng app ay nagbibigay ng content at mga pagkilos kaugnay ng kasalukuyang screen. Ginagamit ito para sa pag-brand, mga pamagat ng screen, pag-navigate, at mga pagkilos", "demoDividerTitle": "Divider", "demoDividerSubtitle": "Ang divider ay manipis na linyang naggugrupo ng content sa mga listahan at layout.", "demoDividerDescription": "Magagamit ang mga divider sa mga listahan, drawer, at iba pang lugar para maghiwa-hiwalay ng content.", "demoVerticalDividerTitle": "Vertical na Divider", "demoCupertinoContextMenuTitle": "Menu ng Konteksto", "demoCupertinoContextMenuSubtitle": "Menu ng konteksto na may istilong pang-iOS", "demoAppBarSubtitle": "Nagpapakita ng impormasyon at mga pagkilos kaugnay ng kasalukuyang screen", "demoCupertinoContextMenuActionOne": "Pagkilos isa", "demoCupertinoContextMenuActionTwo": "Pagkilos dalawa", "demoDateRangePickerDescription": "Nagpapakita ng dialog na naglalaman ng picker ng hanay ng petsa ng Material Design.", "demoDateRangePickerTitle": "Picker ng Hanay ng Petsa", "demoNavigationDrawerUserName": "Pangalan ng User", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "Mag-swipe mula sa dulo o i-tap ang icon sa kaliwang bahagi sa itaas para makita ang drawer", "demoNavigationRailTitle": "Navigation Rail", "demoNavigationRailSubtitle": "Nagpapakita ng Navigation Rail sa app", "demoNavigationRailDescription": "Isang widget ng materyal na ginawa para lumabas sa kaliwa o kanan ng app para mag-navigate sa kaunting view, karaniwang tatlo hanggang lima.", "demoNavigationRailFirst": "Una", "demoNavigationDrawerTitle": "Navigation Drawer", "demoNavigationRailThird": "Ikatlo", "replyStarredLabel": "Naka-star", "demoTextButtonDescription": "Isang button na text na nagpapakita ng pagtalsik ng tinta kapag pinindot pero hindi umaangat. Gamitin ang mga button na text sa mga toolbar, sa mga dialog, at inline nang may padding", "demoElevatedButtonTitle": "Nakaangat na Button", "demoElevatedButtonDescription": "Nagdaragdag ng dimensyon ang mga nakaangat na button sa mga layout na puro flat. Binibigyang-diin ng mga ito ang mga function sa mga lugar na maraming nakalagay o malawak.", "demoOutlinedButtonTitle": "Button na May Outline", "demoOutlinedButtonDescription": "Magiging opaque at aangat ang mga button na may outline kapag pinindot. Kadalasang isinasama ang mga ito sa mga nakaangat na button para magsaad ng alternatibo at pangalawang pagkilos.", "demoContainerTransformDemoInstructions": "Mga Card, Listahan, at FAB", "demoNavigationDrawerSubtitle": "Nagpapakita ng drawer sa appbar", "replyDescription": "Isang mabilis at nakatuong email app", "demoNavigationDrawerDescription": "Isang panel ng Material Design na nagsa-slide pahalang mula sa dulo ng screen para magpakita ng mga link ng navigation sa application.", "replyDraftsLabel": "Mga Draft", "demoNavigationDrawerToPageOne": "Unang Item", "replyInboxLabel": "Inbox", "demoSharedXAxisDemoInstructions": "Button ng Susunod at Button na Bumalik", "replySpamLabel": "Spam", "replyTrashLabel": "Trash", "replySentLabel": "Naipadala", "demoNavigationRailSecond": "Ikalawa", "demoNavigationDrawerToPageTwo": "Ikalawang Item", "demoFadeScaleDemoInstructions": "Modal at FAB", "demoFadeThroughDemoInstructions": "Navigation sa ibaba", "demoSharedZAxisDemoInstructions": "Button ng icon ng mga setting", "demoSharedYAxisDemoInstructions": "Pagbukud-bukurin ayon sa \"Na-play Kamakailan\"", "demoTextButtonTitle": "Button na Text", "demoSharedZAxisBeefSandwichRecipeTitle": "Beef Sandwich", "demoSharedZAxisDessertRecipeDescription": "Recipe ng panghimagas", "demoSharedYAxisAlbumTileSubtitle": "Artist", "demoSharedYAxisAlbumTileTitle": "Album", "demoSharedYAxisRecentSortTitle": "Na-play kamakailan", "demoSharedYAxisAlphabeticalSortTitle": "A-Z", "demoSharedYAxisAlbumCount": "268 album", "demoSharedYAxisTitle": "Nakabahaging y-axis", "demoSharedXAxisCreateAccountButtonText": "GUMAWA NG ACCOUNT", "demoFadeScaleAlertDialogDiscardButton": "I-DISCARD", "demoSharedXAxisSignInTextFieldLabel": "Email o numero ng telepono", "demoSharedXAxisSignInSubtitleText": "Mag-sign in gamit ang iyong account", "demoSharedXAxisSignInWelcomeText": "Kumusta, David Park", "demoSharedXAxisIndividualCourseSubtitle": "Magkakahiwalay na Ipinapakita", "demoSharedXAxisBundledCourseSubtitle": "Naka-bundle", "demoFadeThroughAlbumsDestination": "Mga Album", "demoSharedXAxisDesignCourseTitle": "Disenyo", "demoSharedXAxisIllustrationCourseTitle": "Pagguhit", "demoSharedXAxisBusinessCourseTitle": "Negosyo", "demoSharedXAxisArtsAndCraftsCourseTitle": "Sining at Craft", "demoMotionPlaceholderSubtitle": "Pangalawang text", "demoFadeScaleAlertDialogCancelButton": "KANSELAHIN", "demoFadeScaleAlertDialogHeader": "Dialog ng Alerto", "demoFadeScaleHideFabButton": "ITAGO ANG FAB", "demoFadeScaleShowFabButton": "IPAKITA ANG FAB", "demoFadeScaleShowAlertDialogButton": "IPAKITA ANG MODAL", "demoFadeScaleDescription": "Ginagamit ang fade pattern para sa mga element ng UI na pumapasok o lumalabas sa mga hangganan ng screen, gaya ng dialog na nagfe-fade sa gitna ng screen.", "demoFadeScaleTitle": "Fade", "demoFadeThroughTextPlaceholder": "123 larawan", "demoFadeThroughSearchDestination": "Maghanap", "demoFadeThroughPhotosDestination": "Mga Larawan", "demoSharedXAxisCoursePageSubtitle": "Lalabas ang mga naka-bundle na kategorya bilang mga grupo sa iyong feed. Mababago mo ito anumang oras.", "demoFadeThroughDescription": "Ginagamit ang fade through pattern para sa mga transition sa pagitan ng mga element ng UI na walang matibay na ugnayan sa isa't isa.", "demoFadeThroughTitle": "Fade through", "demoSharedZAxisHelpSettingLabel": "Tulong", "demoMotionSubtitle": "Lahat ng naka-predefine na pattern ng transition", "demoSharedZAxisNotificationSettingLabel": "Mga Notification", "demoSharedZAxisProfileSettingLabel": "Profile", "demoSharedZAxisSavedRecipesListTitle": "Mga Naka-save na Recipe", "demoSharedZAxisBeefSandwichRecipeDescription": "Recipe ng Beef Sandwich", "demoSharedZAxisCrabPlateRecipeDescription": "Recipe ng putaheng alimango", "demoSharedXAxisCoursePageTitle": "I-streamline ang iyong mga kurso", "demoSharedZAxisCrabPlateRecipeTitle": "Alimango", "demoSharedZAxisShrimpPlateRecipeDescription": "Recipe ng putaheng hipon", "demoSharedZAxisShrimpPlateRecipeTitle": "Hipon", "demoContainerTransformTypeFadeThrough": "FADE THROUGH", "demoSharedZAxisDessertRecipeTitle": "Panghimagas", "demoSharedZAxisSandwichRecipeDescription": "Recipe ng sandwich", "demoSharedZAxisSandwichRecipeTitle": "Sandwich", "demoSharedZAxisBurgerRecipeDescription": "Recipe ng burger", "demoSharedZAxisBurgerRecipeTitle": "Burger", "demoSharedZAxisSettingsPageTitle": "Mga Setting", "demoSharedZAxisTitle": "Nakabahaging z-axis", "demoSharedZAxisPrivacySettingLabel": "Privacy", "demoMotionTitle": "Paggalaw", "demoContainerTransformTitle": "Pag-iiba ng Anyo ng Container", "demoContainerTransformDescription": "Idinisenyo ang pattern ng pag-iiba ng anyo ng container para sa mga transition sa pagitan ng mga element ng UI na may container. Gumagawa ang pattern na ito ng nakikitang koneksyon sa pagitan ng dalawang element ng UI", "demoContainerTransformModalBottomSheetTitle": "Fade mode", "demoContainerTransformTypeFade": "FADE", "demoSharedYAxisAlbumTileDurationUnit": "minuto", "demoMotionPlaceholderTitle": "Pamagat", "demoSharedXAxisForgotEmailButtonText": "NAKALIMUTAN ANG EMAIL?", "demoMotionSmallPlaceholderSubtitle": "Pangalawa", "demoMotionDetailsPageTitle": "Page ng Mga Detalye", "demoMotionListTileTitle": "Item sa listahan", "demoSharedAxisDescription": "Ginagamit ang pattern ng nakabahaging axis para sa mga transition sa pagitan ng mga element ng UI na may ugnayang spatial o para sa pag-navigate. Gumagamit ang pattern na ito ng nakabahaging pag-iiba ng anyo sa x, y, o z axis para mapatibay ang ugnayan sa pagitan ng mga element.", "demoSharedXAxisTitle": "Nakabahaging x-axis", "demoSharedXAxisBackButtonText": "BUMALIK", "demoSharedXAxisNextButtonText": "SUSUNOD", "demoSharedXAxisCulinaryCourseTitle": "Pagluluto", "githubRepo": "Repository ng GitHub ng {repoName}", "fortnightlyMenuUS": "US", "fortnightlyMenuBusiness": "Negosyo", "fortnightlyMenuScience": "Agham", "fortnightlyMenuSports": "Sports", "fortnightlyMenuTravel": "Paglalakbay", "fortnightlyMenuCulture": "Kultura", "fortnightlyTrendingTechDesign": "Disenyo ng Teknolohiya", "rallyBudgetDetailAmountLeft": "Halagang Natitira", "fortnightlyHeadlineArmy": "Pagreporma sa Green Army Mula sa Loob", "fortnightlyDescription": "Isang app ng balita na nakatuon sa content", "rallyBillDetailAmountDue": "Halagang Kailangang Bayaran", "rallyBudgetDetailTotalCap": "Kabuuang Cap", "rallyBudgetDetailAmountUsed": "Halagang Nagamit", "fortnightlyTrendingHealthcareRevolution": "Rebolusyon sa Pangangalaga sa Kalusugan", "fortnightlyMenuFrontPage": "Front Page", "fortnightlyMenuWorld": "Mundo", "rallyBillDetailAmountPaid": "Halagang Ibinayad", "fortnightlyMenuPolitics": "Pulitika", "fortnightlyHeadlineBees": "Kaunti na Lang ang Mga Pambukid na Bubuyog", "fortnightlyHeadlineGasoline": "Ang Hinaharap ng Gasolina", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "Kinakaharap ng Mga Peminista ang Pagkiling", "fortnightlyHeadlineFabrics": "Gumagamit ng Teknolohiya ang Mga Designer para Gumawa ng Mga Napakamodernong Tela", "fortnightlyHeadlineStocks": "Habang Hindi Umuunlad ang Mga Stock, Marami ang Umaasa sa Currency", "fortnightlyTrendingReform": "Reporma", "fortnightlyMenuTech": "Teknolohiya", "fortnightlyHeadlineWar": "Watak-watak na Buhay ng Mga Amerikano sa Panahon ng Digmaan", "fortnightlyHeadlineHealthcare": "Ang Tahimik Pero Makapangyarihang Rebolusyon sa Pangangalaga sa Kalusugan", "fortnightlyLatestUpdates": "Mga Pinakabagong Update", "fortnightlyTrendingStocks": "Mga Stock", "rallyBillDetailTotalAmount": "Kabuuang Halaga", "demoCupertinoPickerDateTime": "Petsa at Oras", "signIn": "MAG-SIGN IN", "dataTableRowWithSugar": "{value} na may asukal", "dataTableRowApplePie": "Apple pie", "dataTableRowDonut": "Donut", "dataTableRowHoneycomb": "Honeycomb", "dataTableRowLollipop": "Lollipop", "dataTableRowJellyBean": "Jelly bean", "dataTableRowGingerbread": "Gingerbread", "dataTableRowCupcake": "Cupcake", "dataTableRowEclair": "Eclair", "dataTableRowIceCreamSandwich": "Ice cream sandwich", "dataTableRowFrozenYogurt": "Frozen yogurt", "dataTableColumnIron": "Iron (%)", "dataTableColumnCalcium": "Calcium (%)", "dataTableColumnSodium": "Sodium (mg)", "demoTimePickerTitle": "Picker ng Oras", "demo2dTransformationsResetTooltip": "I-reset ang mga pagbabago", "dataTableColumnFat": "Fat (g)", "dataTableColumnCalories": "Mga Calorie", "dataTableColumnDessert": "Panghimagas (1 serving)", "cardsDemoTravelDestinationLocation1": "Thanjavur, Tamil Nadu", "demoTimePickerDescription": "Nagpapakita ng dialog na naglalaman ng picker ng oras ng Material Design.", "demoPickersShowPicker": "IPAKITA ANG PICKER", "demoTabsScrollingTitle": "Naso-scroll", "demoTabsNonScrollingTitle": "Hindi naso-scroll", "craneHours": "{hours,plural,=1{1h}other{{hours}h}}", "craneMinutes": "{minutes,plural,=1{1m}other{{minutes}m}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "Nutrisyon", "demoDatePickerTitle": "Picker ng Petsa", "demoPickersSubtitle": "Pagpili ng petsa at oras", "demoPickersTitle": "Mga Picker", "demo2dTransformationsEditTooltip": "I-edit ang tile", "demoDataTableDescription": "Ang mga talahanyan ng data ay nagpapakita ng impormasyon sa format ng mga row at column na parang grid. Isinasaayos ng mga ito ang impormasyon sa paraang madaling suriin para makahanap ng mga pattern at insight ang mga user.", "demo2dTransformationsDescription": "I-tap para i-edit ang mga tile, at gumamit ng mga galaw para magpalipat-lipat ng lugar. I-drag para i-pan, i-pinch para i-zoom, i-rotate gamit ang dalawang daliri. Pindutin ang button na i-reset para bumalik sa panimulang oryentasyon.", "demo2dTransformationsSubtitle": "I-pan, i-zoom, i-rotate", "demo2dTransformationsTitle": "Mga 2D na pagbabago", "demoCupertinoTextFieldPIN": "PIN", "demoCupertinoTextFieldDescription": "Ang isang field ng text ay nagbibigay-daan sa user na maglagay ng text sa pamamagitan ng hardware na keyboard o gamit ang isang keyboard sa screen.", "demoCupertinoTextFieldSubtitle": "Mga field ng text na may istilong pang-iOS", "demoCupertinoTextFieldTitle": "Mga field ng text", "demoDatePickerDescription": "Nagpapakita ng dialog na naglalaman ng picker ng petsa ng Material Design.", "demoCupertinoPickerTime": "Oras", "demoCupertinoPickerDate": "Petsa", "demoCupertinoPickerTimer": "Timer", "demoCupertinoPickerDescription": "Widget ng picker na may istilong pang-iOS na magagamit para pumili ng mga string, mga petsa, mga oras, o petsa at oras.", "demoCupertinoPickerSubtitle": "Mga picker na may istilong pang-iOS", "demoCupertinoPickerTitle": "Mga Picker", "dataTableRowWithHoney": "{value} na may honey", "cardsDemoTravelDestinationCity2": "Chettinad", "bannerDemoResetText": "I-reset ang banner", "bannerDemoMultipleText": "Maraming pagkilos", "bannerDemoLeadingText": "Nangungunang Icon", "dismiss": "I-DISMISS", "cardsDemoTappable": "Nata-tap", "cardsDemoSelectable": "Napipili (matagal na pagpindot)", "cardsDemoExplore": "I-explore", "cardsDemoExploreSemantics": "I-explore ang {destinationName}", "cardsDemoShareSemantics": "Ibahagi ang {destinationName}", "cardsDemoTravelDestinationTitle1": "Nangungunang 10 Lungsod na Mabibisita sa Tamil Nadu", "cardsDemoTravelDestinationDescription1": "Ika-10", "cardsDemoTravelDestinationCity1": "Thanjavur", "dataTableColumnProtein": "Protein (g)", "cardsDemoTravelDestinationTitle2": "Mga Artisan ng Southern India", "cardsDemoTravelDestinationDescription2": "Mga Silk Spinner", "bannerDemoText": "Na-update ang iyong password sa iba mo pang device. Mag-sign in ulit.", "cardsDemoTravelDestinationLocation2": "Sivaganga, Tamil Nadu", "cardsDemoTravelDestinationTitle3": "Brihadisvara Temple", "cardsDemoTravelDestinationDescription3": "Mga Templo", "demoBannerTitle": "Banner", "demoBannerSubtitle": "Nagpapakita ng banner sa isang listahan", "demoBannerDescription": "Ang isang banner ay nagpapakita ng mahalaga at malinaw na mensahe at nagbibigay ito ng mga pagkilos para sa mga user para tugunan (o i-dismiss ang banner). Kinakailangan ng pagkilos ng user para ma-dismiss ito.", "demoCardTitle": "Mga Card", "demoCardSubtitle": "Mga baseline na card na may mga pakurbang kanto", "demoCardDescription": "Ang card ay isang sheet ng Materyal na ginagamit para katawanin ang ilang nauugnay na impormasyon, halimbawa, isang album, isang pangheyograpiyang lokasyon, isang pagkain, mga detalye sa pakikipag-ugnayan, atbp.", "demoDataTableTitle": "Mga Talahanayan ng Data", "demoDataTableSubtitle": "Mga row at column ng impormasyon", "dataTableColumnCarbs": "Mga Carb (g)", "placeTanjore": "Tanjore", "demoGridListsTitle": "Mga Grid na Listahan", "placeFlowerMarket": "Pamilihan ng Bulaklak", "placeBronzeWorks": "Bronze Works", "placeMarket": "Market", "placeThanjavurTemple": "Thanjavur Temple", "placeSaltFarm": "Salt Farm", "placeScooters": "Mga Scooter", "placeSilkMaker": "Panggawa ng Seda", "placeLunchPrep": "Paghanda ng Tanghalian", "placeBeach": "Beach", "placeFisherman": "Mangingisda", "demoMenuSelected": "Napili: {value}", "demoMenuRemove": "Alisin", "demoMenuGetLink": "Kumuha ng link", "demoMenuShare": "Ibahagi", "demoBottomAppBarSubtitle": "Nagpapakita ng navigation at mga pagkilos sa ibaba", "demoMenuAnItemWithASectionedMenu": "Isang item na may nakaseksyong menu", "demoMenuADisabledMenuItem": "Na-disable na item sa menu", "demoLinearProgressIndicatorTitle": "Linear na Indicator ng Pag-usad", "demoMenuContextMenuItemOne": "Unang item sa menu ng konteksto", "demoMenuAnItemWithASimpleMenu": "Isang item na may simpleng menu", "demoCustomSlidersTitle": "Mga Custom na Slider", "demoMenuAnItemWithAChecklistMenu": "Isang item na may checklist na menu", "demoCupertinoActivityIndicatorTitle": "Indicator ng aktibidad", "demoCupertinoActivityIndicatorSubtitle": "Mga iOS-style na indicator ng aktibidad", "demoCupertinoActivityIndicatorDescription": "Isang iOS-style na indicator ng aktibidad na umiikot nang clockwise.", "demoCupertinoNavigationBarTitle": "Navigation bar", "demoCupertinoNavigationBarSubtitle": "iOS-style na navigation bar", "demoCupertinoNavigationBarDescription": "Isang iOS-style na navigation bar. Ang navigation bar ay isang toolbar na sa minimum ay may pamagat ng page na nasa gitna ng toolbar.", "demoCupertinoPullToRefreshTitle": "Hilahin para i-refresh", "demoCupertinoPullToRefreshSubtitle": "iOS-style na kontrol na hilahin para i-refresh", "demoCupertinoPullToRefreshDescription": "Isang widget na nagpapatupad sa iOS-style na kontrol na hilahin para irefresh", "demoProgressIndicatorTitle": "Mga indicator ng pag-usad", "demoProgressIndicatorSubtitle": "Linear, pabilog, hindi tiyak", "demoCircularProgressIndicatorTitle": "Pabilog na Indicator ng Pag-usad", "demoCircularProgressIndicatorDescription": "Isang Material Design na pabilog na indicator ng pag-usad na umiikot para isaad na abala ang application.", "demoMenuFour": "Apat", "demoLinearProgressIndicatorDescription": "Isang Material Design na linear na indicator ng pag-usad, na kilala rin bilang progress bar.", "demoTooltipTitle": "Mga Tooltip", "demoTooltipSubtitle": "Maikling mensaheng ipinapakita kapag pumindot nang matagal o nag-hover", "demoTooltipDescription": "Nagbibigay ang mga tooltip ng mga text na label na nakakatulong sa pagpapaliwanag sa function ng isang button o iba pang pagkilos sa user interface. Nagpapakita ang mga tooltip ng text na nagbibigay ng impormasyon kapag nag-hover, tumutok, o pumindot nang matagal ang mga user sa isang element.", "demoTooltipInstructions": "Pumindot nang matagal o mag-hover para maipakita ang tooltip.", "placeChennai": "Chennai", "demoMenuChecked": "Nasuri: {value}", "placeChettinad": "Chettinad", "demoMenuPreview": "I-preview", "demoBottomAppBarTitle": "Bar ng app sa ibaba", "demoBottomAppBarDescription": "Nagbibigay ang mga bar ng app sa ibaba ng access sa navigation drawer sa ibaba at sa hanggang apat na pagkilos, kasama ang floating action button.", "bottomAppBarNotch": "Notch", "bottomAppBarPosition": "Posisyon ng Floating Action Button", "bottomAppBarPositionDockedEnd": "Naka-dock - Dulo", "bottomAppBarPositionDockedCenter": "Naka-dock - Gitna", "bottomAppBarPositionFloatingEnd": "Floating - Dulo", "bottomAppBarPositionFloatingCenter": "Floating - Gitna", "demoSlidersEditableNumericalValue": "Nae-edit na numerong value", "demoGridListsSubtitle": "Layout ng row at column", "demoGridListsDescription": "Pinakaangkop na gamitin ang mga Grid na Listahan para magpakita ng magkakatulad na data, kadalasan mga larawan. Tinatawag na tile ang bawat item na nasa grid na listahan.", "demoGridListsImageOnlyTitle": "Larawan lang", "demoGridListsHeaderTitle": "May header", "demoGridListsFooterTitle": "May footer", "demoSlidersTitle": "Mga Slider", "demoSlidersSubtitle": "Mga widget para sa pagpili ng value sa pamamagitan ng pag-swipe", "demoSlidersDescription": "Nagpapakita ang mga slider ng isang hanay ng mga value sa isang bar, kung saan puwedeng pumili ng isang value ang mga user. Mainam ang mga ito para sa pagsasaayos ng mga setting tulad ng volume, liwanag, o paglalapat ng mga filter ng larawan.", "demoRangeSlidersTitle": "Mga Slider ng Hanay", "demoRangeSlidersDescription": "Nagpapakita ang mga slider ng isang hanay ng mga value sa isang bar. Puwedeng may mga icon ang mga ito sa magkabilang dulo ng bar na nagpapakita ng isang hanay ng mga value. Mainam ang mga ito para sa pagsasaayos ng mga setting tulad ng volume, liwanag, o paglalapat ng mga filter ng larawan.", "demoMenuAnItemWithAContextMenuButton": "Isang item na may menu ng konteksto", "demoCustomSlidersDescription": "Nagpapakita ang mga slider ng isang hanay ng mga value sa isang bar, kung saan puwedeng pumili ng isang value o isang hanay ng mga value ang mga user. Puwedeng lagyan ng tema at i-customize ang mga slider.", "demoSlidersContinuousWithEditableNumericalValue": "Tuloy-tuloy na may Nae-edit na Numerong Value", "demoSlidersDiscrete": "Discrete", "demoSlidersDiscreteSliderWithCustomTheme": "Discrete Slider na may Custom na Tema", "demoSlidersContinuousRangeSliderWithCustomTheme": "Tuloy-tuloy na Slider ng Hanay na may Custom na Tema", "demoSlidersContinuous": "Tuloy-tuloy", "placePondicherry": "Pondicherry", "demoMenuTitle": "Menu", "demoContextMenuTitle": "Menu ng konteksto", "demoSectionedMenuTitle": "Nakaseksyong menu", "demoSimpleMenuTitle": "Simpleng menu", "demoChecklistMenuTitle": "Checklist na menu", "demoMenuSubtitle": "Mga button ng menu at simpleng menu", "demoMenuDescription": "Nagpapakita ang menu ng listahan ng mga pagpipilian sa isang pansamantalang lugar. Lumalabas ang mga ito kapag nakipag-ugnayan ang mga user gamit ang button, pagkilos, o iba pang kontrol.", "demoMenuItemValueOne": "Unang item sa menu", "demoMenuItemValueTwo": "Pangalawang item sa menu", "demoMenuItemValueThree": "Pangatlong item sa menu", "demoMenuOne": "Isa", "demoMenuTwo": "Dalawa", "demoMenuThree": "Tatlo", "demoMenuContextMenuItemThree": "Pangatlong item sa menu ng konteksto", "demoCupertinoSwitchSubtitle": "iOS-style na switch", "demoSnackbarsText": "Ito ay isang snackbar.", "demoCupertinoSliderSubtitle": "iOS-style na slider", "demoCupertinoSliderDescription": "Puwedeng gumamit ng slider para pumili sa tuloy-tuloy o discrete na hanay ng mga value.", "demoCupertinoSliderContinuous": "Tuloy-tuloy: {value}", "demoCupertinoSliderDiscrete": "Discrete: {value}", "demoSnackbarsAction": "Pinindot mo ang pagkilos ng snackbar.", "backToGallery": "Bumalik sa Gallery", "demoCupertinoTabBarTitle": "Tab bar", "demoCupertinoSwitchDescription": "Ginagamit ang isang switch para i-on/i-off ang isang setting.", "demoSnackbarsActionButtonLabel": "PAGKILOS", "cupertinoTabBarProfileTab": "Profile", "demoSnackbarsButtonLabel": "MAGPAKITA NG SNACKBAR", "demoSnackbarsDescription": "Ipinapaalam ng Mga Snackbar sa mga user ang isang proseso na isinasagawa o isasagawa ng app. Panandaliang lumalabas ang mga ito, papunta sa ibaba ng screen. Hindi dapat makaabala ang mga ito sa experience ng user, at hindi kinakailangan ng mga ito na mawala ang input ng user.", "demoSnackbarsSubtitle": "Nagpapakita ang Mga Snackbar ng mga mensahe sa ibaba ng screen", "demoSnackbarsTitle": "Mga Snackbar", "demoCupertinoSliderTitle": "Slider", "cupertinoTabBarChatTab": "Chat", "cupertinoTabBarHomeTab": "Home", "demoCupertinoTabBarDescription": "Isang iOS-style na tab bar ng pag-navigate sa ibaba. Nagpapakita ng maraming tab habang isang tab lang ang aktibo, ang unang tab bilang default.", "demoCupertinoTabBarSubtitle": "iOS-style na tab bar sa ibaba", "demoOptionsFeatureTitle": "Mga opsyon sa view", "demoOptionsFeatureDescription": "Mag-tap dito para makita ang mga available na opsyon para sa demo na ito.", "demoCodeViewerCopyAll": "KOPYAHIN LAHAT", "shrineScreenReaderRemoveProductButton": "Alisin ang {product}", "shrineScreenReaderProductAddToCart": "Idagdag sa cart", "shrineScreenReaderCart": "{quantity,plural,=0{Shopping cart, walang item}=1{Shopping cart, 1 item}other{Shopping cart, {quantity} na item}}", "demoCodeViewerFailedToCopyToClipboardMessage": "Hindi nakopya sa clipboard: {error}", "demoCodeViewerCopiedToClipboardMessage": "Kinopya sa clipboard.", "craneSleep8SemanticLabel": "Mga Mayan na guho sa isang talampas sa itaas ng beach", "craneSleep4SemanticLabel": "Hotel sa tabi ng lawa sa harap ng mga bundok", "craneSleep2SemanticLabel": "Citadel ng Machu Picchu", "craneSleep1SemanticLabel": "Chalet sa isang maniyebeng tanawing may mga evergreen na puno", "craneSleep0SemanticLabel": "Mga bungalow sa ibabaw ng tubig", "craneFly13SemanticLabel": "Pool sa tabi ng dagat na may mga palm tree", "craneFly12SemanticLabel": "Pool na may mga palm tree", "craneFly11SemanticLabel": "Brick na parola sa may dagat", "craneFly10SemanticLabel": "Mga tore ng Al-Azhar Mosque habang papalubog ang araw", "craneFly9SemanticLabel": "Lalaking nakasandal sa isang antique na asul na sasakyan", "craneFly8SemanticLabel": "Supertree Grove", "craneEat9SemanticLabel": "Counter na may mga pastry sa isang cafe", "craneEat2SemanticLabel": "Burger", "craneFly5SemanticLabel": "Hotel sa tabi ng lawa sa harap ng mga bundok", "demoSelectionControlsSubtitle": "Mga checkbox, radio button, at switch", "craneEat10SemanticLabel": "Babaeng may hawak na malaking pastrami sandwich", "craneFly4SemanticLabel": "Mga bungalow sa ibabaw ng tubig", "craneEat7SemanticLabel": "Pasukan ng bakery", "craneEat6SemanticLabel": "Putaheng may hipon", "craneEat5SemanticLabel": "Artsy na seating area ng isang restaurant", "craneEat4SemanticLabel": "Panghimagas na gawa sa tsokolate", "craneEat3SemanticLabel": "Korean taco", "craneFly3SemanticLabel": "Citadel ng Machu Picchu", "craneEat1SemanticLabel": "Walang taong bar na may mga upuang pang-diner", "craneEat0SemanticLabel": "Pizza sa loob ng oven na ginagamitan ng panggatong", "craneSleep11SemanticLabel": "Taipei 101 skyscraper", "craneSleep10SemanticLabel": "Mga tore ng Al-Azhar Mosque habang papalubog ang araw", "craneSleep9SemanticLabel": "Brick na parola sa may dagat", "craneEat8SemanticLabel": "Pinggan ng crawfish", "craneSleep7SemanticLabel": "Makukulay na apartment sa Riberia Square", "craneSleep6SemanticLabel": "Pool na may mga palm tree", "craneSleep5SemanticLabel": "Tent sa isang parang", "settingsButtonCloseLabel": "Isara ang mga setting", "demoSelectionControlsCheckboxDescription": "Nagbibigay-daan sa user ang mga checkbox na pumili ng maraming opsyon sa isang hanay. True o false ang value ng isang normal na checkbox at puwede ring null ang value ng isang tristate checkbox.", "settingsButtonLabel": "Mga Setting", "demoListsTitle": "Mga Listahan", "demoListsSubtitle": "Mga layout ng nagso-scroll na listahan", "demoListsDescription": "Isang row na nakapirmi ang taas na karaniwang naglalaman ng ilang text pati na rin isang icon na leading o trailing.", "demoOneLineListsTitle": "Isang Linya", "demoTwoLineListsTitle": "Dalawang Linya", "demoListsSecondary": "Pangalawang text", "demoSelectionControlsTitle": "Mga kontrol sa pagpili", "craneFly7SemanticLabel": "Mount Rushmore", "demoSelectionControlsCheckboxTitle": "Checkbox", "craneSleep3SemanticLabel": "Lalaking nakasandal sa isang antique na asul na sasakyan", "demoSelectionControlsRadioTitle": "Radio", "demoSelectionControlsRadioDescription": "Nagbibigay-daan sa user ang mga radio button na pumili ng isang opsyon sa isang hanay. Gamitin ang mga radio button para sa paisa-isang pagpili kung sa tingin mo ay dapat magkakatabing makita ng user ang lahat ng available na opsyon.", "demoSelectionControlsSwitchTitle": "Switch", "demoSelectionControlsSwitchDescription": "Tina-toggle ng mga on/off na switch ang status ng isang opsyon sa mga setting. Dapat malinaw na nakasaad sa inline na label ang opsyong kinokontrol ng switch, pati na rin ang kasalukuyang status nito.", "craneFly0SemanticLabel": "Chalet sa isang maniyebeng tanawing may mga evergreen na puno", "craneFly1SemanticLabel": "Tent sa isang parang", "craneFly2SemanticLabel": "Mga prayer flag sa harap ng maniyebeng bundok", "craneFly6SemanticLabel": "Tanawin mula sa himpapawid ng Palacio de Bellas Artes", "rallySeeAllAccounts": "Tingnan ang lahat ng account", "rallyBillAmount": "Bill sa {billName} na nagkakahalagang {amount} na dapat bayaran bago ang {date}.", "shrineTooltipCloseCart": "Isara ang cart", "shrineTooltipCloseMenu": "Isara ang menu", "shrineTooltipOpenMenu": "Buksan ang menu", "shrineTooltipSettings": "Mga Setting", "shrineTooltipSearch": "Maghanap", "demoTabsDescription": "Inaayos ng mga tab ang content na nasa magkakaibang screen, data set, at iba pang pakikipag-ugnayan.", "demoTabsSubtitle": "Mga tab na may mga hiwalay na naso-scroll na view", "demoTabsTitle": "Mga Tab", "rallyBudgetAmount": "Badyet sa {budgetName} na may nagamit nang {amountUsed} sa {amountTotal}, {amountLeft} ang natitira", "shrineTooltipRemoveItem": "Alisin ang item", "rallyAccountAmount": "{accountName} account {accountNumber} na may {amount}.", "rallySeeAllBudgets": "Tingnan ang lahat ng badyet", "rallySeeAllBills": "Tingnan ang lahat ng bill", "craneFormDate": "Pumili ng Petsa", "craneFormOrigin": "Piliin ang Pinagmulan", "craneFly2": "Khumbu Valley, Nepal", "craneFly3": "Machu Picchu, Peru", "craneFly4": "Malรฉ, Maldives", "craneFly5": "Vitznau, Switzerland", "craneFly6": "Mexico City, Mexico", "craneFly7": "Mount Rushmore, United States", "settingsTextDirectionLocaleBased": "Batay sa lokalidad", "craneFly9": "Havana, Cuba", "craneFly10": "Cairo, Egypt", "craneFly11": "Lisbon, Portugal", "craneFly12": "Napa, United States", "craneFly13": "Bali, Indonesia", "craneSleep0": "Malรฉ, Maldives", "craneSleep1": "Aspen, United States", "craneSleep2": "Machu Picchu, Peru", "demoCupertinoSegmentedControlTitle": "Naka-segment na kontrol", "craneSleep4": "Vitznau, Switzerland", "craneSleep5": "Big Sur, United States", "craneSleep6": "Napa, United States", "craneSleep7": "Porto, Portugal", "craneSleep8": "Tulum, Mexico", "craneEat5": "Seoul, South Korea", "demoChipTitle": "Mga Chip", "demoChipSubtitle": "Mga compact na elemento na kumakatawan sa isang input, attribute, o pagkilos", "demoActionChipTitle": "Action Chip", "demoActionChipDescription": "Ang mga action chip ay isang hanay ng mga opsyon na nagti-trigger ng pagkilos na nauugnay sa pangunahing content. Dapat dynamic at ayon sa konteksto lumabas ang mga action chip sa UI.", "demoChoiceChipTitle": "Choice Chip", "demoChoiceChipDescription": "Kumakatawan ang mga choice chip sa isang opsyon sa isang hanay. Naglalaman ng nauugnay na naglalarawang text o mga kategorya ang mga choice chip.", "demoFilterChipTitle": "Filter Chip", "demoFilterChipDescription": "Gumagamit ang mga filter chip ng mga tag o naglalarawang salita para mag-filter ng content.", "demoInputChipTitle": "Input Chip", "demoInputChipDescription": "Kumakatawan ang mga input chip sa isang kumplikadong impormasyon, gaya ng entity (tao, lugar, o bagay) o text ng pag-uusap, sa compact na anyo.", "craneSleep9": "Lisbon, Portugal", "craneEat10": "Lisbon, Portugal", "demoCupertinoSegmentedControlDescription": "Ginagamit para sa pagpiling may ilang opsyong hindi puwedeng mapili nang sabay. Kapag pinili ang isang opsyong nasa naka-segment na control, hindi na mapipili ang iba pang opsyong nasa naka-segment na control.", "chipTurnOnLights": "I-on ang mga ilaw", "chipSmall": "Maliit", "chipMedium": "Katamtaman", "chipLarge": "Malaki", "chipElevator": "Elevator", "chipWasher": "Washer", "chipFireplace": "Fireplace", "chipBiking": "Pagbibisikleta", "craneFormDiners": "Mga Diner", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{Lakihan ang puwedeng mabawas sa iyong buwis! Magtalaga ng mga kategorya sa 1 transaksyong hindi nakatalaga.}other{Lakihan ang puwedeng mabawas sa iyong buwis! Magtalaga ng mga kategorya sa {count} na transaksyong hindi nakatalaga.}}", "craneFormTime": "Pumili ng Oras", "craneFormLocation": "Pumili ng Lokasyon", "craneFormTravelers": "Mga Bumibiyahe", "craneEat8": "Atlanta, United States", "craneFormDestination": "Pumili ng Destinasyon", "craneFormDates": "Pumili ng Mga Petsa", "craneFly": "LUMIPAD", "craneSleep": "MATULOG", "craneEat": "KUMAIN", "craneFlySubhead": "Mag-explore ng Mga Flight ayon sa Destinasyon", "craneSleepSubhead": "Mag-explore ng Mga Property ayon sa Destinasyon", "craneEatSubhead": "Mag-explore ng Mga Restaurant ayon sa Destinasyon", "craneFlyStops": "{numberOfStops,plural,=0{Nonstop}=1{1 stop}other{{numberOfStops} na stop}}", "craneSleepProperties": "{totalProperties,plural,=0{Walang Available na Property}=1{1 Available na Property}other{{totalProperties} na Available na Property}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{Walang Restaurant}=1{1 Restaurant}other{{totalRestaurants} na Restaurant}}", "craneFly0": "Aspen, United States", "demoCupertinoSegmentedControlSubtitle": "iOS-style na naka-segment na control", "craneSleep10": "Cairo, Egypt", "craneEat9": "Madrid, Spain", "craneFly1": "Big Sur, United States", "craneEat7": "Nashville, United States", "craneEat6": "Seattle, United States", "craneFly8": "Singapore", "craneEat4": "Paris, France", "craneEat3": "Portland, United States", "craneEat2": "Cรณrdoba, Argentina", "craneEat1": "Dallas, United States", "craneEat0": "Naples, Italy", "craneSleep11": "Taipei, Taiwan", "craneSleep3": "Havana, Cuba", "shrineLogoutButtonCaption": "MAG-LOG OUT", "rallyTitleBills": "MGA BILL", "rallyTitleAccounts": "MGA ACCOUNT", "shrineProductVagabondSack": "Vagabond na sack", "rallyAccountDetailDataInterestYtd": "YTD ng Interes", "shrineProductWhitneyBelt": "Whitney na sinturon", "shrineProductGardenStrand": "Panghardin na strand", "shrineProductStrutEarrings": "Mga strut earring", "shrineProductVarsitySocks": "Mga pang-varsity na medyas", "shrineProductWeaveKeyring": "Hinabing keychain", "shrineProductGatsbyHat": "Gatsby hat", "shrineProductShrugBag": "Shrug bag", "shrineProductGiltDeskTrio": "Gilt desk trio", "shrineProductCopperWireRack": "Copper wire na rack", "shrineProductSootheCeramicSet": "Soothe na ceramic set", "shrineProductHurrahsTeaSet": "Hurrahs na tea set", "shrineProductBlueStoneMug": "Blue stone na tasa", "shrineProductRainwaterTray": "Tray para sa tubig-ulan", "shrineProductChambrayNapkins": "Chambray napkins", "shrineProductSucculentPlanters": "Mga paso para sa succulent", "shrineProductQuartetTable": "Quartet na mesa", "shrineProductKitchenQuattro": "Quattro sa kusina", "shrineProductClaySweater": "Clay na sweater", "shrineProductSeaTunic": "Sea tunic", "shrineProductPlasterTunic": "Plaster na tunic", "rallyBudgetCategoryRestaurants": "Mga Restaurant", "shrineProductChambrayShirt": "Chambray na shirt", "shrineProductSeabreezeSweater": "Seabreeze na sweater", "shrineProductGentryJacket": "Gentry na jacket", "shrineProductNavyTrousers": "Navy na pantalon", "shrineProductWalterHenleyWhite": "Walter henley (puti)", "shrineProductSurfAndPerfShirt": "Surf and perf na t-shirt", "shrineProductGingerScarf": "Ginger na scarf", "shrineProductRamonaCrossover": "Ramona crossover", "shrineProductClassicWhiteCollar": "Classic na puting kwelyo", "shrineProductSunshirtDress": "Sunshirt na dress", "rallyAccountDetailDataInterestRate": "Rate ng Interes", "rallyAccountDetailDataAnnualPercentageYield": "Taunang Percentage Yield", "rallyAccountDataVacation": "Bakasyon", "shrineProductFineLinesTee": "Fine lines na t-shirt", "rallyAccountDataHomeSavings": "Mga Ipon sa Bahay", "rallyAccountDataChecking": "Checking", "rallyAccountDetailDataInterestPaidLastYear": "Interes na Binayaran Noong Nakaraang Taon", "rallyAccountDetailDataNextStatement": "Susunod na Pahayag", "rallyAccountDetailDataAccountOwner": "May-ari ng Account", "rallyBudgetCategoryCoffeeShops": "Mga Kapihan", "rallyBudgetCategoryGroceries": "Mga Grocery", "shrineProductCeriseScallopTee": "Cerise na scallop na t-shirt", "rallyBudgetCategoryClothing": "Damit", "rallySettingsManageAccounts": "Pamahalaan ang Mga Account", "rallyAccountDataCarSavings": "Mga Ipon sa Kotse", "rallySettingsTaxDocuments": "Mga Dokumento ng Buwis", "rallySettingsPasscodeAndTouchId": "Passcode at Touch ID", "rallySettingsNotifications": "Mga Notification", "rallySettingsPersonalInformation": "Personal na Impormasyon", "rallySettingsPaperlessSettings": "Mga Paperless na Setting", "rallySettingsFindAtms": "Maghanap ng mga ATM", "rallySettingsHelp": "Tulong", "rallySettingsSignOut": "Mag-sign out", "rallyAccountTotal": "Kabuuan", "rallyBillsDue": "Nakatakda", "rallyBudgetLeft": "Natitira", "rallyAccounts": "Mga Account", "rallyBills": "Mga Bill", "rallyBudgets": "Mga Badyet", "rallyAlerts": "Mga Alerto", "rallySeeAll": "TINGNAN LAHAT", "rallyFinanceLeft": "NATITIRA", "rallyTitleOverview": "PANGKALAHATANG-IDEYA", "shrineProductShoulderRollsTee": "Shoulder rolls na t-shirt", "shrineNextButtonCaption": "SUSUNOD", "rallyTitleBudgets": "MGA BADYET", "rallyTitleSettings": "MGA SETTING", "rallyLoginLoginToRally": "Mag-log in sa Rally", "rallyLoginNoAccount": "Walang account?", "rallyLoginSignUp": "MAG-SIGN UP", "rallyLoginUsername": "Username", "rallyLoginPassword": "Password", "rallyLoginLabelLogin": "Mag-log in", "rallyLoginRememberMe": "Tandaan Ako", "rallyLoginButtonLogin": "MAG-LOG IN", "rallyAlertsMessageHeadsUpShopping": "Babala, nagamit mo na ang {percent} ng iyong Badyet sa pamimili para sa buwang ito.", "rallyAlertsMessageSpentOnRestaurants": "Gumastos ka ng {amount} sa Mga Restaurant ngayong linggo.", "rallyAlertsMessageATMFees": "Gumastos ka ng {amount} sa mga bayarin sa ATM ngayong buwan", "rallyAlertsMessageCheckingAccount": "Magaling! Mas mataas nang {percent} ang iyong checking account kaysa sa nakaraang buwan.", "shrineMenuCaption": "MENU", "shrineCategoryNameAll": "LAHAT", "shrineCategoryNameAccessories": "MGA ACCESSORY", "shrineCategoryNameClothing": "DAMIT", "shrineCategoryNameHome": "HOME", "shrineLoginUsernameLabel": "Username", "shrineLoginPasswordLabel": "Password", "shrineCancelButtonCaption": "KANSELAHIN", "shrineCartTaxCaption": "Buwis:", "shrineCartPageCaption": "CART", "shrineProductQuantity": "Dami: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{WALANG ITEM}=1{1 ITEM}other{{quantity} NA ITEM}}", "shrineCartClearButtonCaption": "I-CLEAR ANG CART", "shrineCartTotalCaption": "KABUUAN", "shrineCartSubtotalCaption": "Subtotal:", "shrineCartShippingCaption": "Pagpapadala:", "shrineProductGreySlouchTank": "Grey na slouch tank", "shrineProductStellaSunglasses": "Stella na sunglasses", "shrineProductWhitePinstripeShirt": "Puting pinstripe na t-shirt", "demoTextFieldWhereCanWeReachYou": "Paano kami makikipag-ugnayan sa iyo?", "settingsTextDirectionLTR": "LTR", "settingsTextScalingLarge": "Malaki", "demoBottomSheetHeader": "Header", "demoBottomSheetItem": "Item {value}", "demoBottomTextFieldsTitle": "Mga field ng text", "demoTextFieldTitle": "Mga field ng text", "demoTextFieldSubtitle": "Isang linya ng mae-edit na text at mga numero", "demoTextFieldDescription": "Ang mga field ng text ay nagbibigay-daan sa mga user na maglagay ng text sa UI. Karaniwang makikita ang mga ito sa mga form at dialog.", "demoTextFieldShowPasswordLabel": "Ipakita ang password", "demoTextFieldHidePasswordLabel": "Itago ang password", "demoTextFieldFormErrors": "Pakiayos ang mga error na kulay pula bago magsumite.", "demoTextFieldNameRequired": "Kinakailangan ang pangalan.", "demoTextFieldOnlyAlphabeticalChars": "Mga character sa alpabeto lang ang ilagay.", "demoTextFieldEnterUSPhoneNumber": "(###) ###-#### - Maglagay ng numero ng telepono sa US.", "demoTextFieldEnterPassword": "Maglagay ng password.", "demoTextFieldPasswordsDoNotMatch": "Hindi magkatugma ang mga password", "demoTextFieldWhatDoPeopleCallYou": "Ano'ng tawag sa iyo ng mga tao?", "demoTextFieldNameField": "Pangalan*", "demoBottomSheetButtonText": "IPAKITA ANG BOTTOM SHEET", "demoTextFieldPhoneNumber": "Numero ng telepono*", "demoBottomSheetTitle": "Bottom sheet", "demoTextFieldEmail": "Email", "demoTextFieldTellUsAboutYourself": "Bigyan kami ng impormasyon tungkol sa iyo (hal., isulat kung ano'ng ginagawa mo sa trabaho o ang mga libangan mo)", "demoTextFieldKeepItShort": "Panatilihin itong maikli, isa lang itong demo.", "starterAppGenericButton": "BUTTON", "demoTextFieldLifeStory": "Kwento ng buhay", "demoTextFieldSalary": "Sweldo", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "Hindi dapat hihigit sa 8 character.", "demoTextFieldPassword": "Password*", "demoTextFieldRetypePassword": "I-type ulit ang password*", "demoTextFieldSubmit": "ISUMITE", "demoBottomNavigationSubtitle": "Navigation sa ibaba na may mga cross-fading na view", "demoBottomSheetAddLabel": "Idagdag", "demoBottomSheetModalDescription": "Ang modal na bottom sheet ay isang alternatibo sa menu o dialog at pinipigilan nito ang user na makipag-ugnayan sa iba pang bahagi ng app.", "demoBottomSheetModalTitle": "Modal na bottom sheet", "demoBottomSheetPersistentDescription": "Ang persistent na bottom sheet ay nagpapakita ng impormasyon na dumaragdag sa pangunahing content ng app. Makikita pa rin ang persistent na bottom sheet kahit pa makipag-ugnayan ang user sa iba pang bahagi ng app.", "demoBottomSheetPersistentTitle": "Persistent na bottom sheet", "demoBottomSheetSubtitle": "Mga persistent at modal na bottom sheet", "demoTextFieldNameHasPhoneNumber": "Ang numero ng telepono ni/ng {name} ay {phoneNumber}", "buttonText": "BUTTON", "demoTypographyDescription": "Mga kahulugan para sa iba't ibang typographical na istilong makikita sa Material Design.", "demoTypographySubtitle": "Lahat ng naka-predefine na istilo ng text", "demoTypographyTitle": "Typography", "demoFullscreenDialogDescription": "Tinutukoy ng property na fullscreenDialog kung fullscreen na modal dialog ang paparating na page", "demoFlatButtonDescription": "Isang flat na button na nagpapakita ng pagtalsik ng tinta kapag pinindot pero hindi umaangat. Gamitin ang mga flat na button sa mga toolbar, sa mga dialog, at inline nang may padding", "demoBottomNavigationDescription": "Nagpapakita ang mga navigation bar sa ibaba ng tatlo hanggang limang patutunguhan sa ibaba ng screen. Ang bawat patutunguhan ay kinakatawan ng isang icon at ng isang opsyonal na text na label. Kapag na-tap ang icon ng navigation sa ibaba, mapupunta ang user sa pinakamataas na antas na patutunguhan ng navigation na nauugnay sa icon na iyon.", "demoBottomNavigationSelectedLabel": "Napiling label", "demoBottomNavigationPersistentLabels": "Mga persistent na label", "starterAppDrawerItem": "Item {value}", "demoTextFieldRequiredField": "* tumutukoy sa kinakailangang field", "demoBottomNavigationTitle": "Navigation sa ibaba", "settingsLightTheme": "Maliwanag", "settingsTheme": "Tema", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "RTL", "settingsTextScalingHuge": "Napakalaki", "cupertinoButton": "Button", "settingsTextScalingNormal": "Normal", "settingsTextScalingSmall": "Maliit", "settingsSystemDefault": "System", "settingsTitle": "Mga Setting", "rallyDescription": "Isang personal na finance app", "aboutDialogDescription": "Para makita ang source code para sa app na ito, pakibisita ang {repoLink}.", "bottomNavigationCommentsTab": "Mga Komento", "starterAppGenericBody": "Nilalaman", "starterAppGenericHeadline": "Headline", "starterAppGenericSubtitle": "Subtitle", "starterAppGenericTitle": "Pamagat", "starterAppTooltipSearch": "Maghanap", "starterAppTooltipShare": "Ibahagi", "starterAppTooltipFavorite": "Paborito", "starterAppTooltipAdd": "Idagdag", "bottomNavigationCalendarTab": "Kalendaryo", "starterAppDescription": "Isang responsive na panimulang layout", "starterAppTitle": "Panimulang app", "aboutFlutterSamplesRepo": "Mga flutter sample ng GitHub repo", "bottomNavigationContentPlaceholder": "Placeholder para sa tab na {title}", "bottomNavigationCameraTab": "Camera", "bottomNavigationAlarmTab": "Alarm", "bottomNavigationAccountTab": "Account", "demoTextFieldYourEmailAddress": "Iyong email address", "demoToggleButtonDescription": "Magagamit ang mga toggle button para pagpangkatin ang magkakaugnay na opsyon. Para bigyang-diin ang mga pangkat ng magkakaugnay na toggle button, dapat may iisang container ang isang pangkat", "colorsGrey": "GREY", "colorsBrown": "BROWN", "colorsDeepOrange": "DEEP ORANGE", "colorsOrange": "ORANGE", "colorsAmber": "AMBER", "colorsYellow": "DILAW", "colorsLime": "LIME", "colorsLightGreen": "LIGHT GREEN", "colorsGreen": "BERDE", "homeHeaderGallery": "Gallery", "homeHeaderCategories": "Mga Kategorya", "shrineDescription": "Isang fashionable na retail app", "craneDescription": "Isang naka-personalize na travel app", "homeCategoryReference": "MGA ISTILO AT IBA PA", "demoInvalidURL": "Hindi maipakita ang URL:", "demoOptionsTooltip": "Mga Opsyon", "demoInfoTooltip": "Impormasyon", "demoCodeTooltip": "Demo Code", "demoDocumentationTooltip": "Dokumentasyon ng API", "demoFullscreenTooltip": "Buong Screen", "settingsTextScaling": "Sukat ng text", "settingsTextDirection": "Direksyon ng text", "settingsLocale": "Wika", "settingsPlatformMechanics": "Mechanics ng platform", "settingsDarkTheme": "Madilim", "settingsSlowMotion": "Slow motion", "settingsAbout": "Tungkol sa Gallery ng Flutter", "settingsFeedback": "Magpadala ng feedback", "settingsAttribution": "Idinisenyo ng TOASTER sa London", "demoButtonTitle": "Mga Button", "demoButtonSubtitle": "Text, nakaangat, may outline, at higit pa", "demoFlatButtonTitle": "Flat na Button", "demoRaisedButtonDescription": "Nagdaragdag ng dimensyon ang mga nakaangat na button sa mga layout na puro flat. Binibigyang-diin ng mga ito ang mga function sa mga lugar na maraming nakalagay o malawak.", "demoRaisedButtonTitle": "Nakaangat na Button", "demoOutlineButtonTitle": "Outline na Button", "demoOutlineButtonDescription": "Magiging opaque at aangat ang mga outline na button kapag pinindot. Kadalasang isinasama ang mga ito sa mga nakaangat na button para magsaad ng alternatibo at pangalawang pagkilos.", "demoToggleButtonTitle": "Mga Toggle Button", "colorsTeal": "TEAL", "demoFloatingButtonTitle": "Floating na Action Button", "demoFloatingButtonDescription": "Ang floating na action button ay isang bilog na button na may icon na nasa ibabaw ng content na nagpo-promote ng pangunahing pagkilos sa application.", "demoDialogTitle": "Mga Dialog", "demoDialogSubtitle": "Simple, alerto, at fullscreen", "demoAlertDialogTitle": "Alerto", "demoAlertDialogDescription": "Ipinapaalam ng dialog ng alerto sa user ang tungkol sa mga sitwasyong nangangailangan ng pagkilala. May opsyonal na pamagat at opsyonal na listahan ng mga pagkilos ang dialog ng alerto.", "demoAlertTitleDialogTitle": "Alertong May Pamagat", "demoSimpleDialogTitle": "Simple", "demoSimpleDialogDescription": "Isang simpleng dialog na nag-aalok sa user na pumili sa pagitan ng ilang opsyon. May opsyonal na pamagat ang simpleng dialog na ipinapakita sa itaas ng mga opsyon.", "demoFullscreenDialogTitle": "Fullscreen", "demoCupertinoButtonsTitle": "Mga Button", "demoCupertinoButtonsSubtitle": "Mga button na may istilong pang-iOS", "demoCupertinoButtonsDescription": "Button na may istilong pang-iOS. Kumukuha ito ng text at/o icon na nagfe-fade out at nagfe-fade in kapag pinindot. Puwede ring may background ito.", "demoCupertinoAlertsTitle": "Mga Alerto", "demoCupertinoAlertsSubtitle": "Mga dialog ng alerto na may istilong pang-iOS", "demoCupertinoAlertTitle": "Alerto", "demoCupertinoAlertDescription": "Ipinapaalam ng dialog ng alerto sa user ang tungkol sa mga sitwasyong nangangailangan ng pagkilala. May opsyonal na pamagat, opsyonal na content, at opsyonal na listahan ng mga pagkilos ang dialog ng alerto. Ipapakita ang pamagat sa itaas ng content at ipapakita ang mga pagkilos sa ibaba ng content.", "demoCupertinoAlertWithTitleTitle": "Alertong May Pamagat", "demoCupertinoAlertButtonsTitle": "Alertong May Mga Button", "demoCupertinoAlertButtonsOnlyTitle": "Mga Button ng Alerto Lang", "demoCupertinoActionSheetTitle": "Sheet ng Pagkilos", "demoCupertinoActionSheetDescription": "Ang sheet ng pagkilos ay isang partikular na istilo ng alerto na nagpapakita sa user ng isang hanay ng dalawa o higit pang opsyong nauugnay sa kasalukuyang konteksto. Puwedeng may pamagat, karagdagang mensahe, at listahan ng mga pagkilos ang sheet ng pagkilos.", "demoColorsTitle": "Mga Kulay", "demoColorsSubtitle": "Lahat ng naka-predefine na kulay", "demoColorsDescription": "Mga constant na kulay at swatch ng kulay na kumakatawan sa palette ng kulay ng Material Design.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "Gumawa", "dialogSelectedOption": "Pinili mo ang: \"{value}\"", "dialogDiscardTitle": "I-discard ang draft?", "dialogLocationTitle": "Gamitin ang serbisyo ng lokasyon ng Google?", "dialogLocationDescription": "Payagan ang Google na tulungan ang mga app na tukuyin ang lokasyon. Nangangahulugan ito na magpapadala ng anonymous na data ng lokasyon sa Google, kahit na walang gumaganang app.", "dialogCancel": "KANSELAHIN", "dialogDiscard": "I-DISCARD", "dialogDisagree": "HINDI SUMASANG-AYON", "dialogAgree": "SUMANG-AYON", "dialogSetBackup": "Itakda ang backup na account", "colorsBlueGrey": "BLUE GREY", "dialogShow": "IPAKITA ANG DIALOG", "dialogFullscreenTitle": "Full Screen na Dialog", "dialogFullscreenSave": "I-SAVE", "dialogFullscreenDescription": "Demo ng full screen na dialog", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "May Background", "cupertinoAlertCancel": "Kanselahin", "cupertinoAlertDiscard": "I-discard", "cupertinoAlertLocationTitle": "Payagan ang \"Maps\" na i-access ang iyong lokasyon habang ginagamit mo ang app?", "cupertinoAlertLocationDescription": "Ipapakita sa mapa ang kasalukuyan mong lokasyon at gagamitin ito para sa mga direksyon, resulta ng paghahanap sa malapit, at tinatantyang tagal ng pagbiyahe.", "cupertinoAlertAllow": "Payagan", "cupertinoAlertDontAllow": "Huwag Payagan", "cupertinoAlertFavoriteDessert": "Piliin ang Paboritong Panghimagas", "cupertinoAlertDessertDescription": "Pakipili ang paborito mong uri ng panghimagas sa listahan sa ibaba. Gagamitin ang pipiliin mo para i-customize ang iminumungkahing listahan ng mga kainan sa iyong lugar.", "cupertinoAlertCheesecake": "Cheesecake", "cupertinoAlertTiramisu": "Tiramisu", "cupertinoAlertApplePie": "Apple Pie", "cupertinoAlertChocolateBrownie": "Chocolate Brownie", "cupertinoShowAlert": "Ipakita ang Alerto", "colorsRed": "PULA", "colorsPink": "PINK", "colorsPurple": "PURPLE", "colorsDeepPurple": "DEEP PURPLE", "colorsIndigo": "INDIGO", "colorsBlue": "ASUL", "colorsLightBlue": "LIGHT BLUE", "colorsCyan": "CYAN", "dialogAddAccount": "Magdagdag ng account", "Gallery": "Gallery", "Categories": "Mga Kategorya", "SHRINE": "SHRINE", "Basic shopping app": "Basic na shopping app", "RALLY": "RALLY", "CRANE": "CRANE", "Travel app": "Travel app", "MATERIAL": "MATERYAL", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "MGA BATAYANG ISTILO AT MEDIA" }
gallery/lib/l10n/intl_fil.arb/0
{ "file_path": "gallery/lib/l10n/intl_fil.arb", "repo_id": "gallery", "token_count": 19241 }
998
{ "loading": "แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”แƒแƒ‘แƒก แƒฉแƒแƒขแƒ•แƒ˜แƒ แƒ—แƒ•แƒ", "deselect": "แƒแƒ แƒฉแƒ”แƒ•แƒ˜แƒก แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "select": "แƒแƒ แƒฉแƒ”แƒ•แƒ", "selectable": "แƒแƒ แƒฉแƒ”แƒ•แƒแƒ“แƒ˜ (แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒ˜ แƒ“แƒแƒญแƒ”แƒ แƒ)", "selected": "แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜แƒ", "demo": "แƒ“แƒ”แƒ›แƒ", "bottomAppBar": "แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒ–แƒแƒšแƒ˜", "notSelected": "แƒแƒ  แƒแƒ แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜", "demoCupertinoSearchTextFieldTitle": "แƒซแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ˜", "demoCupertinoPicker": "แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜", "demoCupertinoSearchTextFieldSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒซแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ˜", "demoCupertinoSearchTextFieldDescription": "แƒซแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ”แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒจแƒ”แƒงแƒ•แƒแƒœแƒ˜แƒ— แƒซแƒ˜แƒ”แƒ‘แƒแƒจแƒ˜, แƒกแƒ—แƒแƒ•แƒแƒ–แƒแƒ‘แƒก แƒ“แƒ แƒคแƒ˜แƒšแƒขแƒ แƒแƒ•แƒก แƒจแƒ”แƒ—แƒแƒ•แƒแƒ–แƒ”แƒ‘แƒ”แƒ‘แƒก.", "demoCupertinoSearchTextFieldPlaceholder": "แƒแƒ™แƒ แƒ˜แƒคแƒ”แƒ— แƒ แƒแƒ˜แƒ›แƒ” แƒขแƒ”แƒฅแƒกแƒขแƒ˜", "demoCupertinoScrollbarTitle": "แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoCupertinoScrollbarSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoCupertinoScrollbarDescription": "แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ”แƒฎแƒ•แƒ”แƒ•แƒ แƒฅแƒ•แƒ”-แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒก", "demoTwoPaneItem": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ {value}", "demoTwoPaneList": "แƒกแƒ˜แƒ", "demoTwoPaneFoldableLabel": "แƒ“แƒแƒกแƒแƒ™แƒ”แƒชแƒ˜", "demoTwoPaneSmallScreenLabel": "แƒžแƒแƒขแƒแƒ แƒ แƒ”แƒ™แƒ แƒแƒœแƒ˜", "demoTwoPaneSmallScreenDescription": "แƒแƒ˜, แƒ แƒแƒ’แƒแƒ  แƒ›แƒแƒ˜แƒฅแƒชแƒ”แƒ•แƒ TwoPane แƒžแƒแƒขแƒแƒ แƒ แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒแƒ‘แƒแƒ–แƒ”.", "demoTwoPaneTabletLabel": "แƒขแƒแƒ‘แƒšแƒ”แƒขแƒ˜ / แƒ“แƒ”แƒกแƒ™แƒขแƒแƒžแƒ˜", "demoTwoPaneTabletDescription": "แƒแƒ˜, แƒ แƒแƒ’แƒแƒ  แƒ›แƒแƒ˜แƒฅแƒชแƒ”แƒ•แƒ TwoPane แƒฃแƒคแƒ แƒ แƒ“แƒ˜แƒ“แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœ แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒแƒ‘แƒแƒ–แƒ”, แƒ›แƒแƒ’แƒแƒšแƒ˜แƒ—แƒแƒ“, แƒขแƒแƒ‘แƒšแƒ”แƒขแƒ–แƒ” แƒแƒœ แƒ“แƒ”แƒกแƒ™แƒขแƒแƒžแƒ–แƒ”.", "demoTwoPaneTitle": "TwoPane", "demoTwoPaneSubtitle": "แƒแƒ“แƒแƒžแƒขแƒฃแƒ แƒ˜ แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ“แƒแƒกแƒแƒ™แƒ”แƒช, แƒ“แƒ˜แƒ“ แƒ“แƒ แƒžแƒแƒขแƒแƒ แƒแƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœ แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒแƒ‘แƒ”แƒ‘แƒ–แƒ”", "splashSelectDemo": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ“แƒ”แƒ›แƒ", "demoTwoPaneFoldableDescription": "แƒแƒ˜, แƒ แƒแƒ’แƒแƒ  แƒ›แƒแƒ˜แƒฅแƒชแƒ”แƒ•แƒ TwoPane แƒ“แƒแƒกแƒแƒ™แƒ”แƒช แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒแƒ‘แƒแƒ–แƒ”.", "demoTwoPaneDetails": "แƒ“แƒ”แƒขแƒแƒšแƒ”แƒ‘แƒ˜", "demoTwoPaneSelectItem": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoTwoPaneItemDetails": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜แƒก {value} แƒ“แƒ”แƒขแƒแƒšแƒ”แƒ‘แƒ˜", "demoCupertinoContextMenuActionText": "แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒกแƒแƒœแƒแƒฎแƒแƒ•แƒแƒ“ แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒแƒ“ แƒจแƒ”แƒ”แƒฎแƒ”แƒ— Flutter-แƒ˜แƒก แƒšแƒแƒ’แƒแƒก.", "demoCupertinoContextMenuDescription": "iOS แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ แƒกแƒ แƒฃแƒš แƒ”แƒ™แƒ แƒแƒœแƒ–แƒ” แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒ›แƒแƒจแƒ˜แƒœ, แƒ แƒแƒชแƒ แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒก แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒแƒ“ แƒ“แƒแƒแƒญแƒ”แƒ แƒ”แƒœ.", "demoAppBarTitle": "แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoAppBarDescription": "แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜ แƒฃแƒ–แƒ แƒฃแƒœแƒ•แƒ”แƒšแƒงแƒแƒคแƒก แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ” แƒ”แƒ™แƒ แƒแƒœแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒกแƒ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒก. แƒ˜แƒก แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ แƒ‘แƒ แƒ”แƒœแƒ“แƒ˜แƒ แƒ”แƒ‘แƒ˜แƒก, แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒ”แƒ‘แƒ˜แƒก, แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒกแƒ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก", "demoDividerTitle": "แƒ’แƒแƒ›แƒงแƒแƒคแƒ˜", "demoDividerSubtitle": "แƒ’แƒแƒ›แƒงแƒแƒคแƒ˜ แƒ—แƒฎแƒ”แƒšแƒ˜ แƒฎแƒแƒ–แƒ˜แƒ, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒฏแƒ’แƒฃแƒคแƒ”แƒ‘แƒก แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒก แƒกแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒ“แƒ แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒ—.", "demoDividerDescription": "แƒ’แƒแƒ›แƒงแƒแƒคแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ แƒจแƒ˜แƒ’แƒ—แƒแƒ•แƒกแƒ˜แƒก แƒ’แƒแƒกแƒแƒงแƒแƒคแƒแƒ“ แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒกแƒ˜แƒ”แƒ‘แƒจแƒ˜, แƒฃแƒฏแƒ แƒ”แƒ‘แƒจแƒ˜ แƒ“แƒ แƒกแƒฃแƒ แƒ•แƒ˜แƒšแƒ˜แƒกแƒแƒ›แƒ”แƒ‘แƒ  แƒงแƒ•แƒ”แƒšแƒ’แƒแƒœ.", "demoVerticalDividerTitle": "แƒ•แƒ”แƒ แƒขแƒ˜แƒ™แƒแƒšแƒฃแƒ แƒ˜ แƒ’แƒแƒ›แƒงแƒแƒคแƒ˜", "demoCupertinoContextMenuTitle": "แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoCupertinoContextMenuSubtitle": "iOS แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoAppBarSubtitle": "แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ” แƒ”แƒ™แƒ แƒแƒœแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒกแƒ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒก", "demoCupertinoContextMenuActionOne": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜", "demoCupertinoContextMenuActionTwo": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ แƒ›แƒ”แƒแƒ แƒ”", "demoDateRangePickerDescription": "แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก Material Design-แƒ˜แƒก แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒก.", "demoDateRangePickerTitle": "แƒ—แƒแƒ แƒ˜แƒฆแƒ”แƒ‘แƒ˜แƒก แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜", "demoNavigationDrawerUserName": "แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜", "demoNavigationDrawerUserEmail": "[email protected]", "demoNavigationDrawerText": "แƒ’แƒแƒ“แƒแƒคแƒฃแƒ แƒชแƒšแƒ”แƒ— แƒ™แƒ˜แƒ“แƒ˜แƒ“แƒแƒœ แƒแƒœ แƒจแƒ”แƒ”แƒฎแƒ”แƒ— แƒ–แƒ”แƒ“แƒ แƒ›แƒแƒ แƒชแƒฎแƒ”แƒœแƒ แƒฎแƒแƒขแƒฃแƒšแƒแƒก แƒฃแƒฏแƒ แƒ˜แƒก แƒกแƒแƒœแƒแƒฎแƒแƒ•แƒแƒ“", "demoNavigationRailTitle": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒแƒ แƒฎแƒ˜", "demoNavigationRailSubtitle": "แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒแƒ แƒฎแƒ˜ แƒแƒžแƒ˜แƒก แƒจแƒ˜แƒ’แƒœแƒ˜แƒ—", "demoNavigationRailDescription": "Material แƒ•แƒ˜แƒฏแƒ”แƒขแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒก แƒแƒžแƒ˜แƒก แƒ›แƒแƒ แƒชแƒฎแƒœแƒ˜แƒ• แƒแƒœ แƒ›แƒแƒ แƒฏแƒ•แƒœแƒ˜แƒ• แƒ›แƒชแƒ˜แƒ แƒ” แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒ˜แƒ—, แƒ แƒแƒ’แƒแƒ แƒช แƒฌแƒ”แƒกแƒ˜, แƒกแƒแƒ›แƒ˜แƒ“แƒแƒœ แƒฎแƒฃแƒ—แƒแƒ›แƒ“แƒ”, แƒฎแƒ”แƒ“แƒก แƒจแƒแƒ แƒ˜แƒก แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก.", "demoNavigationRailFirst": "แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜", "demoNavigationDrawerTitle": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒฃแƒฏแƒ แƒ", "demoNavigationRailThird": "แƒ›แƒ”แƒกแƒแƒ›แƒ”", "replyStarredLabel": "แƒ•แƒแƒ แƒกแƒ™แƒ•แƒšแƒแƒ•แƒ˜แƒ— แƒ›แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜", "demoTextButtonDescription": "แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒกแƒแƒก แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ›แƒ”แƒšแƒœแƒ˜แƒก แƒจแƒฎแƒ”แƒคแƒ”แƒ‘แƒก, แƒ›แƒแƒ’แƒ แƒแƒ› แƒแƒ  แƒแƒ›แƒแƒ˜แƒฌแƒ”แƒ•แƒ. แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒฎแƒ”แƒšแƒกแƒแƒฌแƒงแƒแƒ—แƒ แƒ–แƒแƒšแƒ”แƒ‘แƒจแƒ˜, แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ”แƒ‘แƒจแƒ˜ แƒ“แƒ แƒฉแƒแƒ แƒ—แƒฃแƒš แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒจแƒ˜ แƒจแƒ”แƒ•แƒกแƒ”แƒ‘แƒ˜แƒ—", "demoElevatedButtonTitle": "แƒแƒ›แƒแƒฌแƒ”แƒฃแƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoElevatedButtonDescription": "แƒแƒ›แƒแƒฌแƒ”แƒฃแƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒ‘แƒ แƒขแƒงแƒ”แƒš แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ”แƒ‘แƒก แƒฃแƒคแƒ แƒ แƒ›แƒแƒชแƒฃแƒšแƒแƒ‘แƒ˜แƒ—แƒก แƒฎแƒ“แƒ˜แƒก. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ”แƒ‘แƒก แƒฃแƒคแƒ แƒ แƒจแƒ”แƒกแƒแƒ›แƒฉแƒœแƒ”แƒ•แƒก แƒฎแƒ“แƒ˜แƒแƒœ แƒ’แƒแƒ“แƒแƒขแƒ•แƒ˜แƒ แƒ—แƒฃแƒš แƒแƒœ แƒคแƒแƒ แƒ—แƒ แƒกแƒ˜แƒ•แƒ แƒชแƒ”แƒ”แƒ‘แƒ–แƒ”.", "demoOutlinedButtonTitle": "แƒ™แƒแƒœแƒขแƒฃแƒ แƒ˜แƒแƒœแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoOutlinedButtonDescription": "แƒ™แƒแƒœแƒขแƒฃแƒ แƒ˜แƒแƒœ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ–แƒ” แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒกแƒแƒก แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฎแƒ“แƒ”แƒ‘แƒ แƒ’แƒแƒฃแƒ›แƒญแƒ•แƒ˜แƒ แƒ•แƒแƒšแƒ” แƒ“แƒ แƒแƒ›แƒแƒ˜แƒฌแƒ”แƒ•แƒ. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฎแƒจแƒ˜แƒ แƒแƒ“ แƒฌแƒงแƒ•แƒ˜แƒšแƒ“แƒ”แƒ‘แƒ แƒแƒ›แƒแƒฌแƒ”แƒฃแƒš แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ—แƒแƒœ แƒแƒšแƒขแƒ”แƒ แƒœแƒแƒขแƒ˜แƒฃแƒšแƒ˜, แƒ›แƒ”แƒแƒ แƒ”แƒฃแƒšแƒ˜ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒšแƒแƒ“.", "demoContainerTransformDemoInstructions": "แƒ‘แƒแƒ แƒแƒ—แƒ”แƒ‘แƒ˜, แƒกแƒ˜แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoNavigationDrawerSubtitle": "แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ แƒฃแƒฏแƒ แƒ แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒจแƒ˜", "replyDescription": "แƒ”แƒšแƒคแƒแƒกแƒขแƒ˜แƒก แƒ”แƒคแƒ”แƒฅแƒขแƒฃแƒ แƒ˜, แƒคแƒแƒ™แƒฃแƒกแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒžแƒ˜", "demoNavigationDrawerDescription": "Material Design-แƒ˜แƒก แƒแƒ แƒ”, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ’แƒแƒกแƒ แƒ˜แƒแƒšแƒ“แƒ”แƒ‘แƒ แƒฐแƒแƒ แƒ˜แƒ–แƒแƒœแƒขแƒแƒšแƒฃแƒ แƒแƒ“ แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒ™แƒ˜แƒ“แƒ˜แƒ“แƒแƒœ แƒจแƒ˜แƒ’แƒœแƒ˜แƒ— แƒ“แƒ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒแƒžแƒšแƒ˜แƒ™แƒแƒชแƒ˜แƒแƒจแƒ˜ แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒš แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒ‘แƒ›แƒฃแƒšแƒ”แƒ‘แƒก.", "replyDraftsLabel": "แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ”แƒ‘แƒ˜", "demoNavigationDrawerToPageOne": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒ”แƒ แƒ—แƒ˜", "replyInboxLabel": "แƒจแƒ”แƒ›แƒแƒกแƒฃแƒšแƒ”แƒ‘แƒ˜", "demoSharedXAxisDemoInstructions": "แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ โ€žแƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜โ€œ แƒ“แƒ โ€žแƒฃแƒ™แƒแƒœโ€œ", "replySpamLabel": "แƒกแƒžแƒแƒ›แƒ˜", "replyTrashLabel": "แƒฌแƒแƒจแƒšแƒ˜แƒšแƒ”แƒ‘แƒ˜", "replySentLabel": "แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ˜แƒšแƒ”แƒ‘แƒ˜", "demoNavigationRailSecond": "แƒ›แƒ”แƒแƒ แƒ”", "demoNavigationDrawerToPageTwo": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒแƒ แƒ˜", "demoFadeScaleDemoInstructions": "แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜ แƒคแƒแƒœแƒฏแƒแƒ แƒ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoFadeThroughDemoInstructions": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒฌแƒ˜แƒšแƒจแƒ˜", "demoSharedZAxisDemoInstructions": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒฎแƒแƒขแƒฃแƒšแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoSharedYAxisDemoInstructions": "แƒ“แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ แƒžแƒ แƒ˜แƒœแƒชแƒ˜แƒžแƒ˜แƒ— โ€žแƒชแƒแƒขแƒ แƒฎแƒœแƒ˜แƒก แƒฌแƒ˜แƒœ แƒ“แƒแƒ™แƒ แƒฃแƒšแƒ˜โ€œ", "demoTextButtonTitle": "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoSharedZAxisBeefSandwichRecipeTitle": "แƒกแƒแƒฅแƒแƒœแƒšแƒ˜แƒก แƒฎแƒแƒ แƒชแƒ˜แƒก แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜", "demoSharedZAxisDessertRecipeDescription": "แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedYAxisAlbumTileSubtitle": "แƒ›แƒฃแƒกแƒ˜แƒ™แƒแƒกแƒ˜", "demoSharedYAxisAlbumTileTitle": "แƒแƒšแƒ‘แƒแƒ›แƒ˜", "demoSharedYAxisRecentSortTitle": "แƒชแƒแƒขแƒ แƒฎแƒœแƒ˜แƒก แƒฌแƒ˜แƒœ แƒ“แƒแƒ™แƒ แƒฃแƒšแƒ˜", "demoSharedYAxisAlphabeticalSortTitle": "แƒ-แƒฐ", "demoSharedYAxisAlbumCount": "268 แƒแƒšแƒ‘แƒแƒ›แƒ˜", "demoSharedYAxisTitle": "แƒกแƒแƒ–แƒ˜แƒแƒ แƒ y-แƒฆแƒ”แƒ แƒซแƒ˜", "demoSharedXAxisCreateAccountButtonText": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒจแƒ”แƒฅแƒ›แƒœแƒ", "demoFadeScaleAlertDialogDiscardButton": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "demoSharedXAxisSignInTextFieldLabel": "แƒ”แƒšแƒคแƒแƒกแƒขแƒ แƒแƒœ แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜แƒก แƒœแƒแƒ›แƒ”แƒ แƒ˜", "demoSharedXAxisSignInSubtitleText": "แƒจแƒ”แƒ“แƒ˜แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒจแƒ˜", "demoSharedXAxisSignInWelcomeText": "แƒ’แƒแƒ›แƒแƒ แƒฏแƒแƒ‘แƒ, David Park", "demoSharedXAxisIndividualCourseSubtitle": "แƒ˜แƒœแƒ“แƒ˜แƒ•แƒ˜แƒ“แƒฃแƒแƒšแƒฃแƒ แƒแƒ“ แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜", "demoSharedXAxisBundledCourseSubtitle": "แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒ—", "demoFadeThroughAlbumsDestination": "แƒแƒšแƒ‘แƒแƒ›แƒ”แƒ‘แƒ˜", "demoSharedXAxisDesignCourseTitle": "แƒ“แƒ˜แƒ–แƒแƒ˜แƒœแƒ˜", "demoSharedXAxisIllustrationCourseTitle": "แƒ˜แƒšแƒฃแƒกแƒขแƒ แƒแƒชแƒ˜แƒ", "demoSharedXAxisBusinessCourseTitle": "แƒ‘แƒ˜แƒ–แƒœแƒ”แƒกแƒ˜", "demoSharedXAxisArtsAndCraftsCourseTitle": "แƒฎแƒ”แƒšแƒแƒ•แƒœแƒ”แƒ‘แƒ แƒ“แƒ แƒฎแƒ”แƒšแƒแƒ‘แƒ", "demoMotionPlaceholderSubtitle": "แƒ“แƒแƒ›แƒฎแƒ›แƒแƒ แƒ” แƒขแƒ”แƒฅแƒกแƒขแƒ˜", "demoFadeScaleAlertDialogCancelButton": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "demoFadeScaleAlertDialogHeader": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒ˜แƒแƒšแƒแƒ’แƒฃแƒ แƒ˜ แƒคแƒแƒœแƒฏแƒแƒ แƒ", "demoFadeScaleHideFabButton": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜แƒก แƒ“แƒแƒ›แƒแƒšแƒ•แƒ", "demoFadeScaleShowFabButton": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "demoFadeScaleShowAlertDialogButton": "แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "demoFadeScaleDescription": "แƒ›แƒ˜แƒšแƒ”แƒ•แƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ UI-แƒ˜แƒก แƒ˜แƒ› แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒก แƒจแƒแƒ แƒ˜แƒก แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒจแƒ”แƒ›แƒแƒ“แƒ˜แƒก แƒแƒœ แƒ’แƒแƒ“แƒ˜แƒก แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒ™แƒ˜แƒ“แƒ”แƒ”แƒ‘แƒ˜แƒก แƒคแƒแƒ แƒ’แƒšแƒ”แƒ‘แƒจแƒ˜, แƒ›แƒแƒ’แƒแƒšแƒ˜แƒ—แƒแƒ“, แƒ“แƒ˜แƒแƒšแƒแƒ’แƒฃแƒ แƒ˜ แƒคแƒแƒœแƒฏแƒแƒ แƒ, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒชแƒ”แƒœแƒขแƒ แƒจแƒ˜ แƒ›แƒ˜แƒ˜แƒšแƒ”แƒ•แƒ.", "demoFadeScaleTitle": "แƒ›แƒ˜แƒšแƒ”แƒ•แƒ", "demoFadeThroughTextPlaceholder": "123 แƒคแƒแƒขแƒ", "demoFadeThroughSearchDestination": "แƒซแƒ˜แƒ”แƒ‘แƒ", "demoFadeThroughPhotosDestination": "แƒคแƒแƒขแƒแƒ”แƒ‘แƒ˜", "demoSharedXAxisCoursePageSubtitle": "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒแƒ แƒฎแƒจแƒ˜ แƒฏแƒ’แƒฃแƒคแƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒ— แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ. แƒแƒ›แƒ˜แƒก แƒจแƒ”แƒชแƒ•แƒšแƒ แƒงแƒแƒ•แƒ”แƒšแƒ—แƒ•แƒ˜แƒก แƒจแƒ”แƒ’แƒ˜แƒซแƒšแƒ˜แƒแƒ—.", "demoFadeThroughDescription": "แƒฉแƒแƒ‘แƒœแƒ”แƒšแƒ”แƒ‘แƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ UI-แƒ˜แƒก แƒ˜แƒ› แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒก แƒจแƒแƒ แƒ˜แƒก แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒกแƒแƒช แƒ”แƒ แƒ—แƒ›แƒแƒœแƒ”แƒ—แƒ—แƒแƒœ แƒซแƒšแƒ˜แƒ”แƒ แƒ˜ แƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ˜ แƒแƒ  แƒแƒฅแƒ•แƒ—.", "demoFadeThroughTitle": "แƒฉแƒแƒ‘แƒœแƒ”แƒšแƒ”แƒ‘แƒ", "demoSharedZAxisHelpSettingLabel": "แƒ“แƒแƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ", "demoMotionSubtitle": "แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ˜แƒก แƒงแƒ•แƒ”แƒšแƒ แƒฌแƒ˜แƒœแƒแƒกแƒฌแƒแƒ  แƒ’แƒแƒœแƒแƒกแƒแƒ–แƒฆแƒ•แƒ แƒฃแƒšแƒ˜ แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜", "demoSharedZAxisNotificationSettingLabel": "แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "demoSharedZAxisProfileSettingLabel": "แƒžแƒ แƒแƒคแƒ˜แƒšแƒ˜", "demoSharedZAxisSavedRecipesListTitle": "แƒจแƒ”แƒœแƒแƒฎแƒฃแƒšแƒ˜ แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ”แƒ‘แƒ˜", "demoSharedZAxisBeefSandwichRecipeDescription": "แƒกแƒแƒฅแƒแƒœแƒšแƒ˜แƒก แƒฎแƒแƒ แƒชแƒ˜แƒก แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedZAxisCrabPlateRecipeDescription": "แƒ™แƒ˜แƒ‘แƒแƒ แƒฉแƒฎแƒแƒšแƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedXAxisCoursePageTitle": "แƒ›แƒแƒแƒฎแƒ“แƒ˜แƒœแƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ™แƒฃแƒ แƒกแƒ”แƒ‘แƒ˜แƒก แƒแƒžแƒขแƒ˜แƒ›แƒ˜แƒ–แƒแƒชแƒ˜แƒ", "demoSharedZAxisCrabPlateRecipeTitle": "แƒ™แƒ˜แƒ‘แƒแƒ แƒฉแƒฎแƒแƒšแƒ", "demoSharedZAxisShrimpPlateRecipeDescription": "แƒ™แƒ แƒ”แƒ•แƒ”แƒขแƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedZAxisShrimpPlateRecipeTitle": "แƒ™แƒ แƒ”แƒ•แƒ”แƒขแƒ˜", "demoContainerTransformTypeFadeThrough": "แƒฉแƒแƒ‘แƒœแƒ”แƒšแƒ”แƒ‘แƒ", "demoSharedZAxisDessertRecipeTitle": "แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜", "demoSharedZAxisSandwichRecipeDescription": "แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedZAxisSandwichRecipeTitle": "แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜", "demoSharedZAxisBurgerRecipeDescription": "แƒ‘แƒฃแƒ แƒ’แƒ”แƒ แƒ˜แƒก แƒ แƒ”แƒชแƒ”แƒžแƒขแƒ˜", "demoSharedZAxisBurgerRecipeTitle": "แƒ‘แƒฃแƒ แƒ’แƒ”แƒ แƒ˜", "demoSharedZAxisSettingsPageTitle": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "demoSharedZAxisTitle": "แƒกแƒแƒ–แƒ˜แƒแƒ แƒ z-แƒฆแƒ”แƒ แƒซแƒ˜", "demoSharedZAxisPrivacySettingLabel": "แƒ™แƒแƒœแƒคแƒ˜แƒ“แƒ”แƒœแƒชแƒ˜แƒแƒšแƒฃแƒ แƒแƒ‘แƒ", "demoMotionTitle": "แƒ›แƒแƒซแƒ แƒแƒแƒ‘แƒ", "demoContainerTransformTitle": "แƒ™แƒแƒœแƒขแƒ”แƒ˜แƒœแƒ”แƒ แƒ˜แƒก แƒ’แƒแƒ แƒ“แƒแƒฅแƒ›แƒœแƒ", "demoContainerTransformDescription": "แƒ™แƒแƒœแƒขแƒ”แƒ˜แƒœแƒ”แƒ แƒ˜แƒก แƒ’แƒแƒ แƒ“แƒแƒฅแƒ›แƒœแƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜ แƒจแƒ”แƒฅแƒ›แƒœแƒ˜แƒšแƒ˜แƒ UI-แƒ˜แƒก แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒก แƒจแƒแƒ แƒ˜แƒก แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒ™แƒแƒœแƒขแƒ”แƒ˜แƒœแƒ”แƒ แƒก แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก. แƒ”แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜ แƒฎแƒ˜แƒšแƒฃแƒš แƒ™แƒแƒ•แƒจแƒ˜แƒ แƒก แƒแƒ›แƒงแƒแƒ แƒ”แƒ‘แƒก UI-แƒ˜แƒก แƒแƒ  แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒก แƒจแƒแƒ แƒ˜แƒก", "demoContainerTransformModalBottomSheetTitle": "แƒ›แƒ˜แƒšแƒ”แƒ•แƒ˜แƒก แƒ แƒ”แƒŸแƒ˜แƒ›แƒ˜", "demoContainerTransformTypeFade": "แƒ›แƒ˜แƒšแƒ”แƒ•แƒ", "demoSharedYAxisAlbumTileDurationUnit": "แƒฌแƒ—", "demoMotionPlaceholderTitle": "แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜", "demoSharedXAxisForgotEmailButtonText": "แƒ“แƒแƒ’แƒแƒ•แƒ˜แƒฌแƒงแƒ“แƒแƒ— แƒ”แƒšแƒคแƒแƒกแƒขแƒ?", "demoMotionSmallPlaceholderSubtitle": "แƒ“แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”", "demoMotionDetailsPageTitle": "แƒ“แƒ”แƒขแƒแƒšแƒ”แƒ‘แƒ˜แƒก แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜", "demoMotionListTileTitle": "แƒกแƒ˜แƒ˜แƒก แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoSharedAxisDescription": "แƒกแƒแƒ–แƒ˜แƒแƒ แƒ แƒฆแƒ”แƒ แƒซแƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ UI-แƒ˜แƒก แƒ˜แƒ› แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒก แƒจแƒแƒ แƒ˜แƒก แƒ’แƒแƒ“แƒแƒกแƒ•แƒšแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒกแƒแƒช แƒกแƒ˜แƒ•แƒ แƒชแƒฃแƒšแƒ˜ แƒแƒœ แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒฃแƒ แƒ˜ แƒฃแƒ แƒ—แƒ˜แƒ”แƒ แƒ—แƒแƒ‘แƒ แƒแƒฅแƒ•แƒ—. แƒ”แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ˜, แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒก แƒจแƒแƒ แƒ˜แƒก แƒฃแƒ แƒ—แƒ˜แƒ”แƒ แƒ—แƒแƒ‘แƒ˜แƒก แƒ’แƒแƒกแƒแƒซแƒšแƒ˜แƒ”แƒ แƒ”แƒ‘แƒšแƒแƒ“, แƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒก แƒกแƒแƒ–แƒ˜แƒแƒ แƒ แƒ’แƒแƒ แƒ“แƒแƒฅแƒ›แƒœแƒแƒก x, y แƒแƒœ z แƒฆแƒ”แƒ แƒซแƒ–แƒ”.", "demoSharedXAxisTitle": "แƒกแƒแƒ–แƒ˜แƒแƒ แƒ x-แƒฆแƒ”แƒ แƒซแƒ˜", "demoSharedXAxisBackButtonText": "แƒฃแƒ™แƒแƒœ", "demoSharedXAxisNextButtonText": "แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜", "demoSharedXAxisCulinaryCourseTitle": "แƒ™แƒฃแƒšแƒ˜แƒœแƒแƒ แƒ˜แƒ", "githubRepo": "{repoName} GitHub แƒกแƒแƒชแƒแƒ•แƒ˜", "fortnightlyMenuUS": "แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "fortnightlyMenuBusiness": "แƒ‘แƒ˜แƒ–แƒœแƒ”แƒกแƒ˜", "fortnightlyMenuScience": "แƒ›แƒ”แƒชแƒœแƒ˜แƒ”แƒ แƒ”แƒ‘แƒ", "fortnightlyMenuSports": "แƒกแƒžแƒแƒ แƒขแƒ˜", "fortnightlyMenuTravel": "แƒ›แƒแƒ’แƒ–แƒแƒฃแƒ แƒแƒ‘แƒ", "fortnightlyMenuCulture": "แƒ™แƒฃแƒšแƒขแƒฃแƒ แƒ", "fortnightlyTrendingTechDesign": "TechDesign", "rallyBudgetDetailAmountLeft": "แƒ“แƒแƒ แƒฉแƒ”แƒœแƒ˜แƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ", "fortnightlyHeadlineArmy": "แƒ›แƒฌแƒ•แƒแƒœแƒ” แƒแƒ แƒ›แƒ˜แƒ˜แƒก แƒ แƒ”แƒคแƒแƒ แƒ›แƒ แƒจแƒ˜แƒ’แƒœแƒ˜แƒ“แƒแƒœ", "fortnightlyDescription": "แƒแƒฎแƒแƒšแƒ˜ แƒแƒ›แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ–แƒ” แƒแƒ แƒ˜แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒžแƒ˜", "rallyBillDetailAmountDue": "แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒ“แƒ”แƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ", "rallyBudgetDetailTotalCap": "แƒฏแƒแƒ›แƒฃแƒ แƒ˜ แƒ™แƒแƒžแƒ˜แƒขแƒแƒšแƒ˜แƒ–แƒแƒชแƒ˜แƒ", "rallyBudgetDetailAmountUsed": "แƒ“แƒแƒฎแƒแƒ แƒฏแƒฃแƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ", "fortnightlyTrendingHealthcareRevolution": "HealthcareRevolution", "fortnightlyMenuFrontPage": "แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜ แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜", "fortnightlyMenuWorld": "แƒ›แƒกแƒแƒคแƒšแƒ˜แƒ", "rallyBillDetailAmountPaid": "แƒ’แƒแƒ“แƒแƒฎแƒ“แƒ˜แƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ", "fortnightlyMenuPolitics": "แƒžแƒแƒšแƒ˜แƒขแƒ˜แƒ™แƒ", "fortnightlyHeadlineBees": "แƒคแƒ”แƒ แƒ›แƒ”แƒ‘แƒจแƒ˜ แƒคแƒฃแƒขแƒ™แƒ แƒ”แƒ‘แƒ˜แƒก แƒ“แƒ”แƒคแƒ˜แƒชแƒ˜แƒขแƒ˜แƒ", "fortnightlyHeadlineGasoline": "แƒ‘แƒ”แƒœแƒ–แƒ˜แƒœแƒ˜แƒก แƒ›แƒแƒ›แƒแƒ•แƒแƒšแƒ˜", "fortnightlyTrendingGreenArmy": "GreenArmy", "fortnightlyHeadlineFeminists": "แƒคแƒ”แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ”แƒ‘แƒ˜ แƒžแƒแƒ แƒขแƒ˜แƒ–แƒแƒœแƒแƒ‘แƒแƒก แƒ˜แƒฌแƒงแƒ”แƒ‘แƒ”แƒœ", "fortnightlyHeadlineFabrics": "แƒ“แƒ˜แƒ–แƒแƒ˜แƒœแƒ”แƒ แƒ”แƒ‘แƒ˜ แƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ”แƒœ แƒขแƒ”แƒฅแƒœแƒแƒšแƒแƒ’แƒ˜แƒ”แƒ‘แƒก แƒคแƒฃแƒขแƒฃแƒ แƒ˜แƒกแƒขแƒฃแƒšแƒ˜ แƒฅแƒกแƒแƒ•แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒกแƒแƒ›แƒ–แƒแƒ“แƒ”แƒ‘แƒšแƒแƒ“", "fortnightlyHeadlineStocks": "แƒแƒฅแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒกแƒขแƒแƒ’แƒœแƒแƒชแƒ˜แƒ˜แƒก แƒžแƒ”แƒ แƒ˜แƒแƒ“แƒจแƒ˜ แƒ‘แƒ”แƒ•แƒ แƒ˜ แƒ•แƒแƒšแƒฃแƒขแƒแƒก แƒฃแƒ‘แƒ แƒฃแƒœแƒ“แƒ”แƒ‘แƒ", "fortnightlyTrendingReform": "Reform", "fortnightlyMenuTech": "แƒขแƒ”แƒฅแƒœแƒแƒšแƒแƒ’แƒ˜แƒ", "fortnightlyHeadlineWar": "แƒแƒ›แƒ”แƒ แƒ˜แƒ™แƒ”แƒšแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒฎแƒšแƒ”แƒฉแƒ˜แƒšแƒ˜ แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒแƒ›แƒ˜แƒก แƒžแƒ”แƒ แƒ˜แƒแƒ“แƒจแƒ˜", "fortnightlyHeadlineHealthcare": "แƒฌแƒงแƒœแƒแƒ แƒ˜, แƒ›แƒแƒ’แƒ แƒแƒ› แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ•แƒแƒœแƒ˜ แƒ แƒ”แƒ•แƒแƒšแƒฃแƒชแƒ˜แƒ แƒฏแƒแƒœแƒ“แƒแƒชแƒ•แƒแƒจแƒ˜", "fortnightlyLatestUpdates": "แƒ‘แƒแƒšแƒ แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "fortnightlyTrendingStocks": "Stocks", "rallyBillDetailTotalAmount": "แƒฏแƒแƒ›แƒฃแƒ แƒ˜ แƒ—แƒแƒœแƒฎแƒ", "demoCupertinoPickerDateTime": "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜ แƒ“แƒ แƒ“แƒ แƒ", "signIn": "แƒจแƒ”แƒกแƒ•แƒšแƒ", "dataTableRowWithSugar": "{value} แƒจแƒแƒฅแƒ แƒ˜แƒ—", "dataTableRowApplePie": "แƒ•แƒแƒจแƒšแƒ˜แƒก แƒฆแƒ•แƒ”แƒ–แƒ”แƒšแƒ˜", "dataTableRowDonut": "แƒ“แƒแƒœแƒแƒขแƒ˜", "dataTableRowHoneycomb": "แƒคแƒ˜แƒญแƒ", "dataTableRowLollipop": "แƒจแƒแƒฅแƒแƒ แƒงแƒ˜แƒœแƒฃแƒšแƒ˜", "dataTableRowJellyBean": "แƒŸแƒ”แƒšแƒ˜แƒ‘แƒแƒœแƒ˜", "dataTableRowGingerbread": "แƒฏแƒแƒœแƒฏแƒแƒคแƒ˜แƒšแƒ˜แƒก แƒ—แƒแƒคแƒšแƒแƒ™แƒ•แƒ”แƒ แƒ˜", "dataTableRowCupcake": "แƒฅแƒแƒคแƒฅแƒ”แƒ˜แƒฅแƒ˜", "dataTableRowEclair": "แƒ”แƒ™แƒšแƒ”แƒ แƒ˜", "dataTableRowIceCreamSandwich": "แƒœแƒแƒงแƒ˜แƒœแƒ˜แƒก แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜", "dataTableRowFrozenYogurt": "แƒ’แƒแƒงแƒ˜แƒœแƒฃแƒšแƒ˜ แƒ˜แƒแƒ’แƒฃแƒ แƒขแƒ˜", "dataTableColumnIron": "แƒ แƒ™แƒ˜แƒœแƒ (%)", "dataTableColumnCalcium": "แƒ™แƒแƒšแƒชแƒ˜แƒฃแƒ›แƒ˜ (%)", "dataTableColumnSodium": "แƒœแƒแƒขแƒ แƒฃแƒ˜แƒ›แƒ˜ (แƒ›แƒ’)", "demoTimePickerTitle": "แƒ“แƒ แƒแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜", "demo2dTransformationsResetTooltip": "แƒ’แƒแƒ แƒ“แƒแƒฅแƒ›แƒœแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ“แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ", "dataTableColumnFat": "แƒชแƒฎแƒ˜แƒ›แƒ˜ (แƒ’)", "dataTableColumnCalories": "แƒ™แƒแƒšแƒแƒ แƒ˜แƒ”แƒ‘แƒ˜", "dataTableColumnDessert": "แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜ (1 แƒžแƒแƒ แƒชแƒ˜แƒ)", "cardsDemoTravelDestinationLocation1": "แƒขแƒแƒœแƒฏแƒแƒ•แƒฃแƒ แƒ˜, แƒขแƒแƒ›แƒ˜แƒšแƒœแƒแƒ“แƒฃ", "demoTimePickerDescription": "แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก แƒ›แƒแƒกแƒแƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒ˜แƒ–แƒแƒ˜แƒœแƒ˜แƒก แƒ“แƒ แƒแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒก.", "demoPickersShowPicker": "แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "demoTabsScrollingTitle": "แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒแƒ“แƒ˜", "demoTabsNonScrollingTitle": "แƒแƒ แƒแƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒแƒ“แƒ˜", "craneHours": "{hours,plural,=1{1 แƒกแƒ—}other{{hours} แƒกแƒ—}}", "craneMinutes": "{minutes,plural,=1{1 แƒฌแƒ—}other{{minutes} แƒฌแƒ—}}", "craneFlightDuration": "{hoursShortForm} {minutesShortForm}", "dataTableHeader": "แƒ™แƒ•แƒ”แƒ‘แƒ", "demoDatePickerTitle": "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜", "demoPickersSubtitle": "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒกแƒ แƒ“แƒ แƒ“แƒ แƒแƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ", "demoPickersTitle": "แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ”แƒ‘แƒ˜", "demo2dTransformationsEditTooltip": "แƒ‘แƒšแƒแƒ™แƒ˜แƒก แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ", "demoDataTableDescription": "แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ—แƒ แƒชแƒฎแƒ แƒ˜แƒšแƒ”แƒ‘แƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒ‘แƒแƒ“แƒ˜แƒกแƒ”แƒ‘แƒฃแƒ  แƒคแƒแƒ แƒ›แƒแƒขแƒจแƒ˜, แƒ›แƒฌแƒ™แƒ แƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒ— แƒ“แƒ แƒกแƒ•แƒ”แƒขแƒ”แƒ‘แƒ˜แƒ—. แƒ›แƒแƒ—แƒจแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ แƒ˜แƒกแƒ”แƒ แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜, แƒ แƒแƒ› แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜แƒ แƒกแƒ™แƒแƒœแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ“แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒœแƒ˜แƒ›แƒฃแƒจแƒ”แƒ‘แƒ˜แƒกแƒ แƒ“แƒ แƒแƒœแƒแƒšแƒ˜แƒ–แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ.", "demo2dTransformationsDescription": "แƒจแƒ”แƒ”แƒฎแƒ”แƒ— แƒ‘แƒšแƒแƒ™แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒกแƒแƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒšแƒแƒ“ แƒ“แƒ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— แƒŸแƒ”แƒกแƒขแƒ”แƒ‘แƒ˜ แƒกแƒชแƒ”แƒœแƒ˜แƒก แƒคแƒแƒ แƒ’แƒšแƒ”แƒ‘แƒจแƒ˜ แƒ’แƒแƒ“แƒแƒกแƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒšแƒแƒ“. แƒžแƒแƒœแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒฉแƒแƒแƒ•แƒšแƒ”แƒ—, แƒ›แƒแƒกแƒจแƒขแƒแƒ‘แƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ—แƒ˜แƒ—แƒ”แƒ‘แƒ˜แƒ— แƒ›แƒแƒฃแƒญแƒ˜แƒ แƒ”แƒ—, แƒจแƒ”แƒแƒขแƒ แƒ˜แƒแƒšแƒ”แƒ— แƒแƒ แƒ˜ แƒ—แƒ˜แƒ—แƒ˜แƒ—. แƒกแƒแƒฌแƒงแƒ˜แƒก แƒแƒ แƒ˜แƒ”แƒœแƒขแƒแƒชแƒ˜แƒแƒ–แƒ” แƒ“แƒแƒกแƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒšแƒแƒ“ แƒ“แƒแƒแƒญแƒ˜แƒ แƒ”แƒ— แƒ’แƒแƒ“แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒก.", "demo2dTransformationsSubtitle": "แƒžแƒแƒœแƒ˜แƒ แƒ”แƒ‘แƒ, แƒ›แƒแƒกแƒจแƒขแƒแƒ‘แƒ˜แƒ แƒ”แƒ‘แƒ, แƒจแƒ”แƒขแƒ แƒ˜แƒแƒšแƒ”แƒ‘แƒ", "demo2dTransformationsTitle": "2D แƒ’แƒแƒ แƒ“แƒแƒฅแƒ›แƒœแƒ”แƒ‘แƒ˜", "demoCupertinoTextFieldPIN": "PIN-แƒ™แƒแƒ“แƒ˜", "demoCupertinoTextFieldDescription": "แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก, แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒแƒก แƒขแƒ”แƒฅแƒกแƒขแƒ˜, แƒ แƒแƒ’แƒแƒ แƒช แƒแƒžแƒแƒ แƒแƒขแƒฃแƒ แƒฃแƒšแƒ˜ แƒ™แƒšแƒแƒ•แƒ˜แƒแƒขแƒฃแƒ แƒ˜แƒ—, แƒ˜แƒกแƒ” แƒ”แƒ™แƒ แƒแƒœแƒฃแƒšแƒ˜ แƒ™แƒšแƒแƒ•แƒ˜แƒแƒขแƒฃแƒ แƒ˜แƒ—.", "demoCupertinoTextFieldSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "demoCupertinoTextFieldTitle": "แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "demoDatePickerDescription": "แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก แƒ›แƒแƒกแƒแƒšแƒ”แƒ‘แƒ˜แƒก แƒ“แƒ˜แƒ–แƒแƒ˜แƒœแƒ˜แƒก แƒ—แƒแƒ แƒ˜แƒฆแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒก.", "demoCupertinoPickerTime": "แƒ“แƒ แƒ", "demoCupertinoPickerDate": "แƒ—แƒแƒ แƒ˜แƒฆแƒ˜", "demoCupertinoPickerTimer": "แƒขแƒแƒ˜แƒ›แƒ”แƒ แƒ˜", "demoCupertinoPickerDescription": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜ แƒ•แƒ˜แƒฏแƒ”แƒขแƒ˜, แƒ แƒแƒ›แƒšแƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒแƒช แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ—แƒแƒ แƒ˜แƒฆแƒ”แƒ‘แƒ˜แƒก, แƒ“แƒ แƒแƒ”แƒ‘แƒ˜แƒก แƒแƒœ แƒแƒ แƒ˜แƒ•แƒ”แƒก แƒแƒกแƒแƒ แƒฉแƒ”แƒ•แƒแƒ“.", "demoCupertinoPickerSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ˜", "demoCupertinoPickerTitle": "แƒแƒ›แƒแƒ›แƒ แƒฉแƒ”แƒ•แƒ”แƒ‘แƒ˜", "dataTableRowWithHoney": "{value} แƒ—แƒแƒคแƒšแƒ˜แƒ—", "cardsDemoTravelDestinationCity2": "แƒฉแƒ”แƒขแƒ˜แƒœแƒแƒ“แƒ˜", "bannerDemoResetText": "แƒ‘แƒแƒœแƒ”แƒ แƒ˜แƒก แƒ’แƒแƒ“แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ", "bannerDemoMultipleText": "แƒ›แƒ แƒแƒ•แƒšแƒแƒ‘แƒ˜แƒ—แƒ˜ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ", "bannerDemoLeadingText": "แƒฌแƒแƒ›แƒงแƒ•แƒแƒœแƒ˜ แƒฎแƒแƒขแƒฃแƒšแƒ", "dismiss": "แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ", "cardsDemoTappable": "แƒจแƒ”แƒฎแƒ”แƒ‘แƒแƒ“แƒ˜", "cardsDemoSelectable": "แƒแƒ แƒฉแƒ”แƒ•แƒแƒ“แƒ˜ (แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒ˜ แƒ“แƒแƒญแƒ”แƒ แƒ)", "cardsDemoExplore": "แƒ’แƒแƒชแƒœแƒแƒ‘แƒ", "cardsDemoExploreSemantics": "แƒ’แƒแƒ˜แƒชแƒแƒœแƒ˜แƒ— {destinationName}", "cardsDemoShareSemantics": "แƒ’แƒแƒแƒ–แƒ˜แƒแƒ แƒ”แƒ— {destinationName}", "cardsDemoTravelDestinationTitle1": "10 แƒฅแƒแƒšแƒแƒฅแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒขแƒแƒ›แƒ˜แƒšแƒœแƒแƒ“แƒฃแƒจแƒ˜ แƒฃแƒœแƒ“แƒ แƒ›แƒแƒ˜แƒœแƒแƒฎแƒฃแƒšแƒแƒ—", "cardsDemoTravelDestinationDescription1": "แƒœแƒแƒ›แƒ”แƒ แƒ˜ 10", "cardsDemoTravelDestinationCity1": "แƒขแƒแƒœแƒฏแƒแƒ•แƒฃแƒ แƒ˜", "dataTableColumnProtein": "แƒชแƒ˜แƒšแƒ (แƒ’)", "cardsDemoTravelDestinationTitle2": "แƒกแƒแƒ›แƒฎแƒ แƒ”แƒ— แƒ˜แƒœแƒ“แƒแƒ”แƒ—แƒ˜แƒก แƒฎแƒ”แƒšแƒแƒกแƒœแƒ”แƒ‘แƒ˜", "cardsDemoTravelDestinationDescription2": "แƒแƒ‘แƒ แƒ”แƒจแƒฃแƒ›แƒ˜แƒก แƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "bannerDemoText": "แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒžแƒแƒ แƒแƒšแƒ˜ แƒ’แƒแƒœแƒแƒฎแƒšแƒ“แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒกแƒฎแƒ•แƒ แƒ›แƒแƒฌแƒงแƒแƒ‘แƒ˜แƒšแƒแƒ‘แƒแƒ–แƒ”. แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒจแƒ”แƒฎแƒ•แƒ˜แƒ“แƒ”แƒ— แƒฎแƒ”แƒšแƒแƒฎแƒšแƒ.", "cardsDemoTravelDestinationLocation2": "แƒกแƒ˜แƒ•แƒแƒ’แƒแƒœแƒ’แƒ, แƒขแƒแƒ›แƒ˜แƒšแƒœแƒแƒ“แƒฃ", "cardsDemoTravelDestinationTitle3": "แƒ‘แƒ แƒ˜แƒฐแƒแƒ“แƒ”แƒจแƒ•แƒแƒ แƒแƒก แƒขแƒแƒซแƒแƒ แƒ˜", "cardsDemoTravelDestinationDescription3": "แƒขแƒแƒซแƒ แƒ”แƒ‘แƒ˜", "demoBannerTitle": "แƒ‘แƒแƒœแƒ”แƒ แƒ˜", "demoBannerSubtitle": "แƒ‘แƒแƒœแƒ”แƒ แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ แƒกแƒ˜แƒแƒจแƒ˜", "demoBannerDescription": "แƒ‘แƒแƒœแƒ”แƒ แƒ–แƒ” แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ•แƒแƒœแƒ˜, แƒกแƒฎแƒแƒ แƒขแƒ˜ แƒ’แƒ–แƒแƒ•แƒœแƒ˜แƒšแƒ˜ แƒ“แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒ˜แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒแƒœ แƒ›แƒแƒกแƒ–แƒ” (แƒแƒœ แƒ“แƒแƒฎแƒฃแƒ แƒแƒœ แƒ‘แƒแƒœแƒ”แƒ แƒ˜). แƒ“แƒแƒกแƒแƒฎแƒฃแƒ แƒแƒ“ แƒกแƒแƒญแƒ˜แƒ แƒแƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ.", "demoCardTitle": "แƒ‘แƒแƒ แƒแƒ—แƒ”แƒ‘แƒ˜", "demoCardSubtitle": "แƒกแƒแƒ‘แƒแƒ–แƒ˜แƒกแƒ แƒ‘แƒแƒ แƒแƒ—แƒ”แƒ‘แƒ˜ แƒ›แƒแƒ›แƒ แƒ’แƒ•แƒแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ™แƒฃแƒ—แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "demoCardDescription": "แƒ‘แƒแƒ แƒแƒ—แƒ˜ แƒแƒ แƒ˜แƒก Material-แƒ˜แƒก แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ–แƒ”แƒช แƒฌแƒแƒ แƒ›แƒแƒ“แƒ’แƒ”แƒœแƒ˜แƒšแƒ˜แƒ แƒ’แƒแƒ แƒ™แƒ•แƒ”แƒฃแƒšแƒ˜ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ, แƒ›แƒแƒ’แƒแƒšแƒ˜แƒ—แƒแƒ“, แƒแƒšแƒ‘แƒแƒ›แƒ˜, แƒ’แƒ”แƒแƒ’แƒ แƒแƒคแƒ˜แƒฃแƒšแƒ˜ แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ, แƒ™แƒ”แƒ แƒซแƒ˜, แƒกแƒแƒ™แƒแƒœแƒขแƒแƒฅแƒขแƒ แƒ“แƒ”แƒขแƒแƒšแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ.แƒจ.", "demoDataTableTitle": "แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ—แƒ แƒชแƒฎแƒ แƒ˜แƒšแƒ”แƒ‘แƒ˜", "demoDataTableSubtitle": "แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒ›แƒฌแƒ™แƒ แƒ˜แƒ•แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒกแƒ•แƒ”แƒขแƒ”แƒ‘แƒ˜", "dataTableColumnCarbs": "แƒœแƒแƒฎแƒจแƒ˜แƒ แƒฌแƒงแƒšแƒ”แƒ‘แƒ˜ (แƒ’)", "placeTanjore": "แƒขแƒแƒœแƒฏแƒฃแƒ แƒ˜", "demoGridListsTitle": "แƒชแƒฎแƒ แƒ˜แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒก แƒกแƒ˜แƒ”แƒ‘แƒ˜", "placeFlowerMarket": "แƒงแƒ•แƒแƒ•แƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ‘แƒแƒ–แƒ แƒแƒ‘แƒ", "placeBronzeWorks": "แƒ‘แƒ แƒ˜แƒœแƒฏแƒแƒแƒก แƒœแƒแƒ™แƒ”แƒ—แƒแƒ‘แƒ”แƒ‘แƒ˜", "placeMarket": "แƒ‘แƒแƒ–แƒ แƒแƒ‘แƒ", "placeThanjavurTemple": "แƒขแƒแƒœแƒฏแƒแƒ•แƒฃแƒ แƒ˜แƒก แƒขแƒแƒซแƒแƒ แƒ˜", "placeSaltFarm": "Salt Farm", "placeScooters": "แƒกแƒ™แƒฃแƒขแƒ”แƒ แƒ”แƒ‘แƒ˜", "placeSilkMaker": "แƒ›แƒ”แƒแƒ‘แƒ แƒ”แƒจแƒฃแƒ›แƒ”", "placeLunchPrep": "แƒšแƒแƒœแƒฉแƒ˜แƒก แƒ›แƒแƒ›แƒ–แƒแƒ“แƒ”แƒ‘แƒ", "placeBeach": "แƒกแƒแƒœแƒแƒžแƒ˜แƒ แƒ", "placeFisherman": "แƒ›แƒ”แƒ—แƒ”แƒ•แƒ–แƒ”", "demoMenuSelected": "แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜แƒ: {value}", "demoMenuRemove": "แƒแƒ›แƒแƒฆแƒ”แƒ‘แƒ", "demoMenuGetLink": "แƒ‘แƒ›แƒฃแƒšแƒ˜แƒก แƒ›แƒ˜แƒฆแƒ”แƒ‘แƒ", "demoMenuShare": "แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ", "demoBottomAppBarSubtitle": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒแƒกแƒ แƒ“แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒก แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ‘แƒแƒšแƒแƒจแƒ˜", "demoMenuAnItemWithASectionedMenu": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒกแƒ”แƒฅแƒชแƒ˜แƒ”แƒ‘แƒแƒ“ แƒ“แƒแƒงแƒแƒคแƒ˜แƒšแƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒ—แƒ˜", "demoMenuADisabledMenuItem": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜แƒก แƒ’แƒแƒ—แƒ˜แƒจแƒ•แƒ", "demoLinearProgressIndicatorTitle": "แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒฌแƒ แƒคแƒ˜แƒ•แƒ˜ แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜", "demoMenuContextMenuItemOne": "แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜ แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoMenuAnItemWithASimpleMenu": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒ—แƒ˜", "demoCustomSlidersTitle": "แƒ›แƒแƒ แƒ’แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜", "demoMenuAnItemWithAChecklistMenu": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒกแƒแƒ™แƒแƒœแƒขแƒ แƒแƒšแƒ แƒกแƒ˜แƒ˜แƒก แƒ›แƒ”แƒœแƒ˜แƒฃแƒ—แƒ˜", "demoCupertinoActivityIndicatorTitle": "แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ˜แƒก แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜", "demoCupertinoActivityIndicatorSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ˜แƒก แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜", "demoCupertinoActivityIndicatorDescription": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒแƒฅแƒขแƒ˜แƒ•แƒแƒ‘แƒ˜แƒก แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ‘แƒ แƒฃแƒœแƒแƒ•แƒก แƒกแƒแƒแƒ—แƒ˜แƒก แƒ›แƒ˜แƒ›แƒแƒ แƒ—แƒฃแƒšแƒ”แƒ‘แƒ˜แƒ—.", "demoCupertinoNavigationBarTitle": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoCupertinoNavigationBarSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoCupertinoNavigationBarDescription": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒ–แƒแƒšแƒ˜. แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒ–แƒแƒšแƒ˜ แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก แƒฎแƒ”แƒšแƒกแƒแƒฌแƒงแƒแƒ—แƒ แƒ–แƒแƒšแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก, แƒกแƒฃแƒš แƒ›แƒชแƒ˜แƒ แƒ”, แƒฎแƒ”แƒšแƒกแƒแƒฌแƒงแƒแƒ—แƒ แƒ–แƒแƒšแƒ˜แƒก แƒจแƒฃแƒแƒจแƒ˜ แƒ›แƒแƒ—แƒแƒ•แƒกแƒ”แƒ‘แƒฃแƒš แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒก.", "demoCupertinoPullToRefreshTitle": "แƒฉแƒแƒ›แƒแƒฌแƒ”แƒ•แƒ˜แƒ— แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒ", "demoCupertinoPullToRefreshSubtitle": "แƒ›แƒแƒ แƒ—แƒ•แƒ iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฉแƒแƒ›แƒแƒฌแƒ”แƒ•แƒ˜แƒ— แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒ˜แƒ—", "demoCupertinoPullToRefreshDescription": "แƒ•แƒ˜แƒฏแƒ”แƒขแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒฎแƒแƒ แƒชแƒ˜แƒ”แƒšแƒ”แƒ‘แƒก แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜แƒก แƒ›แƒแƒ แƒ—แƒ•แƒแƒก iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฉแƒแƒ›แƒแƒฌแƒ”แƒ•แƒ˜แƒ— แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒ˜แƒ—.", "demoProgressIndicatorTitle": "แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ”แƒ‘แƒ˜", "demoProgressIndicatorSubtitle": "แƒฌแƒ แƒคแƒ˜แƒ•แƒ˜, แƒฌแƒ แƒ˜แƒฃแƒšแƒ˜, แƒ’แƒแƒœแƒฃแƒกแƒแƒ–แƒฆแƒ•แƒ แƒ”แƒšแƒ˜", "demoCircularProgressIndicatorTitle": "แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒฌแƒ แƒ˜แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜", "demoCircularProgressIndicatorDescription": "Material Design-แƒ˜แƒก แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒฌแƒ แƒ˜แƒฃแƒšแƒ˜ แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜, แƒ แƒแƒ›แƒšแƒ˜แƒก แƒ‘แƒ แƒฃแƒœแƒ•แƒแƒช แƒ›แƒ˜แƒฃแƒ—แƒ˜แƒ—แƒ”แƒ‘แƒก, แƒ แƒแƒ› แƒแƒžแƒšแƒ˜แƒ™แƒแƒชแƒ˜แƒ แƒ“แƒแƒ™แƒแƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜แƒ.", "demoMenuFour": "แƒแƒ—แƒฎแƒ˜", "demoLinearProgressIndicatorDescription": "Material Design-แƒ˜แƒก แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒฌแƒ แƒคแƒ˜แƒ•แƒ˜ แƒ˜แƒœแƒ“แƒ˜แƒ™แƒแƒขแƒแƒ แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒกแƒ”แƒ•แƒ” แƒชแƒœแƒแƒ‘แƒ˜แƒšแƒ˜แƒ แƒ แƒแƒ’แƒแƒ แƒช แƒžแƒ แƒแƒ’แƒ แƒ”แƒกแƒ˜แƒก แƒ–แƒแƒšแƒ˜.", "demoTooltipTitle": "แƒ›แƒ˜แƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "demoTooltipSubtitle": "แƒ›แƒแƒ™แƒšแƒ” แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒ˜ แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒ— แƒแƒœ แƒ’แƒแƒ“แƒแƒขแƒแƒ แƒ”แƒ‘แƒ˜แƒ—", "demoTooltipDescription": "แƒ›แƒ˜แƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒ’แƒแƒฌแƒ•แƒ“แƒ˜แƒแƒœ แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ  แƒšแƒ”แƒ˜แƒ‘แƒšแƒ”แƒ‘แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒจแƒ˜แƒช แƒแƒฎแƒกแƒœแƒ˜แƒšแƒ˜แƒ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜แƒก แƒแƒœ แƒกแƒแƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ แƒ˜แƒœแƒขแƒ”แƒ แƒคแƒ”แƒ˜แƒกแƒ˜แƒก แƒกแƒฎแƒ•แƒ แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ. แƒ›แƒ˜แƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒจแƒ”แƒ›แƒชแƒ•แƒ”แƒš แƒขแƒ”แƒฅแƒกแƒขแƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒ›แƒ˜แƒ”แƒ  แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ–แƒ” แƒ’แƒแƒ“แƒแƒขแƒแƒ แƒ”แƒ‘แƒ˜แƒกแƒแƒก, แƒคแƒแƒ™แƒฃแƒกแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒแƒก แƒแƒœ แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒแƒ“ แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒกแƒแƒก.", "demoTooltipInstructions": "แƒฎแƒแƒœแƒ’แƒ แƒซแƒšแƒ˜แƒ•แƒแƒ“ แƒ“แƒแƒแƒญแƒ˜แƒ แƒ”แƒ— แƒแƒœ แƒ’แƒแƒ“แƒแƒแƒขแƒแƒ แƒ”แƒ— แƒ›แƒ˜แƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒšแƒแƒ“.", "placeChennai": "แƒฉแƒ”แƒœแƒแƒ˜", "demoMenuChecked": "แƒ›แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ˜แƒ: {value}", "placeChettinad": "แƒฉแƒ”แƒขแƒ˜แƒœแƒแƒ“แƒ˜", "demoMenuPreview": "แƒ’แƒแƒ“แƒแƒฎแƒ”แƒ“แƒ•แƒ", "demoBottomAppBarTitle": "แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒ–แƒแƒšแƒ˜", "demoBottomAppBarDescription": "แƒแƒžแƒ”แƒ‘แƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒ–แƒแƒšแƒ”แƒ‘แƒ˜ แƒฃแƒ–แƒ แƒฃแƒœแƒ•แƒ”แƒšแƒงแƒแƒคแƒก แƒฌแƒ•แƒ“แƒแƒ›แƒแƒก แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒฃแƒฏแƒ แƒแƒ–แƒ” แƒ“แƒ แƒแƒ—แƒฎแƒแƒ›แƒ“แƒ” แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ–แƒ”, แƒ›แƒแƒ— แƒจแƒแƒ แƒ˜แƒก แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ–แƒ”.", "bottomAppBarNotch": "แƒญแƒ แƒ˜แƒšแƒ˜", "bottomAppBarPosition": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜แƒก แƒžแƒแƒ–แƒ˜แƒชแƒ˜แƒ", "bottomAppBarPositionDockedEnd": "แƒฉแƒแƒ›แƒแƒ’แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ โ€” แƒ‘แƒแƒšแƒแƒจแƒ˜", "bottomAppBarPositionDockedCenter": "แƒฉแƒแƒ›แƒแƒ’แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ โ€” แƒชแƒ”แƒœแƒขแƒ แƒจแƒ˜", "bottomAppBarPositionFloatingEnd": "แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” โ€” แƒ‘แƒแƒšแƒแƒจแƒ˜", "bottomAppBarPositionFloatingCenter": "แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” โ€” แƒชแƒ”แƒœแƒขแƒ แƒจแƒ˜", "demoSlidersEditableNumericalValue": "แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒแƒ“แƒ˜ แƒ แƒ˜แƒชแƒฎแƒแƒ‘แƒ แƒ˜แƒ•แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ", "demoGridListsSubtitle": "แƒ›แƒฌแƒ™แƒ แƒ˜แƒ•แƒ”แƒ‘แƒ˜แƒกแƒ แƒ“แƒ แƒกแƒ•แƒ”แƒขแƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ", "demoGridListsDescription": "แƒชแƒฎแƒ แƒ˜แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒก แƒกแƒ˜แƒ”แƒ‘แƒ˜ แƒกแƒแƒฃแƒ™แƒ”แƒ—แƒ”แƒกแƒแƒ แƒ”แƒ แƒ—แƒ’แƒ•แƒแƒ แƒแƒ•แƒแƒœแƒ˜ แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ”แƒ‘แƒ˜แƒก, แƒฉแƒ•แƒ”แƒฃแƒšแƒ”แƒ‘แƒ แƒ˜แƒ• แƒกแƒฃแƒ แƒแƒ—แƒ”แƒ‘แƒ˜แƒก, แƒžแƒ แƒ”แƒ–แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก. แƒ—แƒ˜แƒ—แƒแƒ”แƒฃแƒš แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒก แƒชแƒฎแƒ แƒ˜แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ˜แƒก แƒกแƒ˜แƒแƒจแƒ˜ แƒ”แƒฌแƒแƒ“แƒ”แƒ‘แƒ แƒ›แƒแƒ–แƒแƒ˜แƒ™แƒ.", "demoGridListsImageOnlyTitle": "แƒ›แƒฎแƒแƒšแƒแƒ“ แƒกแƒฃแƒ แƒแƒ—แƒ”แƒ‘แƒ˜", "demoGridListsHeaderTitle": "แƒ–แƒ”แƒ“แƒ แƒ™แƒแƒšแƒแƒœแƒขแƒ˜แƒขแƒฃแƒšแƒ˜แƒ—", "demoGridListsFooterTitle": "แƒฅแƒ•แƒ”แƒ“แƒ แƒ™แƒแƒšแƒแƒœแƒขแƒ˜แƒขแƒฃแƒšแƒ˜แƒ—", "demoSlidersTitle": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜", "demoSlidersSubtitle": "แƒ•แƒ˜แƒฏแƒ”แƒขแƒ”แƒ‘แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ˜แƒก แƒ’แƒแƒ“แƒแƒคแƒฃแƒ แƒชแƒ•แƒšแƒ˜แƒ— แƒแƒกแƒแƒ แƒฉแƒ”แƒ•แƒแƒ“", "demoSlidersDescription": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜ แƒ–แƒแƒšแƒ˜แƒก แƒ’แƒแƒกแƒฌแƒ•แƒ แƒ˜แƒ• แƒแƒกแƒแƒฎแƒแƒ•แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒแƒ’แƒแƒœแƒแƒช แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒแƒ˜แƒ แƒฉแƒ˜แƒแƒœ แƒ”แƒ แƒ—แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒ˜แƒ“แƒ”แƒแƒšแƒฃแƒ แƒ˜แƒ แƒ˜แƒกแƒ”แƒ—แƒ˜ แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒ แƒ”แƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ’แƒแƒ แƒ˜แƒช แƒแƒ แƒ˜แƒก แƒฎแƒ›แƒ˜แƒก แƒกแƒ˜แƒ›แƒซแƒšแƒแƒ•แƒ แƒ” แƒ“แƒ แƒกแƒ˜แƒ™แƒแƒจแƒ™แƒแƒจแƒ”, แƒแƒœ แƒกแƒฃแƒ แƒแƒ—แƒ˜แƒก แƒคแƒ˜แƒšแƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒ“แƒแƒ’แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก.", "demoRangeSlidersTitle": "แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒ˜แƒก แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜", "demoRangeSlidersDescription": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜ แƒ–แƒแƒšแƒ˜แƒก แƒ’แƒแƒกแƒฌแƒ•แƒ แƒ˜แƒ• แƒแƒกแƒแƒฎแƒแƒ•แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒก. แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒก แƒ–แƒแƒšแƒ˜แƒก แƒแƒ แƒ˜แƒ•แƒ” แƒ‘แƒแƒšแƒแƒจแƒ˜ แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒฎแƒแƒขแƒฃแƒšแƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒแƒกแƒแƒฎแƒแƒ•แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒก. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒ˜แƒ“แƒ”แƒแƒšแƒฃแƒ แƒ˜แƒ แƒ˜แƒกแƒ”แƒ—แƒ˜ แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒ แƒ”แƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ’แƒแƒ แƒ˜แƒช แƒแƒ แƒ˜แƒก แƒฎแƒ›แƒ˜แƒก แƒกแƒ˜แƒ›แƒซแƒšแƒแƒ•แƒ แƒ” แƒ“แƒ แƒกแƒ˜แƒ™แƒแƒจแƒ™แƒแƒจแƒ”, แƒแƒœ แƒกแƒฃแƒ แƒแƒ—แƒ˜แƒก แƒคแƒ˜แƒšแƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒ“แƒแƒ’แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก.", "demoMenuAnItemWithAContextMenuButton": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒ—แƒ˜", "demoCustomSlidersDescription": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ”แƒ‘แƒ˜ แƒ–แƒแƒšแƒ˜แƒก แƒ’แƒแƒกแƒฌแƒ•แƒ แƒ˜แƒ• แƒแƒกแƒแƒฎแƒแƒ•แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒแƒ’แƒแƒœแƒแƒช แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒจแƒ”แƒฃแƒซแƒšแƒ˜แƒแƒ— แƒแƒ˜แƒ แƒฉแƒ˜แƒแƒœ แƒ”แƒ แƒ—แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ แƒแƒœ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒ˜. แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒก แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒ—แƒ”แƒ›แƒ แƒ“แƒ แƒ˜แƒงแƒแƒก แƒ›แƒแƒ แƒ’แƒ”แƒ‘แƒฃแƒšแƒ˜.", "demoSlidersContinuousWithEditableNumericalValue": "แƒฃแƒฌแƒงแƒ•แƒ”แƒขแƒ˜ แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒแƒ“แƒ˜ แƒ แƒ˜แƒชแƒฎแƒแƒ‘แƒ แƒ˜แƒ•แƒ˜ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ˜แƒ—", "demoSlidersDiscrete": "แƒ“แƒ˜แƒกแƒ™แƒ แƒ”แƒขแƒฃแƒšแƒ˜", "demoSlidersDiscreteSliderWithCustomTheme": "แƒ“แƒ˜แƒกแƒ™แƒ แƒ”แƒขแƒฃแƒšแƒ˜ แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ˜ แƒ›แƒแƒ แƒ’แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ—แƒ”แƒ›แƒ˜แƒ—", "demoSlidersContinuousRangeSliderWithCustomTheme": "แƒฃแƒฌแƒงแƒ•แƒ”แƒขแƒ˜ แƒ“แƒ˜แƒแƒžแƒแƒ–แƒแƒœแƒ˜แƒก แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ˜ แƒ›แƒแƒ แƒ’แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ—แƒ”แƒ›แƒ˜แƒ—", "demoSlidersContinuous": "แƒฃแƒฌแƒงแƒ•แƒ”แƒขแƒ˜", "placePondicherry": "แƒžแƒแƒœแƒ“แƒ˜แƒฉแƒ”แƒ แƒ˜", "demoMenuTitle": "แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoContextMenuTitle": "แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoSectionedMenuTitle": "แƒกแƒ”แƒฅแƒชแƒ˜แƒ”แƒ‘แƒแƒ“ แƒ“แƒแƒงแƒแƒคแƒ˜แƒšแƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoSimpleMenuTitle": "แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoChecklistMenuTitle": "แƒกแƒแƒ™แƒแƒœแƒขแƒ แƒแƒšแƒ แƒกแƒ˜แƒ˜แƒก แƒ›แƒ”แƒœแƒ˜แƒฃ", "demoMenuSubtitle": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒ”แƒ‘แƒ˜", "demoMenuDescription": "แƒ›แƒ”แƒœแƒ˜แƒฃ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒแƒกแƒแƒ แƒฉแƒ”แƒ•แƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒกแƒ˜แƒแƒก แƒ“แƒ แƒแƒ”แƒ‘แƒ˜แƒ— แƒ–แƒ”แƒ“แƒแƒžแƒ˜แƒ แƒ–แƒ”. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒ˜แƒœแƒขแƒ”แƒ แƒแƒฅแƒชแƒ˜แƒ˜แƒกแƒแƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ–แƒ”, แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ–แƒ” แƒแƒœ แƒ›แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒกแƒฎแƒ•แƒ แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒ–แƒ”.", "demoMenuItemValueOne": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜ แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoMenuItemValueTwo": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ›แƒ”แƒแƒ แƒ” แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoMenuItemValueThree": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ›แƒ”แƒกแƒแƒ›แƒ” แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoMenuOne": "แƒ”แƒ แƒ—แƒ˜", "demoMenuTwo": "แƒแƒ แƒ˜", "demoMenuThree": "แƒกแƒแƒ›แƒ˜", "demoMenuContextMenuItemThree": "แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ›แƒ”แƒกแƒแƒ›แƒ” แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜", "demoCupertinoSwitchSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒ’แƒแƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ˜", "demoSnackbarsText": "แƒ”แƒก แƒแƒ แƒ˜แƒก แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ˜.", "demoCupertinoSliderSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ˜", "demoCupertinoSliderDescription": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒแƒ—แƒ แƒฃแƒฌแƒงแƒ•แƒ”แƒขแƒ˜ แƒแƒœ แƒ“แƒ˜แƒกแƒ™แƒ แƒ”แƒขแƒฃแƒšแƒ˜ แƒกแƒ˜แƒ›แƒ แƒแƒ•แƒšแƒ˜แƒ“แƒแƒœ แƒแƒกแƒแƒ แƒฉแƒ”แƒ•แƒแƒ“.", "demoCupertinoSliderContinuous": "แƒฃแƒฌแƒงแƒ•แƒ”แƒขแƒ˜: {value}", "demoCupertinoSliderDiscrete": "แƒ“แƒ˜แƒกแƒ™แƒ แƒ”แƒขแƒฃแƒšแƒ˜: {value}", "demoSnackbarsAction": "แƒ—แƒฅแƒ•แƒ”แƒœ แƒ“แƒแƒแƒญแƒ˜แƒ แƒ”แƒ— แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ˜แƒก แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒก.", "backToGallery": "แƒ’แƒแƒšแƒ”แƒ แƒ”แƒแƒจแƒ˜ แƒ“แƒแƒ‘แƒ แƒฃแƒœแƒ”แƒ‘แƒ", "demoCupertinoTabBarTitle": "แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoCupertinoSwitchDescription": "แƒ’แƒแƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ˜ แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ แƒชแƒแƒšแƒ™แƒ”แƒฃแƒšแƒ˜ แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ˜แƒก แƒฉแƒแƒ แƒ—แƒ•แƒ/แƒ’แƒแƒ›แƒแƒ แƒ—แƒ•แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก.", "demoSnackbarsActionButtonLabel": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ", "cupertinoTabBarProfileTab": "แƒžแƒ แƒแƒคแƒ˜แƒšแƒ˜", "demoSnackbarsButtonLabel": "แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "demoSnackbarsDescription": "แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ”แƒ‘แƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก แƒแƒฌแƒ•แƒ“แƒ˜แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก แƒ˜แƒ› แƒžแƒ แƒแƒชแƒ”แƒกแƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒžแƒ›แƒ แƒจแƒ”แƒแƒกแƒ แƒฃแƒšแƒ แƒแƒœ แƒ แƒแƒ›แƒ”แƒšแƒกแƒแƒช แƒจแƒ”แƒแƒกแƒ แƒฃแƒšแƒ”แƒ‘แƒก. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒ“แƒ แƒแƒ”แƒ‘แƒ˜แƒ—, แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒฌแƒ˜แƒšแƒจแƒ˜. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒแƒ  แƒฃแƒœแƒ“แƒ แƒฃแƒจแƒšแƒ˜แƒ“แƒ”แƒก แƒฎแƒ”แƒšแƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒ“แƒ แƒ›แƒแƒ— แƒ’แƒแƒกแƒแƒฅแƒ แƒแƒ‘แƒแƒ“ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒแƒ แƒแƒคแƒ แƒ˜แƒก แƒ’แƒแƒ™แƒ”แƒ—แƒ”แƒ‘แƒ แƒกแƒญแƒ˜แƒ แƒ“แƒ”แƒ‘แƒ.", "demoSnackbarsSubtitle": "แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ”แƒ‘แƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒก แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒฌแƒ˜แƒšแƒจแƒ˜", "demoSnackbarsTitle": "แƒกแƒœแƒ”แƒ™-แƒ–แƒแƒšแƒ”แƒ‘แƒ˜", "demoCupertinoSliderTitle": "แƒกแƒšแƒแƒ˜แƒ“แƒ”แƒ แƒ˜", "cupertinoTabBarChatTab": "แƒฉแƒ”แƒ—แƒ˜", "cupertinoTabBarHomeTab": "แƒ›แƒ—แƒแƒ•แƒแƒ แƒ˜", "demoCupertinoTabBarDescription": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜. แƒ”แƒ™แƒ แƒแƒœแƒ–แƒ” แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ แƒแƒ›แƒ“แƒ”แƒœแƒ˜แƒ›แƒ” แƒฉแƒแƒœแƒแƒ แƒ—แƒก, แƒ แƒแƒ›แƒ”แƒšแƒ—แƒแƒ’แƒแƒœ แƒแƒฅแƒขแƒ˜แƒฃแƒ แƒ˜แƒ แƒ”แƒ แƒ—แƒ˜, แƒœแƒแƒ’แƒฃแƒšแƒ˜แƒกแƒฎแƒ›แƒ”แƒ•แƒแƒ“, แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒ˜.", "demoCupertinoTabBarSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜แƒก แƒ–แƒแƒšแƒ˜", "demoOptionsFeatureTitle": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ", "demoOptionsFeatureDescription": "แƒจแƒ”แƒ”แƒฎแƒ”แƒ— แƒแƒฅ แƒแƒ› แƒ“แƒ”แƒ›แƒแƒก แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒœแƒแƒฎแƒแƒ•แƒแƒ“.", "demoCodeViewerCopyAll": "แƒงแƒ•แƒ”แƒšแƒแƒก แƒ™แƒแƒžแƒ˜แƒ แƒ”แƒ‘แƒ", "shrineScreenReaderRemoveProductButton": "แƒแƒ›แƒแƒ˜แƒจแƒแƒšแƒแƒก {product}", "shrineScreenReaderProductAddToCart": "แƒ™แƒแƒšแƒแƒ—แƒแƒจแƒ˜ แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ", "shrineScreenReaderCart": "{quantity,plural,=0{แƒกแƒแƒงแƒ˜แƒ“แƒšแƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒšแƒแƒ—แƒ, แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ”แƒ‘แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก}=1{แƒกแƒแƒงแƒ˜แƒ“แƒšแƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒšแƒแƒ—แƒ, 1 แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜}other{แƒกแƒแƒงแƒ˜แƒ“แƒšแƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒšแƒแƒ—แƒ, {quantity} แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜}}", "demoCodeViewerFailedToCopyToClipboardMessage": "แƒ’แƒแƒชแƒ•แƒšแƒ˜แƒก แƒ‘แƒฃแƒคแƒ”แƒ แƒจแƒ˜ แƒ™แƒแƒžแƒ˜แƒ แƒ”แƒ‘แƒ แƒ•แƒ”แƒ  แƒ›แƒแƒฎแƒ”แƒ แƒฎแƒ“แƒ: {error}", "demoCodeViewerCopiedToClipboardMessage": "แƒ™แƒแƒžแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜แƒ แƒ’แƒแƒชแƒ•แƒšแƒ˜แƒก แƒ‘แƒฃแƒคแƒ”แƒ แƒจแƒ˜.", "craneSleep8SemanticLabel": "แƒ›แƒแƒ˜แƒแƒก แƒœแƒแƒœแƒ’แƒ แƒ”แƒ•แƒ”แƒ‘แƒ˜ แƒ–แƒฆแƒ•แƒ˜แƒกแƒžแƒ˜แƒ แƒ แƒ™แƒšแƒ˜แƒคแƒ–แƒ”", "craneSleep4SemanticLabel": "แƒขแƒ‘แƒ˜แƒกแƒžแƒ˜แƒ แƒ แƒกแƒแƒกแƒขแƒฃแƒ›แƒ แƒ แƒ›แƒ—แƒ”แƒ‘แƒ˜แƒก แƒคแƒแƒœแƒ–แƒ”", "craneSleep2SemanticLabel": "แƒ›แƒแƒฉแƒฃ-แƒžแƒ˜แƒฅแƒฉแƒฃแƒก แƒชแƒ˜แƒขแƒแƒ“แƒ”แƒšแƒ˜", "craneSleep1SemanticLabel": "แƒจแƒแƒšแƒ” แƒ—แƒแƒ•แƒšแƒ˜แƒแƒœ แƒšแƒแƒœแƒ“แƒจแƒแƒคแƒขแƒ–แƒ” แƒ›แƒแƒ แƒแƒ“แƒ›แƒฌแƒ•แƒแƒœแƒ” แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "craneSleep0SemanticLabel": "แƒฌแƒงแƒแƒšแƒ–แƒ” แƒ›แƒ“แƒ’แƒแƒ›แƒ˜ แƒ‘แƒฃแƒœแƒ’แƒแƒšแƒแƒ”แƒ‘แƒ˜", "craneFly13SemanticLabel": "แƒ–แƒฆแƒ•แƒ˜แƒกแƒžแƒ˜แƒ แƒ แƒแƒฃแƒ–แƒ˜ แƒžแƒแƒšแƒ›แƒ˜แƒก แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "craneFly12SemanticLabel": "แƒแƒฃแƒ–แƒ˜ แƒžแƒแƒšแƒ›แƒ˜แƒก แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "craneFly11SemanticLabel": "แƒแƒ’แƒฃแƒ แƒ˜แƒก แƒจแƒฃแƒฅแƒฃแƒ แƒ แƒ–แƒฆแƒ•แƒแƒ–แƒ”", "craneFly10SemanticLabel": "แƒแƒš-แƒแƒ–แƒฐแƒแƒ แƒ˜แƒก แƒ›แƒ”แƒฉแƒ”แƒ—แƒ˜แƒก แƒ™แƒแƒจแƒ™แƒ”แƒ‘แƒ˜ แƒ›แƒ–แƒ˜แƒก แƒฉแƒแƒกแƒ•แƒšแƒ˜แƒกแƒแƒก", "craneFly9SemanticLabel": "แƒ›แƒแƒ›แƒแƒ™แƒแƒชแƒ˜ แƒ”แƒงแƒ แƒ“แƒœแƒแƒ‘แƒ แƒซแƒ•แƒ”แƒšแƒ”แƒ‘แƒฃแƒ  แƒšแƒฃแƒ แƒฏ แƒ›แƒแƒœแƒฅแƒแƒœแƒแƒก", "craneFly8SemanticLabel": "แƒกแƒฃแƒžแƒ”แƒ แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒ แƒแƒ›แƒ˜", "craneEat9SemanticLabel": "แƒ™แƒแƒคแƒ”แƒก แƒ“แƒแƒฎแƒšแƒ˜ แƒกแƒแƒ™แƒแƒœแƒ“แƒ˜แƒขแƒ แƒ แƒœแƒแƒฌแƒแƒ แƒ›แƒ˜แƒ—", "craneEat2SemanticLabel": "แƒ‘แƒฃแƒ แƒ’แƒ”แƒ แƒ˜", "craneFly5SemanticLabel": "แƒขแƒ‘แƒ˜แƒกแƒžแƒ˜แƒ แƒ แƒกแƒแƒกแƒขแƒฃแƒ›แƒ แƒ แƒ›แƒ—แƒ”แƒ‘แƒ˜แƒก แƒคแƒแƒœแƒ–แƒ”", "demoSelectionControlsSubtitle": "แƒ›แƒแƒกแƒแƒœแƒ˜แƒจแƒœแƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜, แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ’แƒแƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "craneEat10SemanticLabel": "แƒฅแƒแƒšแƒก แƒฃแƒญแƒ˜แƒ แƒแƒ•แƒก แƒฃแƒ–แƒแƒ แƒ›แƒแƒ–แƒแƒ แƒ˜ แƒžแƒแƒกแƒขแƒ แƒแƒ›แƒ˜แƒก แƒกแƒ”แƒœแƒ“แƒ•แƒ˜แƒฉแƒ˜", "craneFly4SemanticLabel": "แƒฌแƒงแƒแƒšแƒ–แƒ” แƒ›แƒ“แƒ’แƒแƒ›แƒ˜ แƒ‘แƒฃแƒœแƒ’แƒแƒšแƒแƒ”แƒ‘แƒ˜", "craneEat7SemanticLabel": "แƒกแƒแƒคแƒฃแƒœแƒ—แƒฃแƒจแƒ˜แƒก แƒจแƒ”แƒกแƒแƒกแƒ•แƒšแƒ”แƒšแƒ˜", "craneEat6SemanticLabel": "แƒ™แƒ แƒ”แƒ•แƒ”แƒขแƒ˜แƒก แƒ™แƒ”แƒ แƒซแƒ˜", "craneEat5SemanticLabel": "แƒ›แƒฎแƒแƒขแƒ•แƒ แƒฃแƒšแƒแƒ“ แƒ’แƒแƒคแƒแƒ แƒ›แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ˜แƒก แƒกแƒขแƒฃแƒ›แƒ แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒกแƒแƒฏแƒ“แƒแƒ›แƒ˜ แƒกแƒ˜แƒ•แƒ แƒชแƒ”", "craneEat4SemanticLabel": "แƒจแƒแƒ™แƒแƒšแƒแƒ“แƒ˜แƒก แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜", "craneEat3SemanticLabel": "แƒ™แƒแƒ แƒ”แƒฃแƒšแƒ˜ แƒขแƒแƒ™แƒ", "craneFly3SemanticLabel": "แƒ›แƒแƒฉแƒฃ-แƒžแƒ˜แƒฅแƒฉแƒฃแƒก แƒชแƒ˜แƒขแƒแƒ“แƒ”แƒšแƒ˜", "craneEat1SemanticLabel": "แƒชแƒแƒ แƒ˜แƒ”แƒšแƒ˜ แƒ‘แƒแƒ แƒ˜ แƒกแƒแƒกแƒแƒ“แƒ˜แƒšแƒแƒก แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒกแƒ™แƒแƒ›แƒ”แƒ‘แƒ˜แƒ—", "craneEat0SemanticLabel": "แƒžแƒ˜แƒชแƒ แƒจแƒ”แƒจแƒ˜แƒก แƒฆแƒฃแƒ›แƒ”แƒšแƒจแƒ˜", "craneSleep11SemanticLabel": "แƒชแƒแƒ—แƒแƒ›แƒ‘แƒฏแƒ”แƒœแƒ˜ แƒขแƒแƒ˜แƒ‘แƒ”แƒ˜ 101", "craneSleep10SemanticLabel": "แƒแƒš-แƒแƒ–แƒฐแƒแƒ แƒ˜แƒก แƒ›แƒ”แƒฉแƒ”แƒ—แƒ˜แƒก แƒ™แƒแƒจแƒ™แƒ”แƒ‘แƒ˜ แƒ›แƒ–แƒ˜แƒก แƒฉแƒแƒกแƒ•แƒšแƒ˜แƒกแƒแƒก", "craneSleep9SemanticLabel": "แƒแƒ’แƒฃแƒ แƒ˜แƒก แƒจแƒฃแƒฅแƒฃแƒ แƒ แƒ–แƒฆแƒ•แƒแƒ–แƒ”", "craneEat8SemanticLabel": "แƒ—แƒ”แƒคแƒจแƒ˜ แƒšแƒแƒœแƒ’แƒฃแƒกแƒขแƒ”แƒ‘แƒ˜แƒ—", "craneSleep7SemanticLabel": "แƒคแƒ”แƒ แƒแƒ“แƒ˜ แƒกแƒแƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒกแƒแƒฎแƒšแƒ”แƒ‘แƒ˜ แƒ แƒ˜แƒ‘แƒ”แƒ˜แƒ แƒแƒก แƒ›แƒแƒ”แƒ“แƒแƒœแƒ–แƒ”", "craneSleep6SemanticLabel": "แƒแƒฃแƒ–แƒ˜ แƒžแƒแƒšแƒ›แƒ˜แƒก แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "craneSleep5SemanticLabel": "แƒ™แƒแƒ แƒแƒ•แƒ˜ แƒ•แƒ”แƒšแƒ–แƒ”", "settingsButtonCloseLabel": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ", "demoSelectionControlsCheckboxDescription": "แƒ›แƒแƒกแƒแƒœแƒ˜แƒจแƒœแƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก, แƒแƒ˜แƒ แƒฉแƒ˜แƒแƒก แƒ แƒแƒ›แƒ“แƒ”แƒœแƒ˜แƒ›แƒ” แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ˜ แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒ“แƒแƒœ. แƒฉแƒ•แƒ”แƒฃแƒšแƒ”แƒ‘แƒ แƒ˜แƒ•แƒ˜ แƒ›แƒแƒกแƒแƒœแƒ˜แƒจแƒœแƒ˜ แƒ•แƒ”แƒšแƒ˜แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ”แƒ‘แƒ˜แƒ แƒกแƒฌแƒแƒ แƒ˜ แƒแƒœ แƒแƒ แƒแƒกแƒฌแƒแƒ แƒ˜, แƒฎแƒแƒšแƒ แƒกแƒแƒ›แƒ›แƒ“แƒ’แƒแƒ›แƒแƒ แƒ”แƒแƒ‘แƒ˜แƒแƒœแƒ˜ แƒ›แƒแƒกแƒแƒœแƒ˜แƒจแƒœแƒ˜ แƒ•แƒ”แƒšแƒ˜แƒก แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ‘แƒ แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒ˜แƒงแƒแƒก แƒœแƒฃแƒšแƒ˜แƒช.", "settingsButtonLabel": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "demoListsTitle": "แƒกแƒ˜แƒ”แƒ‘แƒ˜", "demoListsSubtitle": "แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒกแƒ˜แƒแƒจแƒ˜ แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒ", "demoListsDescription": "แƒคแƒ˜แƒฅแƒกแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒ˜แƒ›แƒแƒฆแƒšแƒ˜แƒก แƒ”แƒ แƒ—แƒ˜ แƒ›แƒฌแƒ™แƒ แƒ˜แƒ•แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช, แƒฉแƒ•แƒ”แƒฃแƒšแƒ”แƒ‘แƒ แƒ˜แƒ•, แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก แƒขแƒ”แƒฅแƒกแƒขแƒก, แƒแƒกแƒ”แƒ•แƒ” แƒฎแƒแƒขแƒฃแƒšแƒแƒก แƒ—แƒแƒ•แƒจแƒ˜ แƒแƒœ แƒ‘แƒแƒšแƒแƒจแƒ˜.", "demoOneLineListsTitle": "แƒ”แƒ แƒ—แƒ˜ แƒฎแƒแƒ–แƒ˜", "demoTwoLineListsTitle": "แƒแƒ แƒ˜ แƒฎแƒแƒ–แƒ˜", "demoListsSecondary": "แƒ›แƒ”แƒแƒ แƒแƒ“แƒ˜ แƒขแƒ”แƒฅแƒกแƒขแƒ˜", "demoSelectionControlsTitle": "แƒแƒ แƒฉแƒ”แƒ•แƒ˜แƒก แƒ›แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "craneFly7SemanticLabel": "แƒ›แƒ—แƒ แƒ แƒแƒจแƒ›แƒแƒ แƒ˜", "demoSelectionControlsCheckboxTitle": "แƒ›แƒแƒกแƒแƒœแƒ˜แƒจแƒœแƒ˜ แƒ•แƒ”แƒšแƒ˜", "craneSleep3SemanticLabel": "แƒ›แƒแƒ›แƒแƒ™แƒแƒชแƒ˜ แƒ”แƒงแƒ แƒ“แƒœแƒแƒ‘แƒ แƒซแƒ•แƒ”แƒšแƒ”แƒ‘แƒฃแƒ  แƒšแƒฃแƒ แƒฏ แƒ›แƒแƒœแƒฅแƒแƒœแƒแƒก", "demoSelectionControlsRadioTitle": "แƒ แƒแƒ“แƒ˜แƒ", "demoSelectionControlsRadioDescription": "แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก, แƒแƒ˜แƒ แƒฉแƒ˜แƒแƒก แƒ”แƒ แƒ—แƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ˜ แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒ“แƒแƒœ. แƒ˜แƒกแƒแƒ แƒ’แƒ”แƒ‘แƒšแƒ”แƒ— แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜แƒ— แƒ’แƒแƒ›แƒแƒ›แƒ แƒ˜แƒชแƒฎแƒแƒ•แƒ˜ แƒแƒ แƒฉแƒ”แƒ•แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ—แƒฃ แƒคแƒ˜แƒฅแƒ แƒแƒ‘แƒ—, แƒ แƒแƒ› แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒงแƒ•แƒ”แƒšแƒ แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ˜แƒก แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜แƒ’แƒ•แƒ”แƒ แƒ“ แƒœแƒแƒฎแƒ•แƒ แƒกแƒญแƒ˜แƒ แƒ“แƒ”แƒ‘แƒ.", "demoSelectionControlsSwitchTitle": "แƒ’แƒแƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ˜", "demoSelectionControlsSwitchDescription": "แƒฉแƒแƒ แƒ—แƒ•แƒ/แƒ’แƒแƒ›แƒแƒ แƒ—แƒ•แƒ แƒ’แƒแƒ“แƒแƒ แƒ—แƒแƒ•แƒก แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜แƒก แƒชแƒแƒšแƒ™แƒ”แƒฃแƒš แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒก. แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒกแƒแƒช แƒ’แƒแƒ“แƒแƒ›แƒ แƒ—แƒ•แƒ”แƒšแƒ˜ แƒ›แƒแƒ แƒ—แƒแƒ•แƒก, แƒแƒกแƒ”แƒ•แƒ” แƒ›แƒ“แƒ’แƒแƒ›แƒแƒ แƒ”แƒแƒ‘แƒ, แƒ แƒแƒ›แƒ”แƒšแƒจแƒ˜แƒช แƒ˜แƒก แƒ˜แƒ›แƒงแƒแƒคแƒ”แƒ‘แƒ, แƒœแƒแƒ—แƒ”แƒšแƒ˜ แƒฃแƒœแƒ“แƒ แƒ˜แƒงแƒแƒก แƒจแƒ”แƒกแƒแƒ‘แƒแƒ›แƒ˜แƒกแƒ˜ แƒฉแƒแƒ แƒ—แƒฃแƒšแƒ˜ แƒšแƒ”แƒ˜แƒ‘แƒšแƒ˜แƒ“แƒแƒœ.", "craneFly0SemanticLabel": "แƒจแƒแƒšแƒ” แƒ—แƒแƒ•แƒšแƒ˜แƒแƒœ แƒšแƒแƒœแƒ“แƒจแƒแƒคแƒขแƒ–แƒ” แƒ›แƒแƒ แƒแƒ“แƒ›แƒฌแƒ•แƒแƒœแƒ” แƒฎแƒ”แƒ”แƒ‘แƒ˜แƒ—", "craneFly1SemanticLabel": "แƒ™แƒแƒ แƒแƒ•แƒ˜ แƒ•แƒ”แƒšแƒ–แƒ”", "craneFly2SemanticLabel": "แƒกแƒแƒšแƒแƒชแƒแƒ•แƒ˜ แƒแƒšแƒ›แƒ”แƒ‘แƒ˜ แƒ—แƒแƒ•แƒšแƒ˜แƒแƒœแƒ˜ แƒ›แƒ—แƒ˜แƒก แƒคแƒแƒœแƒ–แƒ”", "craneFly6SemanticLabel": "แƒœแƒแƒขแƒ˜แƒคแƒ˜ แƒฎแƒ”แƒšแƒแƒ•แƒœแƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒกแƒแƒฎแƒšแƒ˜แƒก แƒ–แƒ”แƒ“แƒฎแƒ”แƒ“แƒ˜", "rallySeeAllAccounts": "แƒงแƒ•แƒ”แƒšแƒ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ", "rallyBillAmount": "{billName} แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ’แƒแƒกแƒฌแƒแƒ แƒ”แƒ‘แƒ˜แƒก แƒ•แƒแƒ“แƒแƒ {date}, แƒ—แƒแƒœแƒฎแƒ: {amount}.", "shrineTooltipCloseCart": "แƒ™แƒแƒšแƒแƒ—แƒ˜แƒก แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ", "shrineTooltipCloseMenu": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ“แƒแƒฎแƒฃแƒ แƒ•แƒ", "shrineTooltipOpenMenu": "แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒ’แƒแƒฎแƒกแƒœแƒ", "shrineTooltipSettings": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "shrineTooltipSearch": "แƒซแƒ˜แƒ”แƒ‘แƒ", "demoTabsDescription": "แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ”แƒจแƒ•แƒ”แƒแƒ‘แƒ˜แƒ— แƒฎแƒ“แƒ”แƒ‘แƒ แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜แƒก แƒแƒ แƒ’แƒแƒœแƒ˜แƒ–แƒ”แƒ‘แƒ แƒกแƒฎแƒ•แƒแƒ“แƒแƒกแƒฎแƒ•แƒ แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก, แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ—แƒ แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒก แƒ“แƒ แƒกแƒฎแƒ•แƒ แƒ˜แƒœแƒขแƒ”แƒ แƒแƒฅแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒคแƒแƒ แƒ’แƒšแƒ”แƒ‘แƒจแƒ˜.", "demoTabsSubtitle": "แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜ แƒชแƒแƒš-แƒชแƒแƒšแƒ™แƒ” แƒ’แƒแƒ“แƒแƒแƒ“แƒ’แƒ˜แƒšแƒ”แƒ‘แƒแƒ“แƒ˜ แƒฎแƒ”แƒ“แƒ”แƒ‘แƒ˜แƒ—", "demoTabsTitle": "แƒฉแƒแƒœแƒแƒ แƒ—แƒ”แƒ‘แƒ˜", "rallyBudgetAmount": "{budgetName} แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ˜, แƒ“แƒแƒฎแƒแƒ แƒฏแƒฃแƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ: {amountUsed} / {amountTotal}-แƒ“แƒแƒœ, แƒ“แƒแƒ แƒฉแƒ”แƒœแƒ˜แƒšแƒ˜ แƒ—แƒแƒœแƒฎแƒ: {amountLeft}", "shrineTooltipRemoveItem": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜แƒก แƒแƒ›แƒแƒจแƒšแƒ", "rallyAccountAmount": "{accountName} แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜ {accountNumber}, แƒ—แƒแƒœแƒฎแƒ {amount}.", "rallySeeAllBudgets": "แƒงแƒ•แƒ”แƒšแƒ แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ", "rallySeeAllBills": "แƒงแƒ•แƒ”แƒšแƒ แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒ“แƒ”แƒšแƒ˜ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒœแƒแƒฎแƒ•แƒ", "craneFormDate": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ—แƒแƒ แƒ˜แƒฆแƒ˜", "craneFormOrigin": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ›แƒ’แƒ–แƒแƒ•แƒ แƒแƒ‘แƒ˜แƒก แƒ“แƒแƒฌแƒงแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒ˜", "craneFly2": "แƒ™แƒฃแƒ›แƒ‘แƒฃแƒก แƒ›แƒ˜แƒœแƒ“แƒแƒ แƒ˜, แƒœแƒ”แƒžแƒแƒšแƒ˜", "craneFly3": "แƒ›แƒแƒฉแƒฃ-แƒžแƒ˜แƒ™แƒฉแƒฃ, แƒžแƒ”แƒ แƒฃ", "craneFly4": "แƒ›แƒแƒšแƒ”, แƒ›แƒแƒšแƒ“แƒ˜แƒ•แƒ”แƒ‘แƒ˜", "craneFly5": "แƒ•แƒ˜แƒชแƒœแƒแƒฃ, แƒจแƒ•แƒ”แƒ˜แƒชแƒแƒ แƒ˜แƒ", "craneFly6": "แƒ›แƒ”แƒฎแƒ˜แƒ™แƒ, แƒ›แƒ”แƒฅแƒกแƒ˜แƒ™แƒ", "craneFly7": "แƒ แƒฃแƒจแƒ›แƒแƒ แƒ˜แƒก แƒ›แƒ—แƒ, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "settingsTextDirectionLocaleBased": "แƒšแƒแƒ™แƒแƒšแƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—", "craneFly9": "แƒฐแƒแƒ•แƒแƒœแƒ, แƒ™แƒฃแƒ‘แƒ", "craneFly10": "แƒ™แƒแƒ˜แƒ แƒ, แƒ”แƒ’แƒ•แƒ˜แƒžแƒขแƒ”", "craneFly11": "แƒšแƒ˜แƒกแƒแƒ‘แƒแƒœแƒ˜, แƒžแƒแƒ แƒขแƒฃแƒ’แƒแƒšแƒ˜แƒ", "craneFly12": "แƒœแƒแƒžแƒ, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneFly13": "แƒ‘แƒแƒšแƒ˜, แƒ˜แƒœแƒ“แƒแƒœแƒ”แƒ–แƒ˜แƒ", "craneSleep0": "แƒ›แƒแƒšแƒ”, แƒ›แƒแƒšแƒ“แƒ˜แƒ•แƒ”แƒ‘แƒ˜", "craneSleep1": "แƒแƒกแƒžแƒ”แƒœแƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneSleep2": "แƒ›แƒแƒฉแƒฃ-แƒžแƒ˜แƒ™แƒฉแƒฃ, แƒžแƒ”แƒ แƒฃ", "demoCupertinoSegmentedControlTitle": "แƒกแƒ”แƒ’แƒ›แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒ แƒ—แƒ•แƒ", "craneSleep4": "แƒ•แƒ˜แƒชแƒœแƒแƒฃ, แƒจแƒ•แƒ”แƒ˜แƒชแƒแƒ แƒ˜แƒ", "craneSleep5": "แƒ‘แƒ˜แƒ’ แƒกแƒฃแƒ แƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneSleep6": "แƒœแƒแƒžแƒ, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneSleep7": "แƒžแƒแƒ แƒขแƒ, แƒžแƒแƒ แƒขแƒฃแƒ’แƒแƒšแƒ˜แƒ", "craneSleep8": "แƒขแƒฃแƒšแƒฃแƒ›แƒ˜, แƒ›แƒ”แƒฅแƒกแƒ˜แƒ™แƒ", "craneEat5": "แƒกแƒ”แƒฃแƒšแƒ˜, แƒกแƒแƒ›แƒฎแƒ แƒ”แƒ— แƒ™แƒแƒ แƒ”แƒ", "demoChipTitle": "แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜", "demoChipSubtitle": "แƒ™แƒแƒ›แƒžแƒแƒฅแƒขแƒฃแƒ แƒ˜ แƒ”แƒšแƒ”แƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒ”แƒœ แƒจแƒ”แƒœแƒแƒขแƒแƒœแƒก, แƒแƒขแƒ แƒ˜แƒ‘แƒฃแƒขแƒก แƒแƒœ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒก", "demoActionChipTitle": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒฉแƒ˜แƒžแƒ˜", "demoActionChipDescription": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜ แƒแƒคแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒ, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒฃแƒจแƒ•แƒ”แƒ‘แƒก แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒžแƒ˜แƒ แƒ•แƒ”แƒšแƒแƒ“ แƒจแƒ”แƒ›แƒชแƒ•แƒ”แƒšแƒแƒ‘แƒแƒก. แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜ แƒ“แƒ˜แƒœแƒแƒ›แƒ˜แƒฃแƒ แƒแƒ“ แƒ“แƒ แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒฃแƒแƒšแƒฃแƒ แƒแƒ“ แƒฃแƒœแƒ“แƒ แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒก UI-แƒก แƒกแƒแƒฎแƒ˜แƒ—.", "demoChoiceChipTitle": "Choice Chip", "demoChoiceChipDescription": "แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜ แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜แƒ“แƒแƒœ แƒ”แƒ แƒ— แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒก. แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜ แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒแƒฆแƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒš แƒขแƒ”แƒฅแƒกแƒขแƒก แƒแƒœ แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒแƒก.", "demoFilterChipTitle": "แƒคแƒ˜แƒšแƒขแƒ แƒ˜แƒก แƒฉแƒ˜แƒžแƒ˜", "demoFilterChipDescription": "แƒคแƒ˜แƒšแƒขแƒ แƒ˜แƒก แƒฉแƒ˜แƒžแƒ”แƒ‘แƒ˜ แƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒก แƒ—แƒ”แƒคแƒ”แƒ‘แƒก แƒแƒœ แƒแƒฆแƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒš แƒกแƒ˜แƒขแƒงแƒ•แƒ”แƒ‘แƒก, แƒจแƒ”แƒ›แƒชแƒ•แƒ”แƒšแƒแƒ‘แƒ˜แƒก แƒ“แƒแƒกแƒแƒคแƒ˜แƒšแƒขแƒ แƒแƒ“.", "demoInputChipTitle": "แƒจแƒ”แƒงแƒ•แƒแƒœแƒ˜แƒก แƒฉแƒ˜แƒžแƒ˜", "demoInputChipDescription": "แƒฉแƒ˜แƒžแƒ˜แƒก แƒจแƒ”แƒฃแƒงแƒ•แƒแƒœแƒ แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ˜แƒก แƒ™แƒแƒ›แƒžแƒšแƒ”แƒฅแƒกแƒฃแƒ  แƒœแƒแƒฌแƒ˜แƒšแƒก, แƒ แƒแƒ’แƒแƒ แƒ˜แƒช แƒแƒ แƒ˜แƒก แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ (แƒžแƒ˜แƒ แƒแƒ•แƒœแƒ”แƒ‘แƒ, แƒแƒ“แƒ’แƒ˜แƒšแƒ˜ แƒแƒœ แƒกแƒแƒ’แƒแƒœแƒ˜) แƒแƒœ แƒกแƒแƒฃแƒ‘แƒ แƒ˜แƒก แƒขแƒ”แƒฅแƒกแƒขแƒ˜ แƒ™แƒแƒ›แƒžแƒแƒฅแƒขแƒฃแƒ  แƒคแƒแƒ แƒ›แƒแƒจแƒ˜.", "craneSleep9": "แƒšแƒ˜แƒกแƒแƒ‘แƒแƒœแƒ˜, แƒžแƒแƒ แƒขแƒฃแƒ’แƒแƒšแƒ˜แƒ", "craneEat10": "แƒšแƒ˜แƒกแƒแƒ‘แƒแƒœแƒ˜, แƒžแƒแƒ แƒขแƒฃแƒ’แƒแƒšแƒ˜แƒ", "demoCupertinoSegmentedControlDescription": "แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ‘แƒ แƒ แƒแƒ›แƒ“แƒ”แƒœแƒ˜แƒ›แƒ” แƒฃแƒ แƒ—แƒ˜แƒ”แƒ แƒ—แƒ’แƒแƒ›แƒแƒ›แƒ แƒ˜แƒชแƒฎแƒแƒ• แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒก แƒจแƒแƒ แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก. แƒ แƒแƒ“แƒ”แƒกแƒแƒช แƒกแƒ”แƒ’แƒ›แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒ›แƒแƒ แƒ—แƒ•แƒแƒจแƒ˜ แƒ”แƒ แƒ— แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒก แƒ˜แƒ แƒฉแƒ”แƒ•แƒ—, แƒกแƒฎแƒ•แƒ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ แƒฃแƒฅแƒ›แƒ“แƒ”แƒ‘แƒ.", "chipTurnOnLights": "แƒจแƒฃแƒฅแƒ˜แƒก แƒฉแƒแƒ แƒ—แƒ•แƒ", "chipSmall": "แƒžแƒแƒขแƒแƒ แƒ", "chipMedium": "แƒกแƒแƒจแƒฃแƒแƒšแƒ", "chipLarge": "แƒ“แƒ˜แƒ“แƒ˜", "chipElevator": "แƒšแƒ˜แƒคแƒขแƒ˜", "chipWasher": "แƒกแƒแƒ แƒ”แƒชแƒฎแƒ˜ แƒ›แƒแƒœแƒฅแƒแƒœแƒ", "chipFireplace": "แƒ‘แƒฃแƒฎแƒแƒ แƒ˜", "chipBiking": "แƒ•แƒ”แƒšแƒแƒกแƒ˜แƒžแƒ”แƒ“แƒ˜แƒ— แƒกแƒ”แƒ˜แƒ แƒœแƒแƒ‘แƒ", "craneFormDiners": "แƒกแƒแƒกแƒแƒกแƒ“แƒ˜แƒšแƒแƒ”แƒ‘แƒ˜", "rallyAlertsMessageUnassignedTransactions": "{count,plural,=1{แƒ’แƒแƒ–แƒแƒ แƒ“แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒžแƒแƒขแƒ”แƒœแƒชแƒ˜แƒฃแƒ แƒ˜ แƒกแƒแƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ˜แƒ—แƒ•แƒ! แƒ›แƒ˜แƒแƒœแƒ˜แƒญแƒ”แƒ— แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ 1 แƒ›แƒ˜แƒฃแƒ›แƒแƒ’แƒ แƒ”แƒ‘แƒ”แƒš แƒขแƒ แƒแƒœแƒกแƒแƒฅแƒชแƒ˜แƒแƒก.}other{แƒ’แƒแƒ–แƒแƒ แƒ“แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒžแƒแƒขแƒ”แƒœแƒชแƒ˜แƒฃแƒ แƒ˜ แƒกแƒแƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ˜แƒ—แƒ•แƒ! แƒ›แƒ˜แƒแƒœแƒ˜แƒญแƒ”แƒ— แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ {count} แƒ›แƒ˜แƒฃแƒ›แƒแƒ’แƒ แƒ”แƒ‘แƒ”แƒš แƒขแƒ แƒแƒœแƒกแƒแƒฅแƒชแƒ˜แƒแƒก.}}", "craneFormTime": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ“แƒ แƒ", "craneFormLocation": "แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ", "craneFormTravelers": "แƒ›แƒแƒ’แƒ–แƒแƒฃแƒ แƒ”แƒ‘แƒ˜", "craneEat8": "แƒแƒขแƒšแƒแƒœแƒขแƒ, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneFormDestination": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒ˜", "craneFormDates": "แƒ—แƒแƒ แƒ˜แƒฆแƒ”แƒ‘แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒ", "craneFly": "แƒคแƒ แƒ”แƒœแƒ", "craneSleep": "แƒซแƒ˜แƒšแƒ˜", "craneEat": "แƒญแƒแƒ›แƒ24", "craneFlySubhead": "แƒแƒฆแƒ›แƒแƒแƒฉแƒ˜แƒœแƒ”แƒ— แƒคแƒ แƒ”แƒœแƒ”แƒ‘แƒ˜ แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—", "craneSleepSubhead": "แƒแƒฆแƒ›แƒแƒแƒฉแƒ˜แƒœแƒ”แƒ— แƒฃแƒซแƒ แƒแƒ•แƒ˜ แƒฅแƒแƒœแƒ”แƒ‘แƒ แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—", "craneEatSubhead": "แƒแƒฆแƒ›แƒแƒแƒฉแƒ˜แƒœแƒ”แƒ— แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ”แƒ‘แƒ˜ แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒ˜แƒก แƒ›แƒ˜แƒฎแƒ”แƒ“แƒ•แƒ˜แƒ—", "craneFlyStops": "{numberOfStops,plural,=0{แƒžแƒ˜แƒ แƒ“แƒแƒžแƒ˜แƒ แƒ˜}=1{1 แƒ’แƒแƒ“แƒแƒฏแƒ“แƒแƒ›แƒ}other{{numberOfStops} แƒ’แƒแƒ“แƒแƒฏแƒ“แƒแƒ›แƒ}}", "craneSleepProperties": "{totalProperties,plural,=0{แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒกแƒแƒ™แƒฃแƒ—แƒ แƒ”แƒ‘แƒ แƒแƒ  แƒแƒ แƒ˜แƒก}=1{1 แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒกแƒแƒ™แƒฃแƒ—แƒ แƒ”แƒ‘แƒ}other{{totalProperties} แƒฎแƒ”แƒšแƒ›แƒ˜แƒกแƒแƒฌแƒ•แƒ“แƒแƒ›แƒ˜ แƒกแƒแƒ™แƒฃแƒ—แƒ แƒ”แƒ‘แƒ}}", "craneEatRestaurants": "{totalRestaurants,plural,=0{แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ”แƒ‘แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก}=1{1 แƒ แƒ”แƒกแƒขแƒแƒ แƒแƒœแƒ˜}other{{totalRestaurants} แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ”แƒ‘แƒ˜}}", "craneFly0": "แƒแƒกแƒžแƒ”แƒœแƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "demoCupertinoSegmentedControlSubtitle": "iOS-แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒกแƒ”แƒ’แƒ›แƒ”แƒœแƒขแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒ แƒ—แƒ•แƒ", "craneSleep10": "แƒ™แƒแƒ˜แƒ แƒ, แƒ”แƒ’แƒ•แƒ˜แƒžแƒขแƒ”", "craneEat9": "แƒ›แƒแƒ“แƒ แƒ˜แƒ“แƒ˜, แƒ”แƒกแƒžแƒแƒœแƒ”แƒ—แƒ˜", "craneFly1": "แƒ‘แƒ˜แƒ’ แƒกแƒฃแƒ แƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneEat7": "แƒœแƒ”แƒจแƒ•แƒ˜แƒšแƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneEat6": "แƒกแƒ˜แƒ”แƒขแƒšแƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneFly8": "แƒกแƒ˜แƒœแƒ’แƒแƒžแƒฃแƒ แƒ˜", "craneEat4": "แƒžแƒแƒ แƒ˜แƒ–แƒ˜, แƒกแƒแƒคแƒ แƒแƒœแƒ’แƒ”แƒ—แƒ˜", "craneEat3": "แƒžแƒแƒ แƒขแƒšแƒ”แƒœแƒ“แƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneEat2": "แƒ™แƒแƒ แƒ“แƒแƒ‘แƒ, แƒแƒ แƒ’แƒ”แƒœแƒขแƒ˜แƒœแƒ", "craneEat1": "แƒ“แƒแƒšแƒแƒกแƒ˜, แƒจแƒ”แƒ”แƒ แƒ—แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒจแƒขแƒแƒขแƒ”แƒ‘แƒ˜", "craneEat0": "แƒœแƒ”แƒแƒžแƒแƒšแƒ˜, แƒ˜แƒขแƒแƒšแƒ˜แƒ", "craneSleep11": "แƒขแƒแƒ˜แƒžแƒ”แƒ˜, แƒขแƒแƒ˜แƒ•แƒแƒœแƒ˜", "craneSleep3": "แƒฐแƒแƒ•แƒแƒœแƒ, แƒ™แƒฃแƒ‘แƒ", "shrineLogoutButtonCaption": "แƒ’แƒแƒ›แƒแƒกแƒ•แƒšแƒ", "rallyTitleBills": "แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ”แƒ‘แƒ˜", "rallyTitleAccounts": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ”แƒ‘แƒ˜", "shrineProductVagabondSack": "Vagabond-แƒ˜แƒก แƒขแƒแƒ›แƒแƒ แƒ", "rallyAccountDetailDataInterestYtd": "แƒžแƒ แƒแƒชแƒ”แƒœแƒขแƒ แƒ˜ แƒฌแƒšแƒ˜แƒก แƒ“แƒแƒกแƒแƒฌแƒงแƒ˜แƒกแƒ˜แƒ“แƒแƒœ แƒ“แƒฆแƒ”แƒ•แƒแƒœแƒ“แƒ”แƒš แƒ—แƒแƒ แƒ˜แƒฆแƒแƒ›แƒ“แƒ”", "shrineProductWhitneyBelt": "Whitney-แƒก แƒฅแƒแƒ›แƒแƒ แƒ˜", "shrineProductGardenStrand": "Garden strand", "shrineProductStrutEarrings": "Strut-แƒ˜แƒก แƒกแƒแƒงแƒฃแƒ แƒ”แƒ”แƒ‘แƒ˜", "shrineProductVarsitySocks": "Varsity-แƒก แƒฌแƒ˜แƒœแƒ“แƒ”แƒ‘แƒ˜", "shrineProductWeaveKeyring": "Weave -แƒก แƒ’แƒแƒกแƒแƒฆแƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒแƒกแƒฎแƒ›แƒ", "shrineProductGatsbyHat": "Gatsby-แƒก แƒฅแƒฃแƒ“แƒ˜", "shrineProductShrugBag": "แƒ›แƒฎแƒแƒ แƒ–แƒ” แƒ’แƒแƒ“แƒแƒกแƒแƒ™แƒ˜แƒ“แƒ˜ แƒฉแƒแƒœแƒ—แƒ", "shrineProductGiltDeskTrio": "แƒกแƒแƒ›แƒ˜ แƒ›แƒแƒแƒฅแƒ แƒฃแƒšแƒ˜ แƒกแƒแƒ›แƒฃแƒจแƒแƒ แƒ›แƒแƒ’แƒ˜แƒ“แƒ", "shrineProductCopperWireRack": "แƒกแƒžแƒ˜แƒšแƒ”แƒœแƒซแƒ˜แƒก แƒ›แƒแƒ•แƒ—แƒฃแƒšแƒ˜แƒก แƒกแƒแƒ™แƒ˜แƒ“แƒ˜", "shrineProductSootheCeramicSet": "Soothe-แƒ˜แƒก แƒ™แƒ”แƒ แƒแƒ›แƒ˜แƒ™แƒฃแƒšแƒ˜ แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜", "shrineProductHurrahsTeaSet": "Hurrahs-แƒ˜แƒก แƒฉแƒแƒ˜แƒก แƒคแƒ˜แƒœแƒฏแƒœแƒ”แƒ‘แƒ˜แƒก แƒœแƒแƒ™แƒ แƒ”แƒ‘แƒ˜", "shrineProductBlueStoneMug": "Blue Stone-แƒ˜แƒก แƒคแƒ˜แƒœแƒฏแƒแƒœแƒ˜", "shrineProductRainwaterTray": "แƒฌแƒ•แƒ˜แƒ›แƒ˜แƒก แƒฌแƒงแƒšแƒ˜แƒก แƒšแƒแƒœแƒ’แƒแƒ แƒ˜", "shrineProductChambrayNapkins": "แƒจแƒแƒ›แƒ‘แƒ แƒ˜แƒก แƒฎแƒ”แƒšแƒกแƒแƒฎแƒแƒชแƒ”แƒ‘แƒ˜", "shrineProductSucculentPlanters": "แƒกแƒฃแƒ™แƒฃแƒšแƒ”แƒœแƒขแƒ˜แƒก แƒฅแƒแƒ—แƒœแƒ”แƒ‘แƒ˜", "shrineProductQuartetTable": "Quartet-แƒ˜แƒก แƒ›แƒแƒ’แƒ˜แƒ“แƒ", "shrineProductKitchenQuattro": "แƒกแƒแƒ›แƒ–แƒแƒ แƒ”แƒฃแƒšแƒแƒก แƒ™แƒ•แƒแƒขแƒ แƒ", "shrineProductClaySweater": "Clay-แƒก แƒกแƒ•แƒ˜แƒขแƒ”แƒ แƒ˜", "shrineProductSeaTunic": "แƒ–แƒฆแƒ•แƒ˜แƒก แƒขแƒฃแƒœแƒ˜แƒ™แƒ", "shrineProductPlasterTunic": "แƒ—แƒแƒ‘แƒแƒจแƒ˜แƒ แƒ˜แƒกแƒคแƒ”แƒ แƒ˜ แƒขแƒฃแƒœแƒ˜แƒ™แƒ", "rallyBudgetCategoryRestaurants": "แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ”แƒ‘แƒ˜", "shrineProductChambrayShirt": "แƒจแƒแƒ›แƒ‘แƒ แƒ˜แƒก แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "shrineProductSeabreezeSweater": "Seabreeze-แƒ˜แƒก แƒกแƒ•แƒ˜แƒขแƒ”แƒ แƒ˜", "shrineProductGentryJacket": "แƒŸแƒ”แƒœแƒขแƒ แƒ˜แƒก แƒŸแƒแƒ™แƒ”แƒขแƒ˜", "shrineProductNavyTrousers": "แƒ›แƒฃแƒฅแƒ˜ แƒšแƒฃแƒ แƒฏแƒ˜ แƒจแƒแƒ แƒ•แƒแƒšแƒ˜", "shrineProductWalterHenleyWhite": "Walter Henley (แƒ—แƒ”แƒ—แƒ แƒ˜)", "shrineProductSurfAndPerfShirt": "Surf and perf แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "shrineProductGingerScarf": "แƒฏแƒแƒœแƒฏแƒแƒคแƒ˜แƒšแƒ˜แƒกแƒคแƒ”แƒ แƒ˜ แƒจแƒแƒ แƒคแƒ˜", "shrineProductRamonaCrossover": "Ramona-แƒก แƒ’แƒแƒ“แƒแƒกแƒแƒ™แƒ˜แƒ“แƒ˜ แƒฉแƒแƒœแƒ—แƒ", "shrineProductClassicWhiteCollar": "แƒ™แƒšแƒแƒกแƒ˜แƒ™แƒฃแƒ แƒ˜ แƒ—แƒ”แƒ—แƒ แƒกแƒแƒงแƒ”แƒšแƒแƒ˜แƒแƒœแƒ˜", "shrineProductSunshirtDress": "แƒกแƒแƒ–แƒแƒคแƒฎแƒฃแƒšแƒ แƒ™แƒแƒ‘แƒ-แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "rallyAccountDetailDataInterestRate": "แƒกแƒแƒžแƒ แƒแƒชแƒ”แƒœแƒขแƒ แƒ’แƒแƒœแƒแƒ™แƒ•แƒ”แƒ—แƒ˜", "rallyAccountDetailDataAnnualPercentageYield": "แƒฌแƒšแƒ˜แƒฃแƒ แƒ˜ แƒžแƒ แƒแƒชแƒ”แƒœแƒขแƒฃแƒšแƒ˜ แƒกแƒแƒ แƒ’แƒ”แƒ‘แƒ”แƒšแƒ˜", "rallyAccountDataVacation": "แƒ“แƒแƒกแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "shrineProductFineLinesTee": "แƒ–แƒแƒšแƒ”แƒ‘แƒ˜แƒแƒœแƒ˜ แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "rallyAccountDataHomeSavings": "แƒกแƒแƒฎแƒšแƒ˜แƒก แƒ“แƒแƒœแƒแƒ–แƒแƒ’แƒ”แƒ‘แƒ˜", "rallyAccountDataChecking": "แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ”", "rallyAccountDetailDataInterestPaidLastYear": "แƒ’แƒแƒกแƒฃแƒš แƒฌแƒ”แƒšแƒก แƒ’แƒแƒ“แƒแƒฎแƒ“แƒ˜แƒšแƒ˜ แƒžแƒ แƒแƒชแƒ”แƒœแƒขแƒ˜", "rallyAccountDetailDataNextStatement": "แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜ แƒแƒ›แƒแƒœแƒแƒฌแƒ”แƒ แƒ˜", "rallyAccountDetailDataAccountOwner": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ›แƒคแƒšแƒแƒ‘แƒ”แƒšแƒ˜", "rallyBudgetCategoryCoffeeShops": "แƒงแƒแƒ•แƒแƒฎแƒแƒœแƒ”แƒ‘แƒ˜", "rallyBudgetCategoryGroceries": "แƒกแƒฃแƒ แƒกแƒแƒ—แƒ˜", "shrineProductCeriseScallopTee": "แƒ›แƒ แƒ’แƒ•แƒแƒšแƒ˜ แƒคแƒแƒ แƒ›แƒ˜แƒก แƒแƒšแƒฃแƒ‘แƒšแƒ˜แƒกแƒคแƒ”แƒ แƒ˜ แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "rallyBudgetCategoryClothing": "แƒขแƒแƒœแƒกแƒแƒชแƒ›แƒ”แƒšแƒ˜", "rallySettingsManageAccounts": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒ แƒ—แƒ•แƒ", "rallyAccountDataCarSavings": "แƒ“แƒแƒœแƒแƒ–แƒแƒ’แƒ”แƒ‘แƒ˜ แƒ›แƒแƒœแƒฅแƒแƒœแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก", "rallySettingsTaxDocuments": "แƒกแƒแƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜", "rallySettingsPasscodeAndTouchId": "แƒกแƒแƒ˜แƒ“แƒฃแƒ›แƒšแƒ แƒ™แƒแƒ“แƒ˜ แƒ“แƒ Touch ID", "rallySettingsNotifications": "แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "rallySettingsPersonalInformation": "แƒžแƒ”แƒ แƒกแƒแƒœแƒแƒšแƒฃแƒ แƒ˜ แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ", "rallySettingsPaperlessSettings": "Paperless-แƒ˜แƒก แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "rallySettingsFindAtms": "แƒ‘แƒแƒœแƒ™แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒก แƒžแƒแƒ•แƒœแƒ", "rallySettingsHelp": "แƒ“แƒแƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ", "rallySettingsSignOut": "แƒ’แƒแƒกแƒ•แƒšแƒ", "rallyAccountTotal": "แƒกแƒฃแƒš", "rallyBillsDue": "แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒ“แƒ”แƒšแƒ˜แƒ", "rallyBudgetLeft": "แƒ“แƒแƒ แƒฉแƒ”แƒœแƒ˜แƒšแƒ˜แƒ", "rallyAccounts": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ”แƒ‘แƒ˜", "rallyBills": "แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ”แƒ‘แƒ˜", "rallyBudgets": "แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ”แƒ‘แƒ˜", "rallyAlerts": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "rallySeeAll": "แƒงแƒ•แƒ”แƒšแƒแƒก แƒœแƒแƒฎแƒ•แƒ", "rallyFinanceLeft": "แƒ“แƒแƒ แƒฉแƒ", "rallyTitleOverview": "แƒ›แƒ˜แƒ›แƒแƒฎแƒ˜แƒšแƒ•แƒ", "shrineProductShoulderRollsTee": "Shoulder rolls แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "shrineNextButtonCaption": "แƒจแƒ”แƒ›แƒ“แƒ”แƒ’แƒ˜", "rallyTitleBudgets": "แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ”แƒ‘แƒ˜", "rallyTitleSettings": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "rallyLoginLoginToRally": "Rally-แƒจแƒ˜ แƒจแƒ”แƒกแƒ•แƒšแƒ", "rallyLoginNoAccount": "แƒแƒ  แƒ’แƒแƒฅแƒ•แƒ— แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜?", "rallyLoginSignUp": "แƒ แƒ”แƒ’แƒ˜แƒกแƒขแƒ แƒแƒชแƒ˜แƒ", "rallyLoginUsername": "แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜", "rallyLoginPassword": "แƒžแƒแƒ แƒแƒšแƒ˜", "rallyLoginLabelLogin": "แƒจแƒ”แƒกแƒ•แƒšแƒ", "rallyLoginRememberMe": "แƒ“แƒแƒ›แƒ˜แƒ›แƒแƒฎแƒกแƒแƒ•แƒ แƒ”", "rallyLoginButtonLogin": "แƒจแƒ”แƒกแƒ•แƒšแƒ", "rallyAlertsMessageHeadsUpShopping": "แƒ’แƒแƒชแƒœแƒแƒ‘แƒ”แƒ‘แƒ—, แƒ แƒแƒ› แƒแƒ› แƒ—แƒ•แƒ”แƒจแƒ˜ แƒฃแƒ™แƒ•แƒ” แƒ“แƒแƒฎแƒแƒ แƒฏแƒ”แƒ— แƒกแƒแƒงแƒ˜แƒ“แƒšแƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ’แƒแƒœแƒ™แƒฃแƒ—แƒ•แƒœแƒ˜แƒšแƒ˜ แƒ‘แƒ˜แƒฃแƒฏแƒ”แƒขแƒ˜แƒก {percent}.", "rallyAlertsMessageSpentOnRestaurants": "แƒ แƒ”แƒกแƒขแƒแƒ แƒœแƒ”แƒ‘แƒจแƒ˜ แƒแƒ› แƒ™แƒ•แƒ˜แƒ แƒแƒจแƒ˜ แƒ“แƒแƒฎแƒแƒ แƒฏแƒ”แƒ— {amount}.", "rallyAlertsMessageATMFees": "แƒ‘แƒแƒœแƒ™แƒแƒ›แƒแƒขแƒ˜แƒก แƒกแƒแƒ™แƒแƒ›แƒ˜แƒกแƒ˜แƒแƒ”แƒ‘แƒจแƒ˜ แƒแƒ› แƒ—แƒ•แƒ”แƒจแƒ˜ แƒ“แƒแƒฎแƒแƒ แƒฏแƒ”แƒ— {amount}", "rallyAlertsMessageCheckingAccount": "แƒ™แƒแƒ แƒ’แƒ˜แƒ! แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ” แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ–แƒ” แƒœแƒแƒจแƒ—แƒ˜ แƒ’แƒแƒกแƒฃแƒš แƒ—แƒ•แƒ”แƒกแƒ—แƒแƒœ แƒจแƒ”แƒ“แƒแƒ แƒ”แƒ‘แƒ˜แƒ— {percent}-แƒ˜แƒ— แƒ›แƒ”แƒขแƒ˜แƒ.", "shrineMenuCaption": "แƒ›แƒ”แƒœแƒ˜แƒฃ", "shrineCategoryNameAll": "แƒงแƒ•แƒ”แƒšแƒ", "shrineCategoryNameAccessories": "แƒแƒฅแƒกแƒ”แƒกแƒฃแƒแƒ แƒ”แƒ‘แƒ˜", "shrineCategoryNameClothing": "แƒขแƒแƒœแƒกแƒแƒชแƒ›แƒ”แƒšแƒ˜", "shrineCategoryNameHome": "แƒ›แƒ—แƒแƒ•แƒแƒ แƒ˜", "shrineLoginUsernameLabel": "แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒแƒฎแƒ”แƒšแƒ˜", "shrineLoginPasswordLabel": "แƒžแƒแƒ แƒแƒšแƒ˜", "shrineCancelButtonCaption": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "shrineCartTaxCaption": "แƒ’แƒแƒ“แƒแƒกแƒแƒฎแƒแƒ“แƒ˜:", "shrineCartPageCaption": "แƒ™แƒแƒšแƒแƒ—แƒ", "shrineProductQuantity": "แƒ แƒแƒแƒ“แƒ”แƒœแƒแƒ‘แƒ: {quantity}", "shrineProductPrice": "x {price}", "shrineCartItemCount": "{quantity,plural,=0{แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ”แƒ‘แƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก}=1{1 แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜}other{{quantity} แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜}}", "shrineCartClearButtonCaption": "แƒ™แƒแƒšแƒแƒ—แƒ˜แƒก แƒ’แƒแƒกแƒฃแƒคแƒ—แƒแƒ•แƒ”แƒ‘แƒ", "shrineCartTotalCaption": "แƒกแƒฃแƒš", "shrineCartSubtotalCaption": "แƒกแƒฃแƒš:", "shrineCartShippingCaption": "แƒ›แƒ˜แƒฌแƒแƒ“แƒ”แƒ‘แƒ:", "shrineProductGreySlouchTank": "แƒœแƒแƒชแƒ แƒ˜แƒกแƒคแƒ”แƒ แƒ˜ แƒฃแƒกแƒแƒฎแƒ”แƒšแƒ แƒžแƒ”แƒ แƒแƒœแƒ’แƒ˜", "shrineProductStellaSunglasses": "Stella-แƒก แƒ›แƒ–แƒ˜แƒก แƒกแƒแƒ—แƒ•แƒแƒšแƒ”", "shrineProductWhitePinstripeShirt": "แƒ—แƒ”แƒ—แƒ แƒ˜ แƒ–แƒแƒšแƒ”แƒ‘แƒ˜แƒแƒœแƒ˜ แƒ›แƒแƒ˜แƒกแƒฃแƒ แƒ˜", "demoTextFieldWhereCanWeReachYou": "แƒกแƒแƒ“ แƒ“แƒแƒ’แƒ˜แƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ“แƒ”แƒ—?", "settingsTextDirectionLTR": "แƒ›แƒแƒ แƒชแƒฎแƒœแƒ˜แƒ“แƒแƒœ แƒ›แƒแƒ แƒฏแƒ•แƒœแƒ˜แƒ• แƒ“แƒแƒ›แƒฌแƒ”แƒ แƒšแƒแƒ‘แƒ”แƒ‘แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก", "settingsTextScalingLarge": "แƒ“แƒ˜แƒ“แƒ˜", "demoBottomSheetHeader": "แƒ–แƒ”แƒ“แƒ แƒ™แƒแƒšแƒแƒœแƒขแƒ˜แƒขแƒฃแƒšแƒ˜", "demoBottomSheetItem": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ {value}", "demoBottomTextFieldsTitle": "แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "demoTextFieldTitle": "แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜", "demoTextFieldSubtitle": "แƒ แƒ”แƒ“แƒแƒฅแƒขแƒ˜แƒ แƒ”แƒ‘แƒแƒ“แƒ˜ แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒกแƒ แƒ“แƒ แƒ แƒ˜แƒชแƒฎแƒ•แƒ”แƒ‘แƒ˜แƒก แƒ”แƒ แƒ—แƒ˜ แƒฎแƒแƒ–แƒ˜", "demoTextFieldDescription": "แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒ•แƒ”แƒšแƒ”แƒ‘แƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ”แƒ‘แƒก UI-แƒจแƒ˜ แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒจแƒ”แƒงแƒ•แƒแƒœแƒ˜แƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก. แƒ แƒแƒ’แƒแƒ แƒช แƒฌแƒ”แƒกแƒ˜, แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒคแƒแƒ แƒ›แƒ”แƒ‘แƒกแƒ แƒ“แƒ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ”แƒ‘แƒจแƒ˜.", "demoTextFieldShowPasswordLabel": "แƒžแƒแƒ แƒแƒšแƒ˜แƒก แƒ’แƒแƒ›แƒแƒฉแƒ”แƒœแƒ", "demoTextFieldHidePasswordLabel": "แƒžแƒแƒ แƒแƒšแƒ˜แƒก แƒ“แƒแƒ›แƒแƒšแƒ•แƒ", "demoTextFieldFormErrors": "แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒ’แƒแƒ“แƒแƒ’แƒ–แƒแƒ•แƒœแƒแƒ›แƒ“แƒ” แƒ’แƒแƒแƒกแƒฌแƒแƒ แƒแƒ— แƒจแƒ”แƒชแƒ“แƒแƒ›แƒ”แƒ‘แƒ˜.", "demoTextFieldNameRequired": "แƒกแƒแƒญแƒ˜แƒ แƒแƒ แƒกแƒแƒฎแƒ”แƒšแƒ˜.", "demoTextFieldOnlyAlphabeticalChars": "แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒแƒ— แƒ›แƒฎแƒแƒšแƒแƒ“ แƒแƒœแƒ‘แƒแƒœแƒฃแƒ แƒ˜ แƒกแƒ˜แƒ›แƒ‘แƒแƒšแƒแƒ”แƒ‘แƒ˜.", "demoTextFieldEnterUSPhoneNumber": "(###) ###โ€”#### โ€” แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒ”แƒ— แƒแƒจแƒจ-แƒก แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜แƒก แƒœแƒแƒ›แƒ”แƒ แƒ˜.", "demoTextFieldEnterPassword": "แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒจแƒ”แƒ˜แƒงแƒ•แƒแƒœแƒแƒ— แƒžแƒแƒ แƒแƒšแƒ˜.", "demoTextFieldPasswordsDoNotMatch": "แƒžแƒแƒ แƒแƒšแƒ”แƒ‘แƒ˜ แƒแƒ  แƒ”แƒ›แƒ—แƒฎแƒ•แƒ”แƒ•แƒ", "demoTextFieldWhatDoPeopleCallYou": "แƒ แƒแƒ’แƒแƒ  แƒ›แƒแƒ’แƒ›แƒแƒ แƒ—แƒแƒ•แƒ”แƒœ แƒแƒ“แƒแƒ›แƒ˜แƒแƒœแƒ”แƒ‘แƒ˜?", "demoTextFieldNameField": "แƒกแƒแƒฎแƒ”แƒšแƒ˜*", "demoBottomSheetButtonText": "แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒšแƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "demoTextFieldPhoneNumber": "แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜แƒก แƒœแƒแƒ›แƒ”แƒ แƒ˜*", "demoBottomSheetTitle": "แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜", "demoTextFieldEmail": "แƒ”แƒšแƒคแƒแƒกแƒขแƒ", "demoTextFieldTellUsAboutYourself": "แƒ’แƒ•แƒ˜แƒแƒ›แƒ‘แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœ แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘ (แƒ›แƒแƒ’., แƒ“แƒแƒฌแƒ”แƒ แƒ”แƒ—, แƒ แƒแƒก แƒกแƒแƒฅแƒ›แƒ˜แƒแƒœแƒแƒ‘แƒ— แƒแƒœ แƒ แƒ แƒฐแƒแƒ‘แƒ˜ แƒ’แƒแƒฅแƒ•แƒ—)", "demoTextFieldKeepItShort": "แƒ”แƒชแƒแƒ“แƒ”แƒ— แƒ›แƒแƒ™แƒšแƒ” แƒ˜แƒงแƒแƒก, แƒ”แƒก แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ“แƒ”แƒ›แƒแƒ.", "starterAppGenericButton": "แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoTextFieldLifeStory": "แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ˜แƒกแƒ”แƒฃแƒšแƒ˜ แƒแƒ›แƒ‘แƒแƒ•แƒ˜", "demoTextFieldSalary": "แƒฎแƒ”แƒšแƒคแƒแƒกแƒ˜", "demoTextFieldUSD": "USD", "demoTextFieldNoMoreThan": "แƒ›แƒแƒฅแƒกแƒ˜แƒ›แƒฃแƒ› 8 แƒกแƒ˜แƒ›แƒ‘แƒแƒšแƒ.", "demoTextFieldPassword": "แƒžแƒแƒ แƒแƒšแƒ˜*", "demoTextFieldRetypePassword": "แƒฎแƒ”แƒšแƒแƒฎแƒšแƒ แƒแƒ™แƒ แƒ˜แƒคแƒ”แƒ— แƒžแƒแƒ แƒแƒšแƒ˜*", "demoTextFieldSubmit": "แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ", "demoBottomNavigationSubtitle": "แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ แƒฏแƒ•แƒแƒ แƒ”แƒ“แƒ˜แƒœแƒแƒ“ แƒ’แƒแƒ‘แƒฃแƒœแƒ“แƒแƒ•แƒแƒœแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒฎแƒ”แƒ“แƒ”แƒ‘แƒ˜แƒ—", "demoBottomSheetAddLabel": "แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ", "demoBottomSheetModalDescription": "แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜ แƒแƒ แƒ˜แƒก แƒ›แƒ”แƒœแƒ˜แƒฃแƒก แƒแƒœ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜แƒก แƒแƒšแƒขแƒ”แƒ แƒœแƒแƒขแƒ˜แƒ•แƒ แƒ“แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒฃแƒ–แƒฆแƒฃแƒ“แƒแƒ•แƒก แƒแƒžแƒ˜แƒก แƒ“แƒแƒœแƒแƒ แƒฉแƒ”แƒœ แƒœแƒแƒฌแƒ˜แƒšแƒ—แƒแƒœ แƒ˜แƒœแƒขแƒ”แƒ แƒแƒฅแƒชแƒ˜แƒแƒก.", "demoBottomSheetModalTitle": "แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜", "demoBottomSheetPersistentDescription": "แƒ›แƒฃแƒ“แƒ›แƒ˜แƒ•แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒแƒ•แƒกแƒ”แƒ‘แƒก แƒแƒžแƒ˜แƒก แƒซแƒ˜แƒ แƒ˜แƒ—แƒแƒ“ แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒก. แƒ›แƒฃแƒ“แƒ›แƒ˜แƒ•แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜ แƒฎแƒ˜แƒšแƒ•แƒแƒ“แƒ˜แƒ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒ›แƒ˜แƒ”แƒ  แƒแƒžแƒ˜แƒก แƒกแƒฎแƒ•แƒ แƒœแƒแƒฌแƒ˜แƒšแƒ”แƒ‘แƒ—แƒแƒœ แƒ˜แƒœแƒขแƒ”แƒ แƒแƒฅแƒชแƒ˜แƒ˜แƒก แƒ“แƒ แƒแƒกแƒแƒช.", "demoBottomSheetPersistentTitle": "แƒ›แƒฃแƒ“แƒ›แƒ˜แƒ•แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜", "demoBottomSheetSubtitle": "แƒ›แƒฃแƒ“แƒ›แƒ˜แƒ•แƒ˜ แƒ“แƒ แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜ แƒฅแƒ•แƒ”แƒ“แƒ แƒคแƒฃแƒ แƒชแƒšแƒ”แƒ‘แƒ˜", "demoTextFieldNameHasPhoneNumber": "{name} แƒขแƒ”แƒšแƒ”แƒคแƒแƒœแƒ˜แƒก แƒœแƒแƒ›แƒ”แƒ แƒ˜แƒ {phoneNumber}", "buttonText": "แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoTypographyDescription": "แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒ”แƒ‘แƒ”แƒ‘แƒ˜ Material Design-แƒจแƒ˜ แƒแƒ แƒกแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒฎแƒ•แƒแƒ“แƒแƒกแƒฎแƒ•แƒ แƒขแƒ˜แƒžแƒแƒ’แƒ แƒแƒคแƒ˜แƒฃแƒšแƒ˜ แƒกแƒขแƒ˜แƒšแƒ˜แƒกแƒ—แƒ•แƒ˜แƒก.", "demoTypographySubtitle": "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒงแƒ•แƒ”แƒšแƒ แƒฌแƒ˜แƒœแƒแƒกแƒฌแƒแƒ  แƒ’แƒแƒœแƒแƒกแƒแƒ–แƒฆแƒ•แƒ แƒฃแƒšแƒ˜ แƒกแƒขแƒ˜แƒšแƒ˜", "demoTypographyTitle": "แƒขแƒ˜แƒžแƒแƒ’แƒ แƒแƒคแƒ˜แƒ", "demoFullscreenDialogDescription": "fullscreenDialog แƒ—แƒ•แƒ˜แƒกแƒ”แƒ‘แƒ แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒแƒ•แƒก, แƒแƒ แƒ˜แƒก แƒ—แƒฃ แƒแƒ แƒ แƒจแƒ”แƒ›แƒแƒ›แƒแƒ•แƒแƒšแƒ˜ แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜ แƒกแƒ แƒฃแƒšแƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœแƒ˜ แƒ›แƒแƒ“แƒแƒšแƒฃแƒ แƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜", "demoFlatButtonDescription": "แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒกแƒแƒก แƒ‘แƒ แƒขแƒงแƒ”แƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒ›แƒ”แƒšแƒœแƒ˜แƒก แƒจแƒฎแƒ”แƒคแƒ”แƒ‘แƒก, แƒ›แƒแƒ’แƒ แƒแƒ› แƒแƒ  แƒ˜แƒฌแƒ”แƒ•แƒ. แƒ’แƒแƒ›แƒแƒ˜แƒงแƒ”แƒœแƒ”แƒ— แƒ‘แƒ แƒขแƒงแƒ”แƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒฎแƒ”แƒšแƒกแƒแƒฌแƒงแƒแƒ—แƒ แƒ–แƒแƒšแƒ”แƒ‘แƒจแƒ˜, แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ”แƒ‘แƒจแƒ˜ แƒ“แƒ แƒฉแƒแƒ แƒ—แƒฃแƒšแƒ˜ แƒกแƒแƒฎแƒ˜แƒ— แƒ“แƒแƒจแƒแƒ แƒ”แƒ‘แƒ˜แƒ—", "demoBottomNavigationDescription": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒ–แƒแƒšแƒ”แƒ‘แƒ˜ แƒ”แƒ™แƒ แƒแƒœแƒ˜แƒก แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒฌแƒ˜แƒšแƒจแƒ˜ แƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒก แƒกแƒแƒ›แƒ˜แƒ“แƒแƒœ แƒฎแƒฃแƒ— แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒ“แƒ’แƒ˜แƒšแƒแƒ›แƒ“แƒ”. แƒ“แƒแƒœแƒ˜แƒจแƒœแƒฃแƒšแƒ”แƒ‘แƒ˜แƒก แƒ—แƒ˜แƒ—แƒแƒ”แƒฃแƒšแƒ˜ แƒแƒ“แƒ’แƒ˜แƒšแƒ˜ แƒฌแƒแƒ แƒ›แƒแƒ“แƒ’แƒ”แƒœแƒ˜แƒšแƒ˜แƒ แƒฎแƒแƒขแƒฃแƒšแƒแƒ—แƒ˜ แƒ“แƒ แƒแƒ แƒแƒกแƒ•แƒแƒšแƒ“แƒ”แƒ‘แƒฃแƒšแƒ แƒขแƒ”แƒฅแƒกแƒขแƒฃแƒ แƒ˜ แƒšแƒ”แƒ˜แƒ‘แƒšแƒ˜แƒ—. แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ˜แƒก แƒฎแƒแƒขแƒฃแƒšแƒแƒ–แƒ” แƒจแƒ”แƒฎแƒ”แƒ‘แƒ˜แƒกแƒแƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ’แƒแƒ“แƒแƒ“แƒ˜แƒก แƒฎแƒแƒขแƒฃแƒšแƒแƒกแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒ–แƒ”แƒ“แƒ แƒ“แƒแƒœแƒ˜แƒก แƒกแƒแƒ›แƒ˜แƒ–แƒœแƒ” แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒแƒ–แƒ”.", "demoBottomNavigationSelectedLabel": "แƒแƒ แƒฉแƒ”แƒฃแƒšแƒ˜ แƒšแƒ”แƒ˜แƒ‘แƒšแƒ˜", "demoBottomNavigationPersistentLabels": "แƒ›แƒฃแƒ“แƒ›แƒ˜แƒ•แƒ˜ แƒฌแƒแƒ แƒฌแƒ”แƒ แƒ”แƒ‘แƒ˜", "starterAppDrawerItem": "แƒ”แƒ แƒ—แƒ”แƒฃแƒšแƒ˜ {value}", "demoTextFieldRequiredField": "* แƒแƒฆแƒœแƒ˜แƒจแƒœแƒแƒ•แƒก แƒแƒฃแƒชแƒ˜แƒšแƒ”แƒ‘แƒ”แƒš แƒ•แƒ”แƒšแƒก", "demoBottomNavigationTitle": "แƒœแƒแƒ•แƒ˜แƒ’แƒแƒชแƒ˜แƒ แƒฅแƒ•แƒ”แƒ“แƒ แƒœแƒแƒฌแƒ˜แƒšแƒจแƒ˜", "settingsLightTheme": "แƒฆแƒ˜แƒ", "settingsTheme": "แƒ—แƒ”แƒ›แƒ", "settingsPlatformIOS": "iOS", "settingsPlatformAndroid": "Android", "settingsTextDirectionRTL": "แƒ›แƒแƒ แƒฏแƒ•แƒœแƒ˜แƒ“แƒแƒœ แƒ›แƒแƒ แƒชแƒฎแƒœแƒ˜แƒ• แƒ“แƒแƒ›แƒฌแƒ”แƒ แƒšแƒแƒ‘แƒ”แƒ‘แƒ˜แƒกแƒแƒ—แƒ•แƒ˜แƒก", "settingsTextScalingHuge": "แƒฃแƒ–แƒแƒ แƒ›แƒแƒ–แƒแƒ แƒ˜", "cupertinoButton": "แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "settingsTextScalingNormal": "แƒฉแƒ•แƒ”แƒฃแƒšแƒ”แƒ‘แƒ แƒ˜แƒ•แƒ˜", "settingsTextScalingSmall": "แƒ›แƒชแƒ˜แƒ แƒ”", "settingsSystemDefault": "แƒกแƒ˜แƒกแƒขแƒ”แƒ›แƒ", "settingsTitle": "แƒžแƒแƒ แƒแƒ›แƒ”แƒขแƒ แƒ”แƒ‘แƒ˜", "rallyDescription": "แƒžแƒ˜แƒ แƒแƒ“แƒ˜ แƒคแƒ˜แƒœแƒแƒœแƒกแƒ”แƒ‘แƒ˜แƒก แƒแƒžแƒ˜", "aboutDialogDescription": "แƒแƒ› แƒแƒžแƒ˜แƒก แƒกแƒแƒฌแƒงแƒ˜แƒกแƒ˜ แƒ™แƒแƒ“แƒ˜แƒก แƒกแƒแƒœแƒแƒฎแƒแƒ•แƒแƒ“, แƒ’แƒ—แƒฎแƒแƒ•แƒ—, แƒ›แƒแƒ˜แƒœแƒแƒฎแƒฃแƒšแƒแƒ— {repoLink}.", "bottomNavigationCommentsTab": "แƒ™แƒแƒ›แƒ”แƒœแƒขแƒแƒ แƒ”แƒ‘แƒ˜", "starterAppGenericBody": "แƒซแƒ˜แƒ แƒ˜แƒ—แƒแƒ“แƒ˜ แƒขแƒ”แƒฅแƒกแƒขแƒ˜", "starterAppGenericHeadline": "แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜", "starterAppGenericSubtitle": "แƒกแƒฃแƒ‘แƒขแƒ˜แƒขแƒ แƒ˜", "starterAppGenericTitle": "แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜", "starterAppTooltipSearch": "แƒซแƒ˜แƒ”แƒ‘แƒ", "starterAppTooltipShare": "แƒ’แƒแƒ–แƒ˜แƒแƒ แƒ”แƒ‘แƒ", "starterAppTooltipFavorite": "แƒ แƒฉแƒ”แƒฃแƒšแƒ˜", "starterAppTooltipAdd": "แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ", "bottomNavigationCalendarTab": "แƒ™แƒแƒšแƒ”แƒœแƒ“แƒแƒ แƒ˜", "starterAppDescription": "แƒแƒ“แƒแƒžแƒขแƒ˜แƒ แƒ”แƒ‘แƒแƒ“แƒ˜ แƒกแƒแƒฌแƒงแƒ˜แƒกแƒ˜ แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ", "starterAppTitle": "แƒกแƒแƒฌแƒงแƒ˜แƒกแƒ˜ แƒแƒžแƒ˜", "aboutFlutterSamplesRepo": "Flutter-แƒ˜แƒก แƒœแƒ˜แƒ›แƒฃแƒจแƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒชแƒแƒ•แƒ˜ GitHub-แƒ–แƒ”", "bottomNavigationContentPlaceholder": "แƒฉแƒแƒœแƒแƒชแƒ•แƒšแƒ”แƒ‘แƒ˜แƒก แƒ•แƒ”แƒšแƒ˜ แƒฉแƒแƒœแƒแƒ แƒ—แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก โ€ž{title}โ€œ", "bottomNavigationCameraTab": "แƒ™แƒแƒ›แƒ”แƒ แƒ", "bottomNavigationAlarmTab": "แƒ›แƒแƒฆแƒ•แƒ˜แƒซแƒแƒ แƒ", "bottomNavigationAccountTab": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜", "demoTextFieldYourEmailAddress": "แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒ”แƒšแƒคแƒแƒกแƒขแƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒ›แƒแƒ แƒ—แƒ˜", "demoToggleButtonDescription": "แƒ’แƒแƒ“แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ”แƒจแƒ•แƒ”แƒแƒ‘แƒ˜แƒ— แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒ›แƒกแƒ’แƒแƒ•แƒกแƒ˜ แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒฏแƒ’แƒฃแƒคแƒ”แƒ‘แƒ. แƒ’แƒแƒ“แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒฏแƒ’แƒฃแƒคแƒ”แƒ‘แƒก แƒฃแƒœแƒ“แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒกแƒแƒ”แƒ แƒ—แƒ แƒ™แƒแƒœแƒขแƒ”แƒ˜แƒœแƒ”แƒ แƒ˜.", "colorsGrey": "แƒœแƒแƒชแƒ แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsBrown": "แƒงแƒแƒ•แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsDeepOrange": "แƒ›แƒฃแƒฅแƒ˜ แƒœแƒแƒ แƒ˜แƒœแƒฏแƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsOrange": "แƒœแƒแƒ แƒ˜แƒœแƒฏแƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsAmber": "แƒฅแƒแƒ แƒ•แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsYellow": "แƒงแƒ•แƒ˜แƒ—แƒ”แƒšแƒ˜", "colorsLime": "แƒšแƒแƒ˜แƒ›แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsLightGreen": "แƒฆแƒ˜แƒ แƒ›แƒฌแƒ•แƒแƒœแƒ”", "colorsGreen": "แƒ›แƒฌแƒ•แƒแƒœแƒ”", "homeHeaderGallery": "แƒ’แƒแƒšแƒ”แƒ แƒ”แƒ", "homeHeaderCategories": "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜", "shrineDescription": "แƒ›แƒแƒ“แƒฃแƒ แƒ˜ แƒแƒžแƒ˜ แƒกแƒแƒชแƒแƒšแƒ แƒ›แƒแƒ•แƒแƒญแƒ แƒ”แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก", "craneDescription": "แƒžแƒ”แƒ แƒกแƒแƒœแƒแƒšแƒ˜แƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒแƒ›แƒแƒ’แƒ–แƒแƒฃแƒ แƒ แƒแƒžแƒ˜", "homeCategoryReference": "แƒกแƒขแƒ˜แƒšแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒกแƒฎแƒ•แƒ", "demoInvalidURL": "URL-แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ แƒ•แƒ”แƒ  แƒ›แƒแƒฎแƒ”แƒ แƒฎแƒ“แƒ:", "demoOptionsTooltip": "แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒ”แƒ‘แƒ˜", "demoInfoTooltip": "แƒ˜แƒœแƒคแƒแƒ แƒ›แƒแƒชแƒ˜แƒ", "demoCodeTooltip": "แƒ“แƒ”แƒ›แƒแƒก แƒ™แƒแƒ“แƒ˜", "demoDocumentationTooltip": "API แƒ“แƒแƒ™แƒฃแƒ›แƒ”แƒœแƒขแƒแƒชแƒ˜แƒ", "demoFullscreenTooltip": "แƒกแƒ แƒฃแƒš แƒ”แƒ™แƒ แƒแƒœแƒ–แƒ”", "settingsTextScaling": "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒกแƒ™แƒแƒšแƒ˜แƒ แƒ”แƒ‘แƒ", "settingsTextDirection": "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก แƒ›แƒ˜แƒ›แƒแƒ แƒ—แƒฃแƒšแƒ”แƒ‘แƒ", "settingsLocale": "แƒšแƒแƒ™แƒแƒšแƒ˜", "settingsPlatformMechanics": "แƒžแƒšแƒแƒขแƒคแƒแƒ แƒ›แƒ˜แƒก แƒ›แƒ”แƒฅแƒแƒœแƒ˜แƒ™แƒ", "settingsDarkTheme": "แƒ›แƒฃแƒฅแƒ˜", "settingsSlowMotion": "แƒจแƒ”แƒœแƒ”แƒšแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ›แƒแƒซแƒ แƒแƒแƒ‘แƒ", "settingsAbout": "Flutter Gallery-แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘", "settingsFeedback": "แƒ’แƒแƒ›แƒแƒฎแƒ›แƒแƒฃแƒ แƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ’แƒ–แƒแƒ•แƒœแƒ", "settingsAttribution": "แƒจแƒ”แƒฅแƒ›แƒœแƒ˜แƒšแƒ˜แƒ TOASTER-แƒ˜แƒก แƒ›แƒ˜แƒ”แƒ  แƒšแƒแƒœแƒ“แƒแƒœแƒจแƒ˜", "demoButtonTitle": "แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜", "demoButtonSubtitle": "แƒขแƒ”แƒฅแƒกแƒขแƒ˜แƒก, แƒแƒ›แƒแƒฌแƒ”แƒฃแƒšแƒ˜, แƒ™แƒแƒœแƒขแƒฃแƒ แƒ˜แƒแƒœแƒ˜ แƒ“แƒ แƒกแƒฎแƒ•แƒ", "demoFlatButtonTitle": "แƒ‘แƒ แƒขแƒงแƒ”แƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoRaisedButtonDescription": "แƒแƒ›แƒแƒฌแƒ”แƒฃแƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜ แƒ‘แƒ แƒขแƒงแƒ”แƒš แƒ’แƒแƒœแƒšแƒแƒ’แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒก แƒฃแƒคแƒ แƒ แƒ›แƒแƒชแƒฃแƒšแƒแƒ‘แƒ˜แƒ—แƒก แƒฎแƒ“แƒ˜แƒก. แƒ’แƒแƒ“แƒแƒขแƒ•แƒ˜แƒ แƒ—แƒฃแƒš แƒแƒœ แƒคแƒแƒ แƒ—แƒ แƒกแƒ˜แƒ•แƒ แƒชแƒ”แƒ”แƒ‘แƒ–แƒ” แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ”แƒ‘แƒก แƒ™แƒ˜ย โ€” แƒฃแƒคแƒ แƒ แƒจแƒ”แƒกแƒแƒ›แƒฉแƒœแƒ”แƒ•แƒก.", "demoRaisedButtonTitle": "แƒแƒ›แƒแƒฌแƒ”แƒฃแƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoOutlineButtonTitle": "แƒ™แƒแƒœแƒขแƒฃแƒ แƒฃแƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoOutlineButtonDescription": "แƒ™แƒแƒœแƒขแƒฃแƒ แƒฃแƒš แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ–แƒ” แƒ“แƒแƒญแƒ”แƒ แƒ˜แƒกแƒแƒก แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฎแƒ“แƒ”แƒ‘แƒ แƒ’แƒแƒฃแƒ›แƒญแƒ•แƒ˜แƒ แƒ•แƒแƒšแƒ” แƒ“แƒ แƒ˜แƒฌแƒ”แƒ•แƒ. แƒ˜แƒกแƒ˜แƒœแƒ˜ แƒฎแƒจแƒ˜แƒ แƒแƒ“ แƒฌแƒงแƒ•แƒ˜แƒšแƒ“แƒ”แƒ‘แƒ แƒแƒ›แƒแƒฌแƒ”แƒฃแƒš แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ—แƒแƒœ แƒแƒšแƒขแƒ”แƒ แƒœแƒแƒขแƒ˜แƒฃแƒšแƒ˜, แƒ›แƒ”แƒแƒ แƒ”แƒฃแƒšแƒ˜ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒกแƒแƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒšแƒแƒ“.", "demoToggleButtonTitle": "แƒ’แƒแƒ“แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜", "colorsTeal": "แƒ–แƒฃแƒ แƒ›แƒฃแƒฎแƒขแƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "demoFloatingButtonTitle": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜", "demoFloatingButtonDescription": "แƒ›แƒแƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ›แƒแƒšแƒ˜แƒ•แƒšแƒ˜แƒ•แƒ” แƒฆแƒ˜แƒšแƒแƒ™แƒ˜ แƒแƒ แƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ˜ แƒฌแƒ แƒ˜แƒฃแƒšแƒ˜ แƒฎแƒแƒขแƒฃแƒšแƒ˜แƒ—, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒก แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜แƒก แƒ–แƒ”แƒ›แƒแƒ“แƒแƒœ แƒ“แƒ แƒแƒžแƒšแƒ˜แƒ™แƒแƒชแƒ˜แƒแƒจแƒ˜ แƒงแƒ•แƒ”แƒšแƒแƒ–แƒ” แƒ›แƒœแƒ˜แƒจแƒ•แƒœแƒ”แƒšแƒแƒ•แƒแƒœแƒ˜ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒแƒคแƒ˜แƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒ˜แƒซแƒšแƒ”แƒ•แƒ.", "demoDialogTitle": "แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ˜", "demoDialogSubtitle": "แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜, แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ“แƒ แƒกแƒ แƒฃแƒšแƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœแƒ˜", "demoAlertDialogTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ", "demoAlertDialogDescription": "แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜ แƒแƒชแƒœแƒแƒ‘แƒ”แƒ‘แƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒ˜แƒกแƒ”แƒ—แƒ˜ แƒกแƒ˜แƒขแƒฃแƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒงแƒฃแƒ แƒแƒ“แƒฆแƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฅแƒชแƒ”แƒ•แƒแƒก แƒกแƒแƒญแƒ˜แƒ แƒแƒ”แƒ‘แƒก. แƒกแƒฃแƒ แƒ•แƒ˜แƒšแƒ˜แƒกแƒแƒ›แƒ”แƒ‘แƒ , แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒš แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜ แƒ“แƒ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒกแƒ˜แƒ.", "demoAlertTitleDialogTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜แƒ—", "demoSimpleDialogTitle": "แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜", "demoSimpleDialogDescription": "แƒ›แƒแƒ แƒขแƒ˜แƒ•แƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒ แƒแƒ›แƒ“แƒ”แƒœแƒ˜แƒ›แƒ” แƒ•แƒแƒ แƒ˜แƒแƒœแƒขแƒก แƒจแƒแƒ แƒ˜แƒก แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒ’แƒแƒ™แƒ”แƒ—แƒ”แƒ‘แƒ˜แƒก แƒกแƒแƒจแƒฃแƒแƒšแƒ”แƒ‘แƒแƒก แƒแƒซแƒšแƒ”แƒ•แƒก. แƒกแƒฃแƒ แƒ•แƒ˜แƒšแƒ˜แƒกแƒแƒ›แƒ”แƒ‘แƒ , แƒ›แƒแƒ แƒขแƒ˜แƒ• แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒ–แƒ”แƒ›แƒแƒ—.", "demoFullscreenDialogTitle": "แƒกแƒ แƒฃแƒš แƒ”แƒ™แƒ แƒแƒœแƒ–แƒ”", "demoCupertinoButtonsTitle": "แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜", "demoCupertinoButtonsSubtitle": "iOS-แƒ˜แƒก แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜", "demoCupertinoButtonsDescription": "iOS-แƒ˜แƒก แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒฆแƒ˜แƒšแƒแƒ™แƒ˜. แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒก แƒขแƒ”แƒฅแƒกแƒขแƒก แƒ“แƒ/แƒแƒœ แƒฎแƒแƒขแƒฃแƒšแƒแƒก, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒฅแƒ แƒ”แƒ‘แƒ แƒแƒœ แƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒจแƒ”แƒฎแƒ”แƒ‘แƒ˜แƒกแƒแƒก. แƒกแƒฃแƒ แƒ•แƒ˜แƒšแƒ˜แƒกแƒแƒ›แƒ”แƒ‘แƒ , แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒคแƒแƒœแƒ˜.", "demoCupertinoAlertsTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒ‘แƒ˜", "demoCupertinoAlertsSubtitle": "iOS-แƒ˜แƒก แƒกแƒขแƒ˜แƒšแƒ˜แƒก แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ”แƒ‘แƒ˜", "demoCupertinoAlertTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ", "demoCupertinoAlertDescription": "แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜ แƒแƒชแƒœแƒแƒ‘แƒ”แƒ‘แƒก แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒ˜แƒกแƒ”แƒ—แƒ˜ แƒกแƒ˜แƒขแƒฃแƒแƒชแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒกแƒแƒฎแƒ”แƒ‘, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒงแƒฃแƒ แƒแƒ“แƒฆแƒ”แƒ‘แƒ˜แƒก แƒ›แƒ˜แƒฅแƒชแƒ”แƒ•แƒแƒก แƒกแƒแƒญแƒ˜แƒ แƒแƒ”แƒ‘แƒก. แƒกแƒฃแƒ แƒ•แƒ˜แƒšแƒ˜แƒกแƒแƒ›แƒ”แƒ‘แƒ , แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒš แƒ“แƒ˜แƒแƒšแƒแƒ’แƒก แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜, แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜ แƒ“แƒ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒกแƒ˜แƒ. แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜ แƒœแƒแƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ˜แƒ แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜แƒก แƒ—แƒแƒ•แƒ–แƒ”, แƒฎแƒแƒšแƒ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒ”แƒ‘แƒ˜ย โ€” แƒ™แƒแƒœแƒขแƒ”แƒœแƒขแƒ˜แƒก แƒฅแƒ•แƒ”แƒ›แƒแƒ—.", "demoCupertinoAlertWithTitleTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜แƒ—", "demoCupertinoAlertButtonsTitle": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜แƒ—", "demoCupertinoAlertButtonsOnlyTitle": "แƒ›แƒฎแƒแƒšแƒแƒ“ แƒ’แƒแƒ›แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ”แƒšแƒ˜ แƒฆแƒ˜แƒšแƒแƒ™แƒ”แƒ‘แƒ˜", "demoCupertinoActionSheetTitle": "แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜", "demoCupertinoActionSheetDescription": "แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒ˜ แƒแƒ แƒ˜แƒก แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒ™แƒแƒœแƒ™แƒ แƒ”แƒขแƒฃแƒšแƒ˜ แƒกแƒขแƒ˜แƒšแƒ˜, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒก แƒกแƒ—แƒแƒ•แƒแƒ–แƒแƒ‘แƒก แƒ›แƒ˜แƒ›แƒ“แƒ˜แƒœแƒแƒ แƒ” แƒ™แƒแƒœแƒขแƒ”แƒฅแƒกแƒขแƒ—แƒแƒœ แƒ“แƒแƒ™แƒแƒ•แƒจแƒ˜แƒ แƒ”แƒ‘แƒฃแƒš แƒแƒ  แƒแƒœ แƒ›แƒ”แƒข แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒก. แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒคแƒฃแƒ แƒชแƒ”แƒšแƒก แƒจแƒ”แƒ˜แƒซแƒšแƒ”แƒ‘แƒ แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒกแƒแƒ—แƒแƒฃแƒ แƒ˜, แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ˜แƒ—แƒ˜ แƒจแƒ”แƒขแƒงแƒแƒ‘แƒ˜แƒœแƒ”แƒ‘แƒ แƒ“แƒ แƒฅแƒ›แƒ”แƒ“แƒ”แƒ‘แƒแƒ—แƒ แƒกแƒ˜แƒ.", "demoColorsTitle": "แƒคแƒ”แƒ แƒ”แƒ‘แƒ˜", "demoColorsSubtitle": "แƒฌแƒ˜แƒœแƒแƒกแƒฌแƒแƒ  แƒ’แƒแƒœแƒกแƒแƒ–แƒฆแƒ•แƒ แƒฃแƒšแƒ˜ แƒงแƒ•แƒ”แƒšแƒ แƒคแƒ”แƒ แƒ˜", "demoColorsDescription": "แƒ™แƒแƒœแƒกแƒขแƒแƒœแƒขแƒ”แƒ‘แƒ˜ แƒคแƒ”แƒ แƒ”แƒ‘แƒ˜แƒกแƒ แƒ“แƒ แƒ’แƒ แƒแƒ“แƒ˜แƒ”แƒœแƒขแƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒ แƒแƒ›แƒšแƒ”แƒ‘แƒ˜แƒช แƒฌแƒแƒ แƒ›แƒแƒแƒ“แƒ’แƒ”แƒœแƒก Material Design-แƒ˜แƒก แƒคแƒ”แƒ แƒ—แƒ แƒžแƒแƒšแƒ˜แƒขแƒ แƒแƒก.", "buttonTextEnabled": "ENABLED", "buttonTextDisabled": "DISABLED", "buttonTextCreate": "แƒจแƒ”แƒฅแƒ›แƒœแƒ", "dialogSelectedOption": "แƒ—แƒฅแƒ•แƒ”แƒœ แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ—: โ€ž{value}โ€œ", "dialogDiscardTitle": "แƒ’แƒกแƒฃแƒ แƒ— แƒ›แƒแƒœแƒแƒฎแƒแƒ–แƒ˜แƒก แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ?", "dialogLocationTitle": "แƒ’แƒกแƒฃแƒ แƒ— Google-แƒ˜แƒก แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ˜แƒก แƒกแƒ”แƒ แƒ•แƒ˜แƒกแƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ?", "dialogLocationDescription": "Google-แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒœแƒ”แƒ‘แƒ˜แƒก แƒ“แƒแƒ แƒ—แƒ•แƒ, แƒ แƒแƒ› แƒแƒžแƒ”แƒ‘แƒก แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ˜แƒก แƒแƒ›แƒแƒชแƒœแƒแƒ‘แƒแƒจแƒ˜ แƒ“แƒแƒ”แƒฎแƒ›แƒแƒ แƒแƒก. แƒ”แƒก แƒœแƒ˜แƒจแƒœแƒแƒ•แƒก, แƒ แƒแƒ› Google-แƒจแƒ˜ แƒ’แƒแƒ“แƒแƒ˜แƒ’แƒ–แƒแƒ•แƒœแƒ”แƒ‘แƒ แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ˜แƒก แƒแƒœแƒแƒœแƒ˜แƒ›แƒฃแƒ แƒ˜ แƒ›แƒแƒœแƒแƒชแƒ”แƒ›แƒ”แƒ‘แƒ˜ แƒ›แƒแƒจแƒ˜แƒœแƒแƒช แƒ™แƒ˜, แƒ แƒแƒ“แƒ”แƒกแƒแƒช แƒแƒžแƒ”แƒ‘แƒ˜ แƒ’แƒแƒจแƒ•แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒแƒ  แƒแƒ แƒ˜แƒก.", "dialogCancel": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "dialogDiscard": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "dialogDisagree": "แƒแƒ  แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜", "dialogAgree": "แƒ•แƒ”แƒ—แƒแƒœแƒฎแƒ›แƒ”แƒ‘แƒ˜", "dialogSetBackup": "แƒกแƒแƒ แƒ”แƒ–แƒ”แƒ แƒ•แƒ แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ", "colorsBlueGrey": "แƒ›แƒแƒšแƒฃแƒ แƒฏแƒ แƒœแƒแƒชแƒ แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "dialogShow": "แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "dialogFullscreenTitle": "แƒกแƒ แƒฃแƒšแƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœแƒ˜ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜", "dialogFullscreenSave": "แƒจแƒ”แƒœแƒแƒฎแƒ•แƒ", "dialogFullscreenDescription": "แƒกแƒ แƒฃแƒšแƒ”แƒ™แƒ แƒแƒœแƒ˜แƒแƒœ แƒ“แƒ˜แƒแƒšแƒแƒ’แƒ˜แƒก แƒ“แƒ”แƒ›แƒแƒœแƒกแƒขแƒ แƒแƒชแƒ˜แƒ", "cupertinoButtonEnabled": "Enabled", "cupertinoButtonDisabled": "Disabled", "cupertinoButtonWithBackground": "แƒ—แƒ”แƒ—แƒ แƒ˜ แƒคแƒแƒœแƒ˜", "cupertinoAlertCancel": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "cupertinoAlertDiscard": "แƒ’แƒแƒฃแƒฅแƒ›แƒ”แƒ‘แƒ", "cupertinoAlertLocationTitle": "แƒ’แƒกแƒฃแƒ แƒ—, Maps-แƒก แƒฐแƒฅแƒแƒœแƒ“แƒ”แƒก แƒฌแƒ•แƒ“แƒแƒ›แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒแƒ–แƒ” แƒแƒ› แƒแƒžแƒ˜แƒก แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒ˜แƒกแƒแƒก?", "cupertinoAlertLocationDescription": "แƒ แƒฃแƒ™แƒแƒ–แƒ” แƒ’แƒแƒ›แƒแƒฉแƒœแƒ“แƒ”แƒ‘แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒ›แƒŸแƒแƒ›แƒ˜แƒœแƒ“แƒ”แƒšแƒ˜ แƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ”แƒแƒ‘แƒ, แƒ แƒแƒ›แƒ”แƒšแƒ˜แƒช แƒ’แƒแƒ›แƒแƒงแƒ”แƒœแƒ”แƒ‘แƒฃแƒšแƒ˜ แƒ˜แƒฅแƒœแƒ”แƒ‘แƒ แƒ›แƒ˜แƒ—แƒ˜แƒ—แƒ”แƒ‘แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก, แƒแƒฎแƒšแƒแƒ›แƒ“แƒ”แƒ‘แƒแƒ แƒ” แƒขแƒ”แƒ แƒ˜แƒขแƒแƒ แƒ˜แƒแƒ–แƒ” แƒซแƒ˜แƒ”แƒ‘แƒ˜แƒก แƒจแƒ”แƒ“แƒ”แƒ’แƒ”แƒ‘แƒ˜แƒกแƒ—แƒ•แƒ˜แƒก แƒ“แƒ แƒ›แƒ’แƒ–แƒแƒ•แƒ แƒแƒ‘แƒ˜แƒก แƒกแƒแƒ•แƒแƒ แƒแƒฃแƒ“แƒ แƒ“แƒ แƒแƒ˜แƒก แƒ’แƒแƒ›แƒแƒกแƒแƒ—แƒ•แƒšแƒ”แƒšแƒแƒ“.", "cupertinoAlertAllow": "แƒ“แƒแƒจแƒ•แƒ”แƒ‘แƒ", "cupertinoAlertDontAllow": "แƒแƒ™แƒ แƒซแƒแƒšแƒ•แƒ", "cupertinoAlertFavoriteDessert": "แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒกแƒแƒงแƒ•แƒแƒ แƒ”แƒšแƒ˜ แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜", "cupertinoAlertDessertDescription": "แƒฅแƒ•แƒ”แƒ›แƒแƒ— แƒ›แƒแƒชแƒ”แƒ›แƒฃแƒšแƒ˜ แƒกแƒ˜แƒ˜แƒ“แƒแƒœ แƒแƒ˜แƒ แƒฉแƒ˜แƒ”แƒ— แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒกแƒแƒงแƒ•แƒแƒ แƒ”แƒšแƒ˜ แƒ“แƒ”แƒกแƒ”แƒ แƒขแƒ˜. แƒ—แƒฅแƒ•แƒ”แƒœแƒ˜ แƒแƒ แƒฉแƒ”แƒ•แƒแƒœแƒ˜แƒก แƒ›แƒ”แƒจแƒ•แƒ”แƒแƒ‘แƒ˜แƒ— แƒ›แƒแƒฎแƒ“แƒ”แƒ‘แƒ แƒ—แƒฅแƒ•แƒ”แƒœแƒก แƒขแƒ”แƒ แƒ˜แƒขแƒแƒ แƒ˜แƒแƒ–แƒ” แƒจแƒ”แƒ›แƒแƒ—แƒแƒ•แƒแƒ–แƒ”แƒ‘แƒฃแƒšแƒ˜ แƒกแƒ˜แƒ˜แƒก แƒ›แƒแƒ แƒ’แƒ”แƒ‘แƒ.", "cupertinoAlertCheesecake": "แƒฉแƒ˜แƒ–แƒฅแƒ”แƒ˜แƒฅแƒ˜", "cupertinoAlertTiramisu": "แƒขแƒ˜แƒ แƒแƒ›แƒ˜แƒกแƒฃ", "cupertinoAlertApplePie": "แƒ•แƒแƒจแƒšแƒ˜แƒก แƒฆแƒ•แƒ”แƒ–แƒ”แƒšแƒ˜", "cupertinoAlertChocolateBrownie": "แƒจแƒแƒ™แƒแƒšแƒแƒ“แƒ˜แƒก แƒ‘แƒ แƒแƒฃแƒœแƒ˜", "cupertinoShowAlert": "แƒ’แƒแƒคแƒ แƒ—แƒฎแƒ˜แƒšแƒ”แƒ‘แƒ˜แƒก แƒฉแƒ•แƒ”แƒœแƒ”แƒ‘แƒ", "colorsRed": "แƒฌแƒ˜แƒ—แƒ”แƒšแƒ˜", "colorsPink": "แƒ•แƒแƒ แƒ“แƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsPurple": "แƒ›แƒ”แƒฌแƒแƒ›แƒฃแƒšแƒ˜", "colorsDeepPurple": "แƒ›แƒฃแƒฅแƒ˜ แƒ›แƒ”แƒฌแƒแƒ›แƒฃแƒšแƒ˜", "colorsIndigo": "แƒ›แƒฃแƒฅแƒ˜ แƒšแƒฃแƒ แƒฏแƒ˜", "colorsBlue": "แƒšแƒฃแƒ แƒฏแƒ˜", "colorsLightBlue": "แƒชแƒ˜แƒกแƒคแƒ”แƒ แƒ˜", "colorsCyan": "แƒชแƒ˜แƒแƒœแƒ˜", "dialogAddAccount": "แƒแƒœแƒ’แƒแƒ แƒ˜แƒจแƒ˜แƒก แƒ“แƒแƒ›แƒแƒขแƒ”แƒ‘แƒ", "Gallery": "แƒ’แƒแƒšแƒ”แƒ แƒ”แƒ", "Categories": "แƒ™แƒแƒขแƒ”แƒ’แƒแƒ แƒ˜แƒ”แƒ‘แƒ˜", "SHRINE": "SHRINE", "Basic shopping app": "แƒกแƒแƒ‘แƒแƒ–แƒ˜แƒกแƒ แƒกแƒแƒงแƒ˜แƒ“แƒšแƒ”แƒ‘แƒ˜แƒก แƒแƒžแƒ˜", "RALLY": "RALLY", "CRANE": "CRANE", "Travel app": "แƒกแƒแƒ›แƒแƒ’แƒ–แƒแƒฃแƒ แƒ แƒแƒžแƒ˜", "MATERIAL": "แƒ›แƒแƒกแƒแƒšแƒ", "CUPERTINO": "CUPERTINO", "REFERENCE STYLES & MEDIA": "แƒ›แƒ˜แƒ›แƒแƒ แƒ—แƒ•แƒ˜แƒก แƒกแƒขแƒ˜แƒšแƒ”แƒ‘แƒ˜ แƒ“แƒ แƒ›แƒ”แƒ“แƒ˜แƒ" }
gallery/lib/l10n/intl_ka.arb/0
{ "file_path": "gallery/lib/l10n/intl_ka.arb", "repo_id": "gallery", "token_count": 75310 }
999