Skip to content

Commit 3cfe89a

Browse files
authored
[No-Ticket] [iOS SDK] - Updated Changelog and version to 5.3.0. (#518)
Updating Changelog for 5.3.0 release. Updated SDK version to v5.3.0
1 parent 0c7034b commit 3cfe89a

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## CHANGELOG
22

3+
### 5.3.0 (2023-07-24)
4+
**SDK**
5+
- **Deprecated:** `create(appInfo: ,queryParams: ,completionHandler: ,messageInterface: ,adsDisplayer: ,fromCache: ) in `MiniApp` class.
6+
- **Deprecated:** `getUniqueId(completionHandler:)` in `MiniAppMessageDelegate` protocol is deprecated. You should use `getMessagingUniqueId(completionHandler:)` instead.
7+
- **Feature:** Added new `HostAppThemeColors` model class to hold the primary and secondary color strings in Hex format.
8+
- **Feature:** Added a new optional interface `getHostAppThemeColors(completionHandler:)` in `MiniAppMessageDelegate` protocol, to fetch the host app theme colors.
9+
- **Feature:** Added new `isDarkMode` interface to get the mode set in Host app / Device.
10+
- **Feature:** Added new public interface `didReceiveMAAnalytics(analyticsInfo: MAAnalyticsInfo, completionHandler: @escaping (Result<MASDKProtocolResponse, MAAnalyticsError>) -> Void)` for host app to receive the `MAAnalyticsInfo` info for the events from MiniApps.
11+
- **Feature:** Added a new public interface in `MiniappView` class. `loadFromBundle(completionHandler:)`. Now Native/Host apps can load a Miniapp from bundle.
12+
- **Feature:** Added a new public interface `sendInfoToHostApp(info: UniversalBridgeInfoParameters, completionHandler: @escaping (Result<MASDKProtocolResponse, UniversalBridgeError>) -> Void)` in `UniversalBridgeDelegate` protocol. Now MiniApps can share the information to host app as structured object of type `UniversalBridgeInfoParameters` having parameters [key, value and description].
13+
14+
**Sample App**
15+
- **Feature:** Implemented method `getHostAppThemeColors(completionHandler:)` in the sample app to fetch the host app theme colors and pass it to MiniApps.
16+
- **Feature:** Added qa settings page 'Theme Color' to test sending host app theme primary and secondary colors.
17+
- **Feature:** Added implementation in Demo app under Features tab to show how a Miniapp can be loaded from Bundle.
18+
- **Feature:** Added qa settings page 'Analytics Info' to view the analytics events recieved from the MiniApp.
19+
320
### 5.3.0-alpha (2023-07-12)
421
⚠️ This version is an internal release. It is not fully tested and can produce unexpected behaviors. Due to potential changes, the full change log will be provided with the final version. Adding a dependancy to this alpha version is discouraged.
522
This version improves MiniApp loading from cache and brings several UI improvements features and deprecation.

MiniApp.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |miniapp|
22
miniapp.name = 'MiniApp'
3-
miniapp.version = '5.3.0-alpha'
3+
miniapp.version = '5.3.0'
44
miniapp.authors = "Rakuten Ecosystem Mobile"
55
miniapp.summary = "Rakuten's Mini App SDK"
66
miniapp.description = "This open-source library allows you to integrate Mini App ecosystem into your iOS applications. Mini App SDK also facilitates communication between a mini app and the host app via a message bridge."

MiniAppCarthage/MiniApp/MiniApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@
13321332
"@executable_path/Frameworks",
13331333
);
13341334
MACH_O_TYPE = staticlib;
1335-
MARKETING_VERSION = 5.3.0-alpha;
1335+
MARKETING_VERSION = 5.3.0;
13361336
OTHER_LDFLAGS = "-ObjC";
13371337
PRODUCT_BUNDLE_IDENTIFIER = com.rakuten.tech.mobile.MiniApp;
13381338
PRODUCT_NAME = MiniApp;
@@ -1361,7 +1361,7 @@
13611361
"@executable_path/Frameworks",
13621362
);
13631363
MACH_O_TYPE = staticlib;
1364-
MARKETING_VERSION = 5.3.0-alpha;
1364+
MARKETING_VERSION = 5.3.0;
13651365
OTHER_LDFLAGS = "-ObjC";
13661366
PRODUCT_BUNDLE_IDENTIFIER = com.rakuten.tech.mobile.MiniApp;
13671367
PRODUCT_NAME = MiniApp;

Sources/Classes/core/MiniApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import UIKit
33

44
/// Mini App Public API methods
55
public class MiniApp: NSObject {
6-
public static let version = "5.3.0-alpha"
6+
public static let version = "5.3.0"
77
private static let shared = MiniApp()
88
private let realMiniApp = RealMiniApp()
99
public static var MAOrientationLock: UIInterfaceOrientationMask = []

Tests/Unit/MiniAppScriptMessageHandlerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ class MiniAppScriptMessageHandlerTests: QuickSpec {
11061106
return
11071107
}
11081108
let environmentInfo = ResponseDecoder.decode(decodeType: MAHostEnvironmentInfo.self, data: responseData)
1109-
expect(environmentInfo?.sdkVersion).toEventually(equal("5.3.0-alpha"))
1109+
expect(environmentInfo?.sdkVersion).toEventually(equal("5.3.0"))
11101110
expect(environmentInfo?.hostVersion).toEventually(equal(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String))
11111111
expect(environmentInfo?.hostLocale).toEventually(equal("en-US"))
11121112
}

USERGUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To integrate MiniApp SDK into your Xcode project using Swift Package Manager, ad
8383

8484
```ruby
8585
dependencies: [
86-
.package(url: "https://github.com/rakutentech/ios-miniapp.git", .upToNextMajor(from: "5.3.0-alpha"))
86+
.package(url: "https://github.com/rakutentech/ios-miniapp.git", .upToNextMajor(from: "5.3.0"))
8787
]
8888
```
8989

0 commit comments

Comments
 (0)