Skip to content

Commit 1c70cb3

Browse files
ahmedAlaaInstabugYoussefFouadda7medevkholood-eamzelzoghbi
authored
feat/xcode-16-support (#1384)
* Release:v14.1.0 (#1338) * feat(example): add features and buttons implementation (#1280) Jira ID: RL-224 * fix: replace thrown errors with logs (#1220) * fix: Replace Thrown Errors with Logs sss chore(ios): bump sdk to v13.1.0 (#1227) * chore(ios): bump ios sdk v13.1.0 * chore(ios): bump ios sdk v13.1.0 * chore(ios): bump ios sdk v13.1.0 chore(android): bump sdk to v13.1.1 (#1228) * chore(android): bump android sdk v13.1.1 feat: enhance non-fatals support (#1194) * add non fatal api --------- Co-authored-by: Ahmed Mahmoud <[email protected]> fix: read env variable in sourcemap (#1232) * fix sourcemap issue * fix sourcemap issue * fix sourcemap issue * Update typo in CHANGELOG.md --------- Co-authored-by: Andrew Amin <[email protected]> Release:v13.1.1 (#1231) * release/v13.1.1 * Update CHANGELOG.md Update CHANGELOG.md chore(deps): bump @babel/traverse in /examples/default Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.24.6. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> chore(deps): bump follow-redirects from 1.15.2 to 1.15.6 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> fix: cont work after logging fix(android): change parameters used in inner class to final (#1239) chore(android): bump sdk to v13.2.0 (#1245) * chore(android): bump sdk to v13.2.0 * chore: update changelog chore(ios): bump sdk to v13.2.0 (#1246) release: v13.2.0 (#1247) chore: resolve issues in changelog (#1249) feat(example): add apm screen (#1141) fix(android): resolve an OOM in network logs (#1244) fix(android): APM network logging(#1253) * fix(android): add W3C External Trace Attributes placeholder * chore: add CHANGLOG * chore: add CHANGLOG * fix: remove ios sub module feat: export upload utils (#1252) chore(example): remove flipper (#1259) fix(android): pass network start time in microseconds (#1260) * fix: network timestamp in android side * fix: PR comments Co-authored-by: Ahmed Elrefaey <[email protected]> --------- Co-authored-by: Ahmed Elrefaey <[email protected]> feat: support feature flags with variants (#1230) Jira ID: MOB-14684 --------- Co-authored-by: Ahmed Elrefaey <[email protected]> chore(android): bump android sdk to v13.3.0 (#1261) chore(ios): bump sdk to v13.3.0 (#1262) release: v13.3.0 (#1263) chore: remove duplicate app flows entries in changelog (#1264) chore: remove duplicate execution traces deprecation in changelog (#1265) feat: navigation tracking support with expo router (#1270) * feat: add screen tracker on screen change listener and tests * feat (example): add screen change listener chore: enhance expo router tracking support (#1272) ci: generalize enterprise releases (#1275) ci: run tests before enterprise releases (#1271) ci: publish snapshots to npm (#1274) fix: PR comments fix(ios): network log empty response body (#1273) fix: drop non-error objects when reporting errors (#1279) * Fix: omitted non-error objects when logging errors * ci: publish snapshots to npm (#1274) * Fix: omitted non-error objects when logging errors * fix: use warn instead of logs Co-authored-by: Ahmed Elrefaey <[email protected]> * Update CHANGELOG.md Co-authored-by: Ahmed Elrefaey <[email protected]> * fix: merge issues --------- Co-authored-by: Ahmed Elrefaey <[email protected]> feat: capture client error in the network interceptor (#1257) * feat/support-capture-client-error-in-xhr-requests --------- Co-authored-by: Abdelhamid Nasser <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> fix: APM test cases * fix: APM test cases * fix test cases * fix: PR comments * fix: PR comments * fix: PR comments * refactor(example): upgrade to react native 0.75.4 (#1302) * chore: upgrade dependencies * refactor(example): upgrade to react native 0.75.4 * chore: integrate android sdk v14 snapshot * ci: install cocoapods 1.14 * ci: upgrade xcode to 15.4 * chore: remove .xcode.env.local * ci: install cocoapods into usr/local/bin * ci: fix empty jacoco report issue * Release: v14.0.0 (#1312) * Release : v14.0.0 * Release : v14.0.0 * Release : v14.0.0 * feat: add session sync callback (#1292) * feat(android): add session sync callback (#1281) * feat(android): add SRSyncCallback * feat: implement and test syncCallback CP side * feat(example): use SRSyncCallback in example app * ci: fix tests * fix: export session data type * fix(example): use session data type * fix(android):remove data modifier * fix(android): add property modifiers * fix(android): update test case * fix: enhance test case * fix: update session data type * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * fix: assert evaluate sync returns correct value * fix: import type * fix: cleanup * chore: update js doc * fix: typo * fix: follow interface naming convention * fix: update type * fix: refactor syncCallback * fix: default syncing session to true * fix: convert network logs to readable array * chore: add discriptive comment * chore: use readable map for session metadata * fix: setSyncCallback should sync in case of exception * fix: move SessionMetadata to models * fix: update SessionMetadata type import * fix: report bug e2e test --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * feat(ios): add session sync callback (#1282) * feat(android): add SRSyncCallback * feat: implement and test syncCallback CP side * feat(example): use SRSyncCallback in example app * ci: fix tests * fix: export session data type * fix(example): use session data type * fix(android):remove data modifier * fix(android): add property modifiers * fix(android): update test case * fix: enhance test case * fix(ios): update network log signature * chore(ios): integrate dynamic sampling snapshot * fix:update IOS network log unit test * fix: update session metadata * feat(ios): add setSyncCallback * fix: pod.lock file * fix: update session data type * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * fix: enhance test case * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * feat(ios): add launchType metadata to session syncCallback * fix: add unknown type to launch types * fix: assert evaluate sync returns correct value * fix: import type * fix: cleanup * chore: update js doc * fix: typo * fix: follow interface naming convention * fix: update type * fix: refactor syncCallback * fix: default syncing session to true * fix: convert network logs to readable array * chore: add discriptive comment * chore: use readable map for session metadata * fix: setSyncCallback should sync in case of exception * fix: move SessionMetadata to models * fix: update SessionMetadata type import * fix: report bug e2e test * chore (ios): update snapshot * chore (ios): refactor callback * fix: return network logs * chore: update podfile.lock * chore: fix formatting * chore: revert Podfile.lock * chore: fix ci * fix: launchType typo * fix: update class sessionEvaluationCompletion atomicity * chore: enhance syncCallback formatting * chore: update evaluateSync formatting * fix: fix test SetSyncCallback * fix: update getNetworkLogsArray return value --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * Revert "fix(ios): update network log signature" This reverts commit 8d9036e. * chore(ios): update snapshot * fix: ios network logging test after reverting * fix: convert sendEvent arg from writable to readable map * chore(android): update snapshot * fix(android): refactor getSessionMetadataMap to tolerate null values * fix(ios): update fulfill exception wait time in test * fix(android): convert session metadat map to readable map * chore: update docs * fix: remove hot launch type * fix: increase timeout expectation in test case * Revert "fix: increase timeout expectation in test case" This reverts commit be32acd. * feat(example): add features and buttons implementation (#1280) Jira ID: RL-224 * fix(android): add unknown launch type * chore: update documentation * feat: upgrade to 14.0.0 * feat: upgrade to 14.0.0 * feat: upgrade to 14.0.0 * merge dev * merge dev * merge dev * fix: test case --------- Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: YoussefFouadd <[email protected]> Co-authored-by: Ahmed alaa <[email protected]> * master-on-dev (#1316) Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> * chore: update release date (#1320) * feat: add w3c traceparent header injection (#1288) * feat(example): add apm screen (#1141) * fix(android): resolve an OOM in network logs (#1244) * fix(android): APM network logging(#1253) * fix(android): add W3C External Trace Attributes placeholder * chore: add CHANGLOG * chore: add CHANGLOG * fix: remove ios sub module * fix: use correct diff link for v13.0.0, v12.9.0 releases (#1198) * feat(ios): read env vars from .xcode.env in sourcemaps script (#1200) * feat(ios): read env vars from .xcode.env in sourcemaps script * chore: update xcode project * chore: update changelog * chore/update-podfile.lock * feat: add w3c header generator * ci:fix lint * ci:fix ios tests * feat:update header format * feat:update header format test case title * feat:Inject the W3C Header to Network Requests * ci:fix lint * feat:remove tracestate * feat: get feature flags from IOS * ci: fix ios test * fix: modify function naming * fix: update APM test cases * fix: update native test cases naming * feat(ios): w3c logs mapping * fix: export number partial id * fix: modify partial id generator function * fix: modify partial id generator test cases * feat(example): add network request generators buttons * ci: fix lint * ci(example): add missing import * feat(android): map apm network logs * feat(android): add W3C native modules & tests * feat: map w3c android native modules and test * feat: register w3c feature change listener * feat: add feature flags * feat: call updated feature flags * fix: update object assigning * fix: remove comment * fix: modify test cases naming * fix: generated header injection * fix: fix variable neames * fix: update test cases * fix(android): caught header null string * fix: update network log interface * fix (example): remove redundant button * feat (example): add Enable/Disable APM buttons * fix: add w3c Attributes to network logs tests * fix: fix imports * feat(android) : add w3c attributes to APM network Logs * chore: remove flipper * fix: adjust spacing * fix: update test case * feat: migrate-Feature-Flag-APM-method-to-Core * fix: js testcases * fix: js testcases * fix: js testcases * feat: add migrate APM into core in ios section * fix: js testcases * feat: add migrate APM into core in ios section * feat: add migrate APM into core in ios section * fix: Pr comments * fix: PR comment * fix: Pr comments * fix: added changelog item * fix: feature flag listener * fix: feature flag listener * feat: migrate w3c flags to APM core * feat(example): add apm screen (#1141) * fix(android): resolve an OOM in network logs (#1244) * fix(android): APM network logging(#1253) * fix(android): add W3C External Trace Attributes placeholder * chore: add CHANGLOG * chore: add CHANGLOG * fix: remove ios sub module * feat: export upload utils (#1252) * chore(example): remove flipper (#1259) * fix(android): pass network start time in microseconds (#1260) * fix: network timestamp in android side * fix: PR comments Co-authored-by: Ahmed Elrefaey <[email protected]> --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * feat: support feature flags with variants (#1230) Jira ID: MOB-14684 --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * chore(android): bump android sdk to v13.3.0 (#1261) * chore(ios): bump sdk to v13.3.0 (#1262) * release: v13.3.0 (#1263) * chore: remove duplicate app flows entries in changelog (#1264) * chore: remove duplicate execution traces deprecation in changelog (#1265) * feat: navigation tracking support with expo router (#1270) * feat: add screen tracker on screen change listener and tests * feat (example): add screen change listener * chore: enhance expo router tracking support (#1272) * ci: generalize enterprise releases (#1275) * ci: run tests before enterprise releases (#1271) * ci: publish snapshots to npm (#1274) * fix(ios): network log empty response body (#1273) * fix: drop non-error objects when reporting errors (#1279) * Fix: omitted non-error objects when logging errors * ci: publish snapshots to npm (#1274) * Fix: omitted non-error objects when logging errors * fix: use warn instead of logs Co-authored-by: Ahmed Elrefaey <[email protected]> * Update CHANGELOG.md Co-authored-by: Ahmed Elrefaey <[email protected]> * fix: merge issues --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * feat: capture client error in the network interceptor (#1257) * feat/support-capture-client-error-in-xhr-requests --------- Co-authored-by: Abdelhamid Nasser <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> * fix: merge issues * fix: networkLogIOS test case * fix: merge issues * fix: merge issues * fix: merge issues * fix: merge issues * fix: merge issues * fix: remove logs * fix: refactore networkLogAndroid arguments * fix: merge issues * fix: merge issues * fix: move W3cExternalTraceAttributes to models * fix: return expected value type from bridge * fix: refactor method call * fix: refactor method name * fix: return expected value types of w3c flags * chore: refactor constant names * fix: pod file * fix(android): fix w3c caught header * fix (android): reporting network logs upon disabling w3c main feature flag * chore: add changelog --------- Co-authored-by: Abdelhamid Nasser <[email protected]> Co-authored-by: kholood <[email protected]> Co-authored-by: Ahmed alaa <[email protected]> Co-authored-by: ahmed alaa <[email protected]> * Adding buttons to the sample app (#1311) * feat(example): add webviews to the sample app (#1310) * Adding WebViews to sample app * Fixing Pods issue * Fixing CI * feat: exclude DEV server from network logs (#1307) * feat: exclude dev server * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * feat: exclude DEV server url from network logs * merge dev * fix: Adjust logging behavior based on the debugLogLevel. (#1319) * refactor(example): upgrade to react native 0.75.4 (#1302) * chore: upgrade dependencies * refactor(example): upgrade to react native 0.75.4 * chore: integrate android sdk v14 snapshot * ci: install cocoapods 1.14 * ci: upgrade xcode to 15.4 * chore: remove .xcode.env.local * ci: install cocoapods into usr/local/bin * ci: fix empty jacoco report issue * Release: v14.0.0 (#1312) * Release : v14.0.0 * Release : v14.0.0 * Release : v14.0.0 * feat: add session sync callback (#1292) * feat(android): add session sync callback (#1281) * feat(android): add SRSyncCallback * feat: implement and test syncCallback CP side * feat(example): use SRSyncCallback in example app * ci: fix tests * fix: export session data type * fix(example): use session data type * fix(android):remove data modifier * fix(android): add property modifiers * fix(android): update test case * fix: enhance test case * fix: update session data type * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * fix: assert evaluate sync returns correct value * fix: import type * fix: cleanup * chore: update js doc * fix: typo * fix: follow interface naming convention * fix: update type * fix: refactor syncCallback * fix: default syncing session to true * fix: convert network logs to readable array * chore: add discriptive comment * chore: use readable map for session metadata * fix: setSyncCallback should sync in case of exception * fix: move SessionMetadata to models * fix: update SessionMetadata type import * fix: report bug e2e test --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * feat(ios): add session sync callback (#1282) * feat(android): add SRSyncCallback * feat: implement and test syncCallback CP side * feat(example): use SRSyncCallback in example app * ci: fix tests * fix: export session data type * fix(example): use session data type * fix(android):remove data modifier * fix(android): add property modifiers * fix(android): update test case * fix: enhance test case * fix(ios): update network log signature * chore(ios): integrate dynamic sampling snapshot * fix:update IOS network log unit test * fix: update session metadata * feat(ios): add setSyncCallback * fix: pod.lock file * fix: update session data type * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * fix: enhance test case * fix: add more session metadata to setSyncCallback * fix: update syncCallback test * feat: add launchType to session metadata for setSyncCallback * fix: import type * feat(ios): add launchType metadata to session syncCallback * fix: add unknown type to launch types * fix: assert evaluate sync returns correct value * fix: import type * fix: cleanup * chore: update js doc * fix: typo * fix: follow interface naming convention * fix: update type * fix: refactor syncCallback * fix: default syncing session to true * fix: convert network logs to readable array * chore: add discriptive comment * chore: use readable map for session metadata * fix: setSyncCallback should sync in case of exception * fix: move SessionMetadata to models * fix: update SessionMetadata type import * fix: report bug e2e test * chore (ios): update snapshot * chore (ios): refactor callback * fix: return network logs * chore: update podfile.lock * chore: fix formatting * chore: revert Podfile.lock * chore: fix ci * fix: launchType typo * fix: update class sessionEvaluationCompletion atomicity * chore: enhance syncCallback formatting * chore: update evaluateSync formatting * fix: fix test SetSyncCallback * fix: update getNetworkLogsArray return value --------- Co-authored-by: Ahmed Elrefaey <[email protected]> * Revert "fix(ios): update network log signature" This reverts commit 8d9036e. * chore(ios): update snapshot * fix: ios network logging test after reverting * fix: convert sendEvent arg from writable to readable map * chore(android): update snapshot * fix(android): refactor getSessionMetadataMap to tolerate null values * fix(ios): update fulfill exception wait time in test * fix(android): convert session metadat map to readable map * chore: update docs * fix: remove hot launch type * fix: increase timeout expectation in test case * Revert "fix: increase timeout expectation in test case" This reverts commit be32acd. * feat(example): add features and buttons implementation (#1280) Jira ID: RL-224 * fix(android): add unknown launch type * chore: update documentation * feat: upgrade to 14.0.0 * feat: upgrade to 14.0.0 * feat: upgrade to 14.0.0 * merge dev * merge dev * merge dev * fix: test case --------- Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: YoussefFouadd <[email protected]> Co-authored-by: Ahmed alaa <[email protected]> * master-on-dev (#1316) Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> * fix: adjust logging with debuglogLevel * chore: update release date (#1320) --------- Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> Co-authored-by: YoussefFouadd <[email protected]> --------- Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> Co-authored-by: YoussefFouadd <[email protected]> * Release:14.1.0 (#1335) * release: 14.1.0 * release: 14.1.0 * release: v14.1.0 * release: v14.1.0 * release: v14.1.0 --------- Co-authored-by: YoussefFouadd <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> Co-authored-by: Abdelhamid Nasser <[email protected]> * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * feat: xcode 16 support * chore: edit changelog --------- Co-authored-by: YoussefFouadd <[email protected]> Co-authored-by: Ahmed Elrefaey <[email protected]> Co-authored-by: kholood <[email protected]> Co-authored-by: Mohamed Zakaria El-Zoghbi <[email protected]> Co-authored-by: Abdelhamid Nasser <[email protected]> Co-authored-by: AyaMahmoud148 <[email protected]>
1 parent 457f7e8 commit 1c70cb3

40 files changed

+130
-123
lines changed

CHANGELOG.md

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

3-
## [Unreleased]
3+
## [Unreleased](https://github.com/Instabug/Instabug-React-Native/compare/v14.3.0...dev)
44

55
### Added
66

77
- Add support for BugReporting user consents. ([#1383](https://github.com/Instabug/Instabug-React-Native/pull/1383))
88

9+
- Add support for xCode 16. ([#1370](https://github.com/Instabug/Instabug-React-Native/pull/1370))
10+
911
## [14.3.0](https://github.com/Instabug/Instabug-React-Native/compare/v14.1.0...14.3.0)
1012

1113
### 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/src/test/java/com/instabug/reactlibrary/RNInstabugReactnativeModuleTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,18 +663,18 @@ public void testW3CCaughtHeaderFlag(){
663663
verify(promise).resolve(expected);
664664
}
665665

666-
666+
667667
@Test
668668
public void testSetNetworkLogBodyEnabled() {
669669
rnModule.setNetworkLogBodyEnabled(true);
670-
670+
671671
mockInstabug.verify(() -> Instabug.setNetworkLogBodyEnabled(true));
672672
}
673673

674674
@Test
675675
public void testSetNetworkLogBodyDisabled() {
676676
rnModule.setNetworkLogBodyEnabled(false);
677-
677+
678678
mockInstabug.verify(() -> Instabug.setNetworkLogBodyEnabled(false));
679679
}
680680
}

examples/default/ios/InstabugTests/InstabugAPMTests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugAPMBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import <Instabug/IBGAPM.h>
14-
#import "Instabug/Instabug.h"
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import <InstabugSDK/IBGAPM.h>
14+
#import "InstabugSDK/InstabugSDK.h"
1515
#import "IBGConstants.h"
1616
#import "RNInstabug/IBGAPM+PrivateAPIs.h"
1717

examples/default/ios/InstabugTests/InstabugBugReportingTests.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugBugReportingBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import "Instabug/Instabug.h"
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import "InstabugSDK/InstabugSDK.h"
1414
#import "IBGConstants.h"
1515

1616
@interface InstabugBugReportingTests : XCTestCase
@@ -39,7 +39,7 @@ - (void) testgivenBoolean$setBugReportingEnabled_whenQuery_thenShouldCallNativeA
3939
- (void) testgivenInvocationEvent$setInvocationEvents_whenQuery_thenShouldCallNativeApiWithArgs {
4040
NSArray *invocationEventsArr;
4141
invocationEventsArr = [NSArray arrayWithObjects: @(IBGInvocationEventScreenshot), nil];
42-
42+
4343
[self.instabugBridge setInvocationEvents:invocationEventsArr];
4444
IBGInvocationEvent invocationEvents = 0;
4545
for (NSNumber *boxedValue in invocationEventsArr) {
@@ -76,7 +76,7 @@ - (void) testgivenHandlerSUBMIT$setOnSDKDismissedHandler_whenQuery_thenShouldCal
7676
RCTResponseSenderBlock callback = ^(NSArray *response) {};
7777
[partialMock setOnSDKDismissedHandler:callback];
7878
XCTAssertNotNil(IBGBugReporting.didDismissHandler);
79-
79+
8080
NSDictionary *result = @{ @"dismissType": @"SUBMIT",
8181
@"reportType": @"feedback"};
8282
OCMStub([partialMock sendEventWithName:@"IBGpostInvocationHandler" body:result]);
@@ -137,14 +137,14 @@ - (void) testgivenArgs$showBugReportingWithReportTypeAndOptions_whenQuery_thenSh
137137
}
138138
OCMStub([mock showWithReportType:reportType options:parsedOptions]);
139139
[self.instabugBridge show:reportType options:options];
140-
140+
141141
XCTestExpectation *expectation = [self expectationWithDescription:@"Test ME PLX"];
142-
142+
143143
[[NSRunLoop mainRunLoop] performBlock:^{
144144
OCMVerify([mock showWithReportType:reportType options:parsedOptions]);
145145
[expectation fulfill];
146146
}];
147-
147+
148148
[self waitForExpectationsWithTimeout:EXPECTATION_TIMEOUT handler:nil];
149149
}
150150

examples/default/ios/InstabugTests/InstabugCrashReportingTests.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import <XCTest/XCTest.h>
2-
#import "Instabug/Instabug.h"
2+
#import "InstabugSDK/InstabugSDK.h"
33
#import "InstabugCrashReportingBridge.h"
44
#import "OCMock/OCMock.h"
55
#import "Util/IBGCrashReporting+CP.h"
@@ -19,10 +19,10 @@ - (void)setUp {
1919
}
2020

2121
- (void)testSetEnabled {
22-
22+
2323
[self.bridge setEnabled:NO];
2424
XCTAssertFalse(IBGCrashReporting.enabled);
25-
25+
2626
[self.bridge setEnabled:YES];
2727
XCTAssertTrue(IBGCrashReporting.enabled);
2828

@@ -37,7 +37,7 @@ - (void)testSendJSCrash {
3737
[expectation fulfill];
3838
};
3939
RCTPromiseRejectBlock reject = ^(NSString *code, NSString *message, NSError *error) {};
40-
40+
4141
[self.bridge sendJSCrash:stackTrace resolver:resolve rejecter:reject];
4242

4343
[self waitForExpectations:@[expectation] timeout:1];
@@ -52,9 +52,9 @@ - (void)testSendNonFatalErrorJsonCrash {
5252
NSDictionary *userAttributes = @{ @"key" : @"value", };
5353
IBGNonFatalLevel ibgNonFatalLevel = IBGNonFatalLevelInfo;
5454

55-
55+
5656
[self.bridge sendHandledJSCrash:jsonCrash userAttributes:userAttributes fingerprint:fingerPrint nonFatalExceptionLevel:ibgNonFatalLevel resolver:resolve rejecter:reject];
57-
57+
5858
OCMVerify([self.mCrashReporting cp_reportNonFatalCrashWithStackTrace:jsonCrash
5959
level:IBGNonFatalLevelInfo
6060
groupingString:fingerPrint

examples/default/ios/InstabugTests/InstabugFeatureRequestsTests.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugFeatureRequestsBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import "Instabug/Instabug.h"
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import "InstabugSDK/InstabugSDK.h"
1414
#import "IBGConstants.h"
1515

1616
@interface InstabugFeatureRequestsTests : XCTestCase
@@ -48,12 +48,12 @@ - (void) testgive$show_whenQuery_thenShouldCallNativeApi {
4848
OCMStub([mock show]);
4949
[self.instabugBridge show];
5050
XCTestExpectation *expectation = [self expectationWithDescription:@"Test ME PLX"];
51-
51+
5252
[[NSRunLoop mainRunLoop] performBlock:^{
5353
OCMVerify([mock show]);
5454
[expectation fulfill];
5555
}];
56-
56+
5757
[self waitForExpectationsWithTimeout:EXPECTATION_TIMEOUT handler:nil];
5858
}
5959

examples/default/ios/InstabugTests/InstabugRepliesTests.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugRepliesBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import "Instabug/Instabug.h"
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import "InstabugSDK/InstabugSDK.h"
1414
#import "IBGConstants.h"
1515

1616
@interface InstabugRepliesTests : XCTestCase
@@ -53,12 +53,12 @@ - (void) testgiven$show_whenQuery_thenShouldCallNativeApi {
5353
OCMStub([mock show]);
5454
[self.instabugBridge show];
5555
XCTestExpectation *expectation = [self expectationWithDescription:@"Test ME PLX"];
56-
56+
5757
[[NSRunLoop mainRunLoop] performBlock:^{
5858
OCMVerify([mock show]);
5959
[expectation fulfill];
6060
}];
61-
61+
6262
[self waitForExpectationsWithTimeout:EXPECTATION_TIMEOUT handler:nil];
6363
}
6464

@@ -67,7 +67,7 @@ - (void) testgivenOnNewReplyReceivedHandler$setOnNewReplyReceivedCallback_whenQu
6767
RCTResponseSenderBlock callback = ^(NSArray *response) {};
6868
[partialMock setOnNewReplyReceivedHandler:callback];
6969
XCTAssertNotNil(IBGReplies.didReceiveReplyHandler);
70-
70+
7171
OCMStub([partialMock sendEventWithName:@"IBGOnNewReplyReceivedCallback" body:nil]);
7272
IBGReplies.didReceiveReplyHandler();
7373
OCMVerify([partialMock sendEventWithName:@"IBGOnNewReplyReceivedCallback" body:nil]);
@@ -90,7 +90,7 @@ - (void) testgivenBoolean$setInAppNotificationEnabled_whenQuery_thenShouldCallNa
9090
- (void)testSetPushNotificationsEnabled {
9191
id mock = OCMClassMock([IBGReplies class]);
9292
BOOL isPushNotificationEnabled = true;
93-
93+
9494
OCMStub([mock setPushNotificationsEnabled:isPushNotificationEnabled]);
9595
[self.instabugBridge setPushNotificationsEnabled:isPushNotificationEnabled];
9696
OCMVerify([mock setPushNotificationsEnabled:isPushNotificationEnabled]);

examples/default/ios/InstabugTests/InstabugSampleTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#import <XCTest/XCTest.h>
99
#import "OCMock/OCMock.h"
10-
#import "Instabug/Instabug.h"
10+
#import "InstabugSDK/InstabugSDK.h"
1111
#import "InstabugReactBridge.h"
12-
#import <Instabug/IBGTypes.h>
12+
#import <InstabugSDK/IBGTypes.h>
1313
#import "IBGConstants.h"
1414
#import "RNInstabug.h"
1515
#import <RNInstabug/IBGNetworkLogger+CP.h>

examples/default/ios/InstabugTests/InstabugSessionReplayTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#import <XCTest/XCTest.h>
22
#import "OCMock/OCMock.h"
33
#import "InstabugSessionReplayBridge.h"
4-
#import <Instabug/IBGTypes.h>
5-
#import "Instabug/Instabug.h"
4+
#import <InstabugSDK/IBGTypes.h>
5+
#import "InstabugSDK/InstabugSDK.h"
66
#import "IBGConstants.h"
77

88
@interface InstabugSessionReplayTests : XCTestCase

examples/default/ios/InstabugTests/InstabugSurveysTests.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugSurveysBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import "Instabug/Instabug.h"
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import "InstabugSDK/InstabugSDK.h"
1414
#import "IBGConstants.h"
1515

1616
@interface InstabugSurveysTests : XCTestCase
@@ -45,7 +45,7 @@ - (void)setUp {
4545
- (void)testShowingSurvey {
4646
id mock = OCMClassMock([IBGSurveys class]);
4747
NSString *token = @"token";
48-
48+
4949
OCMStub([mock showSurveyWithToken:token]);
5050
[self.instabugBridge showSurvey:token];
5151
OCMVerify([mock showSurveyWithToken:token]);
@@ -54,7 +54,7 @@ - (void)testShowingSurvey {
5454

5555
- (void) testShowSurveyIfAvailable {
5656
id mock = OCMClassMock([IBGSurveys class]);
57-
57+
5858
OCMStub([mock showSurveyIfAvailable]);
5959
[self.instabugBridge showSurveysIfAvailable];
6060
OCMVerify([mock showSurveyIfAvailable]);
@@ -63,7 +63,7 @@ - (void) testShowSurveyIfAvailable {
6363
- (void) testAutoShowingSurveysEnabled {
6464
id mock = OCMClassMock([IBGSurveys class]);
6565
BOOL isEnabled = YES;
66-
66+
6767
OCMStub([mock setAutoShowingEnabled:isEnabled]);
6868
[self.instabugBridge setAutoShowingEnabled:isEnabled];
6969
OCMVerify([mock setAutoShowingEnabled:isEnabled]);
@@ -72,15 +72,15 @@ - (void) testAutoShowingSurveysEnabled {
7272
- (void) testSetShouldShowSurveysWelcomeScreen {
7373
id mock = OCMClassMock([IBGSurveys class]);
7474
BOOL isEnabled = YES;
75-
75+
7676
OCMStub([mock setShouldShowWelcomeScreen:isEnabled]);
7777
[self.instabugBridge setShouldShowWelcomeScreen:isEnabled];
7878
OCMVerify([mock setShouldShowWelcomeScreen:isEnabled]);
7979
}
8080

8181
- (void) testSetSurveysEnabled {
8282
BOOL isEnabled = YES;
83-
83+
8484
[self.instabugBridge setEnabled:isEnabled];
8585
XCTAssertTrue(IBGSurveys.enabled);
8686
}
@@ -95,7 +95,7 @@ - (void) testHasRespondedToSurveyWithToken {
9595
[expectation fulfill];
9696
};
9797
RCTPromiseRejectBlock reject = ^(NSString *code, NSString *message, NSError *error) {};
98-
98+
9999
OCMStub([mock hasRespondedToSurveyWithToken:surveyToken completionHandler:[OCMArg invokeBlock]]);
100100
[self.instabugBridge hasRespondedToSurvey:surveyToken :resolve :reject];
101101
OCMVerify([mock hasRespondedToSurveyWithToken:surveyToken completionHandler:[OCMArg isNotNil]]);
@@ -136,7 +136,7 @@ - (void) testSetDidDismissSurveyHandler {
136136

137137
- (void) testSetAppStoreURL {
138138
NSString *appStoreURL = @"http://test";
139-
139+
140140
[self.instabugBridge setAppStoreURL:appStoreURL];
141141
XCTAssertEqual(IBGSurveys.appStoreURL, appStoreURL);
142142
}

examples/default/ios/InstabugTests/RNInstabugTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import <XCTest/XCTest.h>
22
#import "OCMock/OCMock.h"
3-
#import "Instabug/Instabug.h"
4-
#import <Instabug/IBGTypes.h>
3+
#import "InstabugSDK/InstabugSDK.h"
4+
#import <InstabugSDK/IBGTypes.h>
55
#import "RNInstabug.h"
66
#import "RNInstabug/Instabug+CP.h"
77
#import "RNInstabug/IBGNetworkLogger+CP.h"

examples/default/ios/InstabugTests/Util/IBGCrashReporting+CP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import <Instabug/Instabug.h>
1+
#import <InstabugSDK/InstabugSDK.h>
22

33

44
@interface IBGCrashReporting (CP)

examples/default/ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ target 'InstabugExample' do
1515
config = use_native_modules!
1616
rn_maps_path = '../node_modules/react-native-maps'
1717
pod 'react-native-google-maps', :path => rn_maps_path
18+
# add this line
19+
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/fix-main-thread-warning/15.0.0/Instabug.podspec'
20+
1821
# Flags change depending on the env values.
1922
flags = get_default_flags()
2023

0 commit comments

Comments
 (0)