Skip to content

Commit c12192a

Browse files
committed
wip
1 parent c021779 commit c12192a

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

  • engine/src/flutter/shell/platform/android

engine/src/flutter/shell/platform/android/BUILD.gn

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ source_set("flutter_shell_native_src") {
8585

8686
defines = []
8787

88-
libs = [
89-
"android",
90-
]
88+
libs = [ "android" ]
9189
}
9290

9391
action("gen_android_build_config_java") {
@@ -638,9 +636,10 @@ action("embedding_jars") {
638636

639637
outputs = []
640638
args = []
641-
base_name = "$root_out_dir/zip_archives/download.flutter.io/io/flutter/" +
642-
"flutter_embedding_$flutter_runtime_mode/1.0.0-$engine_version/" +
643-
"flutter_embedding_$flutter_runtime_mode-1.0.0-${engine_version}"
639+
base_name =
640+
"$root_out_dir/zip_archives/download.flutter.io/io/flutter/" +
641+
"flutter_embedding_$flutter_runtime_mode/1.0.0-$engine_vxersion/" +
642+
"flutter_embedding_$flutter_runtime_mode-1.0.0-${engine_version}"
644643
foreach(source, base_sources) {
645644
extension = get_path_info(source, "extension")
646645
name = get_path_info(source, "name")
@@ -700,6 +699,36 @@ action("embedding_jars") {
700699
]
701700
}
702701
}
702+
703+
hash_base_name2 =
704+
"$root_out_dir/zip_archives/download.flutter.io/io/flutter/" +
705+
"flutter_embedding_$flutter_runtime_mode/1.0.0-${content_hash}/" +
706+
"flutter_embedding_$flutter_runtime_mode-1.0.0-${content_hash}"
707+
foreach(source, hash_sources) {
708+
extension = get_path_info(source, "extension")
709+
name = get_path_info(source, "name")
710+
if (extension == "jar") {
711+
outputs += [
712+
"${hash_base_name2}.jar",
713+
"${hash_base_name2}-sources.jar",
714+
]
715+
args += [
716+
"-i",
717+
"${name}.jar",
718+
rebase_path("${hash_base_name2}.jar"),
719+
"-i",
720+
"${name}-sources.jar",
721+
rebase_path("${hash_base_name2}-sources.jar"),
722+
]
723+
} else {
724+
outputs += [ "${hash_base_name2}.${extension}" ]
725+
args += [
726+
"-i",
727+
rebase_path(source),
728+
rebase_path("${hash_base_name2}.${extension}"),
729+
]
730+
}
731+
}
703732
}
704733

705734
# Renames android artifacts and places them in the final

0 commit comments

Comments
 (0)