Skip to content

Commit

Permalink
cleanup and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman committed Dec 5, 2024
1 parent f8dd2ea commit ca25b22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ - (BOOL)runWithEntrypoint:(NSString*)entrypoint {
flutterArguments.app_build_number = appBuildNumber.UTF8String;

std::string cache_path =
fml::paths::JoinPaths({getenv("HOME"), "Library/Application Support/shorebird"});
fml::paths::JoinPaths({getenv("HOME"), "Library", "Application Support", "shorebird"});
flutterArguments.cache_path = cache_path.c_str();
flutterArguments.shorebird_yaml_contents = shorebirdYamlContents.UTF8String;

Expand Down
15 changes: 15 additions & 0 deletions shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2436,22 +2436,37 @@ typedef struct {
FlutterChannelUpdateCallback channel_update_callback;

/// The version of the app (e.g., 1.0.0). Used by Shorebird.
///
/// The string can be collected after the call to `FlutterEngineInitialize`
/// returns. The string must be NULL terminated.
const char* app_version;

/// The build number of the app (e.g., 1). Used by Shorebird.
///
/// The string can be collected after the call to `FlutterEngineInitialize`
/// returns. The string must be NULL terminated.
const char* app_build_number;

/// The text contents of the shorebird.yaml file bundled with the compiled
/// app. Note that this is _not_ the same as the shorebird.yaml that exists in
/// the user's project. Used by Shorebird.
///
/// The string can be collected after the call to `FlutterEngineInitialize`
/// returns. The string must be NULL terminated.
const char* shorebird_yaml_contents;

/// The path to the directory where Shorebird will store patches and state
/// data.
///
/// The string can be collected after the call to `FlutterEngineInitialize`
/// returns. The string must be NULL terminated.
const char* cache_path;

/// The path to the executable file. This is a Mach-O executable file on
/// macOS. Used by Shorebird.
///
/// The string can be collected after the call to `FlutterEngineInitialize`
/// returns. The string must be NULL terminated.
const char* app_path;

} FlutterProjectArgs;
Expand Down

0 comments on commit ca25b22

Please sign in to comment.