diff --git a/android/build.gradle b/android/build.gradle index 7db59ae..036a70b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,6 +21,6 @@ android { dependencies { compile 'com.facebook.react:react-native:0.20.+' - compile 'com.instabug.library:instabug:4.8.1' + compile 'com.instabug.library:instabug:4.9.0' } diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 41d827f..134e7b5 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -19,6 +19,7 @@ import com.facebook.react.bridge.WritableNativeMap; import com.facebook.react.bridge.Callback; import com.facebook.react.modules.core.DeviceEventManagerModule; +import com.instabug.library.Feature; import com.instabug.library.Instabug; import com.instabug.library.internal.module.InstabugLocale; import com.instabug.library.invocation.InstabugInvocationEvent; @@ -247,6 +248,20 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { } } + @ReactMethod + public void setViewHierarchyEnabled(boolean enabled) { + try { + if(enabled) { + Instabug.setViewHierarchyState(Feature.State.ENABLED); + } else { + + Instabug.setViewHierarchyState(Feature.State.DISABLED); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + /** * Sets the default corner at which the video recording floating button will be shown * diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java index f09ffb6..057a787 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java @@ -12,6 +12,7 @@ import com.instabug.library.Instabug; import com.instabug.library.InstabugColorTheme; import com.instabug.library.invocation.InstabugInvocationEvent; import com.instabug.library.invocation.util.InstabugFloatingButtonEdge; +import com.instabug.library.visualusersteps.State; import android.graphics.Color; import java.util.ArrayList; @@ -56,6 +57,7 @@ public class RNInstabugReactnativePackage implements ReactPackage { mInstabug = new Instabug.Builder(this.androidApplication, this.mAndroidApplicationToken) .setInvocationEvent(this.invocationEvent) .setCrashReportingState(Feature.State.DISABLED) + .setReproStepsState(State.DISABLED) .build(); Instabug.setPrimaryColor(Color.parseColor(primaryColor)); diff --git a/index.js b/index.js index 2adfb8d..0c82d71 100644 --- a/index.js +++ b/index.js @@ -690,9 +690,7 @@ module.exports = { * @param {boolean} viewHierarchyEnabled A boolean to set whether view hierarchy are enabled or disabled. */ setViewHierarchyEnabled: function (viewHierarchyEnabled) { - if (Platform.OS === 'ios') { - Instabug.setViewHierarchyEnabled(viewHierarchyEnabled); - } + Instabug.setViewHierarchyEnabled(viewHierarchyEnabled); }, /** @@ -863,6 +861,17 @@ module.exports = { floatingButton: Instabug.invocationEventFloatingButton }, + /** + * The user steps option. + * @readonly + * @enum {number} + */ + reproStepsMode: { + enabled: Instabug.reproStepsEnabled, + disabled: Instabug.reproStepsDisabled, + enabledWithNoScreenshot: Instabug.reproStepsEnabledWithNoScreenshot, + }, + /** * Type of SDK dismiss * @readonly diff --git a/ios/Instabug.framework/Headers/Instabug.h b/ios/Instabug.framework/Headers/Instabug.h index a7ccd89..cb8cbc4 100644 --- a/ios/Instabug.framework/Headers/Instabug.h +++ b/ios/Instabug.framework/Headers/Instabug.h @@ -5,7 +5,7 @@ Copyright: (c) 2013-2017 by Instabug, Inc., all rights reserved. - Version: 7.7.1 + Version: 7.8 */ #import @@ -160,6 +160,18 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r */ + (void)setUserStepsEnabled:(BOOL)isUserStepsEnabled; +/** + @brief Sets whether user steps tracking is visual, non visula or disabled. + + @discussion Enabling user steps would give you an insight on the scenario a user has performed before encountering a + bug or a crash. User steps are attached with each report being sent. + + User Steps tracking is enabled by default if it's available in your current plan. + + @param userStepsMode An enum to set user steps tracking to be enabled , non visual or disabled. + */ ++ (void)setReproStepsMode:(IBGUserStepsMode)userStepsMode; + /** @brief Sets whether to track and report crashes or not. diff --git a/ios/Instabug.framework/Info.plist b/ios/Instabug.framework/Info.plist index a14522f..905ac5f 100644 Binary files a/ios/Instabug.framework/Info.plist and b/ios/Instabug.framework/Info.plist differ diff --git a/ios/Instabug.framework/Instabug b/ios/Instabug.framework/Instabug index 7a11a8b..0d9f85c 100755 Binary files a/ios/Instabug.framework/Instabug and b/ios/Instabug.framework/Instabug differ diff --git a/ios/Instabug.framework/_CodeSignature/CodeResources b/ios/Instabug.framework/_CodeSignature/CodeResources index 0191c9e..120c50b 100644 --- a/ios/Instabug.framework/_CodeSignature/CodeResources +++ b/ios/Instabug.framework/_CodeSignature/CodeResources @@ -6,11 +6,11 @@ Headers/Instabug.h - dv9gxbikDAknu/WGzN8gkc/4u1w= + 7FmPOnvoZEOelRoF+rakHgJyT1E= Info.plist - PqPlFUga6XC2bwuhVcghAFTYUrk= + Hdm1Q2muThmGWWJRk3FelfsOPV0= Modules/module.modulemap @@ -23,11 +23,11 @@ hash - dv9gxbikDAknu/WGzN8gkc/4u1w= + 7FmPOnvoZEOelRoF+rakHgJyT1E= hash2 - Q8wTarNHp6QYAK/yMLfV3pYSGDqe2DwJ1aNPIzdKKLk= + 5xZDYfSvxBVD8Xgv2mFfPXWRhCe78P/MG6sCti+sFec= Modules/module.modulemap diff --git a/ios/InstabugCore.framework/Headers/IBGTypes.h b/ios/InstabugCore.framework/Headers/IBGTypes.h index 084e217..2845884 100644 --- a/ios/InstabugCore.framework/Headers/IBGTypes.h +++ b/ios/InstabugCore.framework/Headers/IBGTypes.h @@ -294,7 +294,16 @@ typedef NS_ENUM(NSInteger, IBGLogLevel) { }; /** - The attachment types selected in Attachment action sheet. + The user steps option. + */ +typedef NS_ENUM(NSInteger, IBGUserStepsMode) { + IBGUserStepsModeEnable, + IBGUserStepsModeEnabledWithNoScreenshots, + IBGUserStepsModeDisable +}; + + /** + The attachment types selected in Attachment action sheet. */ typedef NS_OPTIONS(NSInteger, IBGAttachmentType) { IBGAttachmentTypeScreenShot = 1 << 1, diff --git a/ios/InstabugCore.framework/IBGActionSheetCell.nib b/ios/InstabugCore.framework/IBGActionSheetCell.nib index 24a6ac9..a73d1d7 100644 Binary files a/ios/InstabugCore.framework/IBGActionSheetCell.nib and b/ios/InstabugCore.framework/IBGActionSheetCell.nib differ diff --git a/ios/InstabugCore.framework/IBGActionSheetVC-iPhone.nib b/ios/InstabugCore.framework/IBGActionSheetVC-iPhone.nib index a6bea9c..3249d64 100644 Binary files a/ios/InstabugCore.framework/IBGActionSheetVC-iPhone.nib and b/ios/InstabugCore.framework/IBGActionSheetVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGAttachmentButton.nib b/ios/InstabugCore.framework/IBGAttachmentButton.nib index 05982b9..419d931 100644 Binary files a/ios/InstabugCore.framework/IBGAttachmentButton.nib and b/ios/InstabugCore.framework/IBGAttachmentButton.nib differ diff --git a/ios/InstabugCore.framework/IBGBugVC-iPhone.nib b/ios/InstabugCore.framework/IBGBugVC-iPhone.nib index f3a1baa..1541ebc 100644 Binary files a/ios/InstabugCore.framework/IBGBugVC-iPhone.nib and b/ios/InstabugCore.framework/IBGBugVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGChatCell.nib b/ios/InstabugCore.framework/IBGChatCell.nib index c64233c..257a176 100644 Binary files a/ios/InstabugCore.framework/IBGChatCell.nib and b/ios/InstabugCore.framework/IBGChatCell.nib differ diff --git a/ios/InstabugCore.framework/IBGChatListVC-iPhone.nib b/ios/InstabugCore.framework/IBGChatListVC-iPhone.nib index e9c40fd..d041d3a 100644 Binary files a/ios/InstabugCore.framework/IBGChatListVC-iPhone.nib and b/ios/InstabugCore.framework/IBGChatListVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGChatVC-iPhone.nib b/ios/InstabugCore.framework/IBGChatVC-iPhone.nib index a9a42b2..a92027d 100644 Binary files a/ios/InstabugCore.framework/IBGChatVC-iPhone.nib and b/ios/InstabugCore.framework/IBGChatVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGFullScreenImageViewController.nib b/ios/InstabugCore.framework/IBGFullScreenImageViewController.nib index b99d5e7..2e8d240 100644 Binary files a/ios/InstabugCore.framework/IBGFullScreenImageViewController.nib and b/ios/InstabugCore.framework/IBGFullScreenImageViewController.nib differ diff --git a/ios/InstabugCore.framework/IBGMessagesView.nib b/ios/InstabugCore.framework/IBGMessagesView.nib index bf85786..903d820 100644 Binary files a/ios/InstabugCore.framework/IBGMessagesView.nib and b/ios/InstabugCore.framework/IBGMessagesView.nib differ diff --git a/ios/InstabugCore.framework/IBGPoweredByView.nib b/ios/InstabugCore.framework/IBGPoweredByView.nib index 25a8b45..8f097f2 100644 Binary files a/ios/InstabugCore.framework/IBGPoweredByView.nib and b/ios/InstabugCore.framework/IBGPoweredByView.nib differ diff --git a/ios/InstabugCore.framework/IBGPromptCell.nib b/ios/InstabugCore.framework/IBGPromptCell.nib index 28366f0..c86201d 100644 Binary files a/ios/InstabugCore.framework/IBGPromptCell.nib and b/ios/InstabugCore.framework/IBGPromptCell.nib differ diff --git a/ios/InstabugCore.framework/IBGPromptVC-iPhone.nib b/ios/InstabugCore.framework/IBGPromptVC-iPhone.nib index b72645f..880f73d 100644 Binary files a/ios/InstabugCore.framework/IBGPromptVC-iPhone.nib and b/ios/InstabugCore.framework/IBGPromptVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGReplyView-iPhone.nib b/ios/InstabugCore.framework/IBGReplyView-iPhone.nib index 451db85..2ffce93 100644 Binary files a/ios/InstabugCore.framework/IBGReplyView-iPhone.nib and b/ios/InstabugCore.framework/IBGReplyView-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGReportCategoriesVC-iPhone.nib b/ios/InstabugCore.framework/IBGReportCategoriesVC-iPhone.nib index 4246ada..85f7c36 100644 Binary files a/ios/InstabugCore.framework/IBGReportCategoriesVC-iPhone.nib and b/ios/InstabugCore.framework/IBGReportCategoriesVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGScreenshotVC-iPhone.nib b/ios/InstabugCore.framework/IBGScreenshotVC-iPhone.nib index 73e4725..3024a1e 100644 Binary files a/ios/InstabugCore.framework/IBGScreenshotVC-iPhone.nib and b/ios/InstabugCore.framework/IBGScreenshotVC-iPhone.nib differ diff --git a/ios/InstabugCore.framework/IBGUnnotifiedMessagesAlertView.nib b/ios/InstabugCore.framework/IBGUnnotifiedMessagesAlertView.nib index 3181baf..378d0fd 100644 Binary files a/ios/InstabugCore.framework/IBGUnnotifiedMessagesAlertView.nib and b/ios/InstabugCore.framework/IBGUnnotifiedMessagesAlertView.nib differ diff --git a/ios/InstabugCore.framework/IBGVideoPlaybackViewController.nib b/ios/InstabugCore.framework/IBGVideoPlaybackViewController.nib index 85f58fd..ef80096 100644 Binary files a/ios/InstabugCore.framework/IBGVideoPlaybackViewController.nib and b/ios/InstabugCore.framework/IBGVideoPlaybackViewController.nib differ diff --git a/ios/InstabugCore.framework/IBGVoiceNoteRecordingViewController-iPhone.nib b/ios/InstabugCore.framework/IBGVoiceNoteRecordingViewController-iPhone.nib index bc3967d..b2f2189 100644 Binary files a/ios/InstabugCore.framework/IBGVoiceNoteRecordingViewController-iPhone.nib and b/ios/InstabugCore.framework/IBGVoiceNoteRecordingViewController-iPhone.nib differ diff --git a/ios/InstabugCore.framework/Info.plist b/ios/InstabugCore.framework/Info.plist index 78d183a..bfe9b6e 100644 Binary files a/ios/InstabugCore.framework/Info.plist and b/ios/InstabugCore.framework/Info.plist differ diff --git a/ios/InstabugCore.framework/InstabugCore b/ios/InstabugCore.framework/InstabugCore index c3b2ea8..af43f9b 100755 Binary files a/ios/InstabugCore.framework/InstabugCore and b/ios/InstabugCore.framework/InstabugCore differ diff --git a/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.mom b/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.mom index 50d089e..e66e1f4 100644 Binary files a/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.mom and b/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.mom differ diff --git a/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.omo b/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.omo index df8044c..12876d8 100644 Binary files a/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.omo and b/ios/InstabugCore.framework/InstabugDataModel.momd/InstabugDataModel 9.omo differ diff --git a/ios/InstabugCore.framework/InstabugDataModel.momd/VersionInfo.plist b/ios/InstabugCore.framework/InstabugDataModel.momd/VersionInfo.plist index da54db5..003fbde 100644 Binary files a/ios/InstabugCore.framework/InstabugDataModel.momd/VersionInfo.plist and b/ios/InstabugCore.framework/InstabugDataModel.momd/VersionInfo.plist differ diff --git a/ios/InstabugCore.framework/_CodeSignature/CodeResources b/ios/InstabugCore.framework/_CodeSignature/CodeResources index 151bc3a..38c119c 100644 --- a/ios/InstabugCore.framework/_CodeSignature/CodeResources +++ b/ios/InstabugCore.framework/_CodeSignature/CodeResources @@ -6,79 +6,79 @@ Headers/IBGTypes.h - ix6wVd134sFK5Llk/J93XzT8rGw= + j7qs/Xe7/PYdgUVT/gXbiZvwejc= IBGActionSheetCell.nib - tccboudBOYzZVQK5s9V4ZB58+FY= + Hfb6KMLarS4Ik7yZJ9eCcuUzbig= IBGActionSheetVC-iPhone.nib - /aZp41ehVVQY45l39o+nD3M33TI= + gJu4ZsQcGplJq/kBH3Qav54ZgTE= IBGAttachmentButton.nib - tDK+C4BT4Qieu1sPRY7IO4RBQ8U= + svhwnAwIUkEqkfA3ic/BT5RzT2A= IBGBugVC-iPhone.nib - 4QQaCMgj0fEudIKI+QLR2t8zXl0= + SqiEVYPQkVTo1Y1KPv/prW6WFWE= IBGChatCell.nib - N6xcK2K1Cf/sgy/1wtD6qQI8Xyo= + sjOFtI1i5SKGOthVno5UXiWOXCU= IBGChatListVC-iPhone.nib - qwx3Si9tw7rCe/nHaBVy8IzguxA= + Kh453oP4i83Ev//JjlLeOOvw0GA= IBGChatVC-iPhone.nib - OkNz+jdIDRlxTVKc1yVJmVf/kiI= + aDQwhAY305i83wIj+ESQvwBJuG4= IBGFullScreenImageViewController.nib - /JF/bVCupgsELR05dNxcMPPIFx4= + qho5SoIfT724x1OvaPDnJ0+oS6s= IBGMessagesView.nib - jpcOwXtlW8rLt4pZvcZ2NpZsHhM= + HNVefHjA8MbLIXKJQsDvVcChhMQ= IBGPoweredByView.nib - r6TvQwCAc8Asz6KH0Mvtcsr7uv4= + tdMo2H1/AvRVwBJ6pMV8iDhMcdM= IBGPromptCell.nib - /n1wI1QKJ1zpUnXoJBV1UTiltvI= + sS1z23FjnubPHKQ+x+Mn5hhFEDA= IBGPromptVC-iPhone.nib - viQHyqIftr3Yw1SFsm9YDApfnwk= + xeUBN+JRpUNghDs97jE2Je36n4Y= IBGReplyView-iPhone.nib - FgzGaL5mlmkyiBBHWaQME1YODHM= + HD+GtDGoCs1iVP17PK+poDUJbq8= IBGReportCategoriesVC-iPhone.nib - 6dhmuyv1LWiG/o9RZgdy6MQdh7s= + NNwEylgxBzMf7vXPrP4ZbcDRW8g= IBGScreenshotVC-iPhone.nib - AOG6wW3kMOEEsNa3J4+ZJ3ppUsM= + yECrueBAH7nxGZ7BN+7L8HNgPZY= IBGUnnotifiedMessagesAlertView.nib - Dlr7h80o3QnoseD1oDdH4pr+PJk= + 8GgnaPi8fbI0sdj1neGAsU1HswU= IBGVideoPlaybackViewController.nib - /QdMZRKIImOjgp33RtHbQVd6BZU= + ghj5qYFlnf8vY2R6fK/dDd1/SUg= IBGVoiceNoteRecordingViewController-iPhone.nib - UF9XMENSVAktTVne4U3rHsn0qlM= + u3hCq15zWkGZcT0jK2WvKDgc/9E= InAppScreenshotPlaceholder.png @@ -106,7 +106,7 @@ Info.plist - KDX4wh4QxFWMF7+nWpL0Q3xRxWI= + QbI3/2EVIK1IIuj809UmBR0ck6I= Inject_DSYM_Project-Archive.sh @@ -130,11 +130,11 @@ InstabugDataModel.momd/InstabugDataModel 9.mom - GHCidcSaD+2cceEF2qcLJhhapTo= + KnURQnAJj79EnjLNGP0Q3LMJmwY= InstabugDataModel.momd/InstabugDataModel 9.omo - H/whqgeuGvPZ7BDRoSVl0cXJBTY= + 4hEFvV3ocYp1c8WVzn9sE22vbEI= InstabugDataModel.momd/InstabugDataModel.mom @@ -142,7 +142,7 @@ InstabugDataModel.momd/VersionInfo.plist - +CV51tQ/lVrsxeAN2FTKpQdrEIY= + eLNZfvHXZ3FE0Z92jFp4DwB6H2k= Instabug_dsym_upload.sh @@ -417,209 +417,209 @@ hash - ix6wVd134sFK5Llk/J93XzT8rGw= + j7qs/Xe7/PYdgUVT/gXbiZvwejc= hash2 - A/n9AJjdHkQm6LCU7AaLA5ux+V3lJbe2NDDwWZ+UhiI= + lHGjlMsUMSmd3EPpPYfvSlMnhFOGwHrKVho7mCDiS9M= IBGActionSheetCell.nib hash - tccboudBOYzZVQK5s9V4ZB58+FY= + Hfb6KMLarS4Ik7yZJ9eCcuUzbig= hash2 - ekHhlt/iGJTxzEUG2ELEftOkCRN+ke9Lz8pblv5/9Pc= + knlgs6Yc2ChuoalK8W8wAX0bjAoYXRMnAOo35ng3sik= IBGActionSheetVC-iPhone.nib hash - /aZp41ehVVQY45l39o+nD3M33TI= + gJu4ZsQcGplJq/kBH3Qav54ZgTE= hash2 - 8E6H8lWTVQ2fWDmpZydo0tY1187e0Qa5Lj3cwK7Rh2E= + EXo1cE6RsCIdTqPtLqAQr5pQNWtmram65y2TUOoi79Y= IBGAttachmentButton.nib hash - tDK+C4BT4Qieu1sPRY7IO4RBQ8U= + svhwnAwIUkEqkfA3ic/BT5RzT2A= hash2 - BIjxQVShUESDro+Fw2/b2u8UAADlKjGTS/GFG8yBLkk= + H2Hr33ZggAZZAdBW1PFN7mPYNMf24pVigyHBMSqhP08= IBGBugVC-iPhone.nib hash - 4QQaCMgj0fEudIKI+QLR2t8zXl0= + SqiEVYPQkVTo1Y1KPv/prW6WFWE= hash2 - EWttLsJtbgNELdbTx8cqx8M/G9MeAjLb+TDrEycELD0= + C96UhDC8X4Z2XhRBUGv2SaCCuPYrV+QkxObI4aXWK20= IBGChatCell.nib hash - N6xcK2K1Cf/sgy/1wtD6qQI8Xyo= + sjOFtI1i5SKGOthVno5UXiWOXCU= hash2 - wiEmjB9Te6BKIxaccTTGg+9srLqRyuSTXOL01ju89Sg= + CXQrNDYbaEJ/OcJ+89Raq1rkZzJQLxPfrLyiAh/2Ny8= IBGChatListVC-iPhone.nib hash - qwx3Si9tw7rCe/nHaBVy8IzguxA= + Kh453oP4i83Ev//JjlLeOOvw0GA= hash2 - VxAIRxnk9iHer9k1bUn1iNaAI428yk+n0Clxw81yX2A= + ff78RVFuvSwbDeZW8b3L4p10huTKnsUP0StOPRUbBd0= IBGChatVC-iPhone.nib hash - OkNz+jdIDRlxTVKc1yVJmVf/kiI= + aDQwhAY305i83wIj+ESQvwBJuG4= hash2 - n8/qLmZ6VXa4q3mHR3iEOfbCM+RtQ1mG9vtWkFt3SUQ= + Y4FQ/YadbAp+reCOkiEQdk4JvQD/5ItZB23bHQ8OOH0= IBGFullScreenImageViewController.nib hash - /JF/bVCupgsELR05dNxcMPPIFx4= + qho5SoIfT724x1OvaPDnJ0+oS6s= hash2 - n1wf1nwNO52nofyRJZvoXv1FpP8IgC9UjViF+5jZbUE= + 6rx3ON5eNP8dnPDQhS+Jkrpv8Hoj5VyA/XXVfxlRLW0= IBGMessagesView.nib hash - jpcOwXtlW8rLt4pZvcZ2NpZsHhM= + HNVefHjA8MbLIXKJQsDvVcChhMQ= hash2 - Fe7BgY2B6yYEpxwSWSQJwi4/wZT1XOnLhHrVLa0oaiQ= + hqoN/0k2nJlzCY5+77yrAHibQGcJWl8VkHb6bTaEncQ= IBGPoweredByView.nib hash - r6TvQwCAc8Asz6KH0Mvtcsr7uv4= + tdMo2H1/AvRVwBJ6pMV8iDhMcdM= hash2 - FKU3e4Xl+GStAXPAKN+W+h2z6TNY5zAHXLevMQ61juw= + amUP64bIxUk3qczVb7JyVACcIKIiRLV8tVyfeIXkFHU= IBGPromptCell.nib hash - /n1wI1QKJ1zpUnXoJBV1UTiltvI= + sS1z23FjnubPHKQ+x+Mn5hhFEDA= hash2 - Cv/9nJcsdnStthf36Bb9grhh2NWYddsYKf29hipDYRA= + XeJN8PvqWmlV3DSS37BphOAdOKZ/aoqVpLDeISU288Y= IBGPromptVC-iPhone.nib hash - viQHyqIftr3Yw1SFsm9YDApfnwk= + xeUBN+JRpUNghDs97jE2Je36n4Y= hash2 - 5egA+U98AjExsoEuBh73xMRmw2LyrkNO9zRtAqCUQqg= + QaQxw4LBxOf0kmQlMLxt4EYYWsjH5YWsHuy+H7Nkhh8= IBGReplyView-iPhone.nib hash - FgzGaL5mlmkyiBBHWaQME1YODHM= + HD+GtDGoCs1iVP17PK+poDUJbq8= hash2 - pccn7woASJWt2O0OjSjaALTbDdXgAoij7k+wD03L2hE= + rDWmzotEYtwtXbG/NcRBOeqcY5jwTrJtvuIMhe5SNv8= IBGReportCategoriesVC-iPhone.nib hash - 6dhmuyv1LWiG/o9RZgdy6MQdh7s= + NNwEylgxBzMf7vXPrP4ZbcDRW8g= hash2 - zIdVeqk3CtaYFsLvaMSWrGzn8scO0ZIV+VGZcRxIsVA= + 2tQX1F9rxHKoIx6Mrq/YmYnFcs7LLxwS5XYw1vGp948= IBGScreenshotVC-iPhone.nib hash - AOG6wW3kMOEEsNa3J4+ZJ3ppUsM= + yECrueBAH7nxGZ7BN+7L8HNgPZY= hash2 - FkF6mctCuh5x3192pb9lgYY/4An26zA2R89Dn0skY5Q= + Aq1tYolMlOOzPxBEMe8rny2JYN2Dq5Cso0utHcdeOHo= IBGUnnotifiedMessagesAlertView.nib hash - Dlr7h80o3QnoseD1oDdH4pr+PJk= + 8GgnaPi8fbI0sdj1neGAsU1HswU= hash2 - vbDGsAOcI+xpwO9tK+MhXFfNzkAUoi8eRTKDShhRDLM= + fP4AawKxVW+ploD2x+q97csM2lDqAizDdhEoC0+jL1I= IBGVideoPlaybackViewController.nib hash - /QdMZRKIImOjgp33RtHbQVd6BZU= + ghj5qYFlnf8vY2R6fK/dDd1/SUg= hash2 - 36W+GKYCRrIUOcO9vB/0WmjruWaojr8ONGGz6wGkfo8= + yaoaCt0xCDXXdIGrxto7hMnl1gGBKe4Jq4FpUpe8g7o= IBGVoiceNoteRecordingViewController-iPhone.nib hash - UF9XMENSVAktTVne4U3rHsn0qlM= + u3hCq15zWkGZcT0jK2WvKDgc/9E= hash2 - /EZCDtW0SOd66ATfJrbQ6EOEmXMNgK1A2nLj3x5AeoA= + duwUjPuxWoNKLzx1jIjTLIUFtHvr3D17B9QSjFQCsxg= InAppScreenshotPlaceholder.png @@ -747,22 +747,22 @@ hash - GHCidcSaD+2cceEF2qcLJhhapTo= + KnURQnAJj79EnjLNGP0Q3LMJmwY= hash2 - TkUHcaesnTObKjLQ7YwiXyLt7UaKrJ0Un6n2G6eaL8Y= + nW0gYK5E7htGqg+G8zpBYlwIlq5HTkgBbMXEAC6xZ2c= InstabugDataModel.momd/InstabugDataModel 9.omo hash - H/whqgeuGvPZ7BDRoSVl0cXJBTY= + 4hEFvV3ocYp1c8WVzn9sE22vbEI= hash2 - tcN2gX9vM/GZmZKFe1XrGM4RFxqEwURtw4VRoy1aGJo= + PbSuoM4SjpOUeUEutkpJRZcWiqAY0L1xEKhPqVDgy48= InstabugDataModel.momd/InstabugDataModel.mom @@ -780,11 +780,11 @@ hash - +CV51tQ/lVrsxeAN2FTKpQdrEIY= + eLNZfvHXZ3FE0Z92jFp4DwB6H2k= hash2 - /Ob+9vDLVMkfTuanj6oL0rVQ69jjpJTV+x00pz6KaTs= + IVF9vyvFOnDeEuhQibMs0Xc4qiqWdtAYBP3O1utMreU= Instabug_dsym_upload.sh diff --git a/ios/RNInstabug/InstabugReactBridge.m b/ios/RNInstabug/InstabugReactBridge.m index bbb0397..8335837 100644 --- a/ios/RNInstabug/InstabugReactBridge.m +++ b/ios/RNInstabug/InstabugReactBridge.m @@ -50,6 +50,10 @@ RCT_EXPORT_METHOD(dismiss) { [Instabug dismiss]; } +RCT_EXPORT_METHOD(setReproStepsMode:(IBGUserStepsMode)reproStepsMode) { + [Instabug setReproStepsMode:reproStepsMode]; +} + RCT_EXPORT_METHOD(setFileAttachment:(NSString *)fileLocation) { [Instabug setFileAttachment:fileLocation]; } @@ -388,6 +392,10 @@ RCT_EXPORT_METHOD(isRunningLive:(RCTResponseSenderBlock)callback) { @"dismissTypeCancel": @(IBGDismissTypeCancel), @"dismissTypeAddAtttachment": @(IBGDismissTypeAddAttachment), + @"reproStepsEnabled": @(IBGUserStepsModeEnable), + @"reproStepsDisabled": @(IBGUserStepsModeEnabledWithNoScreenshots), + @"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeDisable), + @"reportTypeBug": @(IBGReportTypeBug), @"reportTypeFeedback": @(IBGReportTypeFeedback), diff --git a/ios/RNInstabug/RCTConvert+InstabugEnums.m b/ios/RNInstabug/RCTConvert+InstabugEnums.m index 294b76e..4980a27 100644 --- a/ios/RNInstabug/RCTConvert+InstabugEnums.m +++ b/ios/RNInstabug/RCTConvert+InstabugEnums.m @@ -34,6 +34,13 @@ RCT_ENUM_CONVERTER(IBGDismissType, (@{ @"dismissTypeAddAtttachment": @(IBGDismissTypeAddAttachment) }), IBGDismissTypeSubmit, integerValue) +RCT_ENUM_CONVERTER(IBGUserStepsMode, (@{ + @"reproStepsEnabled": @(IBGUserStepsModeEnable), + @"reproStepsDisabled": @(IBGUserStepsModeDisable), + @"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots) + }), IBGUserStepsModeEnable, integerValue) + + RCT_ENUM_CONVERTER(IBGReportType, (@{ @"reportTypeBug": @(IBGReportTypeBug), @"reportTypeFeedback": @(IBGReportTypeFeedback)