Skip to content

Commit

Permalink
Merge pull request #240 from klarna/inapp-sdk/ios-v2.6.20
Browse files Browse the repository at this point in the history
Release In-App SDK iOS v2.6.20
  • Loading branch information
jorgepalac1o authored May 10, 2024
2 parents f1cf56f + 4b4c302 commit 16cab84
Show file tree
Hide file tree
Showing 133 changed files with 123,560 additions and 109,156 deletions.
2 changes: 1 addition & 1 deletion BUILD_VARIANTS_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ want to use a different variant, update your Podfile to use a different subspec.


```ruby
pod 'KlarnaMobileSDK/xcode-15.3-fat', '~> 2.6.19'
pod 'KlarnaMobileSDK/xcode-15.3-fat', '~> 2.6.20'
```

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [2.6.20] - 2024-05-10
- Added support for customizing the appearance of the On-Site Messaging (OSM) view.
- Fixed the "Learn more" text to not start from a new line in OSM view.

### [2.6.19] - 2024-05-02
- Reverted enabling mergeable library due to cocoapods failures.

Expand Down
2 changes: 1 addition & 1 deletion KlarnaMobileSDK.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"2.6.19": "https://github.com/klarna/klarna-mobile-sdk/releases/download/2.6.19/KlarnaMobileSDK.framework.zip"
"2.6.20": "https://github.com/klarna/klarna-mobile-sdk/releases/download/2.6.20/KlarnaMobileSDK.framework.zip"
}
2 changes: 1 addition & 1 deletion KlarnaMobileSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "KlarnaMobileSDK"
s.version = "2.6.19"
s.version = "2.6.20"
s.summary = "Klarna Mobile SDK for iOS"
s.description = <<-DESC
Klarna Mobile SDK for iOS apps.
Expand Down
Binary file modified ios/Carthage/KlarnaMobileSDK.xcframework.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.6.19</string>
<string>2.6.20</string>
<key>CFBundleVersion</key>
<string>175</string>
<string>176</string>
</dict>
</plist>
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>2.6.19</string>
<string>2.6.20</string>
<key>CFBundleVersion</key>
<string>175</string>
<string>176</string>
</dict>
</plist>
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified ios/XCFramework/basic/universal/KlarnaMobileSDK.xcframework.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>KlarnaMobileSDK.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>KlarnaMobileSDK.framework/KlarnaMobileSDK</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>KlarnaMobileSDK.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>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1070,18 +1070,40 @@ SWIFT_CLASS("_TtC15KlarnaMobileSDK21KlarnaMobileSDKCommon")
@end



/// On Site Messaging placement style configuration.
SWIFT_CLASS("_TtC15KlarnaMobileSDK27KlarnaOSMStyleConfiguration")
@interface KlarnaOSMStyleConfiguration : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class UIColor;
@class KlarnaTextStyleConfiguration;

SWIFT_CLASS_NAMED("Builder")
@interface KlarnaOSMStyleBuilder : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)setBackgroundColor:(UIColor * _Nullable)color SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)setTextStyleConfiguration:(KlarnaTextStyleConfiguration * _Nonnull)configuration SWIFT_WARN_UNUSED_RESULT;
- (KlarnaOSMStyleConfiguration * _Nonnull)build SWIFT_WARN_UNUSED_RESULT;
@end

@class UIViewController;

SWIFT_CLASS("_TtC15KlarnaMobileSDK13KlarnaOSMView")
@interface KlarnaOSMView : UIView
/// View controller (or activity) that will be used to render placement
/// details modally (required). Would be <code>hostActivity</code> on Android.
@property (nonatomic, weak) UIViewController * _Nullable hostViewController;
/// Style configuration for the KlarnaOSMView. When not nil it will take precedence over the Theme values and support for dark mode needs to be implemented.
@property (nonatomic, strong) KlarnaOSMStyleConfiguration * _Nullable styleConfiguration;
/// Initialize OSM view.
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)layoutSubviews;
- (void)didMoveToWindow;
- (void)traitCollectionDidChange:(UITraitCollection * _Nullable)previousTraitCollection;
@end


Expand Down Expand Up @@ -2005,7 +2027,6 @@ SWIFT_CLASS("_TtC15KlarnaMobileSDK23KlarnaStandaloneWebView")
@end

@class WKNavigation;
@class UIColor;
@class WKFrameInfo;
@class WKUserScript;
@protocol WKScriptMessageHandler;
Expand Down Expand Up @@ -2112,6 +2133,25 @@ SWIFT_PROTOCOL("_TtP15KlarnaMobileSDK31KlarnaStandaloneWebViewDelegate_")
- (void)klarnaStandaloneWebView:(KlarnaStandaloneWebView * _Nonnull)webView requestMediaCapturePermissionFor:(WKSecurityOrigin * _Nonnull)origin initiatedByFrame:(WKFrameInfo * _Nonnull)frame ofType:(WKMediaCaptureType)type handler:(void (^ _Nonnull)(WKPermissionDecision))handler SWIFT_AVAILABILITY(ios,introduced=15.0);
@end


/// Text style configuration for text elements in Klarna components.
SWIFT_CLASS("_TtC15KlarnaMobileSDK28KlarnaTextStyleConfiguration")
@interface KlarnaTextStyleConfiguration : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class UIFont;

SWIFT_CLASS_NAMED("Builder")
@interface KlarnaTextStyleBuilder : NSObject
- (nonnull instancetype)setTextColor:(UIColor * _Nullable)color SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)setTextFont:(UIFont * _Nullable)font SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)setTextSize:(CGFloat)size SWIFT_WARN_UNUSED_RESULT;
- (KlarnaTextStyleConfiguration * _Nonnull)build SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

/// Defines the theme (or style) that components should use.
/// The theme will always default to <code>light</code>. Automatic switching is opt-in. This is because both Klarna
/// and many existing apps that integrate the SDK historically only support a light theme, and we don’t want
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 16cab84

Please sign in to comment.