-
Notifications
You must be signed in to change notification settings - Fork 48
[MOB 2943] Flutter API: setValueForStringWithKey #43
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
Conversation
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.
@salmamali do we also need to update the pubspec file for the package name change?
*/ | ||
public void setValue(String value, String forStringWithKey) { | ||
InstabugCustomTextPlaceHolder.Key key = ArgsRegistry.getDeserializedValue(forStringWithKey, InstabugCustomTextPlaceHolder.Key.class); | ||
placeHolder.set(key, value); |
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.
Nice hack 👏 I like it 😄
android/src/test/java/com/instabug/instabugflutter/ArgsRegistryTest.java
Outdated
Show resolved
Hide resolved
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.
@salmamali do we also need to update the pubspec file for the package name change?
@HeshamMegid
The module name change will not affect the name of the package itself. And changing the name of the package now will create a completely new package on pub than the one published now. Should we still make this change?
Summary of Changes
Added APIs and Enums
Instabug.setValueForStringWithKey(String value, String key)
The enum:
IBGCustomTextPlaceHolderKey
Added unit test for the added API
Added Android unit test for the added enum.
Updated Readme
Changed flutter module name from
InstabugFlutter
toInstabug
Removed some lint warnings