Merge pull request #1214 from KoalaSat/new-tor-engine

Fix build
This commit is contained in:
Reckless_Satoshi 2024-03-29 20:02:49 +00:00 committed by GitHub
commit fbab420841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import TorClient from './services/Tor';
import Clipboard from '@react-native-clipboard/clipboard';
import EncryptedStorage from 'react-native-encrypted-storage';
import { name as app_name, version as app_version } from './package.json';
import TorModule from './lib/native/TorModule';
import TorModule from './native/TorModule';
const backgroundColors = {
light: 'white',

View File

@ -0,0 +1,11 @@
import { NativeModules } from 'react-native';
const { TorModule } = NativeModules;
interface TorModuleInterface {
start: () => void;
restart: () => void;
getTorStatus: () => void;
sendRequest: (action: string, url: string, headers: string, body: string) => Promise<string>;
}
export default TorModule as TorModuleInterface;

View File

@ -1,4 +1,4 @@
import TorModule from '../../lib/native/TorModule';
import TorModule from '../../native/TorModule';
class TorClient {
public get: (baseUrl: string, path: string, headers: object) => Promise<object> = async (