Skip to content

Commit 2b32f5c

Browse files
fix: sample app
fix: fatal hang on ios
1 parent 12ae119 commit 2b32f5c

File tree

9 files changed

+3640
-75
lines changed

9 files changed

+3640
-75
lines changed

examples/default/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ buildscript {
2424
classpath("com.android.tools.build:gradle:8.1.0")
2525
classpath("com.facebook.react:react-native-gradle-plugin")
2626
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
27-
classpath("com.instabug.library:instabug-plugin:15.0.1")
27+
classpath("com.instabug.library:instabug-plugin:16.0.0")
2828
}
2929
}
3030

examples/default/ios/native/CrashReportingExampleModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ - (void)oomCrash {
5959
@throw exception;
6060
}
6161
RCT_EXPORT_METHOD(sendFatalHang) {
62-
[NSThread sleepForTimeInterval:3.0f];
62+
[NSThread sleepForTimeInterval:6.0f];
6363
}
6464

6565
RCT_EXPORT_METHOD(sendOOM) {

examples/default/src/screens/SettingsScreen.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,6 @@ export const SettingsScreen: React.FC = () => {
213213
});
214214
}}
215215
/>
216-
<ListTile
217-
title="Add Experiments"
218-
onPress={() => {
219-
Instabug.addExperiments(['exp1', 'exp2']);
220-
}}
221-
/>
222-
<ListTile
223-
title="Remove Experiments"
224-
onPress={() => {
225-
Instabug.removeExperiments(['exp1', 'exp2']);
226-
}}
227-
/>
228216

229217
<VerticalListTile title="User Identification">
230218
<VStack>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@types/node": "^20.4.8",
5656
"@types/react-native": "^0.72.2",
5757
"axios": "1.11.0",
58-
"@expo/config-plugins": "7.8.4",
58+
"expo": "^50.0.0",
5959
"babel-core": "7.0.0-bridge.0",
6060
"babel-jest": "^29.6.2",
6161
"commander": "^11.0.0",

plugin/src/pluginProps.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export interface PluginProps {
2+
name?: string;
3+
forceUploadSourceMaps?: boolean;
4+
addScreenRecordingBugReportingPermission?: boolean;
5+
addBugReportingIosMediaPermission?: boolean;
6+
}

plugin/src/withInstabug.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@ import { createRunOncePlugin } from 'expo/config-plugins';
33

44
import { withInstabugAndroid } from './withInstabugAndroid';
55
import { withInstabugIOS } from './withInstabugIOS';
6-
7-
export interface PluginProps {
8-
name?: string;
9-
forceUploadSourceMaps?: boolean;
10-
addScreenRecordingBugReportingPermission?: boolean;
11-
addBugReportingIosMediaPermission?: boolean;
12-
}
6+
import { PluginProps } from './pluginProps';
137

148
const instabugPackage = require('../../package.json') as {
159
name: string;
1610
version: string;
1711
};
1812

19-
const withInstabugPlugin: ConfigPlugin<PluginProps> = (config, props = {}) => {
13+
const withInstabugPlugin: ConfigPlugin<PluginProps> = (config, props: PluginProps = {}) => {
2014
const {
2115
forceUploadSourceMaps = false,
2216
addScreenRecordingBugReportingPermission = false,

plugin/src/withInstabugAndroid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ConfigPlugin } from 'expo/config-plugins';
22
import { withAppBuildGradle, withAndroidManifest } from 'expo/config-plugins';
3-
import type { PluginProps } from './withInstabug';
3+
import type { PluginProps } from './pluginProps';
44

55
export const withInstabugAndroid: ConfigPlugin<PluginProps> = (config, props) => {
66
config = withAppBuildGradle(config, (configAndroid) => {

plugin/src/withInstabugIOS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ConfigPlugin, XcodeProject } from 'expo/config-plugins';
22
import { withXcodeProject, withInfoPlist } from 'expo/config-plugins';
3-
import type { PluginProps } from './withInstabug';
3+
import type { PluginProps } from './pluginProps';
44
import * as path from 'path';
55
import * as fs from 'fs';
66

yarn.lock

Lines changed: 3627 additions & 50 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)