Skip to content

Commit 52e5e0e

Browse files
update: native android & iOS snapshots,
remove: debug logs.
1 parent 4fe4d1a commit 52e5e0e

File tree

9 files changed

+15
-92
lines changed

9 files changed

+15
-92
lines changed

android/native.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project.ext.instabug = [
2-
version: '14.0.0.6273368-SNAPSHOT'
2+
version: '14.1.0.6273967-SNAPSHOT'
33
]
44

55
dependencies {

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:14.0.0.6273368-SNAPSHOT")
27+
classpath("com.instabug.library:instabug-plugin:14.1.0.6273967-SNAPSHOT")
2828
}
2929
}
3030

examples/default/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ target 'InstabugExample' do
1919
rn_maps_path = '../node_modules/react-native-maps'
2020
pod 'react-native-google-maps', :path => rn_maps_path
2121

22-
pod 'InstabugStatic', :podspec => 'https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.0.0/InstabugStatic.podspec'
22+
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.1.0/Instabug.podspec'
2323
use_react_native!(
2424
:path => config[:reactNativePath],
2525
# An absolute path to your application root.

examples/default/ios/Podfile.lock

Lines changed: 8 additions & 11 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 (14.0.0)
34+
- Instabug (14.1.0)
3535
- instabug-reactnative-ndk (0.1.0):
3636
- DoubleConversion
3737
- glog
@@ -53,7 +53,6 @@ PODS:
5353
- ReactCommon/turbomodule/bridging
5454
- ReactCommon/turbomodule/core
5555
- Yoga
56-
- InstabugStatic (14.0.0)
5756
- OCMock (3.9.4)
5857
- RCT-Folly (2024.01.01.00):
5958
- boost
@@ -1604,7 +1603,7 @@ PODS:
16041603
- ReactCommon/turbomodule/core
16051604
- Yoga
16061605
- RNInstabug (13.4.0):
1607-
- Instabug (= 14.0.0)
1606+
- Instabug (= 14.1.0)
16081607
- React-Core
16091608
- RNReanimated (3.16.1):
16101609
- DoubleConversion
@@ -1748,8 +1747,8 @@ DEPENDENCIES:
17481747
- fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`)
17491748
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
17501749
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
1750+
- Instabug (from `https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.1.0/Instabug.podspec`)
17511751
- instabug-reactnative-ndk (from `../node_modules/instabug-reactnative-ndk`)
1752-
- InstabugStatic (from `https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.0.0/InstabugStatic.podspec`)
17531752
- OCMock
17541753
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
17551754
- RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
@@ -1827,7 +1826,6 @@ SPEC REPOS:
18271826
trunk:
18281827
- Google-Maps-iOS-Utils
18291828
- GoogleMaps
1830-
- Instabug
18311829
- OCMock
18321830
- SocketRocket
18331831

@@ -1845,10 +1843,10 @@ EXTERNAL SOURCES:
18451843
hermes-engine:
18461844
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
18471845
:tag: hermes-2024-08-15-RNv0.75.1-4b3bf912cc0f705b51b71ce1a5b8bd79b93a451b
1846+
Instabug:
1847+
:podspec: https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.1.0/Instabug.podspec
18481848
instabug-reactnative-ndk:
18491849
:path: "../node_modules/instabug-reactnative-ndk"
1850-
InstabugStatic:
1851-
:podspec: https://ios-releases.instabug.com/custom/feature-support_cp_network_filtering_obfuscation-base/14.0.0/InstabugStatic.podspec
18521850
RCT-Folly:
18531851
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
18541852
RCTDeprecation:
@@ -1997,9 +1995,8 @@ SPEC CHECKSUMS:
19971995
Google-Maps-iOS-Utils: f77eab4c4326d7e6a277f8e23a0232402731913a
19981996
GoogleMaps: 032f676450ba0779bd8ce16840690915f84e57ac
19991997
hermes-engine: ea92f60f37dba025e293cbe4b4a548fd26b610a0
2000-
Instabug: a0beffc01658773e2fac549845782f8937707dc4
1998+
Instabug: afe23192d5487aa2afd4f3baa76913cc2c421cda
20011999
instabug-reactnative-ndk: d765ac289d56e8896398d02760d9abf2562fc641
2002-
InstabugStatic: 035dbd18104b1b5b37025e8bb5b61232b14bffb4
20032000
OCMock: 589f2c84dacb1f5aaf6e4cec1f292551fe748e74
20042001
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
20052002
RCTDeprecation: 726d24248aeab6d7180dac71a936bbca6a994ed1
@@ -2064,14 +2061,14 @@ SPEC CHECKSUMS:
20642061
ReactCommon: 6a952e50c2a4b694731d7682aaa6c79bc156e4ad
20652062
RNCClipboard: 2821ac938ef46f736a8de0c8814845dde2dcbdfb
20662063
RNGestureHandler: 511250b190a284388f9dd0d2e56c1df76f14cfb8
2067-
RNInstabug: 3c49741cb6facbbd7c7f9c9b35570866eb510abd
2064+
RNInstabug: 6e109844b6a8cb6d905e3dacd644973839862715
20682065
RNReanimated: f42a5044d121d68e91680caacb0293f4274228eb
20692066
RNScreens: c7ceced6a8384cb9be5e7a5e88e9e714401fd958
20702067
RNSVG: 8b1a777d54096b8c2a0fd38fc9d5a454332bbb4d
20712068
RNVectorIcons: 6382277afab3c54658e9d555ee0faa7a37827136
20722069
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
20732070
Yoga: aa3df615739504eebb91925fc9c58b4922ea9a08
20742071

2075-
PODFILE CHECKSUM: 0fd6b18875471528f85b3525c2748c16b3514d09
2072+
PODFILE CHECKSUM: 48043b3d903923ac80ca4e335406e87f2daba40f
20762073

20772074
COCOAPODS: 1.15.2

examples/default/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Instabug, {
77
CrashReporting,
88
InvocationEvent,
99
LogLevel,
10+
NetworkInterceptionMode,
1011
NetworkLogger,
1112
ReproStepsMode,
1213
} from 'instabug-reactnative';
@@ -29,7 +30,7 @@ export const App: React.FC = () => {
2930
token: '0fcc87b8bf731164828cc411eccc802a',
3031
invocationEvents: [InvocationEvent.floatingButton],
3132
debugLogsLevel: LogLevel.verbose,
32-
// networkInterceptionMode: NetworkInterceptionMode.native,
33+
networkInterceptionMode: NetworkInterceptionMode.native,
3334
});
3435

3536
CrashReporting.setNDKCrashesEnabled(true);

ios/native.rb

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

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

src/modules/Instabug.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ function reportCurrentViewForAndroid(screenName: string | null) {
7474
}
7575
}
7676

77-
function _logFlags() {
78-
if (Platform.OS === 'android') {
79-
console.log(
80-
`Andrew: APM Flags -> {
81-
isNativeInterceptionFeatureEnabled: ${isNativeInterceptionFeatureEnabled},
82-
hasAPMNetworkPlugin: ${hasAPMNetworkPlugin},
83-
shouldEnableNativeInterception: ${shouldEnableNativeInterception}
84-
}`,
85-
);
86-
} else {
87-
console.log(
88-
`Andrew: APM Flags -> {
89-
isNativeInterceptionFeatureEnabled: ${isNativeInterceptionFeatureEnabled},
90-
shouldEnableNativeInterception: ${shouldEnableNativeInterception}
91-
}`,
92-
);
93-
}
94-
}
95-
9677
/**
9778
* Initializes the SDK.
9879
* This is the main SDK method that does all the magic. This is the only
@@ -148,14 +129,11 @@ const handleAppStateChange = async (nextAppState: AppStateStatus, config: Instab
148129
const isUpdated = await fetchApmNetworkFlags();
149130

150131
if (isUpdated) {
151-
console.log('Andrew: App has come to the foreground!');
152-
console.log('Andrew: APM network flags updated.');
153132
refreshAPMNetworkConfigs(config);
154133
}
155134
}
156135

157136
_currentAppState = nextAppState;
158-
console.log(`Andrew: Current AppState: ${_currentAppState}`);
159137
};
160138

161139
/**
@@ -176,10 +154,6 @@ const fetchApmNetworkFlags = async () => {
176154
isUpdated = true;
177155
}
178156
}
179-
180-
console.log(
181-
`Andrew: fetchApmNetworkFlags {isNativeInterceptionFeatureEnabled: ${isNativeInterceptionFeatureEnabled}, hasAPMNetworkPlugin: ${hasAPMNetworkPlugin}}`,
182-
);
183157
return isUpdated;
184158
};
185159

@@ -241,13 +215,6 @@ function handleAndroidNativeInterception() {
241215
* Control either to enable or disable the native interception for iOS after the init method is called.
242216
*/
243217
function handleIOSNativeInterception(config: InstabugConfig) {
244-
console.log(
245-
`Andrew: handleIOSNativeInterception(${
246-
shouldEnableNativeInterception &&
247-
config.networkInterceptionMode === NetworkInterceptionMode.native
248-
})`,
249-
);
250-
251218
if (
252219
shouldEnableNativeInterception &&
253220
config.networkInterceptionMode === NetworkInterceptionMode.native
@@ -295,12 +262,6 @@ const handleInterceptionModeForIOS = (config: InstabugConfig) => {
295262
* Initializes Instabug with the given configuration.
296263
*/
297264
const initializeNativeInstabug = (config: InstabugConfig) => {
298-
console.log(
299-
`Andrew: initializeNativeInstabug -> NativeNetworkInterceptionMode ${
300-
shouldEnableNativeInterception &&
301-
config.networkInterceptionMode === NetworkInterceptionMode.native
302-
}`,
303-
);
304265
NativeInstabug.init(
305266
config.token,
306267
config.invocationEvents,
@@ -319,7 +280,6 @@ function refreshAPMNetworkConfigs(config: InstabugConfig, forceRefreshIOS: boole
319280
if (Platform.OS === 'ios' && forceRefreshIOS) {
320281
handleIOSNativeInterception(config);
321282
}
322-
_logFlags();
323283
setApmNetworkFlagsIfChanged({
324284
isNativeInterceptionFeatureEnabled,
325285
hasAPMNetworkPlugin,
@@ -339,10 +299,6 @@ function refreshAPMNetworkConfigs(config: InstabugConfig, forceRefreshIOS: boole
339299
function addOnFeatureUpdatedListener(config: InstabugConfig) {
340300
emitter.addListener(NativeEvents.IBG_ON_FEATURES_UPDATED_CALLBACK, (flags) => {
341301
const { cpNativeInterceptionEnabled, hasAPMPlugin } = flags;
342-
console.log(`Andrew: addOnFeatureUpdatedListener ->
343-
isNativeInterceptionFeatureEnabled: ${cpNativeInterceptionEnabled},
344-
hasAPMNetworkPlugin: ${hasAPMPlugin}.
345-
`);
346302
isNativeInterceptionFeatureEnabled = cpNativeInterceptionEnabled;
347303
hasAPMNetworkPlugin = hasAPMPlugin;
348304
shouldEnableNativeInterception =

src/modules/NetworkLogger.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ export const setEnabled = (isEnabled: boolean) => {
4141
try {
4242
if (_networkDataObfuscationHandler) {
4343
network = await _networkDataObfuscationHandler(network);
44-
console.log(
45-
`Andrew: xhr.setOnDoneCallback -> _networkDataObfuscationHandler ${network.url}`,
46-
);
4744
}
4845

4946
if (network.requestBodySize > InstabugConstants.MAX_NETWORK_BODY_SIZE_IN_BYTES) {
@@ -88,7 +85,6 @@ export const setEnabled = (isEnabled: boolean) => {
8885
* @param isEnabled
8986
*/
9087
export const setNativeInterceptionEnabled = (isEnabled: boolean) => {
91-
console.log(`Andrew: NetworkLogger -> setNativeInterceptionEnabled ${isEnabled}`);
9288
_isNativeInterceptionEnabled = isEnabled;
9389
};
9490

@@ -108,12 +104,8 @@ export const setNetworkDataObfuscationHandler = (
108104
_networkDataObfuscationHandler = handler;
109105
if (_isNativeInterceptionEnabled && Platform.OS === 'ios') {
110106
if (hasFilterExpression) {
111-
console.log(
112-
'Andrew: setNetworkDataObfuscationHandler -> registerFilteringAndObfuscationListenerV2',
113-
);
114107
registerFilteringAndObfuscationListener(_requestFilterExpression);
115108
} else {
116-
console.log('Andrew: setNetworkDataObfuscationHandler -> registerObfuscationListener');
117109
registerObfuscationListener();
118110
}
119111
}
@@ -129,12 +121,8 @@ export const setRequestFilterExpression = (expression: string) => {
129121

130122
if (_isNativeInterceptionEnabled && Platform.OS === 'ios') {
131123
if (_networkDataObfuscationHandler) {
132-
console.log(
133-
'Andrew: setRequestFilterExpression -> registerFilteringAndObfuscationListenerV2',
134-
);
135124
registerFilteringAndObfuscationListener(_requestFilterExpression);
136125
} else {
137-
console.log('Andrew: setRequestFilterExpression -> registerFilteringListener');
138126
registerFilteringListener(_requestFilterExpression);
139127
}
140128
}
@@ -186,11 +174,8 @@ export const registerNetworkLogsListener = (
186174
handler?: (networkSnapshot: NetworkData) => void,
187175
) => {
188176
if (Platform.OS === 'ios') {
189-
console.log('Andrew: registerNetworkLogsListener called');
190-
191177
// remove old listeners
192178
if (NetworkLoggerEmitter.listenerCount(NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER) > 0) {
193-
console.log('Andrew: removeAllListeners called');
194179
NetworkLoggerEmitter.removeAllListeners(NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER);
195180
}
196181

@@ -201,7 +186,6 @@ export const registerNetworkLogsListener = (
201186
// attach a new listener to the existing one.
202187
_networkListener = NetworkListenerType.both;
203188
}
204-
console.log(`Andrew: new NetworkLogsListener (${_networkListener}) attached`);
205189
}
206190

207191
NetworkLoggerEmitter.addListener(

src/utils/InstabugUtils.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ export const reportNetworkLog = (network: NetworkData) => {
177177
const requestHeaders = JSON.stringify(network.requestHeaders);
178178
const responseHeaders = JSON.stringify(network.responseHeaders);
179179

180-
console.log('Andrew: ' + `NetworkLogger -> ${JSON.stringify(apmFlags)}`);
181-
console.log('Andrew: ' + 'NetworkLogger -> NativeInstabug.networkLogAndroid');
182-
183180
NativeInstabug.networkLogAndroid(
184181
network.url,
185182
network.requestBody,
@@ -196,8 +193,6 @@ export const reportNetworkLog = (network: NetworkData) => {
196193
!apmFlags.hasAPMNetworkPlugin ||
197194
!apmFlags.shouldEnableNativeInterception
198195
) {
199-
console.log('Andrew: ' + 'NetworkLogger -> NativeAPM.networkLogAndroid');
200-
console.log('Andrew: ' + `NetworkLogger -> ${network.url}`);
201196
NativeAPM.networkLogAndroid(
202197
network.startTime,
203198
network.duration,
@@ -218,14 +213,8 @@ export const reportNetworkLog = (network: NetworkData) => {
218213
);
219214
}
220215
} else {
221-
console.log(
222-
'Andrew: ' +
223-
`NetworkLogger -> {isNativeInterceptionEnabled: ${apmFlags.isNativeInterceptionFeatureEnabled}}`,
224-
);
225-
console.log('Andrew: ' + 'NetworkLogger -> NativeInstabug.networkLogIOS');
226-
227216
NativeInstabug.networkLogIOS(
228-
network.url,
217+
network.url + '/JS/Andrew',
229218
network.method,
230219
network.requestBody,
231220
network.requestBodySize,
@@ -308,10 +297,6 @@ export function checkNetworkRequestHandlers() {
308297
const obfuscationHandler = NetworkLogger.getNetworkDataObfuscationHandler();
309298
const hasFilterExpression = NetworkLogger.hasRequestFilterExpression();
310299

311-
console.log(
312-
`Andrew: handlers
313-
{filtering = ${hasFilterExpression}, obfuscation = ${obfuscationHandler != null}}`,
314-
);
315300
if (hasFilterExpression && obfuscationHandler) {
316301
// Register listener that handles both (Filtering & Obfuscation)
317302
registerFilteringAndObfuscationListener(NetworkLogger.getRequestFilterExpression());

0 commit comments

Comments
 (0)