41 lines
1.5 KiB
Objective-C
41 lines
1.5 KiB
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 FLUTTER_FLUTTERDARTPROJECT_H_
|
|
#define FLUTTER_FLUTTERDARTPROJECT_H_
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#include "FlutterMacros.h"
|
|
|
|
FLUTTER_EXPORT
|
|
@interface FlutterDartProject : NSObject
|
|
|
|
- (instancetype)initWithPrecompiledDartBundle:(NSBundle*)bundle NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)initWithFLXArchive:(NSURL*)archiveURL
|
|
dartMain:(NSURL*)dartMainURL
|
|
packages:(NSURL*)dartPackages NS_DESIGNATED_INITIALIZER
|
|
FLUTTER_UNAVAILABLE(
|
|
"This initializer is no longer available. See the deprecation message from "
|
|
"December 11, 2017 in Flutter.h. Instead, use [initWithFlutterAssets].");
|
|
|
|
- (instancetype)initWithFLXArchiveWithScriptSnapshot:(NSURL*)archiveURL NS_DESIGNATED_INITIALIZER
|
|
FLUTTER_UNAVAILABLE(
|
|
"This initializer is no longer available. See the deprecation message from "
|
|
"December 11, 2017 in Flutter.h. Instead, use [initWithFlutterAssetsWithScriptSnapshot].");
|
|
|
|
- (instancetype)initWithFlutterAssets:(NSURL*)flutterAssetsURL
|
|
dartMain:(NSURL*)dartMainURL
|
|
packages:(NSURL*)dartPackages NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)initWithFlutterAssetsWithScriptSnapshot:(NSURL*)flutterAssetsURL
|
|
NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)initFromDefaultSourceForConfiguration;
|
|
|
|
@end
|
|
|
|
#endif // FLUTTER_FLUTTERDARTPROJECT_H_
|