appium-webdriveragent 4.1.4 → 4.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,8 +42,10 @@
42
42
  - (void)_XCT_exchangeProtocolVersion:(unsigned long long)arg1 reply:(void (^)(unsigned long long))arg2;
43
43
 
44
44
  // Available since Xcode9
45
- - (void)_XCT_requestScreenshotOfScreenWithID:(unsigned int)arg1 withRect:(struct CGRect)arg2 uti:(NSString *)arg3 compressionQuality:(double)arg4 withReply:(void (^)(NSData *, NSError *))arg5;
46
- - (void)_XCT_requestScreenshotOfScreenWithID:(unsigned int)arg1 withRect:(struct CGRect)arg2 withReply:(void (^)(NSData *, NSError *))arg3;
45
+ // The first screenID type changed from "unsigned int" to "long long" since Xcode 13.3 in XCTAutomationSupport.framework/XCTScreenshotRequest.h
46
+ // but this place is still "unsigned int" in the header. Appium/WDA changes to "long long" for Xcode 13.3 x iOS 15.4 environment.
47
+ - (void)_XCT_requestScreenshotOfScreenWithID:(long long)arg1 withRect:(struct CGRect)arg2 uti:(NSString *)arg3 compressionQuality:(double)arg4 withReply:(void (^)(NSData *, NSError *))arg5;
48
+ - (void)_XCT_requestScreenshotOfScreenWithID:(long long)arg1 withRect:(struct CGRect)arg2 withReply:(void (^)(NSData *, NSError *))arg3;
47
49
  - (void)_XCT_requestSnapshotForElement:(XCAccessibilityElement *)arg1 attributes:(NSArray *)arg2 parameters:(NSDictionary *)arg3 reply:(void (^)(XCElementSnapshot *, NSError *))arg4;
48
50
 
49
51
  // Available since Xcode 12.5. Required (!!!) to use since Xcode 13
@@ -7,10 +7,10 @@
7
7
  @interface XCUIScreen()
8
8
  {
9
9
  _Bool _isMainScreen;
10
- int _displayID;
10
+ long long _displayID;
11
11
  }
12
12
  @property(readonly) _Bool isMainScreen; // @synthesize isMainScreen=_isMainScreen;
13
- @property(readonly) int displayID; // @synthesize displayID=_displayID;
13
+ @property(readonly) long long displayID; // @synthesize displayID=_displayID;
14
14
 
15
15
  - (id)_clippedScreenshotData:(id)arg1 quality:(long long)arg2 rect:(struct CGRect)arg3 scale:(double)arg4;
16
16
  - (id)_screenshotDataForQuality:(long long)arg1 rect:(struct CGRect)arg2 error:(id *)arg3;
@@ -20,7 +20,8 @@
20
20
  - (id)screenshot;
21
21
  - (id)_imageFromData:(id)arg1;
22
22
  - (double)scale;
23
- - (id)initWithDisplayID:(int)arg1 isMainScreen:(_Bool)arg2;
23
+
24
+ - (id)initWithDisplayID:(long long)arg1 isMainScreen:(_Bool)arg2 device:(id)arg3 screenDataSource:(id)arg4;
24
25
 
25
26
  @end
26
27
 
package/README.md CHANGED
@@ -51,4 +51,3 @@ projects has been integrated directly in the WebDriverAgent source tree.
51
51
  You can find the source files and their licenses in the `WebDriverAgentLib/Vendor` directory.
52
52
 
53
53
  Have fun!
54
-
@@ -33,7 +33,7 @@ static const char *QUEUE_NAME = "JPEG Screenshots Provider Queue";
33
33
  @property (nonatomic, readonly) NSMutableArray<GCDAsyncSocket *> *listeningClients;
34
34
  @property (nonatomic, readonly) mach_timebase_info_data_t timebaseInfo;
35
35
  @property (nonatomic, readonly) FBImageIOScaler *imageScaler;
36
- @property (nonatomic, readonly) unsigned int mainScreenID;
36
+ @property (nonatomic, readonly) long long mainScreenID;
37
37
 
38
38
  @end
39
39
 
@@ -51,7 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
51
51
  @param error If there is an error, upon return contains an NSError object that describes the problem.
52
52
  @return Device screenshot as PNG- or JPG-encoded data or nil in case of failure
53
53
  */
54
- + (nullable NSData *)takeInOriginalResolutionWithScreenID:(unsigned int)screenID
54
+ + (nullable NSData *)takeInOriginalResolutionWithScreenID:(long long)screenID
55
55
  compressionQuality:(CGFloat)compressionQuality
56
56
  uti:(NSString *)uti
57
57
  timeout:(NSTimeInterval)timeout
@@ -123,7 +123,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
123
123
  return screenshotData;
124
124
  }
125
125
 
126
- + (NSData *)takeWithScreenID:(unsigned int)screenID
126
+ + (NSData *)takeWithScreenID:(long long)screenID
127
127
  scale:(CGFloat)scale
128
128
  compressionQuality:(CGFloat)compressionQuality
129
129
  rect:(CGRect)rect
@@ -146,7 +146,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
146
146
  error:error];
147
147
  }
148
148
 
149
- + (NSData *)takeInOriginalResolutionWithScreenID:(unsigned int)screenID
149
+ + (NSData *)takeInOriginalResolutionWithScreenID:(long long)screenID
150
150
  compressionQuality:(CGFloat)compressionQuality
151
151
  uti:(NSString *)uti
152
152
  timeout:(NSTimeInterval)timeout
@@ -254,7 +254,7 @@ NSString *formatTimeInterval(NSTimeInterval interval) {
254
254
  return imageEncoding;
255
255
  }
256
256
 
257
- + (nullable id)screenshotRequestWithScreenID:(unsigned int)screenID
257
+ + (nullable id)screenshotRequestWithScreenID:(long long)screenID
258
258
  rect:(struct CGRect)rect
259
259
  uti:(NSString *)uti
260
260
  compressionQuality:(CGFloat)compressionQuality
@@ -317,21 +317,7 @@ static NSString *const FB_KEY_ACTIONS = @"actions";
317
317
  currentItemIndex:(NSUInteger)currentItemIndex
318
318
  error:(NSError **)error
319
319
  {
320
- if (nil != eventPath) {
321
- if (0 == currentItemIndex) {
322
- return @[];
323
- }
324
- FBBaseGestureItem *preceedingItem = [allItems objectAtIndex:currentItemIndex - 1];
325
- if (![preceedingItem isKindOfClass:FBPointerUpItem.class] && currentItemIndex < allItems.count - 1) {
326
- return @[];
327
- }
328
- }
329
- NSTimeInterval currentOffset = FBMillisToSeconds(self.offset + self.duration);
330
- XCPointerEventPath *result = [[XCPointerEventPath alloc] initForTouchAtPoint:self.atPosition offset:currentOffset];
331
- if (currentItemIndex == allItems.count - 1) {
332
- [result liftUpAtOffset:currentOffset];
333
- }
334
- return @[result];
320
+ return @[];
335
321
  }
336
322
 
337
323
  @end
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "4.1.4",
3
+ "version": "4.1.7",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "build/index.js",
6
6
  "scripts": {