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

Issue 33 app force update #40

Open
wants to merge 8 commits into
base: local-master
Choose a base branch
from

Conversation

sanasz91mdev
Copy link

No description provided.

Copy link

@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.

lib/events/onboarding.dart Outdated Show resolved Hide resolved
lib/events/onboarding.dart Outdated Show resolved Hide resolved
try {
var hostPlatform = Platform.isAndroid ? "android" : "ios";
var forceVersion = await getApplicationConfiguration(
hostPlatform + '_force_update_version');

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
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 ..

lib/helpers/remote-config.dart Outdated Show resolved Hide resolved
lib/helpers/remote-config.dart Outdated Show resolved Hide resolved
lib/global.dart Outdated Show resolved Hide resolved
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