Skip to content

Commit 2ebb6a4

Browse files
Merge pull request #1410 from Instabug/dev
Release v15.0.1
2 parents 7ff76ea + 5c8f2cf commit 2ebb6a4

File tree

85 files changed

+2951
-349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2951
-349
lines changed

.circleci/config.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,33 @@ jobs:
401401
prepare_steps:
402402
type: steps
403403
default: []
404+
api_endpoint:
405+
type: string
406+
dashboard_token_env:
407+
type: string
404408
working_directory: ~/project
405409
executor:
406410
name: node/default
407411
steps:
408412
- advanced-checkout/shallow-checkout
413+
- run: git clone [email protected]:Instabug/Escape.git
414+
- run:
415+
working_directory: Escape
416+
command: swift build -c release
417+
- run:
418+
working_directory: Escape/.build/release
419+
command: cp -f Escape /usr/local/bin/escape
409420
- steps: << parameters.prepare_steps >>
410421
- install_node_modules
411422
- run:
412423
name: Build the SDK
413424
command: yarn build
414425
- run:
415-
name: Authorize with NPM
416-
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
417-
- run:
418-
name: Publish new enterprise version
419-
command: npm publish
426+
name: Publish Custom Package with Escape
427+
command: Escape react-native publish-custompackage
428+
environment:
429+
DASHBOARD_TOKEN: << parameters.dashboard_token_env >>
430+
DASHBOARD_API_ENDPOINT: << parameters.api_endpoint >>
420431

421432
publish:
422433
macos:
@@ -438,8 +449,11 @@ jobs:
438449
working_directory: project
439450
command: yarn build
440451
- run:
452+
name: Publish Official Package with Escape
441453
working_directory: project
442454
command: Escape react-native publish
455+
environment:
456+
DASHBOARD_API_ENDPOINT: api.instabug.com
443457
publish_new_namespace:
444458
working_directory: ~/project
445459
executor:
@@ -562,6 +576,8 @@ workflows:
562576
npm_package: '@instabug/react-native-nn'
563577
android_package: nn
564578
api_endpoint: st001009nn.instabug.com
579+
api_endpoint: st001009nn.instabug.com
580+
dashboard_token_env: ${NN_TOKEN}
565581

566582
- hold_release_injazat:
567583
requires: *release_dependencies
@@ -581,6 +597,8 @@ workflows:
581597
npm_package: '@instabug/react-native-injazat'
582598
android_package: injazat
583599
api_endpoint: st001013mec1.instabug.com
600+
api_endpoint: st001013mec1.instabug.com
601+
dashboard_token_env: ${INJAZAT_TOKEN}
584602

585603
# Dream11 tests
586604
- hold_test_dream11:
@@ -622,3 +640,5 @@ workflows:
622640
only: dream11
623641
prepare_steps:
624642
- prepare_dream11
643+
api_endpoint: st001012dream11.instabug.com
644+
dashboard_token_env: ${DREAM11_TOKEN}

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## [15.0.1](https://github.com/Instabug/Instabug-React-Native/compare/v14.3.0...v15.0.1)
4+
5+
### Added
6+
7+
- Add support enable/disable screenshot auto masking. ([#1389](https://github.com/Instabug/Instabug-React-Native/pull/1389))
8+
9+
- Add support for BugReporting user consents. ([#1383](https://github.com/Instabug/Instabug-React-Native/pull/1383))
10+
11+
- Add support for xCode 16. ([#1370](https://github.com/Instabug/Instabug-React-Native/pull/1370))
12+
13+
- Add support for network spans. ([#1394](https://github.com/Instabug/Instabug-React-Native/pull/1394))
14+
15+
- Add respect to backend network body limit. ([#1397](https://github.com/Instabug/Instabug-React-Native/pull/1397))
16+
17+
### Changed
18+
19+
- Bump Instabug iOS SDK to v15.1.1 ([#1402](https://github.com/Instabug/Instabug-React-Native/pull/1402)). [See release notes](https://github.com/Instabug/Instabug-iOS/releases/tag/15.1.1).
20+
21+
- Bump Instabug Android SDK to v15.0.1 ([#1402](https://github.com/Instabug/Instabug-React-Native/pull/1402)). [See release notes](https://github.com/Instabug/Instabug-Android/releases/tag/v15.0.1).
22+
23+
### Fixed
24+
25+
- Not sending the inComplete xhrRequest. ([#1365](https://github.com/Instabug/Instabug-React-Native/pull/1365))
26+
27+
- Added more search capabilities to the find-token.sh script. e.g., searching in .env file for react config. [#1366](https://github.com/Instabug/Instabug-React-Native/pull/1366)
28+
29+
- Updated the CHANGELOG on the dashboard for the enterprise users. [#1404](https://github.com/Instabug/Instabug-React-Native/pull/1404)
30+
331
## [14.3.0](https://github.com/Instabug/Instabug-React-Native/compare/v14.1.0...14.3.0)
432

533
### Added

RNInstabug.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.homepage = package["homepage"]
1313
s.source = { :git => "https://github.com/Instabug/Instabug-React-Native.git", :tag => 'v' + package["version"] }
1414

15-
s.platform = :ios, "9.0"
15+
s.platform = :ios, "13.0"
1616
s.source_files = "ios/**/*.{h,m,mm}"
1717

1818
s.dependency 'React-Core'

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ android {
5757
minSdkVersion getExtOrDefault('minSdkVersion').toInteger()
5858
targetSdkVersion getExtOrDefault('targetSdkVersion').toInteger()
5959
versionCode 1
60-
versionName "14.3.0"
60+
versionName "15.0.1"
6161
multiDexEnabled true
6262
ndk {
6363
abiFilters "armeabi-v7a", "x86"

android/native.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project.ext.instabug = [
2-
version: '14.3.0'
2+
version: '15.0.1'
33
]
44

55
dependencies {

android/src/main/java/com/instabug/reactlibrary/ArgsRegistry.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.instabug.library.invocation.util.InstabugVideoRecordingButtonPosition;
1818
import com.instabug.library.sessionreplay.model.SessionMetadata;
1919
import com.instabug.library.ui.onboarding.WelcomeMessage;
20+
import com.instabug.library.MaskingType;
2021

2122
import java.util.ArrayList;
2223
import java.util.HashMap;
@@ -60,6 +61,8 @@ static Map<String, Object> getAll() {
6061
putAll(locales);
6162
putAll(placeholders);
6263
putAll(launchType);
64+
putAll(autoMaskingTypes);
65+
putAll(userConsentActionType);
6366
}};
6467
}
6568

@@ -142,6 +145,12 @@ static Map<String, Object> getAll() {
142145
put("reproStepsDisabled", ReproMode.Disable);
143146
}};
144147

148+
static final ArgsMap<String> userConsentActionType = new ArgsMap<String>() {{
149+
put("dropAutoCapturedMedia", com.instabug.bug.userConsent.ActionType.DROP_AUTO_CAPTURED_MEDIA);
150+
put("dropLogs", com.instabug.bug.userConsent.ActionType.DROP_LOGS);
151+
put("noChat", com.instabug.bug.userConsent.ActionType.NO_CHAT);
152+
}};
153+
145154
static final ArgsMap<Integer> sdkLogLevels = new ArgsMap<Integer>() {{
146155
put("sdkDebugLogsLevelNone", com.instabug.library.LogLevel.NONE);
147156
put("sdkDebugLogsLevelError", com.instabug.library.LogLevel.ERROR);
@@ -253,5 +262,10 @@ static Map<String, Object> getAll() {
253262
put(SessionMetadata.LaunchType.COLD,"cold");
254263
put(SessionMetadata.LaunchType.WARM,"warm" );
255264
}};
256-
265+
public static final ArgsMap<Integer> autoMaskingTypes = new ArgsMap<Integer>() {{
266+
put("labels", MaskingType.LABELS);
267+
put("textInputs", MaskingType.TEXT_INPUTS);
268+
put("media", MaskingType.MEDIA);
269+
put("none", MaskingType.MASK_NOTHING);
270+
}};
257271
}

android/src/main/java/com/instabug/reactlibrary/Constants.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ final class Constants {
1010
final static String IBG_ON_NEW_MESSAGE_HANDLER = "IBGonNewMessageHandler";
1111
final static String IBG_ON_NEW_REPLY_RECEIVED_CALLBACK = "IBGOnNewReplyReceivedCallback";
1212

13-
final static String IBG_ON_NEW_W3C_FLAGS_UPDATE_RECEIVED_CALLBACK = "IBGOnNewW3CFlagsUpdateReceivedCallback";
13+
final static String IBG_ON_FEATURES_UPDATED_CALLBACK = "IBGOnFeatureUpdatedCallback";
14+
final static String IBG_NETWORK_LOGGER_HANDLER = "IBGNetworkLoggerHandler";
15+
16+
final static String IBG_ON_FEATURE_FLAGS_UPDATE_RECEIVED_CALLBACK = "IBGOnNewFeatureFlagsUpdateReceivedCallback";
1417

1518
final static String IBG_SESSION_REPLAY_ON_SYNC_CALLBACK_INVOCATION = "IBGSessionReplayOnSyncCallback";
1619

android/src/main/java/com/instabug/reactlibrary/RNInstabugBugReportingModule.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.annotation.SuppressLint;
44
import android.annotation.TargetApi;
5+
import androidx.annotation.Nullable;
56

67
import com.facebook.react.bridge.Arguments;
78
import com.facebook.react.bridge.Callback;
@@ -21,6 +22,7 @@
2122
import com.instabug.reactlibrary.utils.ArrayUtil;
2223
import com.instabug.reactlibrary.utils.EventEmitterModule;
2324
import com.instabug.reactlibrary.utils.MainThreadHandler;
25+
import com.instabug.bug.userConsent.ActionType;
2426

2527
import java.util.ArrayList;
2628

@@ -415,4 +417,30 @@ public void run() {
415417
}
416418
});
417419
}
420+
421+
/**
422+
* Adds a user consent item to the bug reporting
423+
* @param key A unique identifier string for the consent item.
424+
* @param description The text shown to the user describing the consent item.
425+
* @param mandatory Whether the user must agree to this item before submitting a report.
426+
* @param checked Whether the consent checkbox is pre-selected.
427+
* @param actionType A string representing the action type to map to SDK behavior.
428+
*/
429+
@ReactMethod
430+
public void addUserConsent(String key, String description, boolean mandatory, boolean checked, @Nullable String actionType) {
431+
MainThreadHandler.runOnMainThread(new Runnable() {
432+
@Override
433+
public void run() {
434+
try {
435+
String mappedActionType = ArgsRegistry.userConsentActionType.get(actionType);
436+
BugReporting.addUserConsent(key, description, mandatory, checked, mappedActionType);
437+
} catch (Exception e) {
438+
e.printStackTrace();
439+
}
440+
}
441+
});
442+
443+
}
444+
445+
418446
}

0 commit comments

Comments
 (0)