Skip to content

Commit cdc5ed3

Browse files
author
George Wright
authored
Set caches directory on Fuchsia (flutter#18321)
1 parent 0d27687 commit cdc5ed3

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

fml/platform/fuchsia/paths_fuchsia.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
#include "flutter/fml/file.h"
56
#include "flutter/fml/paths.h"
67

78
namespace fml {
@@ -12,8 +13,7 @@ std::pair<bool, std::string> GetExecutableDirectoryPath() {
1213
}
1314

1415
fml::UniqueFD GetCachesDirectory() {
15-
// Unsupported on this platform.
16-
return {};
16+
return OpenDirectory("/cache", false, fml::FilePermission::kRead);
1717
}
1818

1919
} // namespace paths

shell/platform/fuchsia/flutter/meta/flutter_aot_product_runner.cmx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"features": [
77
"config-data",
88
"root-ssl-certificates",
9-
"vulkan"
9+
"vulkan",
10+
"isolated-cache-storage"
1011
],
1112
"services": [
1213
"fuchsia.accessibility.SettingsManager",

shell/platform/fuchsia/flutter/meta/flutter_aot_runner.cmx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"features": [
77
"config-data",
88
"root-ssl-certificates",
9-
"vulkan"
9+
"vulkan",
10+
"isolated-cache-storage"
1011
],
1112
"services": [
1213
"fuchsia.accessibility.SettingsManager",

shell/platform/fuchsia/flutter/meta/flutter_jit_product_runner.cmx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"config-data",
88
"deprecated-ambient-replace-as-executable",
99
"root-ssl-certificates",
10-
"vulkan"
10+
"vulkan",
11+
"isolated-cache-storage"
1112
],
1213
"services": [
1314
"fuchsia.accessibility.SettingsManager",

shell/platform/fuchsia/flutter/meta/flutter_jit_runner.cmx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"config-data",
88
"deprecated-ambient-replace-as-executable",
99
"root-ssl-certificates",
10-
"vulkan"
10+
"vulkan",
11+
"isolated-cache-storage"
1112
],
1213
"services": [
1314
"fuchsia.accessibility.SettingsManager",

testing/fuchsia/meta/fuchsia_test.cmx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"sandbox": {
66
"features": [
77
"vulkan",
8-
"deprecated-ambient-replace-as-executable"
8+
"deprecated-ambient-replace-as-executable",
9+
"isolated-cache-storage"
910
],
1011
"services": [
1112
"fuchsia.accessibility.semantics.SemanticsManager",

0 commit comments

Comments
 (0)