Skip to content

Commit 6ac4e42

Browse files
feat: xcode 16 support
1 parent 8bdf690 commit 6ac4e42

9 files changed

+28
-28
lines changed

examples/default/ios/InstabugTests/InstabugAPMTests.m

Lines changed: 2 additions & 2 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 "InstabugAPMBridge.h"
12-
#import <Instabug/IBGTypes.h>
13-
#import <Instabug/IBGAPM.h>
12+
#import <InstabugSDK/IBGTypes.h>
13+
#import <InstabugSDK/IBGAPM.h>
1414
#import "Instabug/Instabug.h"
1515
#import "IBGConstants.h"
1616
#import "RNInstabug/IBGAPM+PrivateAPIs.h"

examples/default/ios/InstabugTests/InstabugBugReportingTests.m

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

@@ -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/InstabugFeatureRequestsTests.m

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

@@ -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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <XCTest/XCTest.h>
1010
#import "OCMock/OCMock.h"
1111
#import "InstabugRepliesBridge.h"
12-
#import <Instabug/IBGTypes.h>
12+
#import <InstabugSDK/IBGTypes.h>
1313
#import "Instabug/Instabug.h"
1414
#import "IBGConstants.h"
1515

@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import "OCMock/OCMock.h"
1010
#import "Instabug/Instabug.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import <XCTest/XCTest.h>
22
#import "OCMock/OCMock.h"
33
#import "InstabugSessionReplayBridge.h"
4-
#import <Instabug/IBGTypes.h>
4+
#import <InstabugSDK/IBGTypes.h>
55
#import "Instabug/Instabug.h"
66
#import "IBGConstants.h"
77

examples/default/ios/InstabugTests/InstabugSurveysTests.m

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

@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import <XCTest/XCTest.h>
22
#import "OCMock/OCMock.h"
33
#import "Instabug/Instabug.h"
4-
#import <Instabug/IBGTypes.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)

0 commit comments

Comments
 (0)