Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing tagged branch 1.3.0 #232

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default class App extends Base {
}

async _init() {
console.log("Debug Log--Line 85 file App.js")
Settings.setLogLevel('DEBUG');
eventEmitter.on('showToast', (message, state, tagName, color) => {
this.showToast(message, state, tagName, color);
Expand Down Expand Up @@ -127,11 +128,13 @@ export default class App extends Base {
process.env.PLATFORM = CONSTANTS.DEFAULT;
}
// Get values from Parameter.initialization - Start
console.log("Debug Log--Line 131 file App.js")
try {
await this.getParameterInitializationValues();
} catch (e) {
logger.error(JSON.stringify(e), 'init');
}
console.log("Debug Log--Line 137 file App.js")
// Get values from Parameter.initialization - End
if (mfValue) {
// check whether the mf value passed in url is matches
Expand Down Expand Up @@ -161,6 +164,7 @@ export default class App extends Base {
process.env.APPID = res;
this._setState('LoadingState');
});
console.log("Debug Log--Line 167 file App.js")
}

async pubSubListener() {
Expand Down Expand Up @@ -378,11 +382,13 @@ export default class App extends Base {
this.debug = !this.debug;
}
async getParameterInitializationValues() {
console.log("Debug Log--Line 385 file App.js")
await handleAsyncFunction(FireboltExampleInvoker.get().invoke(CONSTANTS.CORE.toLowerCase(), 'Parameters.initialization', [], [])).then((res) => {
console.log('Response of Initialization :: ', res);
if (res != undefined) {
const action = res[0].discovery.navigateTo.action;
if (action == 'search') {
console.log("Debug Log--Line 391 file App.js")
let query = res[0].discovery.navigateTo.data.query;
let lifecycle_validationString;
query = JSON.parse(query);
Expand Down Expand Up @@ -427,6 +433,7 @@ export default class App extends Base {
process.env.PUB_SUB_URL = query.params.pubSubUrl;
}

console.log("Debug Log--Line 436 file App.js")
if (query.task) {
setTimeout(() => {
const intentReader = new IntentReader();
Expand Down
4 changes: 4 additions & 0 deletions src/LifeCycleHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default class LifecycleHistory {
}

async init(appInstance = null) {
console.log("Debug Log--Line 137 file LifecycleHistory.js")
lifecycleValidation = process.env.LIFECYCLE_VALIDATION;
await Lifecycle.listen('inactive', this._recordHistory.bind(this, 'Lifecycle.onInactive'));
await Lifecycle.listen('foreground', this._recordHistory.bind(this, 'Lifecycle.onForeground'));
Expand Down Expand Up @@ -75,8 +76,10 @@ export default class LifecycleHistory {
Lifecycle.finished();
}
});
console.log("Debug Log--Line 79 file LifecycleHistory.js")

if (lifecycleValidation != 'true') {
console.log("Debug Log--Line 82 file LifecycleHistory.js")
/* Require the lifecycle plugins directory, which returns an object
where each key is a file name in the directory and each value is the
default export of that file.
Expand All @@ -95,6 +98,7 @@ export default class LifecycleHistory {
appLifecycle.ready();
} else {
// If no such lifecycle exists, call the default 'Lifecycle.ready()' function.
console.log("Debug Log--Line 101 file LifecycleHistory.js")
Lifecycle.ready();
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import App from './App';
import Window from './Window';

window.onload = function () {
console.log("Debug Log--Line 23 file src/index.js")
const systemui = new URLSearchParams(window.location.search).get('systemui');
process.env.SYSTEMUI = systemui;
// If systemui is true setting background color to purple.
Expand Down Expand Up @@ -48,5 +49,6 @@ window.onload = function () {
};

const app = new App(options);
console.log("Debug Log--Line 52 file src/index.js")
document.body.appendChild(app.stage.getCanvas());
};
Loading