Skip to content

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

Merged
merged 7 commits into from
Aug 8, 2017
Merged

Conversation

salmatarzi
Copy link
Contributor

No description provided.

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()"
Copy link
Contributor

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

Copy link
Contributor

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.

Copy link
Contributor

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());
Copy link
Contributor

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++) {
Copy link
Contributor

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

Copy link
Contributor

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);

Copy link
Contributor Author

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch :)

@DevHossamHassan DevHossamHassan merged commit bdad0e9 into master Aug 8, 2017
salmamali pushed a commit that referenced this pull request Apr 17, 2019
Exposes environment variable to be set in android and ios for the APP TOKEN
Renames the token inside the script to INSTABUG_APP_TOKEN
@alyezz alyezz deleted the fix/fix_callback_invocations branch September 6, 2020 14:10
ahmed1hisham pushed a commit that referenced this pull request Sep 13, 2021
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
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.

2 participants