Skip to content

Commit

Permalink
Set caches directory on Fuchsia (flutter#18321)
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wright authored May 20, 2020
1 parent 0d27687 commit cdc5ed3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions fml/platform/fuchsia/paths_fuchsia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "flutter/fml/file.h"
#include "flutter/fml/paths.h"

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

fml::UniqueFD GetCachesDirectory() {
// Unsupported on this platform.
return {};
return OpenDirectory("/cache", false, fml::FilePermission::kRead);
}

} // namespace paths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"features": [
"config-data",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",
Expand Down
3 changes: 2 additions & 1 deletion shell/platform/fuchsia/flutter/meta/flutter_aot_runner.cmx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"features": [
"config-data",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"config-data",
"deprecated-ambient-replace-as-executable",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",
Expand Down
3 changes: 2 additions & 1 deletion shell/platform/fuchsia/flutter/meta/flutter_jit_runner.cmx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"config-data",
"deprecated-ambient-replace-as-executable",
"root-ssl-certificates",
"vulkan"
"vulkan",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.SettingsManager",
Expand Down
3 changes: 2 additions & 1 deletion testing/fuchsia/meta/fuchsia_test.cmx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"sandbox": {
"features": [
"vulkan",
"deprecated-ambient-replace-as-executable"
"deprecated-ambient-replace-as-executable",
"isolated-cache-storage"
],
"services": [
"fuchsia.accessibility.semantics.SemanticsManager",
Expand Down

0 comments on commit cdc5ed3

Please sign in to comment.