flutter_flutter/sky/shell/platform/ios/FlutterDartSource.h
Chinmay Garde 46070d433e Make the iOS shell use the public Flutter framework API.
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.
2016-03-17 16:44:25 -07:00

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_