init
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
"$FLUTTER_ROOT"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
</plist>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.get-task-allow</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,231 @@
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef GL_DAO_SWIFT_H
|
||||
#define GL_DAO_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import AppKit;
|
||||
@import FlutterMacOS;
|
||||
@import Foundation;
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="gl_dao",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
@class NSApplication;
|
||||
@class NSNumber;
|
||||
|
||||
SWIFT_CLASS("_TtC6gl_dao11AppDelegate")
|
||||
@interface AppDelegate : FlutterAppDelegate
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication * _Nonnull)sender SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS("_TtC6gl_dao17MainFlutterWindow")
|
||||
@interface MainFlutterWindow : NSWindow
|
||||
- (void)awakeFromNib;
|
||||
- (nonnull instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"":{"swift-dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/Runner-master.swiftdeps"},"/Users/WebTmm/Desktop/gl_dao/macos/Flutter/GeneratedPluginRegistrant.swift":{"dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.d","diagnostics":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.dia","llvm-bc":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.bc","object":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o","swift-dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.swiftdeps","swiftmodule":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant~partial.swiftmodule"},"/Users/WebTmm/Desktop/gl_dao/macos/Runner/AppDelegate.swift":{"dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.d","diagnostics":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.dia","llvm-bc":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.bc","object":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.o","swift-dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.swiftdeps","swiftmodule":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule"},"/Users/WebTmm/Desktop/gl_dao/macos/Runner/MainFlutterWindow.swift":{"dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.d","diagnostics":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.dia","llvm-bc":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.bc","object":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o","swift-dependencies":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.swiftdeps","swiftmodule":"/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow~partial.swiftmodule"}}
|
||||
@@ -0,0 +1,7 @@
|
||||
version: "Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)"
|
||||
options: "12ac7c7e886a9c8cf504d42270a8d856"
|
||||
build_time: [1652861206, 738834000]
|
||||
inputs:
|
||||
"/Users/WebTmm/Desktop/gl_dao/macos/Runner/MainFlutterWindow.swift": [1652294283, 0]
|
||||
"/Users/WebTmm/Desktop/gl_dao/macos/Runner/AppDelegate.swift": [1652294283, 0]
|
||||
"/Users/WebTmm/Desktop/gl_dao/macos/Flutter/GeneratedPluginRegistrant.swift": [1652861165, 882517256]
|
||||
@@ -0,0 +1,231 @@
|
||||
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
|
||||
#ifndef GL_DAO_SWIFT_H
|
||||
#define GL_DAO_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
@import AppKit;
|
||||
@import FlutterMacOS;
|
||||
@import Foundation;
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="gl_dao",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
@class NSApplication;
|
||||
@class NSNumber;
|
||||
|
||||
SWIFT_CLASS("_TtC6gl_dao11AppDelegate")
|
||||
@interface AppDelegate : FlutterAppDelegate
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication * _Nonnull)sender SWIFT_WARN_UNUSED_RESULT;
|
||||
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
|
||||
SWIFT_CLASS("_TtC6gl_dao17MainFlutterWindow")
|
||||
@interface MainFlutterWindow : NSWindow
|
||||
- (void)awakeFromNib;
|
||||
- (nonnull instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag OBJC_DESIGNATED_INITIALIZER;
|
||||
@end
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
@@ -0,0 +1,3 @@
|
||||
/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o
|
||||
/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/AppDelegate.o
|
||||
/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o
|
||||
@@ -0,0 +1,3 @@
|
||||
/Users/WebTmm/Desktop/gl_dao/macos/Runner/MainFlutterWindow.swift
|
||||
/Users/WebTmm/Desktop/gl_dao/macos/Runner/AppDelegate.swift
|
||||
/Users/WebTmm/Desktop/gl_dao/macos/Flutter/GeneratedPluginRegistrant.swift
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo "$PRODUCT_NAME.app" > "$PROJECT_DIR"/Flutter/ephemeral/.app_filename && "$FLUTTER_ROOT"/packages/flutter_tools/bin/macos_assemble.sh embed
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"case-sensitive":"false","roots":[],"version":0}
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.get-task-allow</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"buildConfigurations":[{"baseConfigurationFileReference":"d4012c65d724c8948bccc91e11121fd6c4902511cd7de506ddcb4d4fe24c1302","buildSettings":{"ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","CLANG_ENABLE_MODULES":"YES","CODE_SIGN_ENTITLEMENTS":"Runner/DebugProfile.entitlements","CODE_SIGN_STYLE":"Automatic","COMBINE_HIDPI_IMAGES":"YES","INFOPLIST_FILE":"Runner/Info.plist","LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path/../Frameworks","PROVISIONING_PROFILE_SPECIFIER":"","SWIFT_OPTIMIZATION_LEVEL":"-Onone","SWIFT_VERSION":"5.0"},"guid":"d4012c65d724c8948bccc91e11121fd6414fc89210b939a670a56353deb389f9","name":"Debug"},{"baseConfigurationFileReference":"d4012c65d724c8948bccc91e11121fd6c4902511cd7de506ddcb4d4fe24c1302","buildSettings":{"ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","CLANG_ENABLE_MODULES":"YES","CODE_SIGN_ENTITLEMENTS":"Runner/Release.entitlements","CODE_SIGN_STYLE":"Automatic","COMBINE_HIDPI_IMAGES":"YES","INFOPLIST_FILE":"Runner/Info.plist","LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path/../Frameworks","PROVISIONING_PROFILE_SPECIFIER":"","SWIFT_VERSION":"5.0"},"guid":"d4012c65d724c8948bccc91e11121fd6591de84c5dabac79be81ba6cbbf9c7d5","name":"Release"},{"baseConfigurationFileReference":"d4012c65d724c8948bccc91e11121fd6c4902511cd7de506ddcb4d4fe24c1302","buildSettings":{"ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","CLANG_ENABLE_MODULES":"YES","CODE_SIGN_ENTITLEMENTS":"Runner/DebugProfile.entitlements","CODE_SIGN_STYLE":"Automatic","COMBINE_HIDPI_IMAGES":"YES","INFOPLIST_FILE":"Runner/Info.plist","LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path/../Frameworks","PROVISIONING_PROFILE_SPECIFIER":"","SWIFT_VERSION":"5.0"},"guid":"d4012c65d724c8948bccc91e11121fd6efdb1d0e782e0ff253b8b1542e0f27ef","name":"Profile"}],"buildPhases":[{"buildFiles":[{"fileReference":"d4012c65d724c8948bccc91e11121fd624b190b0ed104f7b1fa5480db83abd20","guid":"d4012c65d724c8948bccc91e11121fd682a68372325fbeb344a644fdc22a4f7e"},{"fileReference":"d4012c65d724c8948bccc91e11121fd690d3d1ed97e73aa53c07fd80de982e98","guid":"d4012c65d724c8948bccc91e11121fd6a096ce12b9139e481d6bd81017d9c3bb"},{"fileReference":"d4012c65d724c8948bccc91e11121fd6763b891d23f1b765a6d89a076d8c809a","guid":"d4012c65d724c8948bccc91e11121fd60762c8823fdaf22393225d08db9f7bd7"}],"guid":"d4012c65d724c8948bccc91e11121fd645468e5587d9dfa6699ece6600b0f31d","type":"com.apple.buildphase.sources"},{"buildFiles":[],"guid":"d4012c65d724c8948bccc91e11121fd6dfc51d21b116b68082271de2adc934b6","type":"com.apple.buildphase.frameworks"},{"buildFiles":[{"fileReference":"d4012c65d724c8948bccc91e11121fd6896112a93f2a09f72db0bec985ef4c64","guid":"d4012c65d724c8948bccc91e11121fd6bd1f27e44757c5ac88a22e01a15f15d9"},{"fileReference":"d4012c65d724c8948bccc91e11121fd68c91953baeab2ee7d542aceae751d8da","guid":"d4012c65d724c8948bccc91e11121fd6c3e2c81dad01081f94f0811e7a2c7643"}],"guid":"d4012c65d724c8948bccc91e11121fd63cf19e18f74724910e507f60975bc54e","type":"com.apple.buildphase.resources"},{"buildFiles":[],"destinationSubfolder":"$(FRAMEWORKS_FOLDER_PATH)","destinationSubpath":"","guid":"d4012c65d724c8948bccc91e11121fd60d4f58b498d2216a5c31cecb5ed70906","type":"com.apple.buildphase.copy-files"},{"alwaysOutOfDate":"false","buildFiles":[],"emitEnvironment":"true","guid":"d4012c65d724c8948bccc91e11121fd680fce6e78b27fa69321adec3779466d5","inputFileListPaths":[],"inputFilePaths":[],"name":"Run Script","originalObjectID":"3399D490228B24CF009A79C7","outputFileListPaths":[],"outputFilePaths":[],"scriptContents":"echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n","shellPath":"/bin/sh","type":"com.apple.buildphase.shell-script"}],"buildRules":[],"dependencies":[{"guid":"d4012c65d724c8948bccc91e11121fd6339362e37688461f7f8b651800569a9a"}],"guid":"d4012c65d724c8948bccc91e11121fd6a26d6e580d3222b86d62fb80ec380c14","name":"Runner","predominantSourceCodeLanguage":"Xcode.SourceCodeLanguage.Swift","productReference":{"guid":"d4012c65d724c8948bccc91e11121fd611f07a77f8580f053762d0563c8edc82","name":"gl_dao.app","type":"product"},"productTypeIdentifier":"com.apple.product-type.application","provisioningSourceData":[{"bundleIdentifierFromInfoPlist":"$(PRODUCT_BUNDLE_IDENTIFIER)","configurationName":"Debug","legacyTeamID":"","provisioningStyle":0},{"bundleIdentifierFromInfoPlist":"$(PRODUCT_BUNDLE_IDENTIFIER)","configurationName":"Release","legacyTeamID":"","provisioningStyle":0},{"bundleIdentifierFromInfoPlist":"$(PRODUCT_BUNDLE_IDENTIFIER)","configurationName":"Profile","legacyTeamID":"","provisioningStyle":0}],"type":"standard"}
|
||||
@@ -0,0 +1 @@
|
||||
{"buildConfigurations":[{"buildSettings":{"CODE_SIGN_STYLE":"Manual","PRODUCT_NAME":"$(TARGET_NAME)"},"guid":"d4012c65d724c8948bccc91e11121fd6d5d345235681149dc98077be639d5732","name":"Debug"},{"buildSettings":{"CODE_SIGN_STYLE":"Automatic","PRODUCT_NAME":"$(TARGET_NAME)"},"guid":"d4012c65d724c8948bccc91e11121fd64173fbca35daa28e3bd208741257ac3f","name":"Release"},{"buildSettings":{"CODE_SIGN_STYLE":"Manual","PRODUCT_NAME":"$(TARGET_NAME)"},"guid":"d4012c65d724c8948bccc91e11121fd635aef2f356a7eebaba70a2c1f0ccd906","name":"Profile"}],"buildPhases":[{"alwaysOutOfDate":"false","buildFiles":[],"emitEnvironment":"true","guid":"d4012c65d724c8948bccc91e11121fd6f4f5bcf30ee9448700f1908916ccb6e2","inputFileListPaths":["Flutter/ephemeral/FlutterInputs.xcfilelist"],"inputFilePaths":["Flutter/ephemeral/tripwire"],"name":"Run Script","originalObjectID":"33CC111E2044C6BF0003C045","outputFileListPaths":["Flutter/ephemeral/FlutterOutputs.xcfilelist"],"outputFilePaths":[],"scriptContents":"\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire","shellPath":"/bin/sh","type":"com.apple.buildphase.shell-script"}],"buildRules":[],"dependencies":[],"guid":"d4012c65d724c8948bccc91e11121fd6339362e37688461f7f8b651800569a9a","name":"Flutter Assemble","provisioningSourceData":[{"bundleIdentifierFromInfoPlist":"","configurationName":"Debug","legacyTeamID":"","provisioningStyle":1},{"bundleIdentifierFromInfoPlist":"","configurationName":"Release","legacyTeamID":"","provisioningStyle":0},{"bundleIdentifierFromInfoPlist":"","configurationName":"Profile","legacyTeamID":"","provisioningStyle":1}],"type":"aggregate"}
|
||||
@@ -0,0 +1 @@
|
||||
{"guid":"38cce991558f50fb3d6886fd38ff9ee6","name":"Runner","path":"/Users/WebTmm/Desktop/gl_dao/macos/Runner.xcworkspace","projects":["PROJECT@v11_mod=1652861104.2898836_hash=d4012c65d724c8948bccc91e11121fd6"]}
|
||||
BIN
build/macos/Build/Intermediates.noindex/XCBuildData/build.db
Normal file
BIN
build/macos/Build/Intermediates.noindex/XCBuildData/build.db
Normal file
Binary file not shown.
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"buildCommand" : "build",
|
||||
"configuredTargets" : [
|
||||
{
|
||||
"guid" : "d4012c65d724c8948bccc91e11121fd6a26d6e580d3222b86d62fb80ec380c14"
|
||||
}
|
||||
],
|
||||
"continueBuildingAfterErrors" : false,
|
||||
"enableIndexBuildArena" : false,
|
||||
"hideShellScriptEnvironment" : false,
|
||||
"parameters" : {
|
||||
"action" : "build",
|
||||
"activeArchitecture" : "x86_64",
|
||||
"activeRunDestination" : {
|
||||
"disableOnlyActiveArch" : false,
|
||||
"platform" : "macosx",
|
||||
"sdk" : "macosx11.3",
|
||||
"sdkVariant" : "macos",
|
||||
"supportedArchitectures" : [
|
||||
"x86_64h",
|
||||
"x86_64"
|
||||
],
|
||||
"targetArchitecture" : "x86_64"
|
||||
},
|
||||
"arenaInfo" : {
|
||||
"buildIntermediatesPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex",
|
||||
"buildProductsPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Products",
|
||||
"derivedDataPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos",
|
||||
"indexDataStoreFolderPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Index/DataStore",
|
||||
"indexEnableDataStore" : true,
|
||||
"indexPCHPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Index/PrecompiledHeaders",
|
||||
"pchPath" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex/PrecompiledHeaders"
|
||||
},
|
||||
"configurationName" : "Debug",
|
||||
"overrides" : {
|
||||
"commandLine" : {
|
||||
"table" : {
|
||||
"COMPILER_INDEX_STORE_ENABLE" : "NO",
|
||||
"OBJROOT" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Intermediates.noindex",
|
||||
"SYMROOT" : "/Users/WebTmm/Desktop/gl_dao/build/macos/Build/Products"
|
||||
}
|
||||
},
|
||||
"synthesized" : {
|
||||
"table" : {
|
||||
"ACTION" : "build",
|
||||
"ENABLE_PREVIEWS" : "NO"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemeCommand" : "launch",
|
||||
"shouldCollectMetrics" : false,
|
||||
"showNonLoggedProgress" : true,
|
||||
"useDryRun" : false,
|
||||
"useImplicitDependencies" : true,
|
||||
"useLegacyBuildLocations" : false,
|
||||
"useParallelTargets" : true
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
|
||||
Target dependency graph (2 targets)
|
||||
Flutter Assemble in Runner
|
||||
Runner in Runner, depends on:
|
||||
Flutter Assemble in Runner (explicit)
|
||||
1
build/macos/Build/Products/Debug/.last_build_id
Normal file
1
build/macos/Build/Products/Debug/.last_build_id
Normal file
@@ -0,0 +1 @@
|
||||
6dc64426c15fbbfd41b088669df846ac
|
||||
1
build/macos/Build/Products/Debug/App.framework/App
Symbolic link
1
build/macos/Build/Products/Debug/App.framework/App
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/App
|
||||
1
build/macos/Build/Products/Debug/App.framework/Resources
Symbolic link
1
build/macos/Build/Products/Debug/App.framework/Resources
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
BIN
build/macos/Build/Products/Debug/App.framework/Versions/A/App
Executable file
BIN
build/macos/Build/Products/Debug/App.framework/Versions/A/App
Executable file
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
||||
@@ -0,0 +1 @@
|
||||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
build/macos/Build/Products/Debug/App.framework/Versions/Current
Symbolic link
1
build/macos/Build/Products/Debug/App.framework/Versions/Current
Symbolic link
@@ -0,0 +1 @@
|
||||
A
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/FlutterMacOS
|
||||
1
build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers
Symbolic link
1
build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
1
build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules
Symbolic link
1
build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules
Symbolic link
@@ -0,0 +1 @@
|
||||
Versions/Current/Modules
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
BIN
build/macos/Build/Products/Debug/FlutterMacOS.framework/Versions/A/FlutterMacOS
Executable file
BIN
build/macos/Build/Products/Debug/FlutterMacOS.framework/Versions/A/FlutterMacOS
Executable file
Binary file not shown.
@@ -0,0 +1,43 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERAPPDELEGATE_H_
|
||||
#define FLUTTER_FLUTTERAPPDELEGATE_H_
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
/**
|
||||
* `NSApplicationDelegate` subclass for simple apps that want default behavior.
|
||||
*
|
||||
* This class implements the following behaviors:
|
||||
* * Updates the application name of items in the application menu to match the name in
|
||||
* the app's Info.plist, assuming it is set to APP_NAME initially. |applicationMenu| must be
|
||||
* set before the application finishes launching for this to take effect.
|
||||
* * Updates the main Flutter window's title to match the name in the app's Info.plist.
|
||||
* |mainFlutterWindow| must be set before the application finishes launching for this to take
|
||||
* effect.
|
||||
*
|
||||
* App delegates for Flutter applications are *not* required to inherit from
|
||||
* this class. Developers of custom app delegate classes should copy and paste
|
||||
* code as necessary from FlutterAppDelegate.mm.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterAppDelegate : NSObject <NSApplicationDelegate>
|
||||
|
||||
/**
|
||||
* The application menu in the menu bar.
|
||||
*/
|
||||
@property(weak, nonatomic) IBOutlet NSMenu* applicationMenu;
|
||||
|
||||
/**
|
||||
* The primary application window containing a FlutterViewController. This is primarily intended
|
||||
* for use in single-window applications.
|
||||
*/
|
||||
@property(weak, nonatomic) IBOutlet NSWindow* mainFlutterWindow;
|
||||
|
||||
@end
|
||||
|
||||
#endif // FLUTTER_FLUTTERAPPDELEGATE_H_
|
||||
@@ -0,0 +1,105 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERBINARYMESSENGER_H_
|
||||
#define FLUTTER_FLUTTERBINARYMESSENGER_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* A message reply callback.
|
||||
*
|
||||
* Used for submitting a binary reply back to a Flutter message sender. Also used
|
||||
* in for handling a binary message reply received from Flutter.
|
||||
*
|
||||
* @param reply The reply.
|
||||
*/
|
||||
typedef void (^FlutterBinaryReply)(NSData* _Nullable reply);
|
||||
|
||||
/**
|
||||
* A strategy for handling incoming binary messages from Flutter and to send
|
||||
* asynchronous replies back to Flutter.
|
||||
*
|
||||
* @param message The message.
|
||||
* @param reply A callback for submitting an asynchronous reply to the sender.
|
||||
*/
|
||||
typedef void (^FlutterBinaryMessageHandler)(NSData* _Nullable message, FlutterBinaryReply reply);
|
||||
|
||||
typedef int64_t FlutterBinaryMessengerConnection;
|
||||
|
||||
@protocol FlutterTaskQueue;
|
||||
|
||||
/**
|
||||
* A facility for communicating with the Flutter side using asynchronous message
|
||||
* passing with binary messages.
|
||||
*
|
||||
* Implementated by:
|
||||
* - `FlutterBasicMessageChannel`, which supports communication using structured
|
||||
* messages.
|
||||
* - `FlutterMethodChannel`, which supports communication using asynchronous
|
||||
* method calls.
|
||||
* - `FlutterEventChannel`, which supports commuication using event streams.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterBinaryMessenger <NSObject>
|
||||
/// TODO(gaaclarke): Remove optional when macos supports Background Platform Channels.
|
||||
@optional
|
||||
- (NSObject<FlutterTaskQueue>*)makeBackgroundTaskQueue;
|
||||
|
||||
- (FlutterBinaryMessengerConnection)
|
||||
setMessageHandlerOnChannel:(NSString*)channel
|
||||
binaryMessageHandler:(FlutterBinaryMessageHandler _Nullable)handler
|
||||
taskQueue:(NSObject<FlutterTaskQueue>* _Nullable)taskQueue;
|
||||
|
||||
@required
|
||||
/**
|
||||
* Sends a binary message to the Flutter side on the specified channel, expecting
|
||||
* no reply.
|
||||
*
|
||||
* @param channel The channel name.
|
||||
* @param message The message.
|
||||
*/
|
||||
- (void)sendOnChannel:(NSString*)channel message:(NSData* _Nullable)message;
|
||||
|
||||
/**
|
||||
* Sends a binary message to the Flutter side on the specified channel, expecting
|
||||
* an asynchronous reply.
|
||||
*
|
||||
* @param channel The channel name.
|
||||
* @param message The message.
|
||||
* @param callback A callback for receiving a reply.
|
||||
*/
|
||||
- (void)sendOnChannel:(NSString*)channel
|
||||
message:(NSData* _Nullable)message
|
||||
binaryReply:(FlutterBinaryReply _Nullable)callback;
|
||||
|
||||
/**
|
||||
* Registers a message handler for incoming binary messages from the Flutter side
|
||||
* on the specified channel.
|
||||
*
|
||||
* Replaces any existing handler. Use a `nil` handler for unregistering the
|
||||
* existing handler.
|
||||
*
|
||||
* @param channel The channel name.
|
||||
* @param handler The message handler.
|
||||
* @return An identifier that represents the connection that was just created to the channel.
|
||||
*/
|
||||
- (FlutterBinaryMessengerConnection)setMessageHandlerOnChannel:(NSString*)channel
|
||||
binaryMessageHandler:
|
||||
(FlutterBinaryMessageHandler _Nullable)handler;
|
||||
|
||||
/**
|
||||
* Clears out a channel's message handler if that handler is still the one that
|
||||
* was created as a result of
|
||||
* `setMessageHandlerOnChannel:binaryMessageHandler:`.
|
||||
*
|
||||
* @param connection The result from `setMessageHandlerOnChannel:binaryMessageHandler:`.
|
||||
*/
|
||||
- (void)cleanUpConnection:(FlutterBinaryMessengerConnection)connection;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
#endif // FLUTTER_FLUTTERBINARYMESSENGER_H_
|
||||
@@ -0,0 +1,452 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERCHANNELS_H_
|
||||
#define FLUTTER_FLUTTERCHANNELS_H_
|
||||
|
||||
#import "FlutterBinaryMessenger.h"
|
||||
#import "FlutterCodecs.h"
|
||||
|
||||
@protocol FlutterTaskQueue;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* A message reply callback.
|
||||
*
|
||||
* Used for submitting a reply back to a Flutter message sender. Also used in
|
||||
* the dual capacity for handling a message reply received from Flutter.
|
||||
*
|
||||
* @param reply The reply.
|
||||
*/
|
||||
typedef void (^FlutterReply)(id _Nullable reply);
|
||||
|
||||
/**
|
||||
* A strategy for handling incoming messages from Flutter and to send
|
||||
* asynchronous replies back to Flutter.
|
||||
*
|
||||
* @param message The message.
|
||||
* @param callback A callback for submitting a reply to the sender which can be invoked from any
|
||||
* thread.
|
||||
*/
|
||||
typedef void (^FlutterMessageHandler)(id _Nullable message, FlutterReply callback);
|
||||
|
||||
/**
|
||||
* A channel for communicating with the Flutter side using basic, asynchronous
|
||||
* message passing.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterBasicMessageChannel : NSObject
|
||||
/**
|
||||
* Creates a `FlutterBasicMessageChannel` with the specified name and binary
|
||||
* messenger.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* The channel uses `FlutterStandardMessageCodec` to encode and decode messages.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
*/
|
||||
+ (instancetype)messageChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterBasicMessageChannel` with the specified name, binary
|
||||
* messenger, and message codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The message codec.
|
||||
*/
|
||||
+ (instancetype)messageChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMessageCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterBasicMessageChannel` with the specified name, binary
|
||||
* messenger, and message codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The message codec.
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMessageCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterBasicMessageChannel` with the specified name, binary
|
||||
* messenger, and message codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The message codec.
|
||||
* @param taskQueue The FlutterTaskQueue that executes the handler (see
|
||||
-[FlutterBinaryMessenger makeBackgroundTaskQueue]).
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMessageCodec>*)codec
|
||||
taskQueue:(NSObject<FlutterTaskQueue>* _Nullable)taskQueue;
|
||||
|
||||
/**
|
||||
* Sends the specified message to the Flutter side, ignoring any reply.
|
||||
*
|
||||
* @param message The message. Must be supported by the codec of this
|
||||
* channel.
|
||||
*/
|
||||
- (void)sendMessage:(id _Nullable)message;
|
||||
|
||||
/**
|
||||
* Sends the specified message to the Flutter side, expecting an asynchronous
|
||||
* reply.
|
||||
*
|
||||
* @param message The message. Must be supported by the codec of this channel.
|
||||
* @param callback A callback to be invoked with the message reply from Flutter.
|
||||
*/
|
||||
- (void)sendMessage:(id _Nullable)message reply:(FlutterReply _Nullable)callback;
|
||||
|
||||
/**
|
||||
* Registers a message handler with this channel.
|
||||
*
|
||||
* Replaces any existing handler. Use a `nil` handler for unregistering the
|
||||
* existing handler.
|
||||
*
|
||||
* @param handler The message handler.
|
||||
*/
|
||||
- (void)setMessageHandler:(FlutterMessageHandler _Nullable)handler;
|
||||
|
||||
/**
|
||||
* Adjusts the number of messages that will get buffered when sending messages to
|
||||
* channels that aren't fully set up yet. For example, the engine isn't running
|
||||
* yet or the channel's message handler isn't set up on the Dart side yet.
|
||||
*/
|
||||
- (void)resizeChannelBuffer:(NSInteger)newSize;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* A method call result callback.
|
||||
*
|
||||
* Used for submitting a method call result back to a Flutter caller. Also used in
|
||||
* the dual capacity for handling a method call result received from Flutter.
|
||||
*
|
||||
* @param result The result.
|
||||
*/
|
||||
typedef void (^FlutterResult)(id _Nullable result);
|
||||
|
||||
/**
|
||||
* A strategy for handling method calls.
|
||||
*
|
||||
* @param call The incoming method call.
|
||||
* @param result A callback to asynchronously submit the result of the call.
|
||||
* Invoke the callback with a `FlutterError` to indicate that the call failed.
|
||||
* Invoke the callback with `FlutterMethodNotImplemented` to indicate that the
|
||||
* method was unknown. Any other values, including `nil`, are interpreted as
|
||||
* successful results. This can be invoked from any thread.
|
||||
*/
|
||||
typedef void (^FlutterMethodCallHandler)(FlutterMethodCall* call, FlutterResult result);
|
||||
|
||||
/**
|
||||
* A constant used with `FlutterMethodCallHandler` to respond to the call of an
|
||||
* unknown method.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
extern NSObject const* FlutterMethodNotImplemented;
|
||||
|
||||
/**
|
||||
* A channel for communicating with the Flutter side using invocation of
|
||||
* asynchronous methods.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterMethodChannel : NSObject
|
||||
/**
|
||||
* Creates a `FlutterMethodChannel` with the specified name and binary messenger.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* The channel uses `FlutterStandardMethodCodec` to encode and decode method calls
|
||||
* and result envelopes.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
*/
|
||||
+ (instancetype)methodChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterMethodChannel` with the specified name, binary messenger, and
|
||||
* method codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
*/
|
||||
+ (instancetype)methodChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterMethodChannel` with the specified name, binary messenger,
|
||||
* and method codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterMethodChannel` with the specified name, binary messenger,
|
||||
* method codec, and task queue.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
* @param taskQueue The FlutterTaskQueue that executes the handler (see
|
||||
-[FlutterBinaryMessenger makeBackgroundTaskQueue]).
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec
|
||||
taskQueue:(NSObject<FlutterTaskQueue>* _Nullable)taskQueue;
|
||||
|
||||
// clang-format off
|
||||
/**
|
||||
* Invokes the specified Flutter method with the specified arguments, expecting
|
||||
* no results.
|
||||
*
|
||||
* @see [MethodChannel.setMethodCallHandler](https://api.flutter.dev/flutter/services/MethodChannel/setMethodCallHandler.html)
|
||||
*
|
||||
* @param method The name of the method to invoke.
|
||||
* @param arguments The arguments. Must be a value supported by the codec of this
|
||||
* channel.
|
||||
*/
|
||||
// clang-format on
|
||||
- (void)invokeMethod:(NSString*)method arguments:(id _Nullable)arguments;
|
||||
|
||||
/**
|
||||
* Invokes the specified Flutter method with the specified arguments, expecting
|
||||
* an asynchronous result.
|
||||
*
|
||||
* @param method The name of the method to invoke.
|
||||
* @param arguments The arguments. Must be a value supported by the codec of this
|
||||
* channel.
|
||||
* @param callback A callback that will be invoked with the asynchronous result.
|
||||
* The result will be a `FlutterError` instance, if the method call resulted
|
||||
* in an error on the Flutter side. Will be `FlutterMethodNotImplemented`, if
|
||||
* the method called was not implemented on the Flutter side. Any other value,
|
||||
* including `nil`, should be interpreted as successful results.
|
||||
*/
|
||||
- (void)invokeMethod:(NSString*)method
|
||||
arguments:(id _Nullable)arguments
|
||||
result:(FlutterResult _Nullable)callback;
|
||||
/**
|
||||
* Registers a handler for method calls from the Flutter side.
|
||||
*
|
||||
* Replaces any existing handler. Use a `nil` handler for unregistering the
|
||||
* existing handler.
|
||||
*
|
||||
* @param handler The method call handler.
|
||||
*/
|
||||
- (void)setMethodCallHandler:(FlutterMethodCallHandler _Nullable)handler;
|
||||
|
||||
/**
|
||||
* Adjusts the number of messages that will get buffered when sending messages to
|
||||
* channels that aren't fully set up yet. For example, the engine isn't running
|
||||
* yet or the channel's message handler isn't set up on the Dart side yet.
|
||||
*/
|
||||
- (void)resizeChannelBuffer:(NSInteger)newSize;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* An event sink callback.
|
||||
*
|
||||
* @param event The event.
|
||||
*/
|
||||
typedef void (^FlutterEventSink)(id _Nullable event);
|
||||
|
||||
/**
|
||||
* A strategy for exposing an event stream to the Flutter side.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterStreamHandler
|
||||
/**
|
||||
* Sets up an event stream and begin emitting events.
|
||||
*
|
||||
* Invoked when the first listener is registered with the Stream associated to
|
||||
* this channel on the Flutter side.
|
||||
*
|
||||
* @param arguments Arguments for the stream.
|
||||
* @param events A callback to asynchronously emit events. Invoke the
|
||||
* callback with a `FlutterError` to emit an error event. Invoke the
|
||||
* callback with `FlutterEndOfEventStream` to indicate that no more
|
||||
* events will be emitted. Any other value, including `nil` are emitted as
|
||||
* successful events.
|
||||
* @return A FlutterError instance, if setup fails.
|
||||
*/
|
||||
- (FlutterError* _Nullable)onListenWithArguments:(id _Nullable)arguments
|
||||
eventSink:(FlutterEventSink)events;
|
||||
|
||||
/**
|
||||
* Tears down an event stream.
|
||||
*
|
||||
* Invoked when the last listener is deregistered from the Stream associated to
|
||||
* this channel on the Flutter side.
|
||||
*
|
||||
* The channel implementation may call this method with `nil` arguments
|
||||
* to separate a pair of two consecutive set up requests. Such request pairs
|
||||
* may occur during Flutter hot restart.
|
||||
*
|
||||
* @param arguments Arguments for the stream.
|
||||
* @return A FlutterError instance, if teardown fails.
|
||||
*/
|
||||
- (FlutterError* _Nullable)onCancelWithArguments:(id _Nullable)arguments;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A constant used with `FlutterEventChannel` to indicate end of stream.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
extern NSObject const* FlutterEndOfEventStream;
|
||||
|
||||
/**
|
||||
* A channel for communicating with the Flutter side using event streams.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterEventChannel : NSObject
|
||||
/**
|
||||
* Creates a `FlutterEventChannel` with the specified name and binary messenger.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterViewController`.
|
||||
*
|
||||
* The channel uses `FlutterStandardMethodCodec` to decode stream setup and
|
||||
* teardown requests, and to encode event envelopes.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
*/
|
||||
+ (instancetype)eventChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterEventChannel` with the specified name, binary messenger,
|
||||
* and method codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
*/
|
||||
+ (instancetype)eventChannelWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterEventChannel` with the specified name, binary messenger,
|
||||
* and method codec.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec;
|
||||
|
||||
/**
|
||||
* Initializes a `FlutterEventChannel` with the specified name, binary messenger,
|
||||
* method codec and task queue.
|
||||
*
|
||||
* The channel name logically identifies the channel; identically named channels
|
||||
* interfere with each other's communication.
|
||||
*
|
||||
* The binary messenger is a facility for sending raw, binary messages to the
|
||||
* Flutter side. This protocol is implemented by `FlutterEngine` and `FlutterViewController`.
|
||||
*
|
||||
* @param name The channel name.
|
||||
* @param messenger The binary messenger.
|
||||
* @param codec The method codec.
|
||||
* @param taskQueue The FlutterTaskQueue that executes the handler (see
|
||||
-[FlutterBinaryMessenger makeBackgroundTaskQueue]).
|
||||
*/
|
||||
- (instancetype)initWithName:(NSString*)name
|
||||
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger
|
||||
codec:(NSObject<FlutterMethodCodec>*)codec
|
||||
taskQueue:(NSObject<FlutterTaskQueue>* _Nullable)taskQueue;
|
||||
/**
|
||||
* Registers a handler for stream setup requests from the Flutter side.
|
||||
*
|
||||
* Replaces any existing handler. Use a `nil` handler for unregistering the
|
||||
* existing handler.
|
||||
*
|
||||
* @param handler The stream handler.
|
||||
*/
|
||||
- (void)setStreamHandler:(NSObject<FlutterStreamHandler>* _Nullable)handler;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif // FLUTTER_FLUTTERCHANNELS_H_
|
||||
@@ -0,0 +1,476 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERCODECS_H_
|
||||
#define FLUTTER_FLUTTERCODECS_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
* A message encoding/decoding mechanism.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterMessageCodec
|
||||
/**
|
||||
* Returns a shared instance of this `FlutterMessageCodec`.
|
||||
*/
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
/**
|
||||
* Encodes the specified message into binary.
|
||||
*
|
||||
* @param message The message.
|
||||
* @return The binary encoding, or `nil`, if `message` was `nil`.
|
||||
*/
|
||||
- (NSData* _Nullable)encode:(id _Nullable)message;
|
||||
|
||||
/**
|
||||
* Decodes the specified message from binary.
|
||||
*
|
||||
* @param message The message.
|
||||
* @return The decoded message, or `nil`, if `message` was `nil`.
|
||||
*/
|
||||
- (id _Nullable)decode:(NSData* _Nullable)message;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMessageCodec` using unencoded binary messages, represented as
|
||||
* `NSData` instances.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [BinaryCodec](https://api.flutter.dev/flutter/services/BinaryCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*
|
||||
* On the Dart side, messages are represented using `ByteData`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterBinaryCodec : NSObject <FlutterMessageCodec>
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMessageCodec` using UTF-8 encoded `NSString` messages.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [StringCodec](https://api.flutter.dev/flutter/services/StringCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStringCodec : NSObject <FlutterMessageCodec>
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMessageCodec` using UTF-8 encoded JSON messages.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [JSONMessageCodec](https://api.flutter.dev/flutter/services/JSONMessageCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*
|
||||
* Supports values accepted by `NSJSONSerialization` plus top-level
|
||||
* `nil`, `NSNumber`, and `NSString`.
|
||||
*
|
||||
* On the Dart side, JSON messages are handled by the JSON facilities of the
|
||||
* [`dart:convert`](https://api.dartlang.org/stable/dart-convert/JSON-constant.html)
|
||||
* package.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterJSONMessageCodec : NSObject <FlutterMessageCodec>
|
||||
@end
|
||||
|
||||
/**
|
||||
* A writer of the Flutter standard binary encoding.
|
||||
*
|
||||
* See `FlutterStandardMessageCodec` for details on the encoding.
|
||||
*
|
||||
* The encoding is extensible via subclasses overriding `writeValue`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardWriter : NSObject
|
||||
/**
|
||||
* Create a `FlutterStandardWriter` who will write to \p data.
|
||||
*/
|
||||
- (instancetype)initWithData:(NSMutableData*)data;
|
||||
/** Write a 8-bit byte. */
|
||||
- (void)writeByte:(UInt8)value;
|
||||
/** Write an array of \p bytes of size \p length. */
|
||||
- (void)writeBytes:(const void*)bytes length:(NSUInteger)length;
|
||||
/** Write an array of bytes contained in \p data. */
|
||||
- (void)writeData:(NSData*)data;
|
||||
/** Write 32-bit unsigned integer that represents a \p size of a collection. */
|
||||
- (void)writeSize:(UInt32)size;
|
||||
/** Write zero padding until data is aligned with \p alignment. */
|
||||
- (void)writeAlignment:(UInt8)alignment;
|
||||
/** Write a string with UTF-8 encoding. */
|
||||
- (void)writeUTF8:(NSString*)value;
|
||||
/** Introspects into an object and writes its representation.
|
||||
*
|
||||
* Supported Data Types:
|
||||
* - NSNull
|
||||
* - NSNumber
|
||||
* - NSString (as UTF-8)
|
||||
* - FlutterStandardTypedData
|
||||
* - NSArray of supported types
|
||||
* - NSDictionary of supporte types
|
||||
*
|
||||
* NSAsserts on failure.
|
||||
*/
|
||||
- (void)writeValue:(id)value;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A reader of the Flutter standard binary encoding.
|
||||
*
|
||||
* See `FlutterStandardMessageCodec` for details on the encoding.
|
||||
*
|
||||
* The encoding is extensible via subclasses overriding `readValueOfType`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardReader : NSObject
|
||||
/**
|
||||
* Create a new `FlutterStandardReader` who reads from \p data.
|
||||
*/
|
||||
- (instancetype)initWithData:(NSData*)data;
|
||||
/** Returns YES when the reader hasn't reached the end of its data. */
|
||||
- (BOOL)hasMore;
|
||||
/** Reads a byte value and increments the position. */
|
||||
- (UInt8)readByte;
|
||||
/** Reads a sequence of byte values of \p length and increments the position. */
|
||||
- (void)readBytes:(void*)destination length:(NSUInteger)length;
|
||||
/** Reads a sequence of byte values of \p length and increments the position. */
|
||||
- (NSData*)readData:(NSUInteger)length;
|
||||
/** Reads a 32-bit unsigned integer representing a collection size and increments the position.*/
|
||||
- (UInt32)readSize;
|
||||
/** Advances the read position until it is aligned with \p alignment. */
|
||||
- (void)readAlignment:(UInt8)alignment;
|
||||
/** Read a null terminated string encoded with UTF-8/ */
|
||||
- (NSString*)readUTF8;
|
||||
/**
|
||||
* Reads a byte for `FlutterStandardField` the decodes a value matching that type.
|
||||
*
|
||||
* See also: -[FlutterStandardWriter writeValue]
|
||||
*/
|
||||
- (nullable id)readValue;
|
||||
/**
|
||||
* Decodes a value matching the \p type specified.
|
||||
*
|
||||
* See also:
|
||||
* - `FlutterStandardField`
|
||||
* - `-[FlutterStandardWriter writeValue]`
|
||||
*/
|
||||
- (nullable id)readValueOfType:(UInt8)type;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A factory of compatible reader/writer instances using the Flutter standard
|
||||
* binary encoding or extensions thereof.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardReaderWriter : NSObject
|
||||
/**
|
||||
* Create a new `FlutterStandardWriter` for writing to \p data.
|
||||
*/
|
||||
- (FlutterStandardWriter*)writerWithData:(NSMutableData*)data;
|
||||
/**
|
||||
* Create a new `FlutterStandardReader` for reading from \p data.
|
||||
*/
|
||||
- (FlutterStandardReader*)readerWithData:(NSData*)data;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMessageCodec` using the Flutter standard binary encoding.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [StandardMessageCodec](https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*
|
||||
* Supported messages are acyclic values of these forms:
|
||||
*
|
||||
* - `nil` or `NSNull`
|
||||
* - `NSNumber` (including their representation of Boolean values)
|
||||
* - `NSString`
|
||||
* - `FlutterStandardTypedData`
|
||||
* - `NSArray` of supported values
|
||||
* - `NSDictionary` with supported keys and values
|
||||
*
|
||||
* On the Dart side, these values are represented as follows:
|
||||
*
|
||||
* - `nil` or `NSNull`: null
|
||||
* - `NSNumber`: `bool`, `int`, or `double`, depending on the contained value.
|
||||
* - `NSString`: `String`
|
||||
* - `FlutterStandardTypedData`: `Uint8List`, `Int32List`, `Int64List`, or `Float64List`
|
||||
* - `NSArray`: `List`
|
||||
* - `NSDictionary`: `Map`
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardMessageCodec : NSObject <FlutterMessageCodec>
|
||||
/**
|
||||
* Create a `FlutterStandardMessageCodec` who will read and write to \p readerWriter.
|
||||
*/
|
||||
+ (instancetype)codecWithReaderWriter:(FlutterStandardReaderWriter*)readerWriter;
|
||||
@end
|
||||
|
||||
/**
|
||||
* Command object representing a method call on a `FlutterMethodChannel`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterMethodCall : NSObject
|
||||
/**
|
||||
* Creates a method call for invoking the specified named method with the
|
||||
* specified arguments.
|
||||
*
|
||||
* @param method the name of the method to call.
|
||||
* @param arguments the arguments value.
|
||||
*/
|
||||
+ (instancetype)methodCallWithMethodName:(NSString*)method arguments:(id _Nullable)arguments;
|
||||
|
||||
/**
|
||||
* The method name.
|
||||
*/
|
||||
@property(readonly, nonatomic) NSString* method;
|
||||
|
||||
/**
|
||||
* The arguments.
|
||||
*/
|
||||
@property(readonly, nonatomic, nullable) id arguments;
|
||||
@end
|
||||
|
||||
/**
|
||||
* Error object representing an unsuccessful outcome of invoking a method
|
||||
* on a `FlutterMethodChannel`, or an error event on a `FlutterEventChannel`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterError : NSObject
|
||||
/**
|
||||
* Creates a `FlutterError` with the specified error code, message, and details.
|
||||
*
|
||||
* @param code An error code string for programmatic use.
|
||||
* @param message A human-readable error message.
|
||||
* @param details Custom error details.
|
||||
*/
|
||||
+ (instancetype)errorWithCode:(NSString*)code
|
||||
message:(NSString* _Nullable)message
|
||||
details:(id _Nullable)details;
|
||||
/**
|
||||
The error code.
|
||||
*/
|
||||
@property(readonly, nonatomic) NSString* code;
|
||||
|
||||
/**
|
||||
The error message.
|
||||
*/
|
||||
@property(readonly, nonatomic, nullable) NSString* message;
|
||||
|
||||
/**
|
||||
The error details.
|
||||
*/
|
||||
@property(readonly, nonatomic, nullable) id details;
|
||||
@end
|
||||
|
||||
/**
|
||||
* Type of numeric data items encoded in a `FlutterStandardDataType`.
|
||||
*
|
||||
* - FlutterStandardDataTypeUInt8: plain bytes
|
||||
* - FlutterStandardDataTypeInt32: 32-bit signed integers
|
||||
* - FlutterStandardDataTypeInt64: 64-bit signed integers
|
||||
* - FlutterStandardDataTypeFloat64: 64-bit floats
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, FlutterStandardDataType) {
|
||||
FlutterStandardDataTypeUInt8,
|
||||
FlutterStandardDataTypeInt32,
|
||||
FlutterStandardDataTypeInt64,
|
||||
FlutterStandardDataTypeFloat32,
|
||||
FlutterStandardDataTypeFloat64,
|
||||
};
|
||||
|
||||
/**
|
||||
* A byte buffer holding `UInt8`, `SInt32`, `SInt64`, or `Float64` values, used
|
||||
* with `FlutterStandardMessageCodec` and `FlutterStandardMethodCodec`.
|
||||
*
|
||||
* Two's complement encoding is used for signed integers. IEEE754
|
||||
* double-precision representation is used for floats. The platform's native
|
||||
* endianness is assumed.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardTypedData : NSObject
|
||||
/**
|
||||
* Creates a `FlutterStandardTypedData` which interprets the specified data
|
||||
* as plain bytes.
|
||||
*
|
||||
* @param data the byte data.
|
||||
*/
|
||||
+ (instancetype)typedDataWithBytes:(NSData*)data;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterStandardTypedData` which interprets the specified data
|
||||
* as 32-bit signed integers.
|
||||
*
|
||||
* @param data the byte data. The length must be divisible by 4.
|
||||
*/
|
||||
+ (instancetype)typedDataWithInt32:(NSData*)data;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterStandardTypedData` which interprets the specified data
|
||||
* as 64-bit signed integers.
|
||||
*
|
||||
* @param data the byte data. The length must be divisible by 8.
|
||||
*/
|
||||
+ (instancetype)typedDataWithInt64:(NSData*)data;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterStandardTypedData` which interprets the specified data
|
||||
* as 32-bit floats.
|
||||
*
|
||||
* @param data the byte data. The length must be divisible by 8.
|
||||
*/
|
||||
+ (instancetype)typedDataWithFloat32:(NSData*)data;
|
||||
|
||||
/**
|
||||
* Creates a `FlutterStandardTypedData` which interprets the specified data
|
||||
* as 64-bit floats.
|
||||
*
|
||||
* @param data the byte data. The length must be divisible by 8.
|
||||
*/
|
||||
+ (instancetype)typedDataWithFloat64:(NSData*)data;
|
||||
|
||||
/**
|
||||
* The raw underlying data buffer.
|
||||
*/
|
||||
@property(readonly, nonatomic) NSData* data;
|
||||
|
||||
/**
|
||||
* The type of the encoded values.
|
||||
*/
|
||||
@property(readonly, nonatomic) FlutterStandardDataType type;
|
||||
|
||||
/**
|
||||
* The number of value items encoded.
|
||||
*/
|
||||
@property(readonly, nonatomic) UInt32 elementCount;
|
||||
|
||||
/**
|
||||
* The number of bytes used by the encoding of a single value item.
|
||||
*/
|
||||
@property(readonly, nonatomic) UInt8 elementSize;
|
||||
@end
|
||||
|
||||
/**
|
||||
* An arbitrarily large integer value, used with `FlutterStandardMessageCodec`
|
||||
* and `FlutterStandardMethodCodec`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
FLUTTER_UNAVAILABLE("Unavailable on 2018-08-31. Deprecated on 2018-01-09. "
|
||||
"FlutterStandardBigInteger was needed because the Dart 1.0 int type had no "
|
||||
"size limit. With Dart 2.0, the int type is a fixed-size, 64-bit signed "
|
||||
"integer. If you need to communicate larger integers, use NSString encoding "
|
||||
"instead.")
|
||||
@interface FlutterStandardBigInteger : NSObject
|
||||
@end
|
||||
|
||||
/**
|
||||
* A codec for method calls and enveloped results.
|
||||
*
|
||||
* Method calls are encoded as binary messages with enough structure that the
|
||||
* codec can extract a method name `NSString` and an arguments `NSObject`,
|
||||
* possibly `nil`. These data items are used to populate a `FlutterMethodCall`.
|
||||
*
|
||||
* Result envelopes are encoded as binary messages with enough structure that
|
||||
* the codec can determine whether the result was successful or an error. In
|
||||
* the former case, the codec can extract the result `NSObject`, possibly `nil`.
|
||||
* In the latter case, the codec can extract an error code `NSString`, a
|
||||
* human-readable `NSString` error message (possibly `nil`), and a custom
|
||||
* error details `NSObject`, possibly `nil`. These data items are used to
|
||||
* populate a `FlutterError`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterMethodCodec
|
||||
/**
|
||||
* Provides access to a shared instance this codec.
|
||||
*
|
||||
* @return The shared instance.
|
||||
*/
|
||||
+ (instancetype)sharedInstance;
|
||||
|
||||
/**
|
||||
* Encodes the specified method call into binary.
|
||||
*
|
||||
* @param methodCall The method call. The arguments value
|
||||
* must be supported by this codec.
|
||||
* @return The binary encoding.
|
||||
*/
|
||||
- (NSData*)encodeMethodCall:(FlutterMethodCall*)methodCall;
|
||||
|
||||
/**
|
||||
* Decodes the specified method call from binary.
|
||||
*
|
||||
* @param methodCall The method call to decode.
|
||||
* @return The decoded method call.
|
||||
*/
|
||||
- (FlutterMethodCall*)decodeMethodCall:(NSData*)methodCall;
|
||||
|
||||
/**
|
||||
* Encodes the specified successful result into binary.
|
||||
*
|
||||
* @param result The result. Must be a value supported by this codec.
|
||||
* @return The binary encoding.
|
||||
*/
|
||||
- (NSData*)encodeSuccessEnvelope:(id _Nullable)result;
|
||||
|
||||
/**
|
||||
* Encodes the specified error result into binary.
|
||||
*
|
||||
* @param error The error object. The error details value must be supported
|
||||
* by this codec.
|
||||
* @return The binary encoding.
|
||||
*/
|
||||
- (NSData*)encodeErrorEnvelope:(FlutterError*)error;
|
||||
|
||||
/**
|
||||
* Deccodes the specified result envelope from binary.
|
||||
*
|
||||
* @param envelope The error object.
|
||||
* @return The result value, if the envelope represented a successful result,
|
||||
* or a `FlutterError` instance, if not.
|
||||
*/
|
||||
- (id _Nullable)decodeEnvelope:(NSData*)envelope;
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMethodCodec` using UTF-8 encoded JSON method calls and result
|
||||
* envelopes.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [JSONMethodCodec](https://api.flutter.dev/flutter/services/JSONMethodCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*
|
||||
* Values supported as methods arguments and result payloads are
|
||||
* those supported as top-level or leaf values by `FlutterJSONMessageCodec`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterJSONMethodCodec : NSObject <FlutterMethodCodec>
|
||||
@end
|
||||
|
||||
/**
|
||||
* A `FlutterMethodCodec` using the Flutter standard binary encoding.
|
||||
*
|
||||
* This codec is guaranteed to be compatible with the corresponding
|
||||
* [StandardMethodCodec](https://api.flutter.dev/flutter/services/StandardMethodCodec-class.html)
|
||||
* on the Dart side. These parts of the Flutter SDK are evolved synchronously.
|
||||
*
|
||||
* Values supported as method arguments and result payloads are those supported by
|
||||
* `FlutterStandardMessageCodec`.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterStandardMethodCodec : NSObject <FlutterMethodCodec>
|
||||
/**
|
||||
* Create a `FlutterStandardMethodCodec` who will read and write to \p readerWriter.
|
||||
*/
|
||||
+ (instancetype)codecWithReaderWriter:(FlutterStandardReaderWriter*)readerWriter;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif // FLUTTER_FLUTTERCODECS_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERDARTPROJECT_H_
|
||||
#define FLUTTER_FLUTTERDARTPROJECT_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
/**
|
||||
* A set of Flutter and Dart assets used by a `FlutterEngine` to initialize execution.
|
||||
*
|
||||
* TODO(stuartmorgan): Align API with FlutterDartProject, and combine.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterDartProject : NSObject
|
||||
|
||||
/**
|
||||
* Initializes a Flutter Dart project from a bundle.
|
||||
*
|
||||
* The bundle must either contain a flutter_assets resource directory, or set the Info.plist key
|
||||
* FLTAssetsPath to override that name (if you are doing a custom build using a different name).
|
||||
*
|
||||
* @param bundle The bundle containing the Flutter assets directory. If nil, the App framework
|
||||
* created by Flutter will be used.
|
||||
*/
|
||||
- (nonnull instancetype)initWithPrecompiledDartBundle:(nullable NSBundle*)bundle
|
||||
NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
/**
|
||||
* If set, allows the Flutter project to use the dart:mirrors library.
|
||||
*
|
||||
* Deprecated: This function is temporary and will be removed in a future release.
|
||||
*/
|
||||
@property(nonatomic) bool enableMirrors;
|
||||
|
||||
/**
|
||||
* An NSArray of NSStrings to be passed as command line arguments to the Dart entrypoint.
|
||||
*
|
||||
* If this is not explicitly set, this will default to the contents of
|
||||
* [NSProcessInfo arguments], without the binary name.
|
||||
*
|
||||
* Set this to nil to pass no arguments to the Dart entrypoint.
|
||||
*/
|
||||
@property(nonatomic, nullable) NSArray<NSString*>* dartEntrypointArguments;
|
||||
|
||||
@end
|
||||
|
||||
#endif // FLUTTER_FLUTTERDARTPROJECT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERENGINE_H_
|
||||
#define FLUTTER_FLUTTERENGINE_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterBinaryMessenger.h"
|
||||
#import "FlutterDartProject.h"
|
||||
#import "FlutterMacros.h"
|
||||
#import "FlutterPluginRegistrarMacOS.h"
|
||||
#import "FlutterTexture.h"
|
||||
|
||||
// TODO: Merge this file with the iOS FlutterEngine.h.
|
||||
|
||||
@class FlutterViewController;
|
||||
|
||||
/**
|
||||
* Coordinates a single instance of execution of a Flutter engine.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterEngine : NSObject <FlutterTextureRegistry, FlutterPluginRegistry>
|
||||
|
||||
/**
|
||||
* Initializes an engine with the given project.
|
||||
*
|
||||
* @param labelPrefix Currently unused; in the future, may be used for labelling threads
|
||||
* as with the iOS FlutterEngine.
|
||||
* @param project The project configuration. If nil, a default FlutterDartProject will be used.
|
||||
*/
|
||||
- (nonnull instancetype)initWithName:(nonnull NSString*)labelPrefix
|
||||
project:(nullable FlutterDartProject*)project;
|
||||
|
||||
/**
|
||||
* Initializes an engine that can run headlessly with the given project.
|
||||
*
|
||||
* @param labelPrefix Currently unused; in the future, may be used for labelling threads
|
||||
* as with the iOS FlutterEngine.
|
||||
* @param project The project configuration. If nil, a default FlutterDartProject will be used.
|
||||
*/
|
||||
- (nonnull instancetype)initWithName:(nonnull NSString*)labelPrefix
|
||||
project:(nullable FlutterDartProject*)project
|
||||
allowHeadlessExecution:(BOOL)allowHeadlessExecution NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (nonnull instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
/**
|
||||
* Runs a Dart program on an Isolate from the main Dart library (i.e. the library that
|
||||
* contains `main()`).
|
||||
*
|
||||
* The first call to this method will create a new Isolate. Subsequent calls will return
|
||||
* immediately.
|
||||
*
|
||||
* @param entrypoint The name of a top-level function from the same Dart
|
||||
* library that contains the app's main() function. If this is nil, it will
|
||||
* default to `main()`. If it is not the app's main() function, that function
|
||||
* must be decorated with `@pragma(vm:entry-point)` to ensure the method is not
|
||||
* tree-shaken by the Dart compiler.
|
||||
* @return YES if the call succeeds in creating and running a Flutter Engine instance; NO otherwise.
|
||||
*/
|
||||
- (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint;
|
||||
|
||||
/**
|
||||
* The `FlutterViewController` associated with this engine, if any.
|
||||
*/
|
||||
@property(nonatomic, nullable, weak) FlutterViewController* viewController;
|
||||
|
||||
/**
|
||||
* The `FlutterBinaryMessenger` for communicating with this engine.
|
||||
*/
|
||||
@property(nonatomic, nonnull, readonly) id<FlutterBinaryMessenger> binaryMessenger;
|
||||
|
||||
/**
|
||||
* Shuts the Flutter engine if it is running. The FlutterEngine instance must always be shutdown
|
||||
* before it may be collected. Not shutting down the FlutterEngine instance before releasing it will
|
||||
* result in the leak of that engine instance.
|
||||
*/
|
||||
- (void)shutDownEngine;
|
||||
|
||||
@end
|
||||
|
||||
#endif // FLUTTER_FLUTTERENGINE_H_
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#import "FlutterAppDelegate.h"
|
||||
#import "FlutterBinaryMessenger.h"
|
||||
#import "FlutterChannels.h"
|
||||
#import "FlutterCodecs.h"
|
||||
#import "FlutterDartProject.h"
|
||||
#import "FlutterEngine.h"
|
||||
#import "FlutterMacros.h"
|
||||
#import "FlutterPluginMacOS.h"
|
||||
#import "FlutterPluginRegistrarMacOS.h"
|
||||
#import "FlutterTexture.h"
|
||||
#import "FlutterViewController.h"
|
||||
@@ -0,0 +1,48 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERMACROS_H_
|
||||
#define FLUTTER_FLUTTERMACROS_H_
|
||||
|
||||
#if defined(FLUTTER_FRAMEWORK)
|
||||
|
||||
#define FLUTTER_DARWIN_EXPORT __attribute__((visibility("default")))
|
||||
|
||||
#else // defined(FLUTTER_SDK)
|
||||
|
||||
#define FLUTTER_DARWIN_EXPORT
|
||||
|
||||
#endif // defined(FLUTTER_SDK)
|
||||
|
||||
#ifndef NS_ASSUME_NONNULL_BEGIN
|
||||
#define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
|
||||
#define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
|
||||
#endif // defined(NS_ASSUME_NONNULL_BEGIN)
|
||||
|
||||
/**
|
||||
* Indicates that the API has been deprecated for the specified reason. Code
|
||||
* that uses the deprecated API will continue to work as before. However, the
|
||||
* API will soon become unavailable and users are encouraged to immediately take
|
||||
* the appropriate action mentioned in the deprecation message and the BREAKING
|
||||
* CHANGES section present in the Flutter.h umbrella header.
|
||||
*/
|
||||
#define FLUTTER_DEPRECATED(msg) __attribute__((__deprecated__(msg)))
|
||||
|
||||
/**
|
||||
* Indicates that the previously deprecated API is now unavailable. Code that
|
||||
* uses the API will not work and the declaration of the API is only a stub
|
||||
* meant to display the given message detailing the actions for the user to take
|
||||
* immediately.
|
||||
*/
|
||||
#define FLUTTER_UNAVAILABLE(msg) __attribute__((__unavailable__(msg)))
|
||||
|
||||
#if __has_feature(objc_arc)
|
||||
#define FLUTTER_ASSERT_ARC
|
||||
#define FLUTTER_ASSERT_NOT_ARC #error ARC must be disabled!
|
||||
#else
|
||||
#define FLUTTER_ASSERT_ARC #error ARC must be enabled!
|
||||
#define FLUTTER_ASSERT_NOT_ARC
|
||||
#endif
|
||||
|
||||
#endif // FLUTTER_FLUTTERMACROS_H_
|
||||
@@ -0,0 +1,40 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERPLATFORMVIEWS_H_
|
||||
#define FLUTTER_FLUTTERPLATFORMVIEWS_H_
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
#import "FlutterCodecs.h"
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
@protocol FlutterPlatformViewFactory <NSObject>
|
||||
|
||||
/**
|
||||
* Create a Platform View which is an `NSView`.
|
||||
*
|
||||
* A MacOS plugin should implement this method and return an `NSView`, which can be embedded in a
|
||||
* Flutter App.
|
||||
*
|
||||
* The implementation of this method should create a new `NSView`.
|
||||
*
|
||||
* @param viewId A unique identifier for this view.
|
||||
* @param args Parameters for creating the view sent from the Dart side of the
|
||||
* Flutter app. If `createArgsCodec` is not implemented, or if no creation arguments were sent from
|
||||
* the Dart code, this will be null. Otherwise this will be the value sent from the Dart code as
|
||||
* decoded by `createArgsCodec`.
|
||||
*/
|
||||
- (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable id)args;
|
||||
|
||||
/**
|
||||
* Returns the `FlutterMessageCodec` for decoding the args parameter of `createWithFrame`.
|
||||
*
|
||||
* Only implement this if `createWithFrame` needs an arguments parameter.
|
||||
*/
|
||||
@optional
|
||||
- (nullable NSObject<FlutterMessageCodec>*)createArgsCodec;
|
||||
@end
|
||||
|
||||
#endif // FLUTTER_FLUTTERPLATFORMVIEWS_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterChannels.h"
|
||||
#import "FlutterCodecs.h"
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
// TODO: Merge this file and FlutterPluginRegistrarMacOS.h with the iOS FlutterPlugin.h, sharing
|
||||
// all but the platform-specific methods.
|
||||
|
||||
@protocol FlutterPluginRegistrar;
|
||||
|
||||
/**
|
||||
* Implemented by the platform side of a Flutter plugin.
|
||||
*
|
||||
* Defines a set of optional callback methods and a method to set up the plugin
|
||||
* and register it to be called by other application components.
|
||||
*
|
||||
* Currently the macOS version of FlutterPlugin has very limited functionality, but is expected to
|
||||
* expand over time to more closely match the functionality of the iOS FlutterPlugin.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterPlugin <NSObject>
|
||||
|
||||
/**
|
||||
* Creates an instance of the plugin to register with |registrar| using the desired
|
||||
* FlutterPluginRegistrar methods.
|
||||
*/
|
||||
+ (void)registerWithRegistrar:(nonnull id<FlutterPluginRegistrar>)registrar;
|
||||
|
||||
@optional
|
||||
|
||||
/**
|
||||
* Called when a message is sent from Flutter on a channel that a plugin instance has subscribed
|
||||
* to via -[FlutterPluginRegistrar addMethodCallDelegate:channel:].
|
||||
*
|
||||
* The |result| callback must be called exactly once, with one of:
|
||||
* - FlutterMethodNotImplemented, if the method call is unknown.
|
||||
* - A FlutterError, if the method call was understood but there was a
|
||||
* problem handling it.
|
||||
* - Any other value (including nil) to indicate success. The value will
|
||||
* be returned to the Flutter caller, and must be serializable to JSON.
|
||||
*/
|
||||
- (void)handleMethodCall:(nonnull FlutterMethodCall*)call result:(nonnull FlutterResult)result;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,91 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "FlutterBinaryMessenger.h"
|
||||
#import "FlutterChannels.h"
|
||||
#import "FlutterMacros.h"
|
||||
#import "FlutterPlatformViews.h"
|
||||
#import "FlutterPluginMacOS.h"
|
||||
#import "FlutterTexture.h"
|
||||
|
||||
// TODO: Merge this file and FlutterPluginMacOS.h with the iOS FlutterPlugin.h, sharing all but
|
||||
// the platform-specific methods.
|
||||
|
||||
/**
|
||||
* The protocol for an object managing registration for a plugin. It provides access to application
|
||||
* context, as as allowing registering for callbacks for handling various conditions.
|
||||
*
|
||||
* Currently the macOS PluginRegistrar has very limited functionality, but is expected to expand
|
||||
* over time to more closely match the functionality of FlutterPluginRegistrar.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@protocol FlutterPluginRegistrar <NSObject>
|
||||
|
||||
/**
|
||||
* The binary messenger used for creating channels to communicate with the Flutter engine.
|
||||
*/
|
||||
@property(nonnull, readonly) id<FlutterBinaryMessenger> messenger;
|
||||
|
||||
/**
|
||||
* Returns a `FlutterTextureRegistry` for registering textures
|
||||
* provided by the plugin.
|
||||
*/
|
||||
@property(nonnull, readonly) id<FlutterTextureRegistry> textures;
|
||||
|
||||
/**
|
||||
* The view displaying Flutter content. May return |nil|, for instance in a headless environment.
|
||||
*
|
||||
* WARNING: If/when multiple Flutter views within the same application are supported (#30701), this
|
||||
* API will change.
|
||||
*/
|
||||
@property(nullable, readonly) NSView* view;
|
||||
|
||||
/**
|
||||
* Registers |delegate| to receive handleMethodCall:result: callbacks for the given |channel|.
|
||||
*/
|
||||
- (void)addMethodCallDelegate:(nonnull id<FlutterPlugin>)delegate
|
||||
channel:(nonnull FlutterMethodChannel*)channel;
|
||||
|
||||
/**
|
||||
* Registers a `FlutterPlatformViewFactory` for creation of platform views.
|
||||
*
|
||||
* Plugins expose `NSView` for embedding in Flutter apps by registering a view factory.
|
||||
*
|
||||
* @param factory The view factory that will be registered.
|
||||
* @param factoryId A unique identifier for the factory, the Dart code of the Flutter app can use
|
||||
* this identifier to request creation of a `NSView` by the registered factory.
|
||||
*/
|
||||
- (void)registerViewFactory:(nonnull NSObject<FlutterPlatformViewFactory>*)factory
|
||||
withId:(nonnull NSString*)factoryId;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
* A registry of Flutter macOS plugins.
|
||||
*
|
||||
* Plugins are identified by unique string keys, typically the name of the
|
||||
* plugin's main class.
|
||||
*
|
||||
* Plugins typically need contextual information and the ability to register
|
||||
* callbacks for various application events. To keep the API of the registry
|
||||
* focused, these facilities are not provided directly by the registry, but by
|
||||
* a `FlutterPluginRegistrar`, created by the registry in exchange for the unique
|
||||
* key of the plugin.
|
||||
*
|
||||
* There is no implied connection between the registry and the registrar.
|
||||
* Specifically, callbacks registered by the plugin via the registrar may be
|
||||
* relayed directly to the underlying iOS application objects.
|
||||
*/
|
||||
@protocol FlutterPluginRegistry <NSObject>
|
||||
|
||||
/**
|
||||
* Returns a registrar for registering a plugin.
|
||||
*
|
||||
* @param pluginKey The unique key identifying the plugin.
|
||||
*/
|
||||
- (nonnull id<FlutterPluginRegistrar>)registrarForPlugin:(nonnull NSString*)pluginKey;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,62 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_FLUTTERTEXTURE_H_
|
||||
#define FLUTTER_FLUTTERTEXTURE_H_
|
||||
|
||||
#import <CoreMedia/CoreMedia.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "FlutterMacros.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
/**
|
||||
* Represents a texture that can be shared with Flutter.
|
||||
*
|
||||
* See also: https://github.com/flutter/plugins/tree/master/packages/camera
|
||||
*/
|
||||
@protocol FlutterTexture <NSObject>
|
||||
/** Copy the contents of the texture into a `CVPixelBuffer`. */
|
||||
- (CVPixelBufferRef _Nullable)copyPixelBuffer;
|
||||
|
||||
/**
|
||||
* Called when the texture is unregistered.
|
||||
*
|
||||
* Called on the raster thread.
|
||||
*/
|
||||
@optional
|
||||
- (void)onTextureUnregistered:(NSObject<FlutterTexture>*)texture;
|
||||
@end
|
||||
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
/**
|
||||
* A collection of registered `FlutterTexture`'s.
|
||||
*/
|
||||
@protocol FlutterTextureRegistry <NSObject>
|
||||
/**
|
||||
* Registers a `FlutterTexture` for usage in Flutter and returns an id that can be used to reference
|
||||
* that texture when calling into Flutter with channels. Textures must be registered on the
|
||||
* platform thread. On success returns the pointer to the registered texture, else returns 0.
|
||||
*/
|
||||
- (int64_t)registerTexture:(NSObject<FlutterTexture>*)texture;
|
||||
/**
|
||||
* Notifies Flutter that the content of the previously registered texture has been updated.
|
||||
*
|
||||
* This will trigger a call to `-[FlutterTexture copyPixelBuffer]` on the raster thread.
|
||||
*/
|
||||
- (void)textureFrameAvailable:(int64_t)textureId;
|
||||
/**
|
||||
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`. Textures
|
||||
* must be unregistered on the platform thread.
|
||||
*
|
||||
* @param textureId The result that was previously returned from `registerTexture:`.
|
||||
*/
|
||||
- (void)unregisterTexture:(int64_t)textureId;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
#endif // FLUTTER_FLUTTERTEXTURE_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "FlutterEngine.h"
|
||||
#import "FlutterMacros.h"
|
||||
#import "FlutterPlatformViews.h"
|
||||
#import "FlutterPluginRegistrarMacOS.h"
|
||||
|
||||
/**
|
||||
* Values for the `mouseTrackingMode` property.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, FlutterMouseTrackingMode) {
|
||||
// Hover events will never be sent to Flutter.
|
||||
FlutterMouseTrackingModeNone = 0,
|
||||
// Hover events will be sent to Flutter when the view is in the key window.
|
||||
FlutterMouseTrackingModeInKeyWindow,
|
||||
// Hover events will be sent to Flutter when the view is in the active app.
|
||||
FlutterMouseTrackingModeInActiveApp,
|
||||
// Hover events will be sent to Flutter regardless of window and app focus.
|
||||
FlutterMouseTrackingModeAlways,
|
||||
};
|
||||
|
||||
/**
|
||||
* Controls a view that displays Flutter content and manages input.
|
||||
*/
|
||||
FLUTTER_DARWIN_EXPORT
|
||||
@interface FlutterViewController : NSViewController <FlutterPluginRegistry>
|
||||
|
||||
/**
|
||||
* The Flutter engine associated with this view controller.
|
||||
*/
|
||||
@property(nonatomic, nonnull, readonly) FlutterEngine* engine;
|
||||
|
||||
/**
|
||||
* The style of mouse tracking to use for the view. Defaults to
|
||||
* FlutterMouseTrackingModeInKeyWindow.
|
||||
*/
|
||||
@property(nonatomic) FlutterMouseTrackingMode mouseTrackingMode;
|
||||
|
||||
/**
|
||||
* Initializes a controller that will run the given project.
|
||||
*
|
||||
* @param project The project to run in this view controller. If nil, a default `FlutterDartProject`
|
||||
* will be used.
|
||||
*/
|
||||
- (nonnull instancetype)initWithProject:(nullable FlutterDartProject*)project
|
||||
NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (nonnull instancetype)initWithNibName:(nullable NSString*)nibNameOrNil
|
||||
bundle:(nullable NSBundle*)nibBundleOrNil
|
||||
NS_DESIGNATED_INITIALIZER;
|
||||
- (nonnull instancetype)initWithCoder:(nonnull NSCoder*)nibNameOrNil NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
/**
|
||||
* Invoked by the engine right before the engine is restarted.
|
||||
*
|
||||
* This should reset states to as if the application has just started. It
|
||||
* usually indicates a hot restart (Shift-R in Flutter CLI.)
|
||||
*/
|
||||
- (void)onPreEngineRestart;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,6 @@
|
||||
framework module FlutterMacOS {
|
||||
umbrella header "FlutterMacOS.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>FlutterMacOS</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter-macos</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>FlutterMacOS</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -0,0 +1,301 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Resources/Info.plist</key>
|
||||
<data>
|
||||
jqU87p/MJtpIAzfj0wm59ZtbI3o=
|
||||
</data>
|
||||
<key>Resources/icudtl.dat</key>
|
||||
<data>
|
||||
5zcJ5BY+w7z+M0to6P+uUWPn04o=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Headers/FlutterAppDelegate.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
64crwqZS4rtX/1zH6bPcVzDjNC8=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
h6cZ8GAYv0IUaiv1+WnRSRn9SPxqTUR9r96JyGlWxT4=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterBinaryMessenger.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
Qj6OtkzORWI38PIdXyyJc+eribM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
4quj8X+HDK/AVExMhTcqLpIRxe/OjnnNTiON5KEv3hI=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterChannels.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
bhEGVRctQGJxYtCb3asK0k4Iq74=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
IAJwMIrTpwHKIiP2tBsYBUQe8B8qT6nLVEQzZLi+yFc=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterCodecs.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
O4jh4GUQe4YBT6YjVMXNbQMbalk=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
yML7JaB7PwUwr6A9dDtlf6CCeMLjzd9Vja1r4Hkngvs=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterDartProject.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
UtnE69qCl+d002RXYkRDCh2qDwY=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
pr8QCnZoO5kHSBjleNHyioJF2Y45K7iOFmFxFKF7aYo=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterEngine.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
ddp8iH9FXBNDjXhP016xeO6vCLU=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
PRRAkGpupU5CzEl1aJijYrA3RHSaKOLrly+TUbc/4ME=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterMacOS.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
iBpZGFVguw+ecnl3wn+Os1y/PIY=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
/NO18HNvLW3lAVq6zY5wdulebohGLvJF0K8pj0f4zoA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterMacros.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
I9N4VAVhaoHjYjsRdmqSzEYJgN4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
7FrU4ZPRKob2HMUIRVBrtZ/QBRs2QL0JUN4oJmEaZs0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterPlatformViews.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
1+iRwnU6jf2UGVtBR6Cs+qV6XHY=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
XzVAwtEmkEc3RhQbtAlhdf/01qrTot2o1cxhWJzYXbM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterPluginMacOS.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
hKayVdbBwzE884OPud18h6QsajI=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
En24VwKjAAbG1fJvINCeIPgiwqjksfCeOVT/eFrSAb0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterPluginRegistrarMacOS.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
3QVvGeIRtXFlVW3lfHS56Z8gZv0=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
nTvJBfgYtXEvruiIF2hO9zBpGco4t0CgIP25Eb3e39I=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterTexture.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
yBJovGku2dvjTDXp2km51wNc8yM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
VkMu2v4CZSBLhGWCJdxdAPzVFOgUvVyyxpdwmfAnWrY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/FlutterViewController.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
73yRPO6bKNlh9EaWp29PJcRq1Z4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
hvTcLkGVkI9PXzYA01nKwb8v5s0+yHbC1NWwAYukJMw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
RS15t13cXfIpKFijD9yaDymFch4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
wgsdtVh6ndm95Zc35nrBbFsqLz3fGHr6DYyHgR8URbE=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/Info.plist</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
jqU87p/MJtpIAzfj0wm59ZtbI3o=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
aDYD1VCbX1UQIZikBOHcRjPXPmzUntLnd7K2cjnvfoQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/icudtl.dat</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
5zcJ5BY+w7z+M0to6P+uUWPn04o=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
yNAOslsdK6e70q88cOrqlKovbuH0GiUDe+ICgawnSrQ=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1 @@
|
||||
A
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/App
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user