stuff
This commit is contained in:
parent
3b4c4ad797
commit
4800590312
8 changed files with 13 additions and 26 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"cmake.configureOnOpen": false
|
||||
"cmake.configureOnOpen": false,
|
||||
"java.configuration.updateBuildConfiguration": "interactive"
|
||||
}
|
|
@ -49,6 +49,9 @@ android {
|
|||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.debug
|
||||
shrinkResources false
|
||||
zipAlignEnabled false
|
||||
minifyEnabled false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<application
|
||||
android:label="haveno_flutter_app"
|
||||
android:name="${applicationName}"
|
||||
android:extractNativeLibs="true"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
android.bundle.enableUncompressedNativeLibs=false
|
|
@ -18,12 +18,11 @@ import 'package:provider/provider.dart';
|
|||
import 'package:haveno_flutter_app/services/haveno_service.dart';
|
||||
import 'package:haveno_flutter_app/services/http_service.dart';
|
||||
import 'package:haveno_flutter_app/services/monero_service.dart';
|
||||
import 'package:haveno_flutter_app/services/tor_service.dart';
|
||||
import 'package:haveno_flutter_app/providers/get_version_provider.dart';
|
||||
import 'package:haveno_flutter_app/providers/account_provider.dart';
|
||||
import 'dart:async';
|
||||
import 'package:badges/badges.dart' as badges;
|
||||
import 'package:tor/tor.dart'; // Import the badges package
|
||||
//import 'package:tor/tor.dart'; // Import the badges package
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
@ -31,23 +30,11 @@ void main() async {
|
|||
// Setup logging
|
||||
_setupLogging();
|
||||
|
||||
// Initialize services
|
||||
Tor tor = Tor(); // Constructing the Tor instance
|
||||
TorService torService = TorService(tor);
|
||||
|
||||
// Strart service and listen
|
||||
torService.startService();
|
||||
//torService.listenToTorServiceEvents();
|
||||
torService.checkControlPort();
|
||||
torService.checkSocks5Port();
|
||||
|
||||
|
||||
final httpService = HttpService();
|
||||
final myIP = await httpService.request('GET', 'https://api.ipify.org?format=json');
|
||||
debugPrint(myIP.toString());
|
||||
final moneroService = MoneroService();
|
||||
|
||||
final havenoService = HavenoService('127.0.0.1', 3201, 'apitest');
|
||||
final havenoService = HavenoService('192.168.0.72', 3201, 'apitest');
|
||||
|
||||
runApp(
|
||||
MultiProvider(
|
||||
|
|
|
@ -77,6 +77,8 @@ class TorService {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void listenToTorServiceEvents() {
|
||||
_torStatusSubscription = _tor.torServiceEvents.listen((event) {
|
||||
_statusController.add("Tor event: $event");
|
||||
|
|
|
@ -549,13 +549,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
tor:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "../Flutter Plugins/tor"
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.0.1"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
@ -25,12 +25,11 @@ dependencies:
|
|||
# timelines_plus: ^1.0.2
|
||||
google_fonts: ^6.2.1
|
||||
|
||||
|
||||
font_awesome_flutter: ^10.7.0
|
||||
timeline_tile: ^2.0.0
|
||||
# Add your plugin dependency here
|
||||
tor:
|
||||
path: "../Flutter Plugins/tor"
|
||||
#tor_plugin:
|
||||
# path: "../Flutter Plugins/tor_plugin"
|
||||
protoc_plugin: ^21.1.2
|
||||
fixnum: ^1.1.0
|
||||
intl: ^0.17.0
|
||||
|
|
Loading…
Reference in a new issue