detectNetwork #670
No reviewers
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#670
Loading…
Reference in New Issue
No description provided.
Delete Branch "detectNetwork"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/305
@ -0,0 +1,27 @@
Copyright 2017 The Chromium Authors. All rights reserved.
Licenses needs to be added to licenses.dart
@ -0,0 +1,27 @@
Copyright 2017 The Chromium Authors. All rights reserved.
Licenses needs to be added to licenses.dart
@ -0,0 +1,106 @@
# connectivity_plus
document changes
@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
align gradle versions android/gradle/wrapper/gradle-wrapper.properties currently depends on
gradle-6.5-bin.zip
@ -0,0 +15,4 @@
static final String CONNECTIVITY_WIFI = "wifi";
static final String CONNECTIVITY_MOBILE = "mobile";
static final String CONNECTIVITY_ETHERNET = "ethernet";
static final String CONNECTIVITY_BLUETOOTH = "bluetooth";
remove
@ -0,0 +43,4 @@
return CONNECTIVITY_MOBILE;
}
if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_BLUETOOTH)) {
return CONNECTIVITY_BLUETOOTH;
remove
@ -0,0 +59,4 @@
}
int type = info.getType();
switch (type) {
case ConnectivityManager.TYPE_BLUETOOTH:
remove
@ -0,0 +38,4 @@
switch (type) {
case 'none':
return ConnectivityResult.none;
case 'bluetooth':
remove
@ -0,0 +2,4 @@
// https://github.com/PurpleI2P/i2pd/blob/master/Win32/Win32NetState.cpp
/*
* Copyright (c) 2013-2020, The PurpleI2P Project
another license that needs to be in licenses.dart.
Also appears that the original code is violating this license by distributing a separate license that doesn't contain this copyright information...
@ -0,0 +1,94 @@
## 1.2.4
should probably update this files to document the specific changes made.
@ -0,0 +1,27 @@
Copyright 2020 The Chromium Authors. All rights reserved.
license needs to also be in license.dart
@ -0,0 +1,27 @@
/// Connection status check result.
enum ConnectivityResult {
/// Bluetooth: Device connected via bluetooth
bluetooth,
remove
@ -0,0 +20,4 @@
/// Note for iOS and macOS:
/// There is no separate network interface type for [vpn].
/// It returns [other] on any device (also simulator).
vpn,
see note on vpn
@ -0,0 +4,4 @@
ConnectivityResult parseConnectivityResult(String state) {
switch (state) {
case 'bluetooth':
return ConnectivityResult.bluetooth;
remove
@ -0,0 +12,4 @@
case 'mobile':
return ConnectivityResult.mobile;
case 'vpn':
return ConnectivityResult.vpn;
tor over vpn is a terrible idea...we should probably by-default restrict this.
all we're doing is detecting if the network is up or not to reboot the ACN, i'm not sure what the logic for this would even look like, an excemption in main.lib listener to jsut not resetTor if the type is vpn? but since we dont want this system to know to much we're deleting knowledge of this specificity (like bluetooth) so that doesn't work anyways
@ -0,0 +14,4 @@
case 'vpn':
return ConnectivityResult.vpn;
case 'other':
return ConnectivityResult.other;
remove
@ -0,0 +1,373 @@
Mozilla Public License Version 2.0
Another...License....
@ -9,3 +9,3 @@
url: "https://pub.dev"
source: hosted
version: "47.0.0"
version: "31.0.0"
...
@ -339,3 +354,3 @@
url: "https://pub.dev"
source: hosted
version: "3.2.0"
version: "2.1.3"
massive downgrade?
@ -738,3 +761,3 @@
url: "https://pub.dev"
source: hosted
version: "1.2.6"
version: "1.2.2"
why the downgrade?
@ -47,2 +47,4 @@
flutter_local_notifications: ^9.6.1
desktop_notifications: ^0.6.3
# network management plugins
dbus: ^0.7.0
specify a concrete version.
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/307
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/308
8ccbc7a042
tof0140c7a8a
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/309
f0140c7a8a
todaf0496cf2
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/310
daf0496cf2
tob5d643c5a8
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/311
b5d643c5a8
to66e3f0a1c2
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/312
66e3f0a1c2
to130fe5fa3c
130fe5fa3c
toba1fa59eb1
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/314
ba1fa59eb1
tof6f9e597b3
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/315
f6f9e597b3
tof80d828050
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/316
f80d828050
tobb48adc9d6
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/317
bb48adc9d6
to0d4276b0f8
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/318
0d4276b0f8
to522069def9
522069def9
toc49e89f536
c49e89f536
tob21fb62593
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/321
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/322
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch-ui/323
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/324
@ -15,3 +15,3 @@
import 'package:path/path.dart' as path;
import 'config.dart';
import '../../config.dart';
?
@ -0,0 +11,4 @@
show ConnectivityResult;
export 'src/connectivity_plus_linux.dart'
if (dart.library.html) 'src/connectivity_plus_web.dart';
delete this.
@ -0,0 +1,27 @@
import 'package:connectivity_plus_platform_interface/connectivity_plus_platform_interface.dart';
I think this whole file can be deleted. We will never ship Cwtch for web targets due to the insecurity of the platform itself.
@ -0,0 +1,35 @@
import 'dart:async';
delete as above
@ -0,0 +1,92 @@
import 'dart:async';
delete as above
@ -0,0 +1,50 @@
import 'dart:html' as html show NetworkInformation;
delete as above
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/328
6228dcb1fc
to2aa01a25de
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/330
2aa01a25de
to9e879d560f
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch-ui/334