From dfc583faa5f58b42de115478339b5c2a57d4dd4b Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Mon, 22 Aug 2022 15:07:30 +0200 Subject: [PATCH 1/2] Changed initialization sequence of lightning plugins into the metrological sdk. --- src/Launch/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Launch/index.js b/src/Launch/index.js index 124dbf04..e111f6c2 100644 --- a/src/Launch/index.js +++ b/src/Launch/index.js @@ -35,6 +35,7 @@ import Application from '../Application' import Settings from '../Settings' import Log from '../Log' import Ads from '../Ads' +import Lightning from '../Lightning' export let ApplicationInstance @@ -56,7 +57,15 @@ export default (App, appSettings, platformSettings, appData) => { platformSettings.plugins.pin && initPin(platformSettings.plugins.pin) } const app = Application(App, appData, platformSettings) + + initLightningSdkPlugin.log = Log + initLightningSdkPlugin.settings = Settings + initLightningSdkPlugin.ads = Ads + initLightningSdkPlugin.lightning = Lightning + ApplicationInstance = new app(appSettings) - initLightningSdkPlugin(ApplicationInstance, Log, Settings, Ads) + + initLightningSdkPlugin.appInstance = ApplicationInstance + return ApplicationInstance } From e477ba10145c94adf3f633a4657e6fe9db296232 Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Mon, 22 Aug 2022 15:57:45 +0200 Subject: [PATCH 2/2] Bumped version to 5.0.1 and updated changelog. --- CHANGELOG.md | 6 ++++++ docs/changelog.md | 6 ++++++ docs/package.json | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f91b9c1..48f642b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v5.0.1 + +*22 aug 2022* + +- Fixed issue with metrological-sdk initialization sequence + ## v5.0.0 *22 aug 2022* diff --git a/docs/changelog.md b/docs/changelog.md index 4f91b9c1..48f642b8 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,11 @@ # Changelog +## v5.0.1 + +*22 aug 2022* + +- Fixed issue with metrological-sdk initialization sequence + ## v5.0.0 *22 aug 2022* diff --git a/docs/package.json b/docs/package.json index ff80d5f8..c3045174 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "@lightningjs/sdk", - "version": "5.0.0", + "version": "5.0.1", "license": "Apache-2.0", "scripts": { "postinstall": "node ./scripts/postinstall.js", diff --git a/package-lock.json b/package-lock.json index 556e1590..2c7b00f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lightningjs/sdk", - "version": "5.0.0", + "version": "5.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lightningjs/sdk", - "version": "5.0.0", + "version": "5.0.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -1764,8 +1764,8 @@ "integrity": "sha512-TXDq2IKe5ZNLnNVIzHKt4z0RzBb05CaqBGwGWiqKxgRLSOeEHj61thuanMHViM29hPL0NMRVUP+ja2BQaGCCRQ==" }, "node_modules/@metrological/sdk": { - "version": "1.0.0", - "resolved": "git+ssh://git@github.com/metrological/metrological-sdk.git#5eadd8a60bbb10f122937f70fa7c1100f0e80bfa", + "version": "1.0.1", + "resolved": "git+ssh://git@github.com/metrological/metrological-sdk.git#6eb8f1b27375729daa2b5bf22cbae607ca9f7bfa", "license": "Apache-2.0", "dependencies": { "@babel/polyfill": "^7.11.5", @@ -6093,7 +6093,7 @@ "integrity": "sha512-TXDq2IKe5ZNLnNVIzHKt4z0RzBb05CaqBGwGWiqKxgRLSOeEHj61thuanMHViM29hPL0NMRVUP+ja2BQaGCCRQ==" }, "@metrological/sdk": { - "version": "git+ssh://git@github.com/metrological/metrological-sdk.git#5eadd8a60bbb10f122937f70fa7c1100f0e80bfa", + "version": "git+ssh://git@github.com/metrological/metrological-sdk.git#6eb8f1b27375729daa2b5bf22cbae607ca9f7bfa", "from": "@metrological/sdk@github:metrological/metrological-sdk", "requires": { "@babel/polyfill": "^7.11.5", diff --git a/package.json b/package.json index ff80d5f8..c3045174 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lightningjs/sdk", - "version": "5.0.0", + "version": "5.0.1", "license": "Apache-2.0", "scripts": { "postinstall": "node ./scripts/postinstall.js",