Skip to content

Commit a34fc87

Browse files
author
talkol
committed
updated fbsimctl due to terminate bugfix (wait reduced from 10 seconds to 1 seconds)
1 parent c1a844f commit a34fc87

File tree

255 files changed

+5963
-828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+5963
-828
lines changed
Binary file not shown.

detox/bin/fbsimctl/FBControlCore.framework/Headers/FBApplicationCommands.h

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#import <Foundation/Foundation.h>
1111

12+
NS_ASSUME_NONNULL_BEGIN
13+
1214
/**
1315
Defines an interface for interacting with iOS Applications.
1416
*/
@@ -33,3 +35,5 @@
3335
- (BOOL)isApplicationInstalledWithBundleID:(NSString *)bundleID error:(NSError **)error;
3436

3537
@end
38+
39+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import <Foundation/Foundation.h>
11+
12+
#import <FBControlCore/FBJSONConversion.h>
13+
#import <FBControlCore/FBDebugDescribeable.h>
14+
15+
NS_ASSUME_NONNULL_BEGIN
16+
17+
@class FBBinaryDescriptor;
18+
19+
/**
20+
Concrete value wrapper around a Application artifact.
21+
*/
22+
@interface FBApplicationDescriptor : NSObject <NSCopying, NSCoding, FBJSONSerializable, FBDebugDescribeable>
23+
24+
/**
25+
The Designated Initializer.
26+
27+
@param name the Name of the Application. See CFBundleName. Must not be nil.
28+
@param path The Path to the Application Bundle. Must not be nil.
29+
@param bundleID the Bundle ID of the Application. Must not be nil.
30+
@param binary the Path to the binary inside the Application. Must not be nil.
31+
@returns a new FBApplicationDescriptor instance.
32+
*/
33+
- (instancetype)initWithName:(NSString *)name path:(NSString *)path bundleID:(NSString *)bundleID binary:(FBBinaryDescriptor *)binary;
34+
35+
/**
36+
An initializer for FBApplicationDescriptor that checks the nullability of the arguments
37+
38+
@param name the Name of the Application. See CFBundleName. Must not be nil.
39+
@param path The Path to the Application Bundle. May be nil.
40+
@param bundleID the Bundle ID of the Application. May be nil.
41+
@param binary the Path to the binary inside the Application. May be nil.
42+
@returns a new FBApplicationDescriptor instance, if all arguments are non-nil. Nil otherwise
43+
*/
44+
+ (nullable instancetype)withName:(NSString *)name path:(NSString *)path bundleID:(NSString *)bundleID binary:(FBBinaryDescriptor *)binary;
45+
46+
/**
47+
The name of the Application. See CFBundleName.
48+
*/
49+
@property (nonatomic, copy, readonly) NSString *name;
50+
51+
/**
52+
The File Path to the Application.
53+
*/
54+
@property (nonatomic, copy, readonly) NSString *path;
55+
56+
/**
57+
The Bundle Identifier of the Application. See CFBundleIdentifier.
58+
*/
59+
@property (nonatomic, copy, readonly) NSString *bundleID;
60+
61+
/**
62+
The Executable Binary contained within the Application's Bundle.
63+
*/
64+
@property (nonatomic, copy, readonly) FBBinaryDescriptor *binary;
65+
66+
@end
67+
68+
/**
69+
Conveniences for building FBApplicationDescriptor instances.
70+
*/
71+
@interface FBApplicationDescriptor (Helpers)
72+
73+
/**
74+
Constructs a FBApplicationDescriptor for the Application at the given path.
75+
76+
@param path the path of the applocation to construct.
77+
@param error an error out.
78+
@returns a FBApplicationDescriptor instance if one could be constructed, nil otherwise.
79+
*/
80+
+ (nullable instancetype)applicationWithPath:(NSString *)path error:(NSError **)error;
81+
82+
/**
83+
Returns the FBApplicationDescriptor for the current version of Xcode's Simulator.app.
84+
Will assert if the FBApplicationDescriptor instance could not be constructed.
85+
86+
@return A FBApplicationDescriptor instance for the Simulator.app.
87+
*/
88+
+ (instancetype)xcodeSimulator;
89+
90+
/**
91+
Returns the System Application with the provided name.
92+
93+
@param appName the System Application to fetch.
94+
@param error any error that occurred in fetching the application.
95+
@returns FBApplicationDescriptor instance if one could for the given name could be found, nil otherwise.
96+
*/
97+
+ (nullable instancetype)systemApplicationNamed:(NSString *)appName error:(NSError **)error;
98+
99+
@end
100+
101+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import <Foundation/Foundation.h>
11+
12+
#import <FBControlCore/FBDebugDescribeable.h>
13+
#import <FBControlCore/FBJSONConversion.h>
14+
15+
@class FBDiagnostic;
16+
@class FBLogSearchPredicate;
17+
18+
NS_ASSUME_NONNULL_BEGIN
19+
20+
/**
21+
Defines a model for the result of a batch search on diagnostics.
22+
*/
23+
@interface FBBatchLogSearchResult : NSObject <NSCopying, NSCoding, FBJSONSerializable, FBJSONDeserializable, FBDebugDescribeable>
24+
25+
/**
26+
The Results as a Mapping:
27+
The returned dictionary is a NSDictionary where:
28+
- The keys are the log names. A log must have 1 or more matches to have a key.
29+
- The values are an NSArrray of NSStrings for the lines that have been matched.
30+
*/
31+
@property (nonatomic, copy, readonly) NSDictionary<NSString *, NSArray<NSString *> *> *mapping;
32+
33+
/**
34+
Returns all matches from all elements in the mapping
35+
*/
36+
- (NSArray<NSString *> *)allMatches;
37+
38+
@end
39+
40+
/**
41+
Defines a model for batch searching diagnostics.
42+
This model is then used to concurrently search logs, returning the relevant matches.
43+
44+
Diagnostics are defined in terms of thier short_name.
45+
Logs are defined in terms of Search Predicates.
46+
*/
47+
@interface FBBatchLogSearch : NSObject <NSCopying, NSCoding, FBJSONSerializable, FBJSONDeserializable, FBDebugDescribeable>
48+
49+
/**
50+
Constructs a Batch Log Search for the provided mapping of log names to predicates.
51+
The provided mapping is an NSDictionary where:
52+
- The keys are the names of the Diagnostics to search. The empty string matches against all input diagnostics.
53+
- The values are an NSArray of FBLogSearchPredicates of the predicates to search the the diagnostic with.
54+
55+
@param mapping the mapping to search with.
56+
@param lines YES to include the full line in the output, NO for the matched substring.
57+
@param error an error out for any error in the mapping format.
58+
@return an FBBatchLogSearch instance if the mapping is valid, nil otherwise.
59+
*/
60+
+ (instancetype)withMapping:(NSDictionary<NSArray<NSString *> *, NSArray<FBLogSearchPredicate *> *> *)mapping lines:(BOOL)lines error:(NSError **)error;
61+
62+
/**
63+
Runs the Reciever over an array of Diagnostics.
64+
65+
@param diagnostics an NSArray of FBDiagnostics to search.
66+
@return a search result
67+
*/
68+
- (FBBatchLogSearchResult *)search:(NSArray<FBDiagnostic *> *)diagnostics;
69+
70+
/**
71+
Convenience method for searching an array of diagnostics with a single predicate.
72+
73+
@param diagnostics an NSArray of FBDiagnostics to search.
74+
@param predicate a Log Search Predicate to search with.
75+
@param lines YES to include the full line in the output, NO for the matched substring.
76+
@return a NSDictionary specified by -[FBBatchLogSearchResult mapping].
77+
*/
78+
+ (NSDictionary<NSString *, NSArray<NSString *> *> *)searchDiagnostics:(NSArray<FBDiagnostic *> *)diagnostics withPredicate:(FBLogSearchPredicate *)predicate lines:(BOOL)lines;
79+
80+
@end
81+
82+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import <Foundation/Foundation.h>
11+
12+
#import <FBControlCore/FBJSONConversion.h>
13+
#import <FBControlCore/FBDebugDescribeable.h>
14+
15+
NS_ASSUME_NONNULL_BEGIN
16+
17+
/**
18+
Concrete value wrapper around a binary artifact.
19+
*/
20+
@interface FBBinaryDescriptor : NSObject <NSCopying, NSCoding, FBJSONSerializable, FBJSONDeserializable, FBDebugDescribeable>
21+
22+
/**
23+
The Designated Initializer.
24+
25+
@param name The name of the executable. Must not be nil.
26+
@param path The path to the executable. Must not be nil.
27+
@param architectures The supported architectures of the executable. Must not be nil.
28+
@returns a new FBBinaryDescriptor instance.
29+
*/
30+
- (instancetype)initWithName:(NSString *)name path:(NSString *)path architectures:(NSSet *)architectures;
31+
32+
/**
33+
An initializer for FBBinaryDescriptor that checks the nullability of the arguments
34+
35+
@param name The name of the executable. May be nil.
36+
@param path The path to the executable. May be nil.
37+
@param architectures The supported architectures of the executable. Must not be nil.
38+
@returns a new FBBinaryDescriptor instance, if all arguments are non-nil. Nil otherwise.
39+
*/
40+
+ (nullable instancetype)withName:(NSString *)name path:(NSString *)path architectures:(NSSet *)architectures;
41+
42+
/**
43+
The Name of the Executable.
44+
*/
45+
@property (nonatomic, copy, readonly) NSString *name;
46+
47+
/**
48+
The File Path to the Executable.
49+
*/
50+
@property (nonatomic, copy, readonly) NSString *path;
51+
52+
/**
53+
The Supported Architectures of the Executable.
54+
*/
55+
@property (nonatomic, copy, readonly) NSSet *architectures;
56+
57+
@end
58+
59+
/**
60+
Conveniences for building FBBinaryDescriptor instances
61+
*/
62+
@interface FBBinaryDescriptor (Helpers)
63+
64+
/**
65+
Returns the FBBinaryDescriptor for the given binary path
66+
*/
67+
+ (nullable instancetype)binaryWithPath:(NSString *)path error:(NSError **)error;
68+
69+
/**
70+
Returns the launchctl for the current version of Xcode's of the Simulator Platform.
71+
Will assert if the FBBinaryDescriptor instance could not be constructed.
72+
73+
@return a FBBinaryDescriptor instance launchctl.
74+
*/
75+
+ (instancetype)launchCtl;
76+
77+
@end
78+
79+
NS_ASSUME_NONNULL_END

detox/bin/fbsimctl/FBControlCore.framework/Headers/FBControlCore.h

+3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
*/
99

1010
#import <FBControlCore/FBApplicationCommands.h>
11+
#import <FBControlCore/FBApplicationDescriptor.h>
12+
#import <FBControlCore/FBBinaryDescriptor.h>
1113
#import <FBControlCore/FBASLParser.h>
14+
#import <FBControlCore/FBBatchLogSearch.h>
1215
#import <FBControlCore/FBBinaryParser.h>
1316
#import <FBControlCore/FBCapacityQueue.h>
1417
#import <FBControlCore/FBCollectionInformation.h>

detox/bin/fbsimctl/FBControlCore.framework/Headers/FBControlCoreGlobalConfiguration.h

-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ extern NSString *const FBControlCoreDebugLogging;
3434
*/
3535
+ (NSString *)developerDirectory;
3636

37-
/**
38-
The File Path to of Xcode's Info.plist, defined by the Developer Directory.
39-
*/
40-
+ (NSString *)xcodeInfoPlistPath;
41-
4237
/**
4338
The File Path of Apple's 'Apple Configurator' Application, if installed.
4439
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import <Foundation/Foundation.h>
11+
12+
/**
13+
Protocol for denoting objects that are serializable with NSJSONSerialization.
14+
*/
15+
@protocol FBJSONSerializationDescribeable
16+
17+
/**
18+
Returns an NSJSONSerialization-compatible representation of the reciever.
19+
For more information about permitted types, refer the the NSJSONSerialization Documentation.
20+
21+
@return an NSJSONSerialization-compatible representation of the reciever.
22+
*/
23+
- (id)jsonSerializableRepresentation;
24+
25+
@end

0 commit comments

Comments
 (0)