Skip to content

Commit 49eca25

Browse files
feat: Getting index bundle path in onBootComplete
1 parent 2dd1f72 commit 49eca25

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

iOS/hyper-ota/Airborne.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Airborne'
3-
s.version = '0.0.3'
3+
s.version = '0.0.4'
44
s.summary = 'An OTA update plugin for Android, iOS and React Native applications.'
55
s.description = <<-DESC
66
Hyper OTA empowers developers to effortlessly integrate Over-The-Air (OTA) update capabilities into their Android, iOS, and React Native applications.

iOS/hyper-ota/Airborne/Classes/Airborne.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ import Foundation
6060
*
6161
* This callback indicates that the application is ready to load the packages & resources
6262
*
63+
* @param indexBundlePath The file system path to the index bundle file that should
64+
* be used as the entry point for the downloaded content.
65+
*
6366
* @note This method is called on a background queue. Dispatch UI updates
6467
* to the main queue if needed.
6568
* @note Boot completion occurs even if some downloads failed or timed out.
6669
* Check the release configuration for actual status.
6770
*/
68-
@objc optional func onBootComplete() -> Void
71+
@objc optional func onBootComplete(indexBundlePath: String) -> Void
6972

7073
/**
7174
* Called when significant events occur during the OTA update process.
@@ -155,7 +158,9 @@ import Foundation
155158
private func startApplicationManager() {
156159
self.applicationManager = HPJPApplicationManager.getSharedInstance(withWorkspace: self.namespace, delegate: self, logger: self)
157160
self.applicationManager?.waitForPackagesAndResources { [weak self] _ in
158-
self?.delegate?.onBootComplete?()
161+
if let indexBundlePath = self?.getIndexBundlePath() {
162+
self?.delegate?.onBootComplete?(indexBundlePath: indexBundlePath)
163+
}
159164
}
160165
}
161166
}

0 commit comments

Comments
 (0)