Skip to content

Commit 64c3a29

Browse files
Merge remote-tracking branch 'origin/dev' into feat/support-app-flows
2 parents 367054b + 430c088 commit 64c3a29

File tree

8 files changed

+103
-23
lines changed

8 files changed

+103
-23
lines changed

.circleci/config.yml

Lines changed: 79 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2.1
22

33
orbs:
4-
android: circleci/[email protected]
4+
android: circleci/android@2.5.0
55
advanced-checkout: vsco/[email protected]
6-
node: circleci/node@5.1.0
6+
node: circleci/node@5.2.0
77

88
references:
99
release_dependencies: &release_dependencies
@@ -26,7 +26,7 @@ commands:
2626
steps:
2727
- node/install:
2828
install-yarn: true
29-
node-version: 'v18.17.0'
29+
node-version: 'v20.11.1'
3030
- node/install-packages:
3131
pkg-manager: yarn
3232
# Network concurrency is set to 1 for installation from GitHub to work.
@@ -113,13 +113,13 @@ jobs:
113113
test_android:
114114
executor:
115115
name: android/android-machine
116-
tag: '2022.03.1'
116+
tag: default
117117
working_directory: ~/project/examples/default
118118
environment:
119119
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
120120
steps:
121121
- advanced-checkout/shallow-checkout
122-
- node/install-yarn
122+
# - node/install-yarn
123123
- install_node_modules
124124
- android/run-tests:
125125
working-directory: android
@@ -227,13 +227,13 @@ jobs:
227227
e2e_android:
228228
executor:
229229
name: android/android-machine
230-
tag: 2022.03.1
230+
tag: default
231231
resource-class: large
232232
environment:
233233
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
234234
steps:
235235
- advanced-checkout/shallow-checkout
236-
- node/install-yarn
236+
# - node/install-yarn
237237
- install_node_modules
238238
- node/install-packages:
239239
pkg-manager: yarn
@@ -287,6 +287,35 @@ jobs:
287287
- run:
288288
name: Publish new enterprise version
289289
command: npm publish
290+
# Automate the enterprise injazat sdk changes
291+
release_injazat:
292+
working_directory: ~/project
293+
executor:
294+
name: node/default
295+
steps:
296+
- advanced-checkout/shallow-checkout
297+
- install_node_modules
298+
- run:
299+
name: Remove README.md file
300+
command: rm README.md
301+
- search_and_replace:
302+
file: package.json
303+
replace-pattern: 's/instabug-reactnative/@instabug\/react-native-injazat/g'
304+
- search_and_replace:
305+
file: cli/UploadSourcemaps.ts
306+
replace-pattern: 's/api.instabug.com\/api\/sdk/st001013mec1.instabug.com\/api\/sdk/g'
307+
- search_and_replace:
308+
file: android/native.gradle
309+
replace-pattern: 's/com\.instabug\.library:instabug:/com.instabug.library-injazat:instabug:/g'
310+
- run:
311+
name: Build the SDK
312+
command: yarn build
313+
- run:
314+
name: Authorize with npm
315+
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
316+
- run:
317+
name: Publish new enterprise version
318+
command: npm publish
290319
# Automate the enterprise D11 sdk changes
291320
release_d11:
292321
working_directory: ~/project
@@ -345,6 +374,31 @@ jobs:
345374
- run:
346375
working_directory: project
347376
command: Escape react-native publish
377+
publish_new_namespace:
378+
macos:
379+
xcode: 13.4.1
380+
resource_class: macos.m1.medium.gen1
381+
working_directory: '~'
382+
steps:
383+
- advanced-checkout/shallow-checkout
384+
- search_and_replace:
385+
file: package.json
386+
replace-pattern: 's/instabug-reactnative/@instabug\/react-native/g'
387+
- run: git clone [email protected]:Instabug/Escape.git
388+
- run:
389+
working_directory: Escape
390+
command: swift build -c release
391+
- run:
392+
working_directory: Escape/.build/release
393+
command: cp -f Escape /usr/local/bin/escape
394+
- install_node_modules:
395+
app-dir: project
396+
- run:
397+
working_directory: project
398+
command: yarn build
399+
- run:
400+
working_directory: project
401+
command: Escape react-native publish
348402

349403
generate_snapshot:
350404
executor:
@@ -421,6 +475,15 @@ workflows:
421475
filters:
422476
branches:
423477
only: master
478+
- hold_release_injazat:
479+
requires: *release_dependencies
480+
type: approval
481+
- hold_publish_new_namespace:
482+
requires: *release_dependencies
483+
type: approval
484+
filters:
485+
branches:
486+
only: master
424487
- hold_release_d11:
425488
requires: *release_dependencies
426489
type: approval
@@ -430,12 +493,21 @@ workflows:
430493
filters:
431494
branches:
432495
only: master
496+
- publish_new_namespace:
497+
requires:
498+
- hold_publish_new_namespace
499+
filters:
500+
branches:
501+
only: master
433502
- release_nn:
434503
requires:
435504
- hold_release_nn
436505
filters:
437506
branches:
438507
only: master
508+
- release_injazat:
509+
requires:
510+
- hold_release_injazat
439511
- release_d11:
440512
requires:
441513
- hold_release_d11

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## [Unreleased](https://github.com/Instabug/Instabug-React-Native/compare/v12.8.0...dev)
3+
## [12.9.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.8.0...dev)(April 2, 2024)
44

55
### Added
66

@@ -12,6 +12,16 @@
1212

1313
- Deprecate execution traces APIs `APM.startExecutionTrace`, `Trace.end` and `Trace.setFlowAttribute` in favor of the new app flow APIs ([#1138](https://github.com/Instabug/Instabug-React-Native/pull/1138)).
1414

15+
### Changed
16+
17+
- Bump Instabug Android SDK to v12.9.0 ([#1168](https://github.com/Instabug/Instabug-React-Native/pull/1168)). [See release notes](https://github.com/Instabug/android/releases/tag/v12.9.0).
18+
- Bump Instabug iOS SDK to v12.9.0 ([#1168](https://github.com/Instabug/Instabug-React-Native/pull/1168)). [See release notes](https://github.com/instabug/instabug-ios/releases/tag/12.9.0).
19+
20+
### Fixed
21+
22+
- Remove the use of the nullish coalescing assignment operator (`??=`) causing a syntax error with older TypeScript versions ([#1166](https://github.com/Instabug/Instabug-React-Native/pull/1166)), closes [#1161
23+
](https://github.com/Instabug/Instabug-React-Native/issues/1161).
24+
1525
## [12.8.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.1...v12.8.0) (February 25, 2024)
1626

1727
### Added

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 "12.8.0"
60+
versionName "12.9.0"
6161
multiDexEnabled true
6262
ndk {
6363
abiFilters "armeabi-v7a", "x86"

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,11 @@ public void networkLog(String networkData) throws JSONException {
357357
} else {
358358
Log.e("IB-CP-Bridge", "apmNetworkLogByReflection was not found by reflection");
359359
}
360-
} catch (ClassNotFoundException e) {
361-
e.printStackTrace();
362-
} catch (IllegalAccessException e) {
363-
e.printStackTrace();
364-
} catch (InvocationTargetException e) {
360+
} catch (Throwable e) {
365361
e.printStackTrace();
366362
}
367363
}
368-
catch(Exception e) {
364+
catch(Throwable e) {
369365
e.printStackTrace();
370366
}
371367
}

examples/default/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ PODS:
9797
- hermes-engine (0.72.3):
9898
- hermes-engine/Pre-built (= 0.72.3)
9999
- hermes-engine/Pre-built (0.72.3)
100-
- Instabug (12.7.0)
100+
- Instabug (12.9.0)
101101
- instabug-reactnative-ndk (0.1.0):
102102
- RCT-Folly (= 2021.07.22.00)
103103
- React-Core
@@ -531,8 +531,8 @@ PODS:
531531
- RNGestureHandler (2.13.4):
532532
- RCT-Folly (= 2021.07.22.00)
533533
- React-Core
534-
- RNInstabug (12.8.0):
535-
- Instabug (= 12.7.0)
534+
- RNInstabug (12.9.0):
535+
- Instabug (= 12.9.0)
536536
- React-Core
537537
- RNReanimated (3.5.4):
538538
- DoubleConversion
@@ -798,7 +798,7 @@ SPEC CHECKSUMS:
798798
Google-Maps-iOS-Utils: f77eab4c4326d7e6a277f8e23a0232402731913a
799799
GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac
800800
hermes-engine: 10fbd3f62405c41ea07e71973ea61e1878d07322
801-
Instabug: 59f0b0bc2c062b5cdbbf417cca365480a1fe55d8
801+
Instabug: 8d39aa5f98999f4c0081fcdb38998eb368923d1a
802802
instabug-reactnative-ndk: 960119a69380cf4cbe47ccd007c453f757927d17
803803
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
804804
OCMock: 300b1b1b9155cb6378660b981c2557448830bdc6
@@ -841,7 +841,7 @@ SPEC CHECKSUMS:
841841
React-utils: bcb57da67eec2711f8b353f6e3d33bd8e4b2efa3
842842
ReactCommon: 3ccb8fb14e6b3277e38c73b0ff5e4a1b8db017a9
843843
RNGestureHandler: 6e46dde1f87e5f018a54fe5d40cd0e0b942b49ee
844-
RNInstabug: 447d1f2e2afcdf54090914a3da7d61ef227e790b
844+
RNInstabug: 620175f228d29f6ec394a598502cf501bd9beace
845845
RNReanimated: ab2e96c6d5591c3dfbb38a464f54c8d17fb34a87
846846
RNScreens: b21dc57dfa2b710c30ec600786a3fc223b1b92e7
847847
RNSVG: 80584470ff1ffc7994923ea135a3e5ad825546b9

ios/native.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$instabug = { :version => '12.7.0' }
1+
$instabug = { :version => '12.9.0' }
22

33
def use_instabug! (spec = nil)
44
version = $instabug[:version]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "instabug-reactnative",
33
"description": "React Native plugin for integrating the Instabug SDK",
4-
"version": "12.8.0",
4+
"version": "12.9.0",
55
"author": "Instabug (https://instabug.com)",
66
"repository": "github:Instabug/Instabug-React-Native",
77
"homepage": "https://www.instabug.com/platforms/react-native",

src/modules/Instabug.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export const init = (config: InstabugConfig) => {
6464
captureUnhandledRejections();
6565

6666
// Default networkInterceptionMode to JavaScript
67-
config.networkInterceptionMode ??= NetworkInterceptionMode.javascript;
67+
if (config.networkInterceptionMode == null) {
68+
config.networkInterceptionMode = NetworkInterceptionMode.javascript;
69+
}
6870

6971
if (config.networkInterceptionMode === NetworkInterceptionMode.javascript) {
7072
NetworkLogger.setEnabled(true);

0 commit comments

Comments
 (0)