Skip to content

Issue 33 app force update#40

Open
sanasz91mdev wants to merge 8 commits intolocal-masterfrom
issue-33-app-force-update
Open

Issue 33 app force update#40
sanasz91mdev wants to merge 8 commits intolocal-masterfrom
issue-33-app-force-update

Conversation

@sanasz91mdev
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@aubykhan aubykhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanasz9109 Looks okay overall, just make these few changes.

Comment thread lib/events/onboarding.dart Outdated
Comment thread lib/events/onboarding.dart Outdated
Comment thread lib/events/onboarding.dart Outdated
try {
var hostPlatform = Platform.isAndroid ? "android" : "ios";
var forceVersion = await getApplicationConfiguration(
hostPlatform + '_force_update_version');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing this key creation here, I'd suggest to move it to remote config helper file and just pass the hostPlatform value to the new helper function.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but that will make the function quite specific right? .. i thought of creating a function that will intake any key and will out the value against it ..

Comment thread lib/helpers/remote-config.dart Outdated
Comment thread lib/helpers/remote-config.dart Outdated
Comment thread lib/global.dart Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants