Skip to content

Commit a57f8aa

Browse files
Merge pull request #341 from rdkcentral/fix/metro-sdk-init-sequence
Fix/metro sdk init sequence
2 parents 0ed3348 + e477ba1 commit a57f8aa

File tree

6 files changed

+29
-8
lines changed

6 files changed

+29
-8
lines changed

CHANGELOG.md

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

3+
## v5.0.1
4+
5+
*22 aug 2022*
6+
7+
- Fixed issue with metrological-sdk initialization sequence
8+
39
## v5.0.0
410

511
*22 aug 2022*

docs/changelog.md

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

3+
## v5.0.1
4+
5+
*22 aug 2022*
6+
7+
- Fixed issue with metrological-sdk initialization sequence
8+
39
## v5.0.0
410

511
*22 aug 2022*

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

src/Launch/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import Application from '../Application'
3535
import Settings from '../Settings'
3636
import Log from '../Log'
3737
import Ads from '../Ads'
38+
import Lightning from '../Lightning'
3839

3940
export let ApplicationInstance
4041

@@ -56,7 +57,15 @@ export default (App, appSettings, platformSettings, appData) => {
5657
platformSettings.plugins.pin && initPin(platformSettings.plugins.pin)
5758
}
5859
const app = Application(App, appData, platformSettings)
60+
61+
initLightningSdkPlugin.log = Log
62+
initLightningSdkPlugin.settings = Settings
63+
initLightningSdkPlugin.ads = Ads
64+
initLightningSdkPlugin.lightning = Lightning
65+
5966
ApplicationInstance = new app(appSettings)
60-
initLightningSdkPlugin(ApplicationInstance, Log, Settings, Ads)
67+
68+
initLightningSdkPlugin.appInstance = ApplicationInstance
69+
6170
return ApplicationInstance
6271
}

0 commit comments

Comments
 (0)