Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca902d3

Browse files
authored
Merge pull request #1202 from Instabug/chore/sync-dream11-with-master
chore: sync `dream11` branch with `master`
2 parents ac0801e + ea9df2e commit ca902d3

File tree

89 files changed

+2732
-188
lines changed

Some content is hidden

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

89 files changed

+2732
-188
lines changed

.circleci/config.yml

Lines changed: 115 additions & 35 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.
@@ -50,16 +50,20 @@ commands:
5050
key: v1-pods-{{ checksum "<< parameters.working_directory >>/Podfile.lock" }}
5151
paths:
5252
- << parameters.working_directory >>/Pods
53-
search_and_replace:
53+
find_and_replace:
5454
parameters:
55-
file:
55+
files:
56+
description: A space-separated list of files to search and replace in.
5657
type: string
57-
replace-pattern:
58+
search:
59+
type: string
60+
replace:
5861
type: string
5962
steps:
6063
- run:
61-
name: Search and Replace in << parameters.file >>
62-
command: sed -i '<< parameters.replace-pattern >>' << parameters.file >>
64+
name: Find and Replace in << parameters.files >>
65+
command: node ~/project/scripts/replace.js << parameters.search >> << parameters.replace >> << parameters.files >>
66+
6367
notify_github:
6468
parameters:
6569
data:
@@ -113,13 +117,13 @@ jobs:
113117
test_android:
114118
executor:
115119
name: android/android-machine
116-
tag: '2022.03.1'
120+
tag: '2024.01.1'
117121
working_directory: ~/project/examples/default
118122
environment:
119123
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
120124
steps:
121125
- advanced-checkout/shallow-checkout
122-
- node/install-yarn
126+
# - node/install-yarn
123127
- install_node_modules
124128
- android/run-tests:
125129
working-directory: android
@@ -227,13 +231,13 @@ jobs:
227231
e2e_android:
228232
executor:
229233
name: android/android-machine
230-
tag: 2022.03.1
234+
tag: '2024.01.1'
231235
resource-class: large
232236
environment:
233237
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
234238
steps:
235239
- advanced-checkout/shallow-checkout
236-
- node/install-yarn
240+
# - node/install-yarn
237241
- install_node_modules
238242
- node/install-packages:
239243
pkg-manager: yarn
@@ -258,8 +262,14 @@ jobs:
258262
working_directory: examples/default
259263
command: detox test -c android.emu.release
260264

261-
# Automate the enterprise NN sdk changes
262-
release_nn:
265+
release_custom_package:
266+
parameters:
267+
npm_package:
268+
type: string
269+
android_package:
270+
type: string
271+
api_endpoint:
272+
type: string
263273
working_directory: ~/project
264274
executor:
265275
name: node/default
@@ -269,24 +279,28 @@ jobs:
269279
- run:
270280
name: Remove README.md file
271281
command: rm README.md
272-
- search_and_replace:
273-
file: package.json
274-
replace-pattern: 's/instabug-reactnative/@instabug\/react-native-nn/g'
275-
- search_and_replace:
276-
file: cli/UploadSourcemaps.ts
277-
replace-pattern: 's/api.instabug.com\/api\/sdk/st001009nn.instabug.com\/api\/sdk/g'
278-
- search_and_replace:
279-
file: android/native.gradle
280-
replace-pattern: 's/com\.instabug\.library:instabug:/com.instabug.library-nn:instabug:/g'
282+
- find_and_replace:
283+
files: package.json android/sourcemaps.gradle ios/sourcemaps.sh
284+
search: instabug-reactnative
285+
replace: << parameters.npm_package >>
286+
- find_and_replace:
287+
files: cli/UploadSourcemaps.ts cli/UploadSoFiles.ts
288+
search: api.instabug.com
289+
replace: << parameters.api_endpoint >>
290+
- find_and_replace:
291+
files: android/native.gradle
292+
search: 'com.instabug.library:instabug:'
293+
replace: 'com.instabug.library-<< parameters.android_package >>:instabug:'
281294
- run:
282295
name: Build the SDK
283296
command: yarn build
284297
- run:
285-
name: Authorize with npm
298+
name: Authorize with NPM
286299
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
287300
- run:
288301
name: Publish new enterprise version
289302
command: npm publish
303+
290304
# Automate the enterprise D11 sdk changes
291305
release_d11:
292306
working_directory: ~/project
@@ -298,15 +312,18 @@ jobs:
298312
- run:
299313
name: Remove README.md file
300314
command: rm README.md
301-
- search_and_replace:
302-
file: package.json
303-
replace-pattern: 's/instabug-reactnative/@instabug\/instabug-reactnative-dream11/g'
304-
- search_and_replace:
305-
file: cli/UploadSourcemaps.ts
306-
replace-pattern: 's/api.instabug.com\/api\/sdk/st001012dream11.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-dream11:instabug:/g'
315+
- find_and_replace:
316+
files: package.json ios/sourcemaps.sh android/sourcemaps.gradle
317+
search: instabug-reactnative
318+
replace: '@instabug/instabug-reactnative-dream11'
319+
- find_and_replace:
320+
files: cli/UploadSourcemaps.ts cli/UploadSoFiles.ts
321+
search: api.instabug.com
322+
replace: st001012dream11.instabug.com
323+
- find_and_replace:
324+
files: android/native.gradle
325+
search: com.instabug.library:instabug
326+
replace: 'com.instabug.library-dream11:instabug'
310327
- run:
311328
name: give exec permssion to d11 script
312329
command: chmod +x ./scripts/dream-11-delete-unused-features.sh
@@ -345,6 +362,31 @@ jobs:
345362
- run:
346363
working_directory: project
347364
command: Escape react-native publish
365+
publish_new_namespace:
366+
working_directory: ~/project
367+
executor:
368+
name: node/default
369+
steps:
370+
- advanced-checkout/shallow-checkout
371+
- find_and_replace:
372+
files: package.json
373+
search: instabug-reactnative
374+
replace: '@instabug/react-native'
375+
- run: git clone [email protected]:Instabug/Escape.git
376+
- run:
377+
working_directory: Escape
378+
command: swift build -c release
379+
- run:
380+
working_directory: Escape/.build/release
381+
command: cp -f Escape /usr/local/bin/escape
382+
- install_node_modules:
383+
app-dir: project
384+
- run:
385+
working_directory: project
386+
command: yarn build
387+
- run:
388+
working_directory: project
389+
command: Escape react-native publish
348390

349391
generate_snapshot:
350392
executor:
@@ -415,7 +457,7 @@ workflows:
415457
filters:
416458
branches:
417459
only: master
418-
- hold_release_nn:
460+
- hold_publish_new_namespace:
419461
requires: *release_dependencies
420462
type: approval
421463
filters:
@@ -424,18 +466,56 @@ workflows:
424466
- hold_release_d11:
425467
requires: *release_dependencies
426468
type: approval
469+
filters:
470+
branches:
471+
only: dream11
427472
- publish:
428473
requires:
429474
- hold_publish
430475
filters:
431476
branches:
432477
only: master
433-
- release_nn:
478+
- publish_new_namespace:
479+
requires:
480+
- hold_publish_new_namespace
481+
filters:
482+
branches:
483+
only: master
484+
- hold_release_nn:
485+
requires: *release_dependencies
486+
type: approval
487+
filters:
488+
branches:
489+
only: master
490+
- release_custom_package:
491+
name: release_nn
434492
requires:
435493
- hold_release_nn
436494
filters:
437495
branches:
438496
only: master
497+
npm_package: '@instabug/react-native-nn'
498+
android_package: nn
499+
api_endpoint: st001009nn.instabug.com
500+
- hold_release_injazat:
501+
requires: *release_dependencies
502+
type: approval
503+
filters:
504+
branches:
505+
only: master
506+
- release_custom_package:
507+
name: release_injazat
508+
requires:
509+
- hold_release_injazat
510+
filters:
511+
branches:
512+
only: master
513+
npm_package: '@instabug/react-native-injazat'
514+
android_package: injazat
515+
api_endpoint: st001013mec1.instabug.com
439516
- release_d11:
440517
requires:
441518
- hold_release_d11
519+
filters:
520+
branches:
521+
only: dream11

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('eslint').ESLint.ConfigData} */
22
module.exports = {
33
extends: '@react-native-community',
4-
plugins: ['prettier', 'jest'],
4+
plugins: ['prettier', 'jest', 'jsdoc'],
55
overrides: [
66
{
77
// Jest Overrides
@@ -12,6 +12,13 @@ module.exports = {
1212
'jest/globals': true,
1313
},
1414
},
15+
{
16+
// Node Scripts Overrides
17+
files: ['scripts/**'],
18+
env: {
19+
node: true,
20+
},
21+
},
1522
{
1623
// Detox Overrides
1724
files: ['examples/default/e2e/**.js'],
@@ -27,6 +34,7 @@ module.exports = {
2734
},
2835
],
2936
rules: {
37+
'jsdoc/no-undefined-types': 'warn',
3038
'prettier/prettier': 'error',
3139
'prefer-const': 'error',
3240
},

CHANGELOG.md

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

3+
## [13.0.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.9.0...dev) (April 19, 2024)
4+
5+
### Added
6+
7+
- Add `Instabug.willRedirectToStore` API for use in custom app rating prompts ([#1186](https://github.com/Instabug/Instabug-React-Native/pull/1186)).
8+
- Add support for App Flows APIs `APM.startFlow`, `APM.setFlowAttribute` and `APM.endFlow` ([#1138](https://github.com/Instabug/Instabug-React-Native/pull/1138)).
9+
10+
### Changed
11+
12+
- Bump Instabug iOS SDK to v13.0.0 ([#1189](https://github.com/Instabug/Instabug-React-Native/pull/1189)). [See release notes](https://github.com/instabug/instabug-ios/releases/tag/13.0.0).
13+
- Bump Instabug Android SDK to v13.0.0 ([#1188](https://github.com/Instabug/Instabug-React-Native/pull/1188)). [See release notes](https://github.com/Instabug/android/releases/tag/v13.0.0).
14+
15+
## [12.9.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.8.0...dev)(April 2, 2024)
16+
17+
### Added
18+
19+
- Adds symbol files upload script ([#1137](https://github.com/Instabug/Instabug-React-Native/pull/1137))
20+
- Support enabling NDK crash capturing on Android ([#1132](https://github.com/Instabug/Instabug-React-Native/pull/1132)).
21+
22+
### Deprecated
23+
24+
- Deprecate Execution Traces APIs `APM.startExecutionTrace`, `Trace.end` and `Trace.setAttribute` in favor of the new App Flows APIs ([#1138](https://github.com/Instabug/Instabug-React-Native/pull/1138)).
25+
26+
### Changed
27+
28+
- 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).
29+
- 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).
30+
31+
### Fixed
32+
33+
- 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
34+
](https://github.com/Instabug/Instabug-React-Native/issues/1161).
35+
36+
## [12.8.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.1...v12.8.0) (February 25, 2024)
37+
38+
### Added
39+
40+
- Add `SessionReplay.getSessionReplayLink` API which retrieves the current session's replay link ([#1142](https://github.com/Instabug/Instabug-React-Native/pull/1142)).
41+
- Support setting the Code Push version after SDK initialization ([#1143](https://github.com/Instabug/Instabug-React-Native/pull/1143)).
42+
43+
### Changed
44+
45+
- Bump Instabug Android SDK to v12.8.0 ([#1149](https://github.com/Instabug/Instabug-React-Native/pull/1149)). [See release notes](https://github.com/Instabug/android/releases/tag/v12.8.0).
46+
347
## [12.7.1](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.0...v12.7.1) (February 15, 2024)
448

549
### Changed

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.7.1"
60+
versionName "13.0.0"
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: '12.7.1'
2+
version: '13.0.1'
33
]
44

55
dependencies {

0 commit comments

Comments
 (0)