Skip to content

Commit

Permalink
v2.32.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobrowse.io Bot committed Sep 20, 2024
1 parent 342f5f5 commit f8b7de1
Show file tree
Hide file tree
Showing 123 changed files with 3,239 additions and 17,517 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.32.2](#) (2024-09-20)


### Bug Fixes

* fix binary compatibility with newer Swift versions ([715d41f](#))

### [2.32.1](#) (2024-09-14)


Expand Down
Binary file modified CobrowseIO.framework/CobrowseIO
Binary file not shown.
9 changes: 9 additions & 0 deletions CobrowseIO.framework/Headers/CBIOHasViewProperties.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#import <Foundation/Foundation.h>

@protocol CBIOHasViewProperties <NSObject>

@property (copy, nullable) NSString *tag;
@property (copy, nullable) NSString *id;
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes;

@end
21 changes: 21 additions & 0 deletions CobrowseIO.framework/Headers/CBIOSelector.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#import <Foundation/Foundation.h>

#import "CBIOViewProperties.h"
#import "CBIOSelectorPart.h"

NS_ASSUME_NONNULL_BEGIN

@interface CBIOSelector : NSObject

@property (readonly) NSArray<CBIOSelectorPart *>* parts;

+ (nullable instancetype)from:(nonnull NSArray*) selector;

- (nonnull instancetype)init NS_UNAVAILABLE;
- (nonnull instancetype)initWithParts:(NSArray<CBIOSelectorPart *>*) parts;

- (BOOL)matches:(CBIOViewProperties *)view withParents:(NSArray<CBIOViewProperties *> *)parents;

@end

NS_ASSUME_NONNULL_END
30 changes: 30 additions & 0 deletions CobrowseIO.framework/Headers/CBIOSelectorIndex.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#import <Foundation/Foundation.h>
#import "CBIOSelector.h"

NS_ASSUME_NONNULL_BEGIN

extern NSNotificationName const CBIOSelectorsDidUpdateNotification;

typedef NSMutableDictionary<NSString *, NSMutableSet<CBIOSelector *> *> *CBIOSelectorStore;

@interface CBIOSelectorIndex : NSObject

@property (class, nonatomic, readonly) CBIOSelectorIndex *redacted;
@property (class, nonatomic, readonly) CBIOSelectorIndex *unredacted;

@property (nonatomic, strong, readonly) NSSet<NSString *> *knownAttributes;
@property (nonatomic, strong, nullable) NSSet<CBIOSelector *> *selectors;

@property (nonatomic, strong, readonly) CBIOSelectorStore byTag;
@property (nonatomic, strong, readonly) CBIOSelectorStore byID;
@property (nonatomic, strong, readonly) CBIOSelectorStore byAttribute;

- (NSSet<CBIOSelector *> *)possibleMatchesForView:(id<CBIOHasViewProperties>)view NS_SWIFT_NAME(possibleMatches(for:));
- (NSSet<CBIOSelector *> *)possibleMatchesForTag:(nullable NSString *)tag
id:(nullable NSString *)id
attributes:(nullable NSDictionary<NSString *, id> *)attributes;
- (BOOL) isEmpty;

@end

NS_ASSUME_NONNULL_END
22 changes: 22 additions & 0 deletions CobrowseIO.framework/Headers/CBIOSelectorPart.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#import <Foundation/Foundation.h>

#import "CBIOViewProperties.h"

NS_ASSUME_NONNULL_BEGIN

@interface CBIOSelectorPart : NSObject <CBIOHasViewProperties>
@property (copy, nullable) NSString *tag;
@property (copy, nullable) NSString *id;
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes;

+ (nonnull instancetype)fromDictionary:(NSDictionary*) dictionary;

- (nonnull instancetype)initWithTag:(nullable NSString *)tag
id:(nullable NSString *)id
attributes:(nullable NSDictionary<NSString *, NSString *> *)attributes;

- (BOOL)matches:(CBIOViewProperties *)view;

@end

NS_ASSUME_NONNULL_END
21 changes: 21 additions & 0 deletions CobrowseIO.framework/Headers/CBIOViewProperties.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#import <Foundation/Foundation.h>

#import "CBIOHasViewProperties.h"
#import "CBIOViewProperties.h"

NS_ASSUME_NONNULL_BEGIN

@interface CBIOViewProperties : NSObject <CBIOHasViewProperties>

@property (copy, nullable) NSString *tag;
@property (copy, nullable) NSString *id;
@property (copy, nonnull) NSDictionary<NSString *, NSString *> *attributes;

- (instancetype)initWithTag:(nullable NSString *)tag
id:(nullable NSString *)id
attributes:(NSDictionary<NSString *, id> *)attributes NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END

69 changes: 8 additions & 61 deletions CobrowseIO.framework/Headers/CobrowseIO-Swift.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
@import UIKit;
#endif

#import <CobrowseIO/CobrowseIO.h>

#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
Expand All @@ -302,6 +300,14 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif

#if defined(__OBJC__)
@class UIView;

SWIFT_CLASS("_TtC10CobrowseIO20CBIOSwiftUIRedaction") SWIFT_AVAILABILITY(ios,introduced=14.0)
@interface CBIOSwiftUIRedaction : NSObject
+ (NSArray<UIView *> * _Nonnull)getRedactedViews SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSURLRequest;
@class NSString;
@class NSDictionary;
Expand All @@ -324,72 +330,13 @@ SWIFT_CLASS("_TtC10CobrowseIO10CBORSocket")
@end


@interface CobrowseIO (SWIFT_EXTENSION(CobrowseIO))
@end


SWIFT_CLASS_NAMED("Selector")
@interface CBIOSelector : NSObject
+ (CBIOSelector * _Nullable)from:(NSArray<NSDictionary<NSString *, id> *> * _Nonnull)selector SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@property (nonatomic, readonly, copy) NSString * _Nonnull debugDescription;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end




SWIFT_AVAILABILITY(ios,introduced=14.0)
@interface CobrowseIO (SWIFT_EXTENSION(CobrowseIO))
@end

@class UIView;

SWIFT_CLASS_NAMED("RedactedViewStore")
@interface CBIOSwiftUIRedaction : NSObject
+ (NSArray<UIView *> * _Nonnull)getRedactedViews SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end



SWIFT_CLASS_NAMED("Index")
@interface CBIOSelectorIndex : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) CBIOSelectorIndex * _Nonnull redacted;)
+ (CBIOSelectorIndex * _Nonnull)redacted SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) CBIOSelectorIndex * _Nonnull unredacated;)
+ (CBIOSelectorIndex * _Nonnull)unredacated SWIFT_WARN_UNUSED_RESULT;
- (BOOL)isEmpty SWIFT_WARN_UNUSED_RESULT;
- (void)set:(NSSet<CBIOSelector *> * _Nonnull)selectors;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


@interface CBIOSelectorIndex (SWIFT_EXTENSION(CobrowseIO))
- (BOOL)matches:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
@end







@interface CBIOSelector (SWIFT_EXTENSION(CobrowseIO))
@end



SWIFT_AVAILABILITY(ios,introduced=14.0)
@interface UIView (SWIFT_EXTENSION(CobrowseIO))
/// Redact this view from being seen by the Cobrowse agent
- (UIView * _Nonnull)cobrowseRedacted;
@end


#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
Expand Down
3 changes: 3 additions & 0 deletions CobrowseIO.framework/Headers/CobrowseIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#import "CBIOMouseEvent.h"
#import "CBIOKeyPress.h"

#import "CBIOSelector.h"
#import "CBIOSelectorIndex.h"

#import "CobrowseIODelegate.h"
#import "CobrowseIORedacted.h"
#import "CobrowseIOUnredacted.h"
Expand Down
Binary file modified CobrowseIO.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f8b7de1

Please sign in to comment.