This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Access engine version to get correct gstatic URL #40194
Merged
harryterkelsen
merged 9 commits into
flutter:main
from
harryterkelsen:canvaskit-engine-version
Mar 10, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
541e215
Add dart:_web_sdk_version
harryterkelsen 567bc8b
formatting
harryterkelsen 983230c
Merge branch 'main' into canvaskit-engine-version
harryterkelsen 0e77022
Licenses and analysis warnings
harryterkelsen 1a5a82b
undo excluded_files change
harryterkelsen 8587112
Fix licenses
harryterkelsen b131c41
Fix test
harryterkelsen 988400e
Merge branch 'main' into canvaskit-engine-version
harryterkelsen 7262e07
comma
harryterkelsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import("//flutter/shell/version.gni") | ||
import("//third_party/dart/build/dart/dart_action.gni") | ||
|
||
dart_sdk_package_config = "//third_party/dart/.dart_tool/package_config.json" | ||
|
||
prebuilt_dart_action("web_sdk_version") { | ||
packages = dart_sdk_package_config | ||
pool = "//flutter/build/dart:dart_pool" | ||
|
||
script = "version_writer.dart" | ||
inputs = [ "version_writer.dart" ] | ||
|
||
stamp_location = "$target_gen_dir/$target_name.stamp" | ||
outputs = [ | ||
stamp_location, | ||
invoker.output_dir, | ||
] | ||
|
||
input_dir = rebase_path(invoker.input_dir) | ||
output_dir = rebase_path(invoker.output_dir) | ||
|
||
args = [ | ||
"--output-dir=$output_dir", | ||
"--input-dir=$input_dir", | ||
"--stamp", | ||
rebase_path(stamp_location, root_build_dir), | ||
] | ||
if (ui) { | ||
args += [ "--ui" ] | ||
} else { | ||
library_name = invoker.library_name | ||
api_file = rebase_path(invoker.api_file) | ||
args += [ | ||
"--library-name=$library_name", | ||
"--api-file=$api_file", | ||
] | ||
} | ||
|
||
foreach(source_file, source_dart_files) { | ||
path = rebase_path(source_file) | ||
args += [ "--source-file=$path" ] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright 2013 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. | ||
|
||
library web_sdk_version; | ||
|
||
export 'web_sdk_version/web_sdk_version.dart'; |
10 changes: 10 additions & 0 deletions
10
third_party/web_sdk_version/lib/web_sdk_version/web_sdk_version.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright 2013 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. | ||
|
||
// NOTE: This file is just a stub. The actual file is generated at build time | ||
// with the actual current Git commit SHA. This stub is just here for local | ||
// development. | ||
|
||
/// The Git SHA of the Flutter Engine. | ||
const String flutterWebSdkVersion = 'IF YOU SEE THIS, FILE A BUG: https://github.com/flutter/flutter/issues/new?assignees=&labels=&template=2_bug.md&title='; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: web_sdk_version | ||
|
||
publish_to: none | ||
|
||
environment: | ||
sdk: ">=2.12.0-0 <3.0.0" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might as well...