首页页面搭建完成

This commit is contained in:
2022-05-30 16:15:54 +08:00
parent c343dbbe83
commit 97f5525aa7
78 changed files with 1114 additions and 797 deletions

View File

@@ -31,8 +31,6 @@ typedef void (^FlutterBinaryMessageHandler)(NSData* _Nullable message, FlutterBi
typedef int64_t FlutterBinaryMessengerConnection;
@protocol FlutterTaskQueue;
/**
* A facility for communicating with the Flutter side using asynchronous message
* passing with binary messages.
@@ -46,16 +44,6 @@ typedef int64_t FlutterBinaryMessengerConnection;
*/
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.

View File

@@ -8,8 +8,6 @@
#import "FlutterBinaryMessenger.h"
#import "FlutterCodecs.h"
@protocol FlutterTaskQueue;
NS_ASSUME_NONNULL_BEGIN
/**
* A message reply callback.
@@ -26,8 +24,7 @@ typedef void (^FlutterReply)(id _Nullable reply);
* 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.
* @param callback A callback for submitting a reply to the sender.
*/
typedef void (^FlutterMessageHandler)(id _Nullable message, FlutterReply callback);
@@ -91,27 +88,6 @@ FLUTTER_DARWIN_EXPORT
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.
*
@@ -166,7 +142,7 @@ typedef void (^FlutterResult)(id _Nullable result);
* 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.
* successful results.
*/
typedef void (^FlutterMethodCallHandler)(FlutterMethodCall* call, FlutterResult result);
@@ -237,27 +213,6 @@ FLUTTER_DARWIN_EXPORT
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
@@ -416,27 +371,6 @@ FLUTTER_DARWIN_EXPORT
- (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.
*

View File

@@ -219,9 +219,8 @@ FLUTTER_DARWIN_EXPORT
* FlutterDefaultDartEntrypoint (or nil); this 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.
* @param uri The URI of the Dart library which contains the entrypoint method
* (example "package:foo_package/main.dart"). If nil, this will default to
* the same library as the `main()` function in the Dart program.
* @param uri The URI of the Dart library which contains the entrypoint method. IF nil,
* this will default to the same library as the `main()` function in the Dart program.
* @return YES if the call succeeds in creating and running a Flutter Engine instance; NO otherwise.
*/
- (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint libraryURI:(nullable NSString*)uri;
@@ -237,9 +236,8 @@ FLUTTER_DARWIN_EXPORT
* FlutterDefaultDartEntrypoint (or nil); this 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.
* @param libraryURI The URI of the Dart library which contains the entrypoint
* method (example "package:foo_package/main.dart"). If nil, this will
* default to the same library as the `main()` function in the Dart program.
* @param libraryURI The URI of the Dart library which contains the entrypoint method. IF nil,
* this will default to the same library as the `main()` function in the Dart program.
* @param initialRoute The name of the initial Flutter `Navigator` `Route` to load. If this is
* FlutterDefaultInitialRoute (or nil), it will default to the "/" route.
* @return YES if the call succeeds in creating and running a Flutter Engine instance; NO otherwise.
@@ -259,9 +257,8 @@ FLUTTER_DARWIN_EXPORT
* FlutterDefaultDartEntrypoint (or nil); this 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.
* @param libraryURI The URI of the Dart library which contains the entrypoint
* method (example "package:foo_package/main.dart"). If nil, this will
* default to the same library as the `main()` function in the Dart program.
* @param libraryURI The URI of the Dart library which contains the entrypoint method. IF nil,
* this will default to the same library as the `main()` function in the Dart program.
* @param initialRoute The name of the initial Flutter `Navigator` `Route` to load. If this is
* FlutterDefaultInitialRoute (or nil), it will default to the "/" route.
* @param entrypointArgs Arguments passed as a list of string to Dart's entrypoint function.

View File

@@ -23,8 +23,8 @@
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>FlutterEngine</key>
<string>caaafc5604ee9172293eb84a381be6aadd660317</string>
<string>57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab</string>
<key>ClangVersion</key>
<string>b'Apple clang version 13.0.0 (clang-1300.0.29.3)'</string>
<string>b'Apple clang version 12.0.0 (clang-1200.0.32.2)'</string>
</dict>
</plist>

View File

@@ -14,7 +14,7 @@
</data>
<key>Headers/FlutterBinaryMessenger.h</key>
<data>
Qj6OtkzORWI38PIdXyyJc+eribM=
etrFpvIkvsKk1mlvYXGTBvgwzzE=
</data>
<key>Headers/FlutterCallbackCache.h</key>
<data>
@@ -22,7 +22,7 @@
</data>
<key>Headers/FlutterChannels.h</key>
<data>
bhEGVRctQGJxYtCb3asK0k4Iq74=
sHj+Q0IC9IHcDQFEUVW9NjjVwyo=
</data>
<key>Headers/FlutterCodecs.h</key>
<data>
@@ -34,7 +34,7 @@
</data>
<key>Headers/FlutterEngine.h</key>
<data>
X2Ckj0pVfsQ7Xw54ga19s0nSyTg=
iK8LlXFSIB+kRycoxv7/IGhwLtg=
</data>
<key>Headers/FlutterEngineGroup.h</key>
<data>
@@ -70,7 +70,7 @@
</data>
<key>Info.plist</key>
<data>
VgBhro8/63X3x6HFxEBZQT4LP7g=
Cs55BJxmM6fRteTSVlb1tmMKPUc=
</data>
<key>Modules/module.modulemap</key>
<data>
@@ -78,7 +78,7 @@
</data>
<key>icudtl.dat</key>
<data>
5zcJ5BY+w7z+M0to6P+uUWPn04o=
1QumeTTkdhWvmY7i40QoJewEapE=
</data>
</dict>
<key>files2</key>
@@ -109,11 +109,11 @@
<dict>
<key>hash</key>
<data>
Qj6OtkzORWI38PIdXyyJc+eribM=
etrFpvIkvsKk1mlvYXGTBvgwzzE=
</data>
<key>hash2</key>
<data>
4quj8X+HDK/AVExMhTcqLpIRxe/OjnnNTiON5KEv3hI=
3SViazqKyfDFTyiD8JSsNncD/XtsdhhL1bSSPXnfIio=
</data>
</dict>
<key>Headers/FlutterCallbackCache.h</key>
@@ -131,11 +131,11 @@
<dict>
<key>hash</key>
<data>
bhEGVRctQGJxYtCb3asK0k4Iq74=
sHj+Q0IC9IHcDQFEUVW9NjjVwyo=
</data>
<key>hash2</key>
<data>
IAJwMIrTpwHKIiP2tBsYBUQe8B8qT6nLVEQzZLi+yFc=
mMZONInvJM4ILgC2/EPW99HwFnhDr0K7Qti6QFfqno0=
</data>
</dict>
<key>Headers/FlutterCodecs.h</key>
@@ -164,11 +164,11 @@
<dict>
<key>hash</key>
<data>
X2Ckj0pVfsQ7Xw54ga19s0nSyTg=
iK8LlXFSIB+kRycoxv7/IGhwLtg=
</data>
<key>hash2</key>
<data>
2y8eus4iJ7ghtc/gA0kfZ5anoS7ULVkmzsqbwY10ZyQ=
OFsLCLyLBDzxeZL7XdnU+Nl6W36lSsKyIT3Z/l0ojrM=
</data>
</dict>
<key>Headers/FlutterEngineGroup.h</key>
@@ -274,11 +274,11 @@
<dict>
<key>hash</key>
<data>
5zcJ5BY+w7z+M0to6P+uUWPn04o=
1QumeTTkdhWvmY7i40QoJewEapE=
</data>
<key>hash2</key>
<data>
yNAOslsdK6e70q88cOrqlKovbuH0GiUDe+ICgawnSrQ=
Y7sS66zRuTsBvhoY8E7AmSrn+3DMMIOCUocmE2apBcw=
</data>
</dict>
</dict>