1 // Copyright 2015-present 650 Industries. All rights reserved.
2 
3 @import EXManifests;
4 
5 NS_ASSUME_NONNULL_BEGIN
6 
7 typedef void (^IsManifestURL)(BOOL isManifestURL);
8 typedef void (^OnManifestParsed)(EXManifestsManifest *manifest);
9 typedef void (^OnManifestError)(NSError *error);
10 
11 @interface EXDevLauncherManifestParser : NSObject
12 
13 - (instancetype)initWithURL:(NSURL *)url
14              installationID:(NSString *)installationID
15                     session:(NSURLSession *)session;
16 
17 - (void)isManifestURLWithCompletion:(IsManifestURL)completion
18                             onError:(OnManifestError)onError;
19 
20 - (void)tryToParseManifest:(OnManifestParsed)onParsed
21                    onError:(OnManifestError)onError;
22 
23 @end
24 
25 NS_ASSUME_NONNULL_END
26