Skip to content

Commit

Permalink
2.1.10 (#167)
Browse files Browse the repository at this point in the history
* add xcframework

* - Updated podfile.lock
- Fixed compilation error

Co-authored-by: Alexander Lonsky <alexander.lonsky@gmail.com>
  • Loading branch information
cgmaier and ALexanderLonsky authored Aug 4, 2021
1 parent 3d8e81b commit 4710a10
Show file tree
Hide file tree
Showing 45 changed files with 2,275 additions and 717 deletions.
18 changes: 9 additions & 9 deletions GiphyUISDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,47 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>GiphyUISDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>GiphyUISDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>GiphyUISDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef GIPHYUISDK_SWIFT_H
#define GIPHYUISDK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -255,6 +255,7 @@ typedef SWIFT_ENUM(NSInteger, GPHActionType, open) {
GPHActionTypeClick = 2,
GPHActionTypeSent = 3,
GPHActionTypeFavorite = 4,
GPHActionTypeStart = 5,
};


Expand Down Expand Up @@ -610,14 +611,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK14GPHCoreRequest")

/// Action types. Must be Int so that it can be used in Objective-C.
typedef SWIFT_ENUM(NSInteger, GPHEventType, open) {
GPHEventTypeSearch = 0,
GPHEventTypeTrending = 1,
GPHEventTypeRelated = 2,
GPHEventTypeExplore = 3,
GPHEventTypeEmoji = 4,
GPHEventTypeTextSearch = 5,
GPHEventTypeTextTrending = 6,
GPHEventTypeRecentlyPicked = 7,
GPHEventTypeRecentlyPicked = 0,
};

typedef SWIFT_ENUM(NSInteger, GPHFileExtension, open) {
Expand Down Expand Up @@ -1012,12 +1006,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK8GPHMedia")


@interface GPHMedia (SWIFT_EXTENSION(GiphyUISDK))
@property (nonatomic, readonly) BOOL isEmoji;
@property (nonatomic, readonly) BOOL isText;
@end


@interface GPHMedia (SWIFT_EXTENSION(GiphyUISDK))
@property (nonatomic) BOOL isEmoji;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable pingbacksAttributes;
@property (nonatomic, copy) NSString * _Nullable responseId;
@end
Expand Down Expand Up @@ -1089,6 +1078,7 @@ typedef SWIFT_ENUM(NSInteger, GPHMediaType, open) {
SWIFT_CLASS("_TtC10GiphyUISDK12GPHMediaView")
@interface GPHMediaView : GiphyYYAnimatedImageView
@property (nonatomic, weak) id <GPHMediaViewDelegate> _Nullable delegate;
@property (nonatomic) BOOL showAttribution;
@property (nonatomic, strong) GPHTheme * _Nullable theme;
@property (nonatomic, strong) GPHMedia * _Nullable media;
- (nonnull instancetype)init;
Expand Down Expand Up @@ -1279,6 +1269,8 @@ SWIFT_CLASS("_TtC10GiphyUISDK16GPHRequestConfig")
@property (nonatomic, copy) NSString * _Nonnull base;
@property (nonatomic, copy) NSArray<NSURLQueryItem *> * _Nullable queryItems;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable headers;
@property (nonatomic, copy) NSData * _Nullable httpBody;
@property (nonatomic, copy) NSString * _Nullable contentType;
@property (nonatomic, copy) NSString * _Nonnull path;
@property (nonatomic, copy) NSString * _Nonnull requestType;
@property (nonatomic, copy) NSString * _Nonnull apiKey;
Expand Down Expand Up @@ -1577,22 +1569,57 @@ SWIFT_CLASS("_TtC10GiphyUISDK14GPHVideoAssets")
@end


typedef SWIFT_ENUM(NSInteger, GPHVideoPlayerState, open) {
GPHVideoPlayerStateUnknown = 0,
GPHVideoPlayerStateReadyToPlay = 1,
GPHVideoPlayerStatePlaying = 2,
GPHVideoPlayerStatePaused = 3,
};

@protocol GPHVideoViewDelegate;

SWIFT_CLASS("_TtC10GiphyUISDK12GPHVideoView")
@interface GPHVideoView : UIView
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, weak) id <GPHVideoViewDelegate> _Nullable delegate;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (void)loadVideo;
@property (nonatomic, strong) GPHMedia * _Nullable media;
@property (nonatomic) NSInteger maxLoopsBeforeMute;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
+ (void)pauseAll;
+ (void)muteAll;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
- (void)observeValueForKeyPath:(NSString * _Nullable)keyPath ofObject:(id _Nullable)object change:(NSDictionary<NSKeyValueChangeKey, id> * _Nullable)change context:(void * _Nullable)context;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
- (void)play;
- (void)pause;
- (void)mute;
- (void)unmute;
@end


SWIFT_PROTOCOL("_TtP10GiphyUISDK20GPHVideoViewDelegate_")
@protocol GPHVideoViewDelegate
@optional
- (void)playerStateDidChange:(enum GPHVideoPlayerState)state;
- (void)playerDidFail:(NSString * _Nullable)description;
- (void)muteDidChangeWithMuted:(BOOL)muted;
- (void)mediaDidChangeWithMedia:(GPHMedia * _Nullable)media;
- (void)didPress;
@end


SWIFT_CLASS("_TtC10GiphyUISDK28GPHWaterfallLayoutAttributes")
@interface GPHWaterfallLayoutAttributes : UICollectionViewLayoutAttributes
Expand Down Expand Up @@ -1628,7 +1655,7 @@ SWIFT_PROTOCOL("_TtP10GiphyUISDK26GPHWaterfallLayoutDelegate_")

SWIFT_CLASS("_TtC10GiphyUISDK5Giphy")
@interface Giphy : NSObject
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -1658,7 +1685,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GPHClient *
/// Configure the Client
/// \param apiKey Giphy Api Key to use.
///
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode name:(NSString * _Nonnull)name versionName:(NSString * _Nonnull)versionName;
+ (void)setCustomHeadersWithParameters:(NSDictionary<NSString *, NSString *> * _Nonnull)parameters;
/// Configure Filtering for all the Models
/// \param filter GPHFilterBlock to use and figure out if an object is valid or not.
Expand Down Expand Up @@ -1696,7 +1723,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK19GiphyGridController")
- (void)setNumberOfTracks:(NSInteger)tracks;
@property (nonatomic) BOOL fixedSizeCells;
@property (nonatomic) enum GPHFileExtension imageFileExtensionForDynamicAssets;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
- (nonnull instancetype)init;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidLoad;
Expand Down Expand Up @@ -1810,7 +1837,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK21GiphySearchController")

SWIFT_CLASS("_TtC10GiphyUISDK19GiphyViewController")
@interface GiphyViewController : GPHWrapperViewController
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
@property (nonatomic, weak) id <GiphyDelegate> _Nullable delegate;
@property (nonatomic, copy) NSString * _Nonnull placeholderText;
@property (nonatomic) BOOL disableClipsWarning;
Expand Down Expand Up @@ -1883,7 +1910,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK23PingbackSubmissionQueue")
#endif

#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
// Generated by Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef GIPHYUISDK_SWIFT_H
#define GIPHYUISDK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -2138,6 +2165,7 @@ typedef SWIFT_ENUM(NSInteger, GPHActionType, open) {
GPHActionTypeClick = 2,
GPHActionTypeSent = 3,
GPHActionTypeFavorite = 4,
GPHActionTypeStart = 5,
};


Expand Down Expand Up @@ -2493,14 +2521,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK14GPHCoreRequest")

/// Action types. Must be Int so that it can be used in Objective-C.
typedef SWIFT_ENUM(NSInteger, GPHEventType, open) {
GPHEventTypeSearch = 0,
GPHEventTypeTrending = 1,
GPHEventTypeRelated = 2,
GPHEventTypeExplore = 3,
GPHEventTypeEmoji = 4,
GPHEventTypeTextSearch = 5,
GPHEventTypeTextTrending = 6,
GPHEventTypeRecentlyPicked = 7,
GPHEventTypeRecentlyPicked = 0,
};

typedef SWIFT_ENUM(NSInteger, GPHFileExtension, open) {
Expand Down Expand Up @@ -2895,12 +2916,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK8GPHMedia")


@interface GPHMedia (SWIFT_EXTENSION(GiphyUISDK))
@property (nonatomic, readonly) BOOL isEmoji;
@property (nonatomic, readonly) BOOL isText;
@end


@interface GPHMedia (SWIFT_EXTENSION(GiphyUISDK))
@property (nonatomic) BOOL isEmoji;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable pingbacksAttributes;
@property (nonatomic, copy) NSString * _Nullable responseId;
@end
Expand Down Expand Up @@ -2972,6 +2988,7 @@ typedef SWIFT_ENUM(NSInteger, GPHMediaType, open) {
SWIFT_CLASS("_TtC10GiphyUISDK12GPHMediaView")
@interface GPHMediaView : GiphyYYAnimatedImageView
@property (nonatomic, weak) id <GPHMediaViewDelegate> _Nullable delegate;
@property (nonatomic) BOOL showAttribution;
@property (nonatomic, strong) GPHTheme * _Nullable theme;
@property (nonatomic, strong) GPHMedia * _Nullable media;
- (nonnull instancetype)init;
Expand Down Expand Up @@ -3162,6 +3179,8 @@ SWIFT_CLASS("_TtC10GiphyUISDK16GPHRequestConfig")
@property (nonatomic, copy) NSString * _Nonnull base;
@property (nonatomic, copy) NSArray<NSURLQueryItem *> * _Nullable queryItems;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable headers;
@property (nonatomic, copy) NSData * _Nullable httpBody;
@property (nonatomic, copy) NSString * _Nullable contentType;
@property (nonatomic, copy) NSString * _Nonnull path;
@property (nonatomic, copy) NSString * _Nonnull requestType;
@property (nonatomic, copy) NSString * _Nonnull apiKey;
Expand Down Expand Up @@ -3460,22 +3479,57 @@ SWIFT_CLASS("_TtC10GiphyUISDK14GPHVideoAssets")
@end


typedef SWIFT_ENUM(NSInteger, GPHVideoPlayerState, open) {
GPHVideoPlayerStateUnknown = 0,
GPHVideoPlayerStateReadyToPlay = 1,
GPHVideoPlayerStatePlaying = 2,
GPHVideoPlayerStatePaused = 3,
};

@protocol GPHVideoViewDelegate;

SWIFT_CLASS("_TtC10GiphyUISDK12GPHVideoView")
@interface GPHVideoView : UIView
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, weak) id <GPHVideoViewDelegate> _Nullable delegate;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (void)loadVideo;
@property (nonatomic, strong) GPHMedia * _Nullable media;
@property (nonatomic) NSInteger maxLoopsBeforeMute;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
+ (void)pauseAll;
+ (void)muteAll;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
- (void)observeValueForKeyPath:(NSString * _Nullable)keyPath ofObject:(id _Nullable)object change:(NSDictionary<NSKeyValueChangeKey, id> * _Nullable)change context:(void * _Nullable)context;
@end


@interface GPHVideoView (SWIFT_EXTENSION(GiphyUISDK))
- (void)play;
- (void)pause;
- (void)mute;
- (void)unmute;
@end


SWIFT_PROTOCOL("_TtP10GiphyUISDK20GPHVideoViewDelegate_")
@protocol GPHVideoViewDelegate
@optional
- (void)playerStateDidChange:(enum GPHVideoPlayerState)state;
- (void)playerDidFail:(NSString * _Nullable)description;
- (void)muteDidChangeWithMuted:(BOOL)muted;
- (void)mediaDidChangeWithMedia:(GPHMedia * _Nullable)media;
- (void)didPress;
@end


SWIFT_CLASS("_TtC10GiphyUISDK28GPHWaterfallLayoutAttributes")
@interface GPHWaterfallLayoutAttributes : UICollectionViewLayoutAttributes
Expand Down Expand Up @@ -3511,7 +3565,7 @@ SWIFT_PROTOCOL("_TtP10GiphyUISDK26GPHWaterfallLayoutDelegate_")

SWIFT_CLASS("_TtC10GiphyUISDK5Giphy")
@interface Giphy : NSObject
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

Expand Down Expand Up @@ -3541,7 +3595,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GPHClient *
/// Configure the Client
/// \param apiKey Giphy Api Key to use.
///
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
+ (void)configureWithApiKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode name:(NSString * _Nonnull)name versionName:(NSString * _Nonnull)versionName;
+ (void)setCustomHeadersWithParameters:(NSDictionary<NSString *, NSString *> * _Nonnull)parameters;
/// Configure Filtering for all the Models
/// \param filter GPHFilterBlock to use and figure out if an object is valid or not.
Expand Down Expand Up @@ -3579,7 +3633,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK19GiphyGridController")
- (void)setNumberOfTracks:(NSInteger)tracks;
@property (nonatomic) BOOL fixedSizeCells;
@property (nonatomic) enum GPHFileExtension imageFileExtensionForDynamicAssets;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
- (nonnull instancetype)init;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidLoad;
Expand Down Expand Up @@ -3693,7 +3747,7 @@ SWIFT_CLASS("_TtC10GiphyUISDK21GiphySearchController")

SWIFT_CLASS("_TtC10GiphyUISDK19GiphyViewController")
@interface GiphyViewController : GPHWrapperViewController
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode;
- (void)setAPIKey:(NSString * _Nonnull)apiKey verificationMode:(BOOL)verificationMode metadata:(NSDictionary<NSString *, NSString *> * _Nonnull)metadata;
@property (nonatomic, weak) id <GiphyDelegate> _Nullable delegate;
@property (nonatomic, copy) NSString * _Nonnull placeholderText;
@property (nonatomic) BOOL disableClipsWarning;
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 4710a10

Please sign in to comment.