Skip to content

Commit

Permalink
Mark Frida interceptors as experimental for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Jun 13, 2024
1 parent 8dbc381 commit b46492b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/intercept/intercept-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { action, observable } from 'mobx';
import { observer, inject } from 'mobx-react';

import { NARROW_LAYOUT_BREAKPOINT, styled, popColor } from '../../styles';
import { NARROW_LAYOUT_BREAKPOINT, styled, popColor, warningColor } from '../../styles';
import { Icon } from '../../icons';
import { trackEvent } from '../../metrics';
import { logError } from '../../errors';
Expand Down Expand Up @@ -181,6 +181,10 @@ function getStatusPill(interceptor: Interceptor) {
Coming soon
</StatusPill>;
}
} else if (interceptor.experimental) {
return <StatusPill color={warningColor}>
Experimental
</StatusPill>;
} else {
return null;
}
Expand Down
7 changes: 5 additions & 2 deletions src/model/interception/interceptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface InterceptorConfig {
serverVersion?: string
}) => unknown;
notAvailableHelpUrl?: string;
experimental?: boolean;
}

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

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

uiConfig: FridaCustomUi,
tags: [...MOBILE_TAGS, ...IOS_TAGS]
tags: [...MOBILE_TAGS, ...IOS_TAGS],
experimental: true
},
'manual-ios-device': {
name: 'iOS via Manual Setup',
Expand Down

0 comments on commit b46492b

Please sign in to comment.