Mark const extern (#8077)

* Mark const extern

* fix build
This commit is contained in:
Dan Field 2019-03-07 16:10:03 -08:00 committed by GitHub
parent d3f6d7a21d
commit 7426305f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ gke_container:
task:
env:
CIRRUS_WORKING_DIR: "/tmp/github_repo"
DEPOT_TOOLS_UPDATE: 0
replace_engine_script: |
cd $ENGINE_PATH/src
rm -r flutter
@ -88,7 +88,7 @@ format_and_dart_test_task:
env:
CIRRUS_WORKING_DIR: "/tmp/github_repo"
DEPOT_TOOLS_UPDATE: 0
replace_engine_script: |
cd $ENGINE_PATH/src
rm -r flutter

View File

@ -23,7 +23,7 @@
* The object passed as the sender is the `FlutterViewController` associated
* with the update.
*/
const NSNotificationName FlutterSemanticsUpdateNotification = @"FlutterSemanticsUpdate";
extern NSNotificationName const FlutterSemanticsUpdateNotification;
/**
* A `UIViewController` implementation for Flutter views.

View File

@ -22,6 +22,8 @@
#include "flutter/shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.h"
#include "flutter/shell/platform/darwin/ios/platform_view_ios.h"
NSNotificationName const FlutterSemanticsUpdateNotification = @"FlutterSemanticsUpdate";
@implementation FlutterViewController {
std::unique_ptr<fml::WeakPtrFactory<FlutterViewController>> _weakFactory;
fml::scoped_nsobject<FlutterEngine> _engine;