Skip to content

Commit fe21f67

Browse files
chore: update the iOS pods
1 parent 556220e commit fe21f67

File tree

4 files changed

+43
-36
lines changed

4 files changed

+43
-36
lines changed

examples/default/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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-
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.16/Instabug.podspec'
18+
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec'
1919
# Flags change depending on the env values.
2020
flags = get_default_flags()
2121

examples/default/ios/Podfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PODS:
3131
- hermes-engine (0.75.4):
3232
- hermes-engine/Pre-built (= 0.75.4)
3333
- hermes-engine/Pre-built (0.75.4)
34-
- Instabug (15.1.16)
34+
- Instabug (15.1.24)
3535
- instabug-reactnative-ndk (0.1.0):
3636
- DoubleConversion
3737
- glog
@@ -1626,7 +1626,7 @@ PODS:
16261626
- ReactCommon/turbomodule/core
16271627
- Yoga
16281628
- RNInstabug (15.0.1):
1629-
- Instabug (= 15.1.16)
1629+
- Instabug (= 15.1.24)
16301630
- React-Core
16311631
- RNReanimated (3.16.1):
16321632
- DoubleConversion
@@ -1770,7 +1770,7 @@ DEPENDENCIES:
17701770
- fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`)
17711771
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
17721772
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
1773-
- Instabug (from `https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.16/Instabug.podspec`)
1773+
- Instabug (from `https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec`)
17741774
- instabug-reactnative-ndk (from `../node_modules/instabug-reactnative-ndk`)
17751775
- OCMock
17761776
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
@@ -1869,7 +1869,7 @@ EXTERNAL SOURCES:
18691869
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
18701870
:tag: hermes-2024-08-15-RNv0.75.1-4b3bf912cc0f705b51b71ce1a5b8bd79b93a451b
18711871
Instabug:
1872-
:podspec: https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.16/Instabug.podspec
1872+
:podspec: https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec
18731873
instabug-reactnative-ndk:
18741874
:path: "../node_modules/instabug-reactnative-ndk"
18751875
RCT-Folly:
@@ -2024,7 +2024,7 @@ SPEC CHECKSUMS:
20242024
Google-Maps-iOS-Utils: f77eab4c4326d7e6a277f8e23a0232402731913a
20252025
GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac
20262026
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
2027-
Instabug: 9fcae5627558e1832a0f49c81bb26c20aaf8af7f
2027+
Instabug: 81ff406348f7a9784ad2c681c94279a0ad3fcab7
20282028
instabug-reactnative-ndk: d765ac289d56e8896398d02760d9abf2562fc641
20292029
OCMock: 589f2c84dacb1f5aaf6e4cec1f292551fe748e74
20302030
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
@@ -2092,14 +2092,14 @@ SPEC CHECKSUMS:
20922092
ReactCommon: 6a952e50c2a4b694731d7682aaa6c79bc156e4ad
20932093
RNCClipboard: 2821ac938ef46f736a8de0c8814845dde2dcbdfb
20942094
RNGestureHandler: 511250b190a284388f9dd0d2e56c1df76f14cfb8
2095-
RNInstabug: 62ac32fd0a0ecb7720aa115fec391e74b8bd5a27
2095+
RNInstabug: c1334b03231d29e6abb93b93de52190cd325ce65
20962096
RNReanimated: f42a5044d121d68e91680caacb0293f4274228eb
20972097
RNScreens: c7ceced6a8384cb9be5e7a5e88e9e714401fd958
20982098
RNSVG: 8b1a777d54096b8c2a0fd38fc9d5a454332bbb4d
20992099
RNVectorIcons: 6382277afab3c54658e9d555ee0faa7a37827136
21002100
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
2101-
Yoga: 055f92ad73f8c8600a93f0e25ac0b2344c3b07e6
2101+
Yoga: aa3df615739504eebb91925fc9c58b4922ea9a08
21022102

2103-
PODFILE CHECKSUM: 06ff71958843b5a526fbd11ecc1aad124421d74f
2103+
PODFILE CHECKSUM: 29f363f85c01e13c559723cad266922d16c81bc5
21042104

2105-
COCOAPODS: 1.14.0
2105+
COCOAPODS: 1.15.2

examples/default/src/App.tsx

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ import { ActivityIndicator, StyleSheet } from 'react-native';
33

44
import { GestureHandlerRootView } from 'react-native-gesture-handler';
55
import { NavigationContainer, useNavigationContainerRef } from '@react-navigation/native';
6-
import type { SessionMetadata } from 'instabug-reactnative';
76
import Instabug, {
7+
APM,
88
CrashReporting,
99
InvocationEvent,
1010
LaunchType,
1111
LogLevel,
1212
NetworkInterceptionMode,
1313
NetworkLogger,
1414
ReproStepsMode,
15+
type SessionMetadata,
1516
SessionReplay,
1617
} from 'instabug-reactnative';
1718
import { NativeBaseProvider } from 'native-base';
@@ -42,36 +43,42 @@ export const App: React.FC = () => {
4243

4344
const [isInstabugInitialized, setIsInstabugInitialized] = useState(false);
4445

45-
const initializeInstabug = async () => {
46-
try {
47-
SessionReplay.setSyncCallback((data) => shouldSyncSession(data));
48-
49-
await Instabug.init({
50-
token: 'deb1910a7342814af4e4c9210c786f35',
51-
invocationEvents: [InvocationEvent.floatingButton],
52-
debugLogsLevel: LogLevel.verbose,
53-
networkInterceptionMode: NetworkInterceptionMode.javascript,
46+
const initializeInstabug = () => {
47+
// Synchronous setup
48+
SessionReplay.setSyncCallback((data) => shouldSyncSession(data));
49+
50+
// Start async initialization but don't block rendering
51+
Instabug.init({
52+
token: 'deb1910a7342814af4e4c9210c786f35',
53+
invocationEvents: [InvocationEvent.floatingButton],
54+
debugLogsLevel: LogLevel.verbose,
55+
networkInterceptionMode: NetworkInterceptionMode.javascript,
56+
})
57+
.then(() => {
58+
// Post-initialization setup
59+
NetworkLogger.setNetworkDataObfuscationHandler(async (networkData) => {
60+
networkData.url = `${networkData.url}/JS/Obfuscated`;
61+
return networkData;
5462
});
55-
56-
CrashReporting.setNDKCrashesEnabled(true);
57-
Instabug.setReproStepsConfig({ all: ReproStepsMode.enabled });
58-
59-
setIsInstabugInitialized(true); // Set to true after initialization
60-
} catch (error) {
63+
APM.setScreenRenderEnabled(true);
64+
setIsInstabugInitialized(true);
65+
})
66+
.catch((error) => {
6167
console.error('Instabug initialization failed:', error);
6268
setIsInstabugInitialized(true); // Proceed even if initialization fails
63-
}
69+
});
70+
71+
// Synchronous configuration that doesn't depend on init completion
72+
CrashReporting.setNDKCrashesEnabled(true);
73+
Instabug.setReproStepsConfig({ all: ReproStepsMode.enabled });
74+
75+
// Set initialized immediately to show UI - initialization continues in background
76+
setIsInstabugInitialized(true);
6477
};
6578

6679
useEffect(() => {
67-
initializeInstabug().then(() => {
68-
NetworkLogger.setNetworkDataObfuscationHandler(async (networkData) => {
69-
networkData.url = `${networkData.url}/JS/Obfuscated`;
70-
return networkData;
71-
});
72-
// APM.setScreenRenderEnabled(true);
73-
});
74-
});
80+
initializeInstabug();
81+
}, []);
7582

7683
useEffect(() => {
7784
// @ts-ignore

ios/native.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$instabug = { :version => '15.1.16' }
1+
$instabug = { :version => '15.1.24' }
22

33
def use_instabug! (spec = nil)
44
version = $instabug[:version]

0 commit comments

Comments
 (0)