Skip to content

Commit b46492b

Browse files
committed
Mark Frida interceptors as experimental for now
1 parent 8dbc381 commit b46492b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/components/intercept/intercept-option.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react';
33
import { action, observable } from 'mobx';
44
import { observer, inject } from 'mobx-react';
55

6-
import { NARROW_LAYOUT_BREAKPOINT, styled, popColor } from '../../styles';
6+
import { NARROW_LAYOUT_BREAKPOINT, styled, popColor, warningColor } from '../../styles';
77
import { Icon } from '../../icons';
88
import { trackEvent } from '../../metrics';
99
import { logError } from '../../errors';
@@ -181,6 +181,10 @@ function getStatusPill(interceptor: Interceptor) {
181181
Coming soon
182182
</StatusPill>;
183183
}
184+
} else if (interceptor.experimental) {
185+
return <StatusPill color={warningColor}>
186+
Experimental
187+
</StatusPill>;
184188
} else {
185189
return null;
186190
}

src/model/interception/interceptors.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface InterceptorConfig {
3939
serverVersion?: string
4040
}) => unknown;
4141
notAvailableHelpUrl?: string;
42+
experimental?: boolean;
4243
}
4344

4445
export type Interceptor =
@@ -279,7 +280,8 @@ const INTERCEPT_OPTIONS: _.Dictionary<InterceptorConfig> = {
279280
iconProps: recoloured(androidInterceptIconProps, '#ef6456'),
280281

281282
uiConfig: FridaCustomUi,
282-
tags: [...MOBILE_TAGS, ...ANDROID_TAGS]
283+
tags: [...MOBILE_TAGS, ...ANDROID_TAGS],
284+
experimental: true
283285
},
284286
'ios-frida': {
285287
name: 'iOS App via Frida',
@@ -291,7 +293,8 @@ const INTERCEPT_OPTIONS: _.Dictionary<InterceptorConfig> = {
291293
iconProps: recoloured(SourceIcons.iOS, '#ef6456'),
292294

293295
uiConfig: FridaCustomUi,
294-
tags: [...MOBILE_TAGS, ...IOS_TAGS]
296+
tags: [...MOBILE_TAGS, ...IOS_TAGS],
297+
experimental: true
295298
},
296299
'manual-ios-device': {
297300
name: 'iOS via Manual Setup',

0 commit comments

Comments
 (0)