Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3ab63ab
feat: add more crash scenarios to example app (#1131)
ahmedAlaaInstabug Feb 18, 2024
3fae0be
feat: add setNDKCrashesEnabled API (#1132)
ahmedAlaaInstabug Feb 19, 2024
35b64b5
feat:add upload symbol files command (#1137)
ahmedAlaaInstabug Feb 19, 2024
868edea
feat: add runtime code push version API (#1143)
a7medev Feb 22, 2024
e306624
feat: add new NDK crash scenarios to example app (#1139)
ahmedAlaaInstabug Feb 25, 2024
7935891
feat: add get session replay link API (#1142)
ahmedAlaaInstabug Feb 25, 2024
e42ee89
chore(android): bump sdk to v12.8.0 (#1149)
abdelhamid-f-nasser Feb 25, 2024
ea42c3e
release: v12.8.0 (#1150)
abdelhamid-f-nasser Feb 25, 2024
d452631
feat: add runtime code push version API (#1143)
a7medev Feb 22, 2024
91a97d6
feat: add get session replay link API (#1142)
ahmedAlaaInstabug Feb 25, 2024
f8daf28
chore(android): bump sdk to v12.8.0 (#1149)
abdelhamid-f-nasser Feb 25, 2024
b66416e
release: v12.8.0 (#1150)
abdelhamid-f-nasser Feb 25, 2024
da01774
feat(example): add large image list example (#1145)
ahmedAlaaInstabug Feb 27, 2024
4e016b1
feat(example): add google maps screen (#1148)
ahmedAlaaInstabug Feb 28, 2024
ee46cf7
fix(example): fix fatal hangs and ANR crash buttons (#1154)
abdelhamid-f-nasser Feb 28, 2024
41157fc
feat(example): survey with token actions (#1157)
ahmedAlaaInstabug Feb 28, 2024
ff3c0ab
feat(example): customize chat settings (#1156)
ahmedAlaaInstabug Feb 28, 2024
5d3676b
Merge remote-tracking branch 'origin/master' into dev
abdelhamid-f-nasser Feb 29, 2024
3e2790f
feat(example): add back and forth example screen (#1144)
ahmedAlaaInstabug Feb 29, 2024
9af3812
feat(example): add set user identification and attribute (#1153)
ahmedAlaaInstabug Feb 29, 2024
050461d
chore(ios): bump sdk to v12.9.0 (#1169)
ahmedAlaaInstabug Mar 19, 2024
453dcc7
chore(android): bump sdk to v12.9.0 (#1168)
ahmedAlaaInstabug Mar 19, 2024
4183120
ciL add injazat ci
ahmedAlaaInstabug Mar 20, 2024
ebeea7a
fix:lint
ahmedAlaaInstabug Mar 21, 2024
a843712
fix:lint
ahmedAlaaInstabug Mar 21, 2024
0f75a26
fix: Unexpected token (??) on old version
ahmedAlaaInstabug Mar 13, 2024
023a9e3
fix: Unexpected token (??) on old version
ahmedAlaaInstabug Mar 13, 2024
fe051a9
fix: Unexpected token (??) on old version
ahmedAlaaInstabug Mar 13, 2024
61a8969
Update CHANGELOG.md
ahmedAlaaInstabug Mar 18, 2024
d048716
fix: lint issue
ahmedAlaaInstabug Mar 18, 2024
ee7f33d
fix: lint issue
ahmedAlaaInstabug Mar 18, 2024
9006668
Merge branch 'master' into dev
ahmedAlaaInstabug Mar 28, 2024
d58fed4
fix(android) : OOM error in network log (#1162)
ahmedAlaaInstabug Mar 28, 2024
dde3c48
ci: upgrade android orb, node orb and android image (#1176)
andrewdanieldev Mar 31, 2024
430c088
Release: 12.9.0 (#1181)
ahmedAlaaInstabug Apr 2, 2024
70e349c
Merge pull request #1180 from Instabug/dev
mzelzoghbi Apr 14, 2024
b08dc8f
ci: publish sdk to new namespace
ahmedAlaaInstabug Apr 14, 2024
fcea7cd
chore: create a replace script as a replacement for sed
a7medev Apr 16, 2024
019f5b5
refactor: allow replace script to replace in multiple files
a7medev Apr 16, 2024
650f40c
ci: refactor nn and injazat releases to use a common job
a7medev Apr 16, 2024
968df53
fix: change api endpoint in so upload script in enterprise releases
a7medev Apr 18, 2024
fd90bd5
feat: add custom app rating api (#1186)
andrewdanieldev Apr 19, 2024
b4bc7ab
chore(ios): bump SDK to v13.0.0 (#1189)
ahmedAlaaInstabug Apr 19, 2024
057909f
chore(android): bump SDK to v13.0.0 (#1188)
ahmedAlaaInstabug Apr 19, 2024
567f9fc
feat: support app flows APIs (#1138)
abdelhamid-f-nasser Apr 19, 2024
af568fe
release: v13.0.0 (#1190)
ahmedAlaaInstabug Apr 19, 2024
cf134cf
Merge pull request #1187 from Instabug/ci/fix-injazat-release
mzelzoghbi Apr 19, 2024
302f600
Merge branch 'master' into CI/add-new-namespace-publish-pipeline
mzelzoghbi Apr 19, 2024
2dbc174
Merge branch 'master' into dev
ahmedAlaaInstabug Apr 19, 2024
1b83638
Merge pull request #1185 from Instabug/CI/add-new-namespace-publish-p…
mzelzoghbi Apr 19, 2024
a277bb4
Merge branch 'master' into dev
mzelzoghbi Apr 19, 2024
f7fe7b3
Merge pull request #1192 from Instabug/dev
mzelzoghbi Apr 19, 2024
18df8e5
ci: fix d11 pipeline
ahmedAlaaInstabug Apr 29, 2024
6621911
Merge pull request #1197 from Instabug/CI/fix-d11-pipeline
mzelzoghbi May 2, 2024
780b423
Merge branch 'master' into dream11
a7medev May 13, 2024
8dbae3f
chore: bump npm version to v13.0.3
a7medev May 13, 2024
9cac70a
chore(android): bump sdk to v13.0.1
a7medev May 13, 2024
0b09f76
ci: lock android machine to tag 2024.01.1 (#1204)
a7medev May 13, 2024
b7ae781
ci: restrict enterprise release jobs branches (#1205)
a7medev May 13, 2024
ea9df2e
Merge branch 'master' into chore/sync-dream11-with-master
a7medev May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 115 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2.1

orbs:
android: circleci/android@2.0
android: circleci/android@2.5.0
advanced-checkout: vsco/advanced-checkout@1.1.0
node: circleci/node@5.1.0
node: circleci/node@5.2.0

references:
release_dependencies: &release_dependencies
Expand All @@ -26,7 +26,7 @@ commands:
steps:
- node/install:
install-yarn: true
node-version: 'v18.17.0'
node-version: 'v20.11.1'
- node/install-packages:
pkg-manager: yarn
# Network concurrency is set to 1 for installation from GitHub to work.
Expand All @@ -50,16 +50,20 @@ commands:
key: v1-pods-{{ checksum "<< parameters.working_directory >>/Podfile.lock" }}
paths:
- << parameters.working_directory >>/Pods
search_and_replace:
find_and_replace:
parameters:
file:
files:
description: A space-separated list of files to search and replace in.
type: string
replace-pattern:
search:
type: string
replace:
type: string
steps:
- run:
name: Search and Replace in << parameters.file >>
command: sed -i '<< parameters.replace-pattern >>' << parameters.file >>
name: Find and Replace in << parameters.files >>
command: node ~/project/scripts/replace.js << parameters.search >> << parameters.replace >> << parameters.files >>

notify_github:
parameters:
data:
Expand Down Expand Up @@ -113,13 +117,13 @@ jobs:
test_android:
executor:
name: android/android-machine
tag: '2022.03.1'
tag: '2024.01.1'
working_directory: ~/project/examples/default
environment:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
- advanced-checkout/shallow-checkout
- node/install-yarn
# - node/install-yarn
- install_node_modules
- android/run-tests:
working-directory: android
Expand Down Expand Up @@ -227,13 +231,13 @@ jobs:
e2e_android:
executor:
name: android/android-machine
tag: 2022.03.1
tag: '2024.01.1'
resource-class: large
environment:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
- advanced-checkout/shallow-checkout
- node/install-yarn
# - node/install-yarn
- install_node_modules
- node/install-packages:
pkg-manager: yarn
Expand All @@ -258,8 +262,14 @@ jobs:
working_directory: examples/default
command: detox test -c android.emu.release

# Automate the enterprise NN sdk changes
release_nn:
release_custom_package:
parameters:
npm_package:
type: string
android_package:
type: string
api_endpoint:
type: string
working_directory: ~/project
executor:
name: node/default
Expand All @@ -269,24 +279,28 @@ jobs:
- run:
name: Remove README.md file
command: rm README.md
- search_and_replace:
file: package.json
replace-pattern: 's/instabug-reactnative/@instabug\/react-native-nn/g'
- search_and_replace:
file: cli/UploadSourcemaps.ts
replace-pattern: 's/api.instabug.com\/api\/sdk/st001009nn.instabug.com\/api\/sdk/g'
- search_and_replace:
file: android/native.gradle
replace-pattern: 's/com\.instabug\.library:instabug:/com.instabug.library-nn:instabug:/g'
- find_and_replace:
files: package.json android/sourcemaps.gradle ios/sourcemaps.sh
search: instabug-reactnative
replace: << parameters.npm_package >>
- find_and_replace:
files: cli/UploadSourcemaps.ts cli/UploadSoFiles.ts
search: api.instabug.com
replace: << parameters.api_endpoint >>
- find_and_replace:
files: android/native.gradle
search: 'com.instabug.library:instabug:'
replace: 'com.instabug.library-<< parameters.android_package >>:instabug:'
- run:
name: Build the SDK
command: yarn build
- run:
name: Authorize with npm
name: Authorize with NPM
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- run:
name: Publish new enterprise version
command: npm publish

# Automate the enterprise D11 sdk changes
release_d11:
working_directory: ~/project
Expand All @@ -298,15 +312,18 @@ jobs:
- run:
name: Remove README.md file
command: rm README.md
- search_and_replace:
file: package.json
replace-pattern: 's/instabug-reactnative/@instabug\/instabug-reactnative-dream11/g'
- search_and_replace:
file: cli/UploadSourcemaps.ts
replace-pattern: 's/api.instabug.com\/api\/sdk/st001012dream11.instabug.com\/api\/sdk/g'
- search_and_replace:
file: android/native.gradle
replace-pattern: 's/com\.instabug\.library:instabug:/com.instabug.library-dream11:instabug:/g'
- find_and_replace:
files: package.json ios/sourcemaps.sh android/sourcemaps.gradle
search: instabug-reactnative
replace: '@instabug/instabug-reactnative-dream11'
- find_and_replace:
files: cli/UploadSourcemaps.ts cli/UploadSoFiles.ts
search: api.instabug.com
replace: st001012dream11.instabug.com
- find_and_replace:
files: android/native.gradle
search: com.instabug.library:instabug
replace: 'com.instabug.library-dream11:instabug'
- run:
name: give exec permssion to d11 script
command: chmod +x ./scripts/dream-11-delete-unused-features.sh
Expand Down Expand Up @@ -345,6 +362,31 @@ jobs:
- run:
working_directory: project
command: Escape react-native publish
publish_new_namespace:
working_directory: ~/project
executor:
name: node/default
steps:
- advanced-checkout/shallow-checkout
- find_and_replace:
files: package.json
search: instabug-reactnative
replace: '@instabug/react-native'
- run: git clone git@github.com:Instabug/Escape.git
- run:
working_directory: Escape
command: swift build -c release
- run:
working_directory: Escape/.build/release
command: cp -f Escape /usr/local/bin/escape
- install_node_modules:
app-dir: project
- run:
working_directory: project
command: yarn build
- run:
working_directory: project
command: Escape react-native publish

generate_snapshot:
executor:
Expand Down Expand Up @@ -415,7 +457,7 @@ workflows:
filters:
branches:
only: master
- hold_release_nn:
- hold_publish_new_namespace:
requires: *release_dependencies
type: approval
filters:
Expand All @@ -424,18 +466,56 @@ workflows:
- hold_release_d11:
requires: *release_dependencies
type: approval
filters:
branches:
only: dream11
- publish:
requires:
- hold_publish
filters:
branches:
only: master
- release_nn:
- publish_new_namespace:
requires:
- hold_publish_new_namespace
filters:
branches:
only: master
- hold_release_nn:
requires: *release_dependencies
type: approval
filters:
branches:
only: master
- release_custom_package:
name: release_nn
requires:
- hold_release_nn
filters:
branches:
only: master
npm_package: '@instabug/react-native-nn'
android_package: nn
api_endpoint: st001009nn.instabug.com
- hold_release_injazat:
requires: *release_dependencies
type: approval
filters:
branches:
only: master
- release_custom_package:
name: release_injazat
requires:
- hold_release_injazat
filters:
branches:
only: master
npm_package: '@instabug/react-native-injazat'
android_package: injazat
api_endpoint: st001013mec1.instabug.com
- release_d11:
requires:
- hold_release_d11
filters:
branches:
only: dream11
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
extends: '@react-native-community',
plugins: ['prettier', 'jest'],
plugins: ['prettier', 'jest', 'jsdoc'],
overrides: [
{
// Jest Overrides
Expand All @@ -12,6 +12,13 @@ module.exports = {
'jest/globals': true,
},
},
{
// Node Scripts Overrides
files: ['scripts/**'],
env: {
node: true,
},
},
{
// Detox Overrides
files: ['examples/default/e2e/**.js'],
Expand All @@ -27,6 +34,7 @@ module.exports = {
},
],
rules: {
'jsdoc/no-undefined-types': 'warn',
'prettier/prettier': 'error',
'prefer-const': 'error',
},
Expand Down
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# Changelog

## [13.0.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.9.0...dev) (April 19, 2024)

### Added

- Add `Instabug.willRedirectToStore` API for use in custom app rating prompts ([#1186](https://github.com/Instabug/Instabug-React-Native/pull/1186)).
- Add support for App Flows APIs `APM.startFlow`, `APM.setFlowAttribute` and `APM.endFlow` ([#1138](https://github.com/Instabug/Instabug-React-Native/pull/1138)).

### Changed

- 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).
- 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).

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

### Added

- Adds symbol files upload script ([#1137](https://github.com/Instabug/Instabug-React-Native/pull/1137))
- Support enabling NDK crash capturing on Android ([#1132](https://github.com/Instabug/Instabug-React-Native/pull/1132)).

### Deprecated

- 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)).

### Changed

- 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).
- 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).

### Fixed

- 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
](https://github.com/Instabug/Instabug-React-Native/issues/1161).

## [12.8.0](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.1...v12.8.0) (February 25, 2024)

### Added

- Add `SessionReplay.getSessionReplayLink` API which retrieves the current session's replay link ([#1142](https://github.com/Instabug/Instabug-React-Native/pull/1142)).
- Support setting the Code Push version after SDK initialization ([#1143](https://github.com/Instabug/Instabug-React-Native/pull/1143)).

### Changed

- 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).

## [12.7.1](https://github.com/Instabug/Instabug-React-Native/compare/v12.7.0...v12.7.1) (February 15, 2024)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ android {
minSdkVersion getExtOrDefault('minSdkVersion').toInteger()
targetSdkVersion getExtOrDefault('targetSdkVersion').toInteger()
versionCode 1
versionName "12.7.1"
versionName "13.0.0"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
Expand Down
2 changes: 1 addition & 1 deletion android/native.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project.ext.instabug = [
version: '12.7.1'
version: '13.0.1'
]

dependencies {
Expand Down
Loading