mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Also cleans up the messages when errors occur in both modes. I have also made the API a lot simpler and moved more of the extraneous stuff out of public. Only FlutterViewController and the Dart project configuration are publically available.
27 lines
852 B
Objective-C
27 lines
852 B
Objective-C
// Copyright 2016 The Chromium 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 SKY_SHELL_PLATFORM_IOS_FLUTTERDARTSOURCE_H_
|
|
#define SKY_SHELL_PLATFORM_IOS_FLUTTERDARTSOURCE_H_
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef void (^ValidationResult)(BOOL result, NSString* message);
|
|
|
|
@interface FlutterDartSource : NSObject
|
|
|
|
@property(nonatomic, readonly) NSURL* dartMain;
|
|
@property(nonatomic, readonly) NSURL* packageRoot;
|
|
@property(nonatomic, readonly) NSURL* flxArchive;
|
|
|
|
- (instancetype)initWithDartMain:(NSURL*)dartMain
|
|
packageRoot:(NSURL*)packageRoot
|
|
flxArchive:(NSURL*)flxArchive NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (void)validate:(ValidationResult)result;
|
|
|
|
@end
|
|
|
|
#endif // SKY_SHELL_PLATFORM_IOS_FLUTTERDARTSOURCE_H_
|