Skip to content

Commit 4cfce34

Browse files
committed
Revert "fix deploy blocker"
This reverts commit f7a01f3.
1 parent f7a01f3 commit 4cfce34

6 files changed

Lines changed: 0 additions & 15 deletions

File tree

modules/hybrid-app/android/src/main/java/com/expensify/reactnativehybridapp/ReactNativeHybridApp.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@ class ReactNativeHybridApp(reactContext: ReactApplicationContext) :
3636
override fun sendAuthToken(authToken: String?) {
3737
Log.d(NAME, "`sendAuthToken` should never be called in standalone `New Expensify` app")
3838
}
39-
40-
override fun allowSendingThroughLinking() {
41-
Log.d(NAME, "`allowSendingThroughLinking` should never be called in standalone `New Expensify` app")
42-
}
4339
}

modules/hybrid-app/src/NativeReactNativeHybridApp.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export interface Spec extends TurboModule {
99
completeOnboarding: (status: boolean) => void;
1010
switchAccount: (newDotCurrentAccountEmail: string, authToken: string, policyID: string, accountID: string) => void;
1111
sendAuthToken: (authToken: string) => void;
12-
allowSendingThroughLinking: () => void;
1312
}
1413

1514
export default TurboModuleRegistry.getEnforcing<Spec>('ReactNativeHybridApp');

modules/hybrid-app/src/index.native.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ const HybridAppModule: HybridAppModuleType = {
2020
sendAuthToken({authToken}) {
2121
ReactNativeHybridApp.sendAuthToken(authToken);
2222
},
23-
allowSendingThroughLinking() {
24-
ReactNativeHybridApp.allowSendingThroughLinking();
25-
}
2623
};
2724

2825
export default HybridAppModule;

modules/hybrid-app/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ const HybridAppModule: HybridAppModuleType = {
2424
// eslint-disable-next-line no-console
2525
console.warn('HybridAppModule: `sendAuthToken` should never be called on web');
2626
},
27-
allowSendingThroughLinking() {
28-
// eslint-disable-next-line no-console
29-
console.warn('HybridAppModule: `allowSendingThroughLinking` should never be called on web');
30-
}
3127
};
3228

3329
export default HybridAppModule;

modules/hybrid-app/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ type HybridAppModuleType = {
55
completeOnboarding: (args: {status: boolean}) => void;
66
switchAccount: (args: {newDotCurrentAccountEmail: string; authToken: string; policyID: string; accountID: string}) => void;
77
sendAuthToken: (args: {authToken: string}) => void;
8-
allowSendingThroughLinking: () => void;
98
};
109

1110
export default HybridAppModuleType;

src/HybridAppHandler.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import HybridAppModule from '@expensify/react-native-hybrid-app';
21
import {findFocusedRoute} from '@react-navigation/native';
32
import {useContext, useEffect, useState} from 'react';
43
import {Linking} from 'react-native';
@@ -34,7 +33,6 @@ function HybridAppHandler({url, hybridAppSettings}: AppProps) {
3433
const listener = Linking.addEventListener('url', (state) => {
3534
handleHybridUrlNavigation(state.url as Route);
3635
});
37-
HybridAppModule.allowSendingThroughLinking();
3836

3937
return () => {
4038
listener.remove();

0 commit comments

Comments
 (0)