-
Notifications
You must be signed in to change notification settings - Fork 102
Feature/new release apis #111
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
…ote parameter as per the native SDK
…he native api and removing the voice note attribute
index.js
Outdated
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments. | ||
*/ | ||
setAttachmentTypesEnabled: function (screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording) { | ||
Instabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording); |
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 Salma This change will break users code because they are currently using it with 5 params
Instead: You may need to create a new API and keep the old one and mark it as deprecated,
Don't forget to modify the old API to navigate to the new one.
… to the new native api
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 💯 👍
@@ -382,7 +406,21 @@ module.exports = { | |||
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments. | |||
*/ | |||
setAttachmentTypesEnabled: function (screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording) { | |||
Instabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording); | |||
Instabug.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording); |
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.
Double check they r the same order in both of the native SDKs
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.
No need 👍
No description provided.