Skip to content

Commit

Permalink
Pushwoosh iOS SDK 6.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
PushwooshCI committed Oct 7, 2024
1 parent f7cf6ec commit 45f080c
Show file tree
Hide file tree
Showing 45 changed files with 7,660 additions and 384 deletions.
12 changes: 1 addition & 11 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,9 @@ body:
label: Your Pushwoosh iOS SDK version
description: Your iOS SDK version which was integrated to the app. You may find it on the [releases page](https://github.com/Pushwoosh/pushwoosh-ios-sdk/releases)
options:
- 6.7.5
- 6.7.4
- 6.7.3
- 6.7.0
- 6.7.3
- 6.7.2
- 6.7.1
- 6.7.0
- 6.7.0
- 6.7.0
- 6.6.3
- 6.6.3
- 6.6.3
- 6.6.2
- 6.6.1
- 6.6.0
- 6.5.18
Expand Down
11 changes: 1 addition & 10 deletions Documentation/PWRichMediaManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<tr>
<td><a href="#1a93601cf8b2fa3b6387da0b245a7794a7">- (void)presentRichMedia:(PWRichMedia *)richMedia</a></td>
</tr>
<tr>
<td><a href="#1afe4cc02dd10459c388c569e7d1e03f1d">- (void)closeToastViewAfter:(NSTimeInterval)interval</a></td>
</tr>
</table>


Expand All @@ -44,10 +41,4 @@ A singleton object that represents the rich media manager.


#### <a name="1a93601cf8b2fa3b6387da0b245a7794a7"></a>- (void)presentRichMedia:(PWRichMedia \*)richMedia
Presents the rich media object.

----------


#### <a name="1afe4cc02dd10459c388c569e7d1e03f1d"></a>- (void)closeToastViewAfter:(NSTimeInterval)interval
Close toast view after time interval in seconds
Presents the rich media object.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "PWAppDelegate.h"
#import "PWNotificationExtensionManager.h"
#import "PWRichMediaManager.h"
#import "PWModalWindowConfiguration.h"
#import "PWRichMediaStyle.h"
#import "PWInbox.h"
#import "PWInlineInAppView.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ typedef NS_ENUM(NSUInteger, PWRichMediaSource) {
PWRichMediaSourceInApp
};


/*
`PWRichMedia` class represents Rich Media page object.
*/
Expand Down Expand Up @@ -114,10 +113,5 @@ typedef NS_ENUM(NSUInteger, PWRichMediaSource) {
*/
- (void)presentRichMedia:(PWRichMedia *)richMedia;

/**
Close toast view after time interval in seconds
*/
- (void)closeToastViewAfter:(NSTimeInterval)interval;

@end

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.7.4"
#define PUSHWOOSH_VERSION @"6.7.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pushwoosh iOS SDK
=====================

[![GitHub release](https://img.shields.io/github/release/Pushwoosh/pushwoosh-ios-sdk.svg?style=flat-square)](https://github.com/Pushwoosh/pushwoosh-ios-sdk/releases)
[![GitHub release](https://img.shields.io/github/release/Pushwoosh/pushwoosh-ios-sdk.svg?style=flat-square)](https://github.com/Pushwoosh/pushwoosh-ios-sdk/releases)
[![CocoaPods compatible](https://img.shields.io/cocoapods/v/Pushwoosh.svg)](https://cocoapods.org/?q=pushwoosh)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

Expand Down
18 changes: 9 additions & 9 deletions XCFramework/PushwooshFramework.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@
<array>
<dict>
<key>BinaryPath</key>
<string>PushwooshFramework.framework/PushwooshFramework</string>
<string>PushwooshFramework.framework/Versions/A/PushwooshFramework</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>PushwooshFramework.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>PushwooshFramework.framework/PushwooshFramework</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>PushwooshFramework.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>PushwooshFramework.framework/Versions/A/PushwooshFramework</string>
<string>PushwooshFramework.framework/PushwooshFramework</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>PushwooshFramework.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -50,7 +50,7 @@
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "PWAppDelegate.h"
#import "PWNotificationExtensionManager.h"
#import "PWRichMediaManager.h"
#import "PWModalWindowConfiguration.h"
#import "PWRichMediaStyle.h"
#import "PWInbox.h"
#import "PWInlineInAppView.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
//
// PWRichMediaConfiguration.h
// Pushwoosh
//
// Created by André Kis on 01.10.24.
// Copyright © 2024 Pushwoosh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PWRichMediaManager.h"

/**
Enum defining the possible positions for displaying the modal window on the screen.
- `PWModalWindowPositionTop`: The modal window appears at the top of the screen.
- `PWModalWindowPositionCenter`: The modal window appears at the center of the screen.
- `PWModalWindowPositionBottom`: The modal window appears at the bottom of the screen.
- `PWModalWindowPositionDefault`: The default position is the center of the screen.
*/
typedef NS_ENUM(NSInteger, ModalWindowPosition) {
PWModalWindowPositionTop, // Toast appears at the top of the screen
PWModalWindowPositionCenter, // Toast appears at the center of the screen
PWModalWindowPositionBottom, // Toast appears at the bottom of the screen

/**
* Default position is the center of the screen.
*/
PWModalWindowPositionDefault
};

/**
Enum defining the types of haptic feedback that can be triggered when interacting with the modal window.
- `PWHapticFeedbackLight`: Provides a light vibration feedback.
- `PWHapticFeedbackMedium`: Provides a medium-intensity vibration feedback.
- `PWHapticFeedbackHard`: Provides a strong vibration feedback.
- `PWHapticFeedbackNone`: Vibration feedback is turned off by default.
*/
typedef NS_ENUM(NSInteger, HapticFeedbackType) {
PWHapticFeedbackLight, // Light vibration feedback
PWHapticFeedbackMedium, // Medium vibration feedback
PWHapticFeedbackHard, // Strong vibration feedback

/**
* Vibration is off by default.
*/
PWHapticFeedbackNone
};

/**
Enum defining the animation styles for dismissing the modal window.
- `PWAnimationDismissDown`: The modal window slides down when dismissed.
- `PWAnimationDismissUp`: The modal window slides up when dismissed.
- `PWAnimationDismissLeft`: The modal window slides to the left when dismissed.
- `PWAnimationDismissRight`: The modal window slides to the right when dismissed.
- `PWAnimationCurveEaseInOut`: The modal window uses an ease-in-out curve animation when dismissed.
- `PWAnimationDismissNone`: No animation is applied when dismissing the modal window.
- `PWAnimationDismissDefault`: The default dismiss animation is `PWAnimationCurveEaseInOut`.
*/
typedef NS_ENUM(NSInteger, DismissModalWindowAnimation) {
PWAnimationDismissDown,
PWAnimationDismissUp,
PWAnimationDismissLeft,
PWAnimationDismissRight,
PWAnimationCurveEaseInOut,
PWAnimationDismissNone,

/**
* Default dismiss animation is `PWAnimationCurveEaseInOut`
*/
PWAnimationDismissDefault
};

typedef NS_ENUM(NSInteger, DismissSwipeDirection) {
PWSwipeDismissDown,
PWSwipeDismissUp,
PWSwipeDismissLeft,
PWSwipeDismissRight,
PWSwipeDismissNone
};

/**
Enum defining the animation styles for presenting the modal window.
- `PWAnimationPresentFromBottom`: The modal window slides in from the bottom of the screen.
- `PWAnimationPresentFromTop`: The modal window slides in from the top of the screen.
- `PWAnimationPresentFromRight`: The modal window slides in from the right side of the screen.
- `PWAnimationPresentFromLeft`: The modal window slides in from the left side of the screen.
- `PWAnimationPresentNone`: No animation is applied when presenting the modal window.
*/
typedef NS_ENUM(NSInteger, PresentModalWindowAnimation) {
PWAnimationPresentFromBottom,
PWAnimationPresentFromTop,
PWAnimationPresentFromRight,
PWAnimationPresentFromLeft,
PWAnimationPresentNone
};

NS_ASSUME_NONNULL_BEGIN

@interface PWModalWindowConfiguration : NSObject

/**
Provides access to the shared instance of the modal window manager.
@return A singleton instance of the modal window manager.
*/
+ (instancetype)shared;

/**
Configures the modal window to be displayed at a specified position on the screen and defines the animation styles for presenting and dismissing the window.
@param position The screen position where the modal window will be displayed (e.g., top, bottom).
@param presentAnimation The animation style used when the modal window is presented (e.g., fade, slide).
@param dismissAnimation The animation style used when the modal window is dismissed (e.g., fade, slide).
*/
- (void)configureModalWindowWith:(ModalWindowPosition)position
presentAnimation:(PresentModalWindowAnimation)presentAnimation
dismissAnimation:(DismissModalWindowAnimation)dismissAnimation;

/**
Configures swipe gestures for interacting with the modal window. These gestures allow the user to dismiss the window by swiping in specified directions.
@param swipeDirection An array of swipe directions allowed for dismissing the modal window (e.g., up, down, left, right).
*/
- (void)setDismissSwipeDirections:(NSArray<NSNumber *>*)swipeDirection;

/**
Sets the type of haptic feedback that will be triggered when the modal window is presented.
@param type The type of haptic feedback to be used (e.g., light, medium, heavy).
*/
- (void)setPresentHapticFeedbackType:(HapticFeedbackType)type;

/**
Schedules the automatic closing of the modal window after a specified time interval.
@param interval The time interval, in seconds, after which the modal window will be automatically closed.
*/
- (void)closeModalWindowAfter:(NSTimeInterval)interval;

/**
Presents the modal window with the specified rich media content.
@param richMedia The rich media content that will be displayed inside the modal window.
*/
- (void)presentModalWindow:(PWRichMedia *)richMedia;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ typedef NS_ENUM(NSUInteger, PWRichMediaSource) {
PWRichMediaSourceInApp
};


/*
`PWRichMedia` class represents Rich Media page object.
*/
Expand Down Expand Up @@ -114,10 +113,5 @@ typedef NS_ENUM(NSUInteger, PWRichMediaSource) {
*/
- (void)presentRichMedia:(PWRichMedia *)richMedia;

/**
Close toast view after time interval in seconds
*/
- (void)closeToastViewAfter:(NSTimeInterval)interval;

@end

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.7.4"
#define PUSHWOOSH_VERSION @"6.7.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "PWAppDelegate.h"
#import "PWNotificationExtensionManager.h"
#import "PWRichMediaManager.h"
#import "PWModalWindowConfiguration.h"
#import "PWRichMediaStyle.h"
#import "PWInbox.h"
#import "PWInlineInAppView.h"
Expand Down
Loading

0 comments on commit 45f080c

Please sign in to comment.