-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: local-master
Are you sure you want to change the base?
Conversation
…y_app into issue-33-app-force-update
There was a problem hiding this 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
try { | ||
var hostPlatform = Platform.isAndroid ? "android" : "ios"; | ||
var forceVersion = await getApplicationConfiguration( | ||
hostPlatform + '_force_update_version'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ..
No description provided.