Skip to content

Commit 319eac0

Browse files
committed
5.6.0
1 parent d4c0e41 commit 319eac0

File tree

76 files changed

+10149
-2116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+10149
-2116
lines changed

Purchasely/Frameworks/Purchasely.xcframework/Info.plist

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,46 @@
88
<key>BinaryPath</key>
99
<string>Purchasely.framework/Purchasely</string>
1010
<key>LibraryIdentifier</key>
11-
<string>tvos-arm64_x86_64-simulator</string>
11+
<string>tvos-arm64</string>
1212
<key>LibraryPath</key>
1313
<string>Purchasely.framework</string>
1414
<key>SupportedArchitectures</key>
1515
<array>
1616
<string>arm64</string>
17-
<string>x86_64</string>
1817
</array>
1918
<key>SupportedPlatform</key>
2019
<string>tvos</string>
21-
<key>SupportedPlatformVariant</key>
22-
<string>simulator</string>
2320
</dict>
2421
<dict>
2522
<key>BinaryPath</key>
2623
<string>Purchasely.framework/Purchasely</string>
2724
<key>LibraryIdentifier</key>
28-
<string>ios-arm64</string>
25+
<string>tvos-arm64_x86_64-simulator</string>
2926
<key>LibraryPath</key>
3027
<string>Purchasely.framework</string>
3128
<key>SupportedArchitectures</key>
3229
<array>
3330
<string>arm64</string>
31+
<string>x86_64</string>
3432
</array>
3533
<key>SupportedPlatform</key>
36-
<string>ios</string>
34+
<string>tvos</string>
35+
<key>SupportedPlatformVariant</key>
36+
<string>simulator</string>
3737
</dict>
3838
<dict>
3939
<key>BinaryPath</key>
4040
<string>Purchasely.framework/Purchasely</string>
4141
<key>LibraryIdentifier</key>
42-
<string>tvos-arm64</string>
42+
<string>ios-arm64</string>
4343
<key>LibraryPath</key>
4444
<string>Purchasely.framework</string>
4545
<key>SupportedArchitectures</key>
4646
<array>
4747
<string>arm64</string>
4848
</array>
4949
<key>SupportedPlatform</key>
50-
<string>tvos</string>
50+
<string>ios</string>
5151
</dict>
5252
<dict>
5353
<key>BinaryPath</key>
@@ -86,8 +86,6 @@
8686
</array>
8787
<key>CFBundlePackageType</key>
8888
<string>XFWK</string>
89-
<key>CFBundleShortVersionString</key>
90-
<string>5.5.0</string>
9189
<key>XCFrameworkFormatVersion</key>
9290
<string>1.0</string>
9391
</dict>
Binary file not shown.

Purchasely/Frameworks/Purchasely.xcframework/ios-arm64/Purchasely.framework/Headers/Purchasely-Swift.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,17 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) PLYDataProcessingPurpo
394394
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
395395
@end
396396

397+
enum PLYDisplayModeType : NSInteger;
398+
@class NSNumber;
397399
/// If PLYColors is not already ObjC-visible (struct/enum), make an ObjC-bridgable class or use NSObject subclass.
398400
/// Assuming it’s already ObjC-compatible (class or @objc-compatible type).
399401
SWIFT_CLASS("_TtC10Purchasely14PLYDisplayMode")
400402
@interface PLYDisplayMode : NSObject
403+
/// The type of transition to apply.
404+
@property (nonatomic, readonly) enum PLYDisplayModeType type;
405+
/// The percentage (0…1) of the screen height to use for <code>drawer</code>.
406+
/// NSNumber? so Objective-C can see the optional.
407+
@property (nonatomic, readonly, strong) NSNumber * _Nullable heightPercentage;
401408
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
402409
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
403410
@end
@@ -778,6 +785,14 @@ SWIFT_CLASS("_TtC10Purchasely15PLYPresentation")
778785
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
779786
@end
780787

788+
@interface PLYPresentation (SWIFT_EXTENSION(Purchasely))
789+
/// Navigates back in the presentation flow.
790+
/// This method attempts to navigate to the previous screen in the current flow.
791+
/// Use this method when you want to allow the user to go back within the flow,
792+
/// rather than closing it entirely.
793+
- (void)back;
794+
@end
795+
781796
typedef SWIFT_ENUM(NSInteger, PLYPresentationAction, open) {
782797
PLYPresentationActionClose = 0,
783798
PLYPresentationActionCloseAll = 1,
@@ -1873,6 +1888,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSDictionary<N
18731888
/// \param mode The desired theme mode to apply.
18741889
///
18751890
+ (void)setThemeMode:(enum PLYThemeMode)mode;
1891+
/// Enables or disables debug mode for presentations.
1892+
/// When enabled, a debug button appears on presentation screens allowing developers to inspect presentation metadata.
1893+
/// note:
1894+
/// This should typically be disabled in production builds
1895+
/// \param enabled <code>true</code> to enable debug mode, <code>false</code> to disable it
1896+
///
1897+
+ (void)setDebugModeWithEnabled:(BOOL)enabled;
18761898
/// This method is used to trigger an event telling Purchasely that a content has been consumed through a subscription.
18771899
+ (void)userDidConsumeSubscriptionContent;
18781900
/// Informs the SDK the user has withdrawn consent for data processing related to the listed features.
Binary file not shown.

0 commit comments

Comments
 (0)