5#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterCallbackCache_Internal.h"
7#include "flutter/fml/logging.h"
8#include "flutter/lib/ui/plugins/callback_cache.h"
19 if (
info ==
nullptr) {
23 new_info.
callbackName = [NSString stringWithUTF8String:info->name.c_str()];
24 new_info.
callbackClassName = [NSString stringWithUTF8String:info->class_name.c_str()];
29+ (void)setCachePath:(NSString*)path {
32 NSString* cache_path =
33 [NSString stringWithUTF8String:flutter::DartCallbackCache::GetCachePath().c_str()];
36 if (![[NSFileManager defaultManager] fileExistsAtPath:cache_path]) {
37 [[NSFileManager defaultManager] createFileAtPath:cache_path contents:nil attributes:nil];
39 NSURL*
URL = [NSURL fileURLWithPath:cache_path];
40 BOOL success = [
URL setResourceValue:[NSNumber numberWithBool:YES]
41 forKey:NSURLIsExcludedFromBackupKey
44 NSLog(
@"Error excluding %@ from backup %@", [
URL lastPathComponent],
error);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static std::unique_ptr< DartCallbackRepresentation > GetCallbackInformation(int64_t handle)
static void SetCachePath(const std::string &path)
const uint8_t uint32_t uint32_t GError ** error
#define FML_DCHECK(condition)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path