Skip to content

chore: Release 14.3.0 #1380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 145 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
6d0460f
chore: add the feature flag logic
AndrewAminInstabug Sep 26, 2024
1a542cb
Merge remote-tracking branch 'origin/dev' into feat/network-spans
AndrewAminInstabug Sep 26, 2024
16140ef
chore: add different request types to APM -> NetworkScreen.tsx
AndrewAminInstabug Sep 29, 2024
11f6e54
chore: initial commit
AndrewAminInstabug Sep 29, 2024
82df001
chore: add request filtering & obfuscation react-native logic
AndrewAminInstabug Oct 1, 2024
d679ad6
chore: add NetworkLogger module
AndrewAminInstabug Oct 1, 2024
6021e0a
chore: add iOS feature flag changes
AndrewAminInstabug Oct 3, 2024
4802864
Merge remote-tracking branch 'origin/dev' into feat/network-spans-fea…
AndrewAminInstabug Oct 3, 2024
56410eb
chore: add iOS obfuscation & request filtering
AndrewAminInstabug Oct 6, 2024
8efad38
Support Obfuscation & Filtering
EyadHeikal Oct 6, 2024
393f451
chore: add iOS obfuscation & request filtering RN handlers
AndrewAminInstabug Oct 8, 2024
f0cf691
chore: fix wrong id passed from iOS to RN
AndrewAminInstabug Oct 8, 2024
efae20d
chore: fix request filtering handler in iOS
AndrewAminInstabug Oct 9, 2024
35e9fc9
chore: add iOS unit tests
AndrewAminInstabug Oct 10, 2024
dd97124
chore: fix native android feature flags
AndrewAminInstabug Oct 13, 2024
68a9f4e
Merge remote-tracking branch 'origin/feat/network-spans-feature-flags…
AndrewAminInstabug Oct 13, 2024
f248be7
chore: remove APMNetworkEnabled flag from android
AndrewAminInstabug Oct 14, 2024
e0c7f28
chore: fix NetworkLogger.spec.ts failed tests
AndrewAminInstabug Oct 14, 2024
ca93121
chore: add unit tests and extract log messages
AndrewAminInstabug Oct 16, 2024
e4c8a60
feat(example): add features and buttons implementation (#1280)
YoussefFouadd Oct 16, 2024
1271f4d
chore: add iOS new APIs
AndrewAminInstabug Oct 20, 2024
f64108d
Merge remote-tracking branch 'origin/dev' into feat/network-spans-fea…
AndrewAminInstabug Oct 20, 2024
b23e0a9
chore: apply PR comments
AndrewAminInstabug Oct 20, 2024
db34813
chore: apply PR comments
AndrewAminInstabug Oct 20, 2024
69ca4f6
chore: initial commit
AndrewAminInstabug Sep 29, 2024
acaaaf2
Merge remote-tracking branch 'origin/feat/network-spans' into feat/ne…
AndrewAminInstabug Oct 20, 2024
2af4bdd
Merge remote-tracking branch 'origin/feat/network-spans' into feat/ne…
AndrewAminInstabug Oct 20, 2024
867bfc0
Merge remote-tracking branch 'origin/feat/network-spans-feature-flags…
AndrewAminInstabug Oct 21, 2024
19c1c98
chore: refactor Instabug.ts
AndrewAminInstabug Oct 21, 2024
b7299d9
Merge remote-tracking branch 'origin/feat/network-spans-feature-flags…
AndrewAminInstabug Oct 23, 2024
e7b9551
chore: fix native iOS automatic capturing
AndrewAminInstabug Oct 27, 2024
b8ab1c4
chore: update native iOS snapshot and add the new network logging APIs.
AndrewAminInstabug Oct 27, 2024
a9d0cec
Merge remote-tracking branch 'origin/feat/network-spans-feature-flags…
AndrewAminInstabug Oct 28, 2024
3cb92cc
chore: add network obfuscation and filtering unit tests
AndrewAminInstabug Oct 29, 2024
5b94fef
chore: fix network obfuscation group testing
AndrewAminInstabug Oct 29, 2024
ee4e2d5
chore: add the Android implementation for network obfuscation and fil…
AndrewAminInstabug Oct 29, 2024
fb1b226
chore: upgrade dependencies
a7medev Oct 30, 2024
6cc4edf
Merge branch 'dev' into chore/upgrade-agp
a7medev Oct 30, 2024
4548a06
refactor(example): upgrade to react native 0.75.4
a7medev Oct 30, 2024
0a8d8b9
chore: integrate android sdk v14 snapshot
a7medev Oct 30, 2024
b946f8b
ci: install cocoapods 1.14
a7medev Oct 30, 2024
662ca6f
ci: upgrade xcode to 15.4
a7medev Oct 30, 2024
7ec61e3
chore: remove .xcode.env.local
a7medev Oct 30, 2024
fea72cb
ci: install cocoapods into usr/local/bin
a7medev Oct 30, 2024
383bfbe
refactor: Android implementation and unit tests of obfuscation
AndrewAminInstabug Oct 30, 2024
e66c67a
Merge remote-tracking branch 'origin/refactor/upgrade-example-app' in…
AndrewAminInstabug Oct 30, 2024
de65770
chore: pull the android upgrade changes, update the network log messa…
AndrewAminInstabug Oct 31, 2024
28dace8
Merge remote-tracking branch 'origin/feat/network-spans-feature-flags…
AndrewAminInstabug Oct 31, 2024
c47e337
ci: fix empty jacoco report issue
a7medev Nov 3, 2024
f4b3282
fix: `registerNetworkLogsListener` signature for android
AndrewAminInstabug Nov 3, 2024
bda9db5
Merge remote-tracking branch 'origin/refactor/upgrade-example-app' in…
AndrewAminInstabug Nov 3, 2024
e4ab074
Merge pull request #1298 from Instabug/feat/network-spans-feature-flags
AndrewAminInstabug Nov 3, 2024
7b7828e
Merge remote-tracking branch 'origin/feat/network-spans' into feat/ne…
AndrewAminInstabug Nov 3, 2024
1dc56b5
fix: replace thrown errors with logs (#1220)
ahmedAlaaInstabug Nov 6, 2024
1468851
refactor(example): upgrade to react native 0.75.4 (#1302)
a7medev Nov 10, 2024
469caee
Release: v14.0.0 (#1312)
ahmedAlaaInstabug Nov 11, 2024
f966fce
feat: add session sync callback (#1292)
kholood-ea Nov 13, 2024
8011a0e
master-on-dev (#1316)
ahmedAlaaInstabug Nov 13, 2024
01225c5
Merge pull request #1317 from Instabug/master
ahmedAlaaInstabug Nov 13, 2024
e7695f8
chore: update release date (#1320)
ahmedAlaaInstabug Nov 19, 2024
87522e9
feat: add w3c traceparent header injection (#1288)
a7medev Nov 27, 2024
c22cb2a
add: `setOnFeaturesUpdatedListener` android listener and refactor ins…
AndrewAminInstabug Dec 1, 2024
a099eff
add: `setOnFeaturesUpdatedListener` android listener and refactor ins…
AndrewAminInstabug Dec 8, 2024
6dd503d
apply: PR comments
AndrewAminInstabug Dec 12, 2024
bb0df23
apply: PR comments
AndrewAminInstabug Dec 15, 2024
5f42520
Merge pull request #1306 from Instabug/feat/network-spans-filtering
AndrewAminInstabug Dec 15, 2024
4fe4d1a
upgrade: native iOS snapshot to 14.0.0
AndrewAminInstabug Dec 18, 2024
ab4c700
Adding buttons to the sample app (#1311)
YoussefFouadd Dec 22, 2024
067ccbb
feat(example): add webviews to the sample app (#1310)
YoussefFouadd Dec 22, 2024
d9f10d6
feat: exclude DEV server from network logs (#1307)
ahmedAlaaInstabug Dec 22, 2024
2f95f0a
Release:14.1.0 (#1335)
ahmedAlaaInstabug Dec 22, 2024
52e5e0e
update: native android & iOS snapshots,
AndrewAminInstabug Dec 23, 2024
e5eddc8
fix: iOS test
AndrewAminInstabug Dec 23, 2024
e6d02fb
Merge branch 'master' into release/v14.1.0
ahmedAlaaInstabug Dec 25, 2024
f670b0f
release: v14.1.0
ahmedAlaaInstabug Dec 25, 2024
c846680
Merge pull request #1337 from Instabug/release/v14.1.0
ahmedAlaaInstabug Dec 26, 2024
ca7ec28
release: v14.1.0
ahmedAlaaInstabug Jan 2, 2025
b954993
release: v14.1.0
ahmedAlaaInstabug Jan 2, 2025
0502d85
Merge pull request #1339 from Instabug/release/v14.1.0
ahmedAlaaInstabug Jan 2, 2025
f61881c
fix: Podfile.lock version
AndrewAminInstabug Jan 9, 2025
5de5fc4
fix: Podfile.lock version
AndrewAminInstabug Jan 9, 2025
46d0746
add: unit tests to InstabugUtils.spec.ts
AndrewAminInstabug Jan 12, 2025
a2818b0
add: unit tests to InstabugUtils.spec.ts,
AndrewAminInstabug Jan 13, 2025
0c06cc0
Merge pull request #1334 from Instabug/feat/network-spans-filtering
AndrewAminInstabug Jan 19, 2025
173097e
Merge remote-tracking branch 'origin/dev' into feat/dev-into-network-…
AndrewAminInstabug Feb 11, 2025
150477a
rebase: network-spans branch with dev branch
AndrewAminInstabug Feb 12, 2025
a3cd248
fix: web-view screen crash in sample app
AndrewAminInstabug Feb 17, 2025
252126e
chore: enhance inline code documentation for APM module.
AndrewAminInstabug Feb 17, 2025
8898d6a
fix: CI Podfile.lock conflict
AndrewAminInstabug Feb 19, 2025
5fe801d
chore: apply pr review comments
AndrewAminInstabug Feb 20, 2025
215eddf
chore: apply pr review comments
AndrewAminInstabug Feb 20, 2025
f194e79
Merge pull request #1348 from Instabug/fix/web-view-screen-crash
AndrewAminInstabug Feb 20, 2025
16050df
Merge pull request #1349 from Instabug/chore/enhance-apm-code-docs
AndrewAminInstabug Feb 20, 2025
6f64b0f
chore: add ComplexViews to APM screen
AndrewAminInstabug Feb 25, 2025
4834b3b
chore: fix APM screen layout on android platform
AndrewAminInstabug Feb 26, 2025
a9863bb
Merge pull request #1351 from Instabug/chore/enhance-apm-screen-sampl…
AndrewAminInstabug Mar 2, 2025
dc89917
Merge remote-tracking branch 'origin/dev' into feat/dev-into-network-…
AndrewAminInstabug Mar 10, 2025
43e76e8
chore: update CHANGELOG.md and Podfile.lock
AndrewAminInstabug Mar 11, 2025
8fba8a5
chore: apply pr comments
AndrewAminInstabug Mar 18, 2025
531979c
chore(ios): bump sdk to v14.3.0
AyaMahmoud148 Mar 23, 2025
f0786fa
chore: add change log
AyaMahmoud148 Mar 23, 2025
baae14e
fix: change log
AyaMahmoud148 Mar 23, 2025
0523b05
Merge pull request #1367 from Instabug/chore/bump-ios-14.3.0
AyaMahmoud148 Mar 25, 2025
ead57d5
feat: enable auto masking screenshots in RN
AyaMahmoud148 Mar 3, 2025
5db91cf
fix: add change log
AyaMahmoud148 Mar 4, 2025
0dfe101
fix: add unreleased in changelog
AyaMahmoud148 Mar 5, 2025
406a025
fix: linting
AyaMahmoud148 Mar 5, 2025
48e11f8
fix: linting
AyaMahmoud148 Mar 5, 2025
005c2bc
fix: update pod lock
AyaMahmoud148 Mar 5, 2025
0ac631b
run automask in main thread
ahmedAlaaInstabug Mar 9, 2025
8583213
fix: linting
AyaMahmoud148 Mar 5, 2025
441a97e
fix: linting
AyaMahmoud148 Mar 5, 2025
c64d9dd
fix: update pod lock
AyaMahmoud148 Mar 5, 2025
f4503f6
chore(android): bump sdk to v14.3.0
AyaMahmoud148 Apr 6, 2025
c116eae
Merge pull request #1353 from Instabug/feat/Auto-masking-screenshots-…
AyaMahmoud148 Apr 7, 2025
461eee5
Merge pull request #1370 from Instabug/chore/bump-android-sdk-to-vers…
AyaMahmoud148 Apr 7, 2025
6a2d4c4
Merge remote-tracking branch 'origin/dev' into feat/dev-into-network-…
AndrewAminInstabug Apr 7, 2025
faf8688
feat: stop capturing network body
AyaMahmoud148 Mar 12, 2025
a754cf0
feat: enhance android api
AyaMahmoud148 Mar 12, 2025
662b5bd
fix: add change log
AyaMahmoud148 Mar 12, 2025
ddf4bab
fix: linting
AyaMahmoud148 Mar 12, 2025
e82cd39
fix: remove unused files
AyaMahmoud148 Apr 7, 2025
8b8efa1
fix: pod file
AyaMahmoud148 Apr 7, 2025
c211121
cocoa pods version
AyaMahmoud148 Apr 7, 2025
482f030
fix: tests
AyaMahmoud148 Apr 7, 2025
17e29f8
fix: android tests
AyaMahmoud148 Apr 7, 2025
2bd1043
Update CHANGELOG.md
AndrewAminInstabug Apr 7, 2025
eaec607
Merge pull request #1362 from Instabug/feat/stop-capturing-network-body
AyaMahmoud148 Apr 7, 2025
20257bd
fix: crash on non fatal
AyaMahmoud148 Apr 7, 2025
8c40857
fix: fetal crash
AyaMahmoud148 Apr 7, 2025
91c636a
Merge pull request #1371 from Instabug/fix/non-Fatal-crash
AyaMahmoud148 Apr 7, 2025
da692b9
chore: use iOS sanity podspec
AyaMahmoud148 Apr 9, 2025
29db04b
Merge pull request #1372 from Instabug/chore/use-ios-sanity-podspec
AyaMahmoud148 Apr 9, 2025
7bbd601
Merge remote-tracking branch 'origin/dev' into feat/dev-into-network-…
AndrewAminInstabug Apr 9, 2025
a57d0b2
chore: resolve dev branch conflicts.
AndrewAminInstabug Apr 9, 2025
624fed3
Merge pull request #1360 from Instabug/feat/dev-into-network-spans
AyaMahmoud148 Apr 9, 2025
dc3cc97
chore: [revert] network spans and screenshot auto masking (#1374)
AyaMahmoud148 Apr 13, 2025
14e1fb9
chore: (Android) bump sdk to v14.3.0
AyaMahmoud148 Apr 14, 2025
f9ac9ce
fix: reformate change log
AyaMahmoud148 Apr 14, 2025
802e6da
fix: lint
AyaMahmoud148 Apr 14, 2025
2aa37ec
Update CHANGELOG.md
AyaMahmoud148 Apr 14, 2025
0559d10
Merge pull request #1375 from Instabug/chore/android-bump-sdk-to-vers…
AyaMahmoud148 Apr 14, 2025
cb15ca2
release: 14.3.0
AyaMahmoud148 Apr 14, 2025
196b481
Merge pull request #1376 from Instabug/release/14.3.0
AyaMahmoud148 Apr 14, 2025
4266b4e
Merge branch 'dev' into dev-to-master
AyaMahmoud148 Apr 15, 2025
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [14.3.0](https://github.com/Instabug/Instabug-React-Native/compare/v14.1.0...14.3.0)

### Added

- Add support for enable/disable capturing network body. ([#1362](https://github.com/Instabug/Instabug-React-Native/pull/1362))

### Changed

- Bump Instabug iOS SDK to v14.3.0 ([#1367](https://github.com/Instabug/Instabug-React-Native/pull/1367)). [See release notes](https://github.com/Instabug/Instabug-iOS/releases/tag/14.3.0).

- Bump Instabug Android SDK to v14.3.0 ([#1375](https://github.com/Instabug/Instabug-React-Native/pull/1375)). [See release notes](https://github.com/Instabug/Instabug-Android/releases/tag/v14.3.0).

## [14.1.0](https://github.com/Instabug/Instabug-React-Native/compare/v14.0.0...v14.1.0) (January 2, 2025)

### Added
Expand Down
1 change: 1 addition & 0 deletions RNInstabug.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Pod::Spec.new do |s|

s.dependency 'React-Core'
use_instabug!(s)

end
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 "14.1.0"
versionName "14.3.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: '14.1.0'
version: '14.3.0'
]

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String getName() {
}

/**
* Sets the printed logs priority. Filter to one of the following levels.
* Pauses the current thread for 3 seconds.
*/
@ReactMethod
public void ibgSleep() {
Expand All @@ -57,6 +57,7 @@ public void run() {

/**
* Enables or disables APM.
*
* @param isEnabled boolean indicating enabled or disabled.
*/
@ReactMethod
Expand All @@ -75,6 +76,7 @@ public void run() {

/**
* Enables or disables app launch tracking.
*
* @param isEnabled boolean indicating enabled or disabled.
*/
@ReactMethod
Expand All @@ -92,7 +94,7 @@ public void run() {
}

/**
* Ends app launch
* This method is used to signal the end of the app launch process.
*/
@ReactMethod
public void endAppLaunch() {
Expand All @@ -110,6 +112,7 @@ public void run() {

/**
* Enables or disables auto UI tracing
*
* @param isEnabled boolean indicating enabled or disabled.
*/
@ReactMethod
Expand Down Expand Up @@ -281,6 +284,7 @@ public void run() {

/**
* Starts a UI trace
*
* @param name string name of the UI trace.
*/
@ReactMethod
Expand All @@ -298,7 +302,7 @@ public void run() {
}

/**
* Ends the current running UI trace
* This method is used to terminate the currently active UI trace.
*/
@ReactMethod
public void endUITrace() {
Expand All @@ -314,6 +318,73 @@ public void run() {
});
}

/**
* The `networkLogAndroid` function logs network-related information using APMNetworkLogger in a React
* Native module.
*
* @param requestStartTime The `requestStartTime` parameter in the `networkLogAndroid` method
* represents the timestamp when the network request started. It is of type `double` and is passed as
* a parameter to log network-related information.
* @param requestDuration The `requestDuration` parameter in the `networkLogAndroid` method represents
* the duration of the network request in milliseconds. It indicates the time taken for the request to
* complete from the moment it was initiated until the response was received. This parameter helps in
* measuring the performance of network requests and identifying any potential
* @param requestHeaders requestHeaders is a string parameter that contains the headers of the network
* request. It typically includes information such as the content type, authorization token, and any
* other headers that were sent with the request.
* @param requestBody The `requestBody` parameter in the `networkLogAndroid` method represents the
* body of the HTTP request being logged. It contains the data that is sent as part of the request to
* the server. This could include form data, JSON payload, XML data, or any other content that is
* being transmitted
* @param requestBodySize The `requestBodySize` parameter in the `networkLogAndroid` method represents
* the size of the request body in bytes. It is a double value that indicates the size of the request
* body being sent in the network request. This parameter is used to log information related to the
* network request, including details
* @param requestMethod The `requestMethod` parameter in the `networkLogAndroid` method represents the
* HTTP method used in the network request, such as GET, POST, PUT, DELETE, etc. It indicates the type
* of operation that the client is requesting from the server.
* @param requestUrl The `requestUrl` parameter in the `networkLogAndroid` method represents the URL
* of the network request being logged. It typically contains the address of the server to which the
* request is being made, along with any additional path or query parameters required for the request.
* This URL is essential for identifying the
* @param requestContentType The `requestContentType` parameter in the `networkLogAndroid` method
* represents the content type of the request being made. This could be values like
* "application/json", "application/xml", "text/plain", etc., indicating the format of the data being
* sent in the request body. It helps in specifying
* @param responseHeaders The `responseHeaders` parameter in the `networkLogAndroid` method represents
* the headers of the response received from a network request. These headers typically include
* information such as content type, content length, server information, and any other metadata
* related to the response. The `responseHeaders` parameter is expected to
* @param responseBody The `responseBody` parameter in the `networkLogAndroid` method represents the
* body of the response received from a network request. It contains the data or content sent back by
* the server in response to the request made by the client. This could be in various formats such as
* JSON, XML, HTML
* @param responseBodySize The `responseBodySize` parameter in the `networkLogAndroid` method
* represents the size of the response body in bytes. It is a double value that indicates the size of
* the response body received from the network request. This parameter is used to log information
* related to the network request and response, including
* @param statusCode The `statusCode` parameter in the `networkLogAndroid` method represents the HTTP
* status code of the network request/response. It indicates the status of the HTTP response, such as
* success (200), redirection (3xx), client errors (4xx), or server errors (5xx). This parameter is
* @param responseContentType The `responseContentType` parameter in the `networkLogAndroid` method
* represents the content type of the response received from the network request. It indicates the
* format of the data in the response, such as JSON, XML, HTML, etc. This information is useful for
* understanding how to parse and handle the
* @param errorDomain The `errorDomain` parameter in the `networkLogAndroid` method is used to specify
* the domain of an error, if any occurred during the network request. If there was no error, this
* parameter will be `null`.
* @param w3cAttributes The `w3cAttributes` parameter in the `networkLogAndroid` method is a
* ReadableMap object that contains additional attributes related to W3C external trace. It may
* include the following key-value pairs:
* @param gqlQueryName The `gqlQueryName` parameter in the `networkLogAndroid` method represents the
* name of the GraphQL query being executed. It is a nullable parameter, meaning it can be null if no
* GraphQL query name is provided. This parameter is used to log information related to GraphQL
* queries in the network logging
* @param serverErrorMessage The `serverErrorMessage` parameter in the `networkLogAndroid` method is
* used to pass any error message received from the server during network communication. This message
* can provide additional details about any errors that occurred on the server side, helping in
* debugging and troubleshooting network-related issues.
*/
@ReactMethod
private void networkLogAndroid(final double requestStartTime,
final double requestDuration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1274,4 +1274,22 @@ public Map<String, Object> getConstants() {

return constants;
}

/**
* Enables or disables capturing network body.
* @param isEnabled A boolean to enable/disable capturing network body.
*/
@ReactMethod
public void setNetworkLogBodyEnabled(final boolean isEnabled) {
MainThreadHandler.runOnMainThread(new Runnable() {
@Override
public void run() {
try {
Instabug.setNetworkLogBodyEnabled(isEnabled);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}
9 changes: 9 additions & 0 deletions examples/default/ios/InstabugTests/InstabugSampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -609,4 +609,13 @@ - (void) testIsW3CaughtHeaderEnabled {
}


- (void)testSetNetworkLogBodyEnabled {
id mock = OCMClassMock([IBGNetworkLogger class]);
BOOL isEnabled = YES;

OCMStub([mock setLogBodyEnabled:isEnabled]);
[self.instabugBridge setNetworkLogBodyEnabled:isEnabled];
OCMVerify([mock setLogBodyEnabled:isEnabled]);
}

@end
14 changes: 7 additions & 7 deletions examples/default/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PODS:
- hermes-engine (0.75.4):
- hermes-engine/Pre-built (= 0.75.4)
- hermes-engine/Pre-built (0.75.4)
- Instabug (14.1.0)
- Instabug (14.3.0)
- instabug-reactnative-ndk (0.1.0):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1319,7 +1319,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- react-native-webview (13.12.3):
- react-native-webview (13.13.2):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1623,8 +1623,8 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNInstabug (14.1.0):
- Instabug (= 14.1.0)
- RNInstabug (14.3.0):
- Instabug (= 14.3.0)
- React-Core
- RNReanimated (3.16.1):
- DoubleConversion
Expand Down Expand Up @@ -2017,7 +2017,7 @@ SPEC CHECKSUMS:
Google-Maps-iOS-Utils: f77eab4c4326d7e6a277f8e23a0232402731913a
GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
Instabug: 8cbca8974168c815658133e2813f5ac3a36f8e20
Instabug: 97a4e694731f46bbc02dbe49ab29cc552c5e2f41
instabug-reactnative-ndk: d765ac289d56e8896398d02760d9abf2562fc641
OCMock: 589f2c84dacb1f5aaf6e4cec1f292551fe748e74
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
Expand Down Expand Up @@ -2055,7 +2055,7 @@ SPEC CHECKSUMS:
react-native-maps: 72a8a903f8a1b53e2c777ba79102078ab502e0bf
react-native-safe-area-context: 142fade490cbebbe428640b8cbdb09daf17e8191
react-native-slider: 4a0f3386a38fc3d2d955efc515aef7096f7d1ee4
react-native-webview: 926d2665cf3196e39c4449a72d136d0a53b9df8a
react-native-webview: c0b91a4598bd54e9fbc70353aebf1e9bab2e5bb9
React-nativeconfig: 8c83d992b9cc7d75b5abe262069eaeea4349f794
React-NativeModulesApple: 9f7920224a3b0c7d04d77990067ded14cee3c614
React-perflogger: 59e1a3182dca2cee7b9f1f7aab204018d46d1914
Expand Down Expand Up @@ -2084,7 +2084,7 @@ SPEC CHECKSUMS:
ReactCommon: 6a952e50c2a4b694731d7682aaa6c79bc156e4ad
RNCClipboard: 2821ac938ef46f736a8de0c8814845dde2dcbdfb
RNGestureHandler: 511250b190a284388f9dd0d2e56c1df76f14cfb8
RNInstabug: 96e629f47c0af2e9455fbcf800d12049f980d873
RNInstabug: c55b6c697b39d3cbe51b1ab9b729f0b55ed619f1
RNReanimated: f42a5044d121d68e91680caacb0293f4274228eb
RNScreens: c7ceced6a8384cb9be5e7a5e88e9e714401fd958
RNSVG: 8b1a777d54096b8c2a0fd38fc9d5a454332bbb4d
Expand Down
2 changes: 1 addition & 1 deletion examples/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-native-screens": "^3.35.0",
"react-native-svg": "^15.8.0",
"react-native-vector-icons": "^10.2.0",
"react-native-webview": "^13.12.3",
"react-native-webview": "^13.13.2",
"react-query": "^3.39.3"
},
"devDependencies": {
Expand Down
33 changes: 33 additions & 0 deletions examples/default/src/components/CustomGap.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import { type DimensionValue, View } from 'react-native';

// Define the component type with static properties
interface CustomGapComponent extends React.FC<{ height?: DimensionValue; width?: DimensionValue }> {
small: JSX.Element;
smallV: JSX.Element;
smallH: JSX.Element;
large: JSX.Element;
largeV: JSX.Element;
largeH: JSX.Element;
}

const defaultDimensionValue = 16;

// Define the CustomGap component
const CustomGap: CustomGapComponent = ({ height, width }) => {
return (
<View
style={{ width: width ?? defaultDimensionValue, height: height ?? defaultDimensionValue }}
/>
);
};

// Assign static properties for predefined gaps
CustomGap.small = <CustomGap height={8} width={8} />;
CustomGap.large = <CustomGap height={32} width={32} />;
CustomGap.smallV = <CustomGap height={8} />;
CustomGap.largeV = <CustomGap height={32} />;
CustomGap.smallH = <CustomGap width={8} />;
CustomGap.largeH = <CustomGap width={32} />;

export default CustomGap;
17 changes: 14 additions & 3 deletions examples/default/src/screens/apm/APMScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import type { HomeStackParamList } from '../../navigation/HomeStack';
import React, { useState } from 'react';
import { ListTile } from '../../components/ListTile';
import { Screen } from '../../components/Screen';
import { Text, Switch } from 'react-native';
import { StyleSheet, Switch, Text, View } from 'react-native';
import { APM } from 'instabug-reactnative';
import { showNotification } from '../../utils/showNotification';
import CustomGap from '../../components/CustomGap';

export const APMScreen: React.FC<NativeStackScreenProps<HomeStackParamList, 'APM'>> = ({
navigation,
Expand All @@ -17,16 +18,26 @@ export const APMScreen: React.FC<NativeStackScreenProps<HomeStackParamList, 'APM
APM.setEnabled(value);
showNotification('APM status', 'APM enabled set to ' + value);
};
const styles = StyleSheet.create({
switch: {
flexDirection: 'row',
justifyContent: 'space-between',
},
});

return (
<Screen>
<Text>Enable APM:</Text>
<Switch onValueChange={toggleSwitch} value={isEnabled} />
<View style={styles.switch}>
<Text>Enable APM:</Text>
<Switch onValueChange={toggleSwitch} value={isEnabled} />
</View>
{CustomGap.smallV}
<ListTile title="End App launch" onPress={() => APM.endAppLaunch()} />
<ListTile title="Network Screen" onPress={() => navigation.navigate('NetworkTraces')} />
<ListTile title="Traces" onPress={() => navigation.navigate('ExecutionTraces')} />
<ListTile title="Flows" onPress={() => navigation.navigate('AppFlows')} />
<ListTile title="WebViews" onPress={() => navigation.navigate('WebViews')} />
<ListTile title="Complex Views" onPress={() => navigation.navigate('ComplexViews')} />
</Screen>
);
};
8 changes: 4 additions & 4 deletions examples/default/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6329,10 +6329,10 @@ react-native-vector-icons@^10.2.0:
prop-types "^15.7.2"
yargs "^16.1.1"

react-native-webview@^13.12.3:
version "13.12.3"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.12.3.tgz#3aa9d2fc982ba2681e56d3e96e22b63a0d929270"
integrity sha512-Y1I5YyDYyE7NC96RHLhd2nxh7ymLYOYLTefgx5ixxw2OToQK0ow3OJ+o77QcI1Tuevj5PCxwqC/14ceS/7yPJQ==
react-native-webview@^13.13.2:
version "13.13.2"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.13.2.tgz#6d72fd8492f11accbcf3be4d1386fa961e424357"
integrity sha512-zACPDTF0WnaEnKZ9mA/r/UpcOpV2gQM06AAIrOOexnO8UJvXL8Pjso0b/wTqKFxUZZnmjKuwd8gHVUosVOdVrw==
dependencies:
escape-string-regexp "^4.0.0"
invariant "2.2.4"
Expand Down
Loading