Skip to content

Conversation

salmatarzi
Copy link
Contributor

No description provided.

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

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.

Copy link
Contributor

@DevHossamHassan DevHossamHassan left a 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);
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

No need 👍

@salmatarzi salmatarzi merged commit 9a8907a into master Jan 6, 2018
@salmatarzi salmatarzi deleted the feature/new_release_apis branch January 16, 2018 14:21
ahmed1hisham pushed a commit that referenced this pull request Sep 13, 2021
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.

3 participants