Skip to content

Commit bd5edce

Browse files
authored
WIP: misc fixes (keybase#25011)
fix android build w/ new expo media library android modal back colors wrong ios save popup dynamic color wrong
1 parent 4a578aa commit bd5edce

33 files changed

Lines changed: 104 additions & 190 deletions

File tree

‎shared/actions/chat2/index.tsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as Constants from '../../constants/chat2'
55
import * as Container from '../../util/container'
66
import * as DeeplinksGen from '../deeplinks-gen'
77
import * as EngineGen from '../engine-gen-gen'
8-
import * as Flow from '../../util/flow'
98
import * as FsConstants from '../../constants/fs'
109
import * as FsTypes from '../../constants/types/fs'
1110
import * as GregorConstants from '../../constants/gregor'
@@ -86,7 +85,6 @@ const inboxRefresh = (
8685
reason = 'inboxStale'
8786
break
8887
default:
89-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action)
9088
}
9189

9290
logger.info(`Inbox refresh due to ${reason ?? '???'}`)
@@ -172,7 +170,6 @@ const rpcMetaRequestConversationIDKeys = (
172170
keys = [action.payload.conversationIDKey].filter(Constants.isValidConversationIDKey)
173171
break
174172
default:
175-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action)
176173
throw new Error('Invalid action passed to unboxRows')
177174
}
178175
return Constants.getConversationIDKeyMetasToLoad(keys, state.chat2.metaMap)
@@ -1125,7 +1122,6 @@ function* loadMoreMessages(
11251122
forceClear = true
11261123
break
11271124
default:
1128-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action)
11291125
}
11301126

11311127
if (!key || !Constants.isValidConversationIDKey(key)) {
@@ -1270,7 +1266,6 @@ function* getUnreadline(
12701266
key = action.payload.conversationIDKey
12711267
break
12721268
default:
1273-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action.type)
12741269
key = action.payload.conversationIDKey
12751270
}
12761271

‎shared/actions/config/index.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import logger from '../../logger'
22
import {log} from '../../native/log/logui'
3-
import * as Flow from '../../util/flow'
43
import * as ConfigGen from '../config-gen'
54
import * as GregorGen from '../gregor-gen'
65
import * as SettingsGen from '../settings-gen'
@@ -457,7 +456,6 @@ function* criticalOutOfDateCheck() {
457456
message = s.critical.message
458457
break
459458
default:
460-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(s)
461459
}
462460
yield Saga.put(ConfigGen.createUpdateCriticalCheckStatus({message: message || '', status}))
463461
} catch (e) {

‎shared/actions/fs/index.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as FsGen from '../fs-gen'
55
import * as ConfigGen from '../config-gen'
66
import * as RPCTypes from '../../constants/types/rpc-gen'
77
import * as Saga from '../../util/saga'
8-
import * as Flow from '../../util/flow'
98
import * as Tabs from '../../constants/tabs'
109
import * as NotificationsGen from '../notifications-gen'
1110
import * as Types from '../../constants/types/fs'
@@ -184,7 +183,6 @@ const getSyncConfigFromRPC = (
184183
: [],
185184
})
186185
default:
187-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(config.mode)
188186
return Constants.tlfSyncDisabled
189187
}
190188
}
@@ -266,7 +264,6 @@ const getPrefetchStatusFromRPC = (
266264
case RPCTypes.PrefetchStatus.complete:
267265
return Constants.prefetchComplete
268266
default:
269-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(prefetchStatus)
270267
return Constants.prefetchNotStarted
271268
}
272269
}
@@ -829,7 +826,6 @@ const onNotifyFSOverallSyncSyncStatusChanged = (
829826
case Types.DiskSpaceStatus.Ok:
830827
break
831828
default:
832-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(diskSpaceStatus)
833829
}
834830
}
835831
return actions

‎shared/actions/platform-specific/index.native.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import * as ProfileGen from '../profile-gen'
1111
import * as SettingsGen from '../settings-gen'
1212
import * as WaitingGen from '../waiting-gen'
1313
import * as EngineGen from '../engine-gen-gen'
14-
import * as Flow from '../../util/flow'
1514
import * as Tabs from '../../constants/tabs'
1615
import * as RouteTreeGen from '../route-tree-gen'
1716
import * as LoginGen from '../login-gen'
@@ -219,7 +218,6 @@ const updateChangedFocus = (action: ConfigGen.MobileAppStatePayload) => {
219218
logState = RPCTypes.MobileAppState.inactive
220219
break
221220
default:
222-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action.payload.nextAppState)
223221
appFocused = false
224222
logState = RPCTypes.MobileAppState.foreground
225223
}

‎shared/actions/wallets.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import * as Chat2Gen from './chat2-gen'
99
import * as ConfigGen from './config-gen'
1010
import * as NotificationsGen from './notifications-gen'
1111
import * as RouteTreeGen from './route-tree-gen'
12-
import * as Flow from '../util/flow'
1312
import * as Router2Constants from '../constants/router2'
1413
import HiddenString from '../util/hidden-string'
1514
import _logger from '../logger'
@@ -523,7 +522,7 @@ const loadAssets = async (state: TypedState, action: LoadAssetsActions, logger:
523522
accountID = state.wallets.selectedAccount
524523
break
525524
default:
526-
return Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(action)
525+
return
527526
}
528527

529528
// should be impossible

‎shared/android/app/build.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ android {
206206

207207
buildTypes {
208208
debug {
209+
applicationIdSuffix ".debug"
209210
if (nativeArchitectures) {
210211
ndk {
211212
abiFilters nativeArchitectures.split(',')

‎shared/chat/conversation/messages/attachment/shared.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import * as Kb from '../../../../common-adapters'
3-
import * as Types from '../../../../constants/types/chat2'
43
import * as Styles from '../../../../styles'
4+
import type * as Types from '../../../../constants/types/chat2'
55
import {sharedStyles} from '../shared-styles'
66
import {isMobile} from '../../../../constants/platform'
77

‎shared/common-adapters/list2.desktop.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, {PureComponent} from 'react'
2-
import * as Flow from '../util/flow'
32
import AutoSizer from 'react-virtualized-auto-sizer'
43
import {FixedSizeList, VariableSizeList} from 'react-window'
54
import {Props} from './list2'
@@ -78,7 +77,6 @@ class List2<T> extends PureComponent<Props<T>> {
7877
case 'variable':
7978
return this._variable({getItemLayout: this.props.itemHeight.getItemLayout, height, width})
8079
default:
81-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(this.props.itemHeight)
8280
return null
8381
}
8482
}}

‎shared/common-adapters/list2.native.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, {PureComponent} from 'react'
2-
import * as Flow from '../util/flow'
32
import {FlatList, View} from 'react-native'
43
import * as Styles from '../styles'
54
import {smallHeight, largeHeight} from './list-item2'
@@ -29,7 +28,6 @@ class List2<T> extends PureComponent<Props<T>> {
2928
case 'variable':
3029
return {...this.props.itemHeight.getItemLayout(index, data ? data[index] : undefined)}
3130
default:
32-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(this.props.itemHeight)
3331
return {index, length: 0, offset: 0}
3432
}
3533
}

‎shared/common-adapters/save-indicator.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Box from './box'
44
import Icon from './icon'
55
import ProgressIndicator from './progress-indicator'
66
import Text from './text'
7-
import * as Flow from '../util/flow'
87

98
const Kb = {
109
Box,
@@ -104,7 +103,6 @@ const computeNextState = (props: Props, state: State, now: Date): null | SaveSta
104103
}
105104

106105
default:
107-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(saveState)
108106
throw new Error(`Unexpected state ${saveState}`)
109107
}
110108
}
@@ -199,12 +197,12 @@ class SaveIndicator extends React.Component<Props, State> {
199197
</>
200198
)
201199
default:
202-
Flow.ifFlowComplainsAboutThisFunctionYouHaventHandledAllCasesInASwitch(saveState)
203200
throw new Error(`Unexpected state ${saveState}`)
204201
}
205202
}
206203

207204
render() {
205+
return null // TEMP
208206
return (
209207
<Kb.Box style={Styles.collapseStyles([defaultStyle, this.props.style] as any)}>
210208
{this.getChildren()}

0 commit comments

Comments
 (0)