-
Notifications
You must be signed in to change notification settings - Fork 101
Fix/fix callback invocations #54
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
package.json
Outdated
@@ -23,7 +23,7 @@ | |||
"homepage": "https://github.com/Instabug/instabug-reactnative#readme", | |||
"rnpm": { | |||
"android": { | |||
"packageInstance": "new RNInstabugReactnativePackage.Builder(\"YOUR_ANDROID_APPLICATION_TOKEN\",MainApplication.this)\n.setInvocationEvent(\"shake\")\n.setPrimaryColor(\"#1D82DC\")\n.setFloatingEdge(\"left\")\n.setFloatingButtonOffsetFromTop(250)\n.build()" | |||
"packageInstance": "new RNInstabugReactnativePackage.Builder(\"YOUR_ANDROID_APPLICATION_TOKEN\",MainApplication.this)\n .setInvocationEvent(\"shake\")\n .setPrimaryColor(\"#1D82DC\")\n .setFloatingEdge(\"left\")\n .setFloatingButtonOffsetFromTop(250)\n .build()" |
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.
@salmatarzi Please use tabs instead of spaces
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.
@salmatarzi Also please don't exceed standard line length which is 80
characters per line.
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.
and please reformat this file to meet the Java standards
postInvocationHandler.invoke(); | ||
WritableMap params = Arguments.createMap(); | ||
params.putString("issueState",issueState.toString()); | ||
params.putString("bugType",bugType.toString()); |
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.
@salmatarzi Please adjust the indentation here.
try { | ||
String[] result = tags.split(","); | ||
String[] result = new String[tags.size()]; | ||
for(int i = 0; i < tags.size(); i++) { |
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.
@salmatarzi Please there is missed space after for
and the open brace
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.
@salmatarzi Instead of converting this yourself you can use ArrayUtil.toArray(ReadableArray readableArray);
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.
@DevHossamHassan Yes, I was looking for something like that!
@@ -212,9 +212,12 @@ public void dismiss() { | |||
* @param tags | |||
*/ | |||
@ReactMethod | |||
public void appendTags(String tags) { | |||
public void appendTags(ReadableArray tags) { |
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.
Good catch :)
Exposes environment variable to be set in android and ios for the APP TOKEN Renames the token inside the script to INSTABUG_APP_TOKEN
Android API Mapping IOS API Mapping Flutter API Mapping Adds tests for new API updates Readme updated Changelog Changed setPrimaryColor and setSessionProfilerEnabled to use NSNumber instead of NSString
No description provided.