Skip to content

Commit

Permalink
Pushwoosh iOS SDK 6.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
PushwooshCI committed Nov 27, 2023
1 parent 48cb705 commit 5807652
Show file tree
Hide file tree
Showing 23 changed files with 129 additions and 154 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.4"
#define PUSHWOOSH_VERSION @"6.5.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file modified Framework/Pushwoosh.framework/Versions/A/Pushwoosh
Binary file not shown.
Binary file modified Framework/PushwooshGeozones.framework/Versions/A/PushwooshGeozones
Binary file not shown.
18 changes: 9 additions & 9 deletions XCFramework/Pushwoosh.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_i386_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>Pushwoosh.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>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.4"
#define PUSHWOOSH_VERSION @"6.5.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.4"
#define PUSHWOOSH_VERSION @"6.5.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</data>
<key>Headers/Pushwoosh.h</key>
<data>
/TKTVA/9pE+I9nel0kCiC0uH55o=
Rqo/ztLLr9zoJF4SI8EBQlvsi64=
</data>
<key>Info.plist</key>
<data>
Expand Down Expand Up @@ -188,11 +188,11 @@
<dict>
<key>hash</key>
<data>
/TKTVA/9pE+I9nel0kCiC0uH55o=
Rqo/ztLLr9zoJF4SI8EBQlvsi64=
</data>
<key>hash2</key>
<data>
2CgB553dZ2+NMrvMorn3RwYaPEgIPO9h6Zc/UWLdjak=
u1MZ4EWQnx80JLX914bhORZA2nFUJqlra89gFVxhSso=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.4"
#define PUSHWOOSH_VERSION @"6.5.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Binary file not shown.
18 changes: 9 additions & 9 deletions XCFramework/PushwooshGeozones.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_i386_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>PushwooshGeozones.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>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>PushwooshGeozones.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>PushwooshGeozones.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
2 changes: 1 addition & 1 deletion iOS_SDK/Pushwoosh/Pushwoosh.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Pod::Spec.new do |s|

s.name = "Pushwoosh"
s.version = "6.5.4"
s.version = "6.5.5"
s.summary = "Push notifications library by Pushwoosh."
s.platform = :ios

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ FOUNDATION_EXPORT NSString * const defaultApplicationClosedEvent;

+ (instancetype)sharedManager;

- (void)startTracking;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#import "PWUtils.h"
#import "PWServerCommunicationManager.h"

//RMA events
static NSString * const kApplicationOpenedEvent = @"_ApplicationOpened";
static NSString * const kApplicationClosedEvent = @"_ApplicationClosed";

NSString * const defaultApplicationOpenedEvent = @"PW_ApplicationOpen";
NSString * const defaultApplicationClosedEvent = @"PW_ApplicationMinimized";

Expand All @@ -36,10 +32,6 @@ @implementation PWAppLifecycleTrackingManager {
id _communicationStartedHandler;
}

+ (void)load {
[[self sharedManager] startTracking];
}

+ (instancetype)sharedManager {
static dispatch_once_t once;
static id sharedInstance;
Expand Down Expand Up @@ -76,11 +68,6 @@ - (void)startSendingEvents {

_appInForeground = YES;

//send inital event
if (NSClassFromString(@"PWRateMyAppManager")) {
[self sendAppOpenEvent];
}

if (_defaultAppOpenAllowed == YES) {
[self sendDefaultEvent: defaultApplicationOpenedEvent];
_initialDefaultOpenEventSent = YES;
Expand Down Expand Up @@ -132,22 +119,12 @@ - (void)sendAppOpen {
[[Pushwoosh sharedInstance].dataManager sendAppOpenWithCompletion:nil];
});

if (NSClassFromString(@"PWRateMyAppManager")) {
[self sendAppOpenEvent];
}

if (_defaultAppOpenAllowed == YES) {
[self sendDefaultEvent: defaultApplicationOpenedEvent];
}
}
}

- (void)sendAppOpenEvent {
if (UIApplication.sharedApplication.applicationState != UIApplicationStateBackground) {
[[PWInAppManager sharedManager] postEvent:kApplicationOpenedEvent withAttributes:nil completion:nil];
}
}

- (void)sendDefaultEvent: (NSString *) event{
NSDictionary *attrs = @{
@"device_type": @1,
Expand All @@ -158,18 +135,12 @@ - (void)sendDefaultEvent: (NSString *) event{

- (void)onApplicationClosed {
_appInForeground = NO;
if (NSClassFromString(@"PWRateMyAppManager")) {
[self sendAppClosedEvent];
}

if (_defaultAppClosedAllowed == YES) {
[self sendDefaultEvent: defaultApplicationClosedEvent];
}
}

- (void)sendAppClosedEvent {
[[PWInAppManager sharedManager] postEvent:kApplicationClosedEvent withAttributes:nil completion:nil];
}

- (void)setDefaultAppOpenAllowed:(BOOL)defaultAppOpenAllowed {
_defaultAppOpenAllowed = defaultAppOpenAllowed;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ @interface PWScreenTrackingManager ()

@implementation PWScreenTrackingManager

+ (void)load {
if (NSClassFromString(@"PWRateMyAppManager")) {
[[self sharedManager] startTracking];
}
}

+ (instancetype)sharedManager {
static dispatch_once_t once;
static id sharedInstance;
Expand Down Expand Up @@ -64,10 +58,6 @@ void _replacement_viewDidAppear(UIViewController * self, SEL _cmd, BOOL animated

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(kScreenOpenedEventDelay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
@try {
if (NSClassFromString(@"PWRateMyAppManager")) {
[[PWInAppManager sharedManager] postEvent:kScreenOpenedEvent withAttributes:nil];
}

if ([PWScreenTrackingManager sharedManager].defaultScreenOpenAllowed) {
NSString *screenName = self.title.length > 0 ? self.title : self.navigationItem.title;

Expand Down
2 changes: 1 addition & 1 deletion iOS_SDK/Pushwoosh/Pushwoosh/Public/Pushwoosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.4"
#define PUSHWOOSH_VERSION @"6.5.5"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down
Loading

0 comments on commit 5807652

Please sign in to comment.