Giter VIP home page Giter VIP logo

sail's People

Contributors

elforl avatar jerry-bool avatar linaaaqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sail's Issues

run and connect to vpn in ios

when I press to the power button to start VPN connection ,app is closing and this error shows to me
Runner/AppDelegate.swift:26: Fatal error: load VPN preference failed: Optional(Error Domain=NEVPNErrorDomain Code=5 "IPC failed" UserInfo={NSLocalizedDescription=IPC failed})
what is the problem?

IOS bug after disconnect

Hi
would you please help me with these:
1-When the VPN is connected after clicking on disconnect, and then clicking on connect, it jumps to the yellow page but won't connect, after 10-15 second jumps back home page, and after retying, it will connect...

2- Vmess not working, even though I tried to pass vmess config manually in app_model.dart,

Android cannot disconnect

Building an apk and connecting to the server is normal on Android, but cannot disconnect the server.

Please help.

构建安卓apk时错误

/root/sail/android/app/src/main/kotlin/com/sail_tunnel/sail/utils/DeviceStorageApp.kt: Error: Expected Application subtype to implement Configuration.Provider [BadConfigurationProvider from work-runtime-2.7.1]

Explanation for issues of type "BadConfigurationProvider":
An android.app.Application must implement
androidx.work.Configuration.Provider
for on-demand initialization.

Vendor: Android Open Source Project (work-runtime-2.7.1)
Identifier: work-runtime-2.7.1
Feedback: https://issuetracker.google.com/issues/new?component=192731

1 errors, 0 warnings

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:lintVitalRelease'.

Lint found fatal errors while assembling a release target.

Fix the issues identified by lint, or create a baseline to see only new errors:

android {
    lint {
        baseline = file("lint-baseline.xml")
    }
}

For more details, see https://developer.android.com/studio/write/lint#snapshot

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1m 30s
Running Gradle task 'assembleRelease'... 92.2s
Gradle task assembleRelease failed with exit code 1

an interesting mistake

When there is no problem between the node and the server, and the nodes 🟠 ​​or 🔵 the application cannot list the servers and gives an error that you have no subscriptions. but if there is a problem between the node and the server and the node is marked as 🔴, the servers are listed but of course the connection cannot be established.

2个flutter run报错

1.appid问题 package名称不能用-连接,改成_即可或者降低flutter版本为3.0.1
2.flutter run 安卓设备时报错
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
·············省略
lib/models/server_model.dart:68:33: Warning: Operand of null-aware operation '?.' has type 'ServerEntity' which excludes null.

  • 'ServerEntity' is from 'package:sail_app/entity/server_entity.dart' ('lib/entity/server_entity.dart').
    _serverEntityList![index]?.ping = duration;
    ·············省略
    FAILURE: Build failed with an exception.
  • Where:
    Script 'D:\flutter_windows\flutter_3.0.1\packages\flutter_tools\gradle\flutter.gradle' line: 1156

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\flutter_windows\flutter_3.0.1\bin\flutter.bat'' finished with non-zero exit value 1

环境
Flutter 3.0.1
Dart 2.17.1

No connect vpn Manager

Hello ı have problem.

2022-07-09 15:07:14.840 6847-6885/com.losgif.sail_app E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method enableVPNManager on channel com.losgif.sail/vpn_manager)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165:7)

#1 VpnManager.enableVPNManager (package:sail_app/channels/vpn_manager.dart:10:16)

#2 AppModel.togglePowerButton (package:sail_app/models/app_model.dart:12:7)

My build Gradle. Default Setting for project

buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:4.1.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

is your demo really work?

hi i am really need a demo ios app for v2ray I find your repo but I think it isn't implemented v2ray cli binary , two question :
1-if is not completed are you implement v2ray inside this soon as possible?
2-how i can help you to develop this application i compiled cli binary v2ray core for ios if you want i can send it to you

if you are help me i can help you in v2board becouse I am laravel developer
we need this app in Iran because over government is block all of other vpns ,
we really need to v2ray support to access to free internet
@losgif @ElforL @jerry-bool

IOS long disconnect time

As connect is fast but disconnect encountering 20s to process, in ios con setting it's show disconnecting ...

Not listing Servers List

Even though I did all the settings. Server listings are not listed. The ping list is empty. Server selection stays on the White page. can you help with this problem

Logcat
E/flutter (31688): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'int'
E/flutter (31688): #0 new UserSubscribeEntity.fromMap (package:sail/entity/user_subscribe_entity.dart:40:20)
E/flutter (31688): #1 UserService.userSubscribe. (package:sail/service/user_service.dart:28:34)
E/flutter (31688):
E/flutter (31688): #2 UserSubscribeModel.getUserSubscribe (package:sail/models/user_subscribe_model.dart:21:30)
E/flutter (31688):
E/flutter (31688): #3 HomePageState.didChangeDependencies (package:sail/pages/home/home_page.dart:69:7)
E/flutter (31688):
E/flutter (31688):

环境问题

主要是想看看怎么绘制的界面,

不需要运行了

感谢

Unhandled Exception: type 'Null' is not a subtype of type 'String'

修改API基础接口地址登录报500错误,但终端显示的200,然后退出软件在允许就是下面的错误了

hahahah@MacBook-Pro sail-master % flutter run
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 5.6s
Xcode build done. 14.6s
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0 new UserEntity.fromMap (package:sail/entity/user_entity.dart:50:16)
#1 UserModel.refreshData (package:sail/models/user_model.dart:40:32)

#2 main (package:sail/main.dart:26:3)

Syncing files to device iPhone 14 Pro... 163ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:59531/zhxKH2HQKi8=/
The Flutter DevTools debugger and profiler on iPhone 14 Pro is available at:
http://127.0.0.1:9104?uri=http://127.0.0.1:59531/zhxKH2HQKi8=/

how i can test vpn connection?

when I press to the power button to start VPN connection ,app is closing and this error shows to me
Runner/AppDelegate.swift:26: Fatal error: load VPN preference failed: Optional(Error Domain=NEVPNErrorDomain Code=5 "IPC failed" UserInfo={NSLocalizedDescription=IPC failed})
what is the problem?

付费解决问题

有谁运行起来了,方便给个联系方式吗,或者加我的v :13718004099

how to connect?

I wrote a demo, but it couldn't be connected. Could you please give me some guidance on where the problem is

`import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:sail/models/app_model.dart';

import '../adapters/leaf_ffi/config.dart';

class Test extends StatefulWidget {
const Test({Key? key}) : super(key: key);

@OverRide
_TestState createState() => _TestState();
}

class _TestState extends State {
AppModel _appModel = AppModel();
@OverRide
Widget build(BuildContext context) {
return Container(
width: double.infinity,
height: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
GestureDetector(
onTap: () {
Config config = Config();
List proxyGroups = [];
print("play");

          General general = General(
              loglevel: 'info',
              logoutput: '{{leafLogFile}}',
              dnsServer: ['223.5.5.5', '114.114.114.114'],
              tunFd: '{{tunFd}}',
              routingDomainResolve: true);

          List<Proxy> proxies = [];

          proxies.add(Proxy(tag: 'Direct', protocol: 'direct'));
          proxies.add(Proxy(tag: 'Reject', protocol: 'reject'));

          List<Rule> rules = [];

          /*  rules.add(Rule(
              typeField: 'EXTERNAL',
              target: 'Direct',
              filter: 'site:geolocation-!cn'));
          rules.add(Rule(
              typeField: 'EXTERNAL', target: 'Direct', filter: 'site:cn')); */
          rules.add(Rule(typeField: 'FINAL', target: 'PROXY'));

          config.general = general;
          config.proxies = proxies;
          config.rules = rules;

         
          proxies.add(
            Proxy(
              tag: "nasname",
              protocol: "shadowsocks",
              address: "ipipipi3",
              port: 5127,
              encryptMethod: "chacha20-ietf-poly1305",
              password: "79518f9ef06a548a",
            ),
          );
          List<String> actors = [];
          actors.add("nasname");
          proxyGroups.add(ProxyGroup(
              tag: "UrlTest",
              protocol: 'url-test',
              actors: actors,
              checkInterval: 600));
          config.proxyGroups = proxyGroups;

          config.proxies = proxies;
          // config.general = General()

          print("-----------------config-----------------");
          print(config);
          print("-----------------config-----------------");

          _appModel.vpnManager.setTunnelConfiguration(config.toString());
          _appModel.vpnManager.toggle();
        },
        child: Icon(
          Icons.play_circle,
          size: 80,
          color: Colors.amber,
        ),
      ),
      GestureDetector(
        onTap: () {
          print("vpn status");
          _appModel.vpnManager
              .getStatus()
              .then((value) => {print("vpn status ==== ${value}")});
          _appModel.vpnManager.getTunnelConfiguration().then((value) {
            print("vpn config ==== ${value}");
          });
        },
        child: Icon(
          Icons.info,
          size: 80,
          color: Colors.amber,
        ),
      ),
      GestureDetector(
        onTap: () {
          print("vpn status");
          _appModel.vpnManager
            ..getTunnelLog().then((value) {
              print("tunnel log ${value}");
            });
        },
        child: Icon(
          Icons.signal_wifi_statusbar_4_bar,
          size: 80,
          color: Colors.amber,
        ),
      ),
      GestureDetector(
        onTap: () async {
          print("stop");
          // _appModel.vpnManager.setTunnelConfiguration(Config().toString());
          await _appModel.vpnManager.stop();
        },
        child: Icon(
          Icons.stop_circle,
          size: 80,
          color: Colors.amber,
        ),
      ),
    ],
  ),
);

}
}
`

Android 设备无法关闭vpn

尝试在TunnelService 类里面的onStartCommand 方法里面添加stopRunner()方法但是这个方法关闭vpn后、再次连接无法访问网络 override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { val data = data if (data.state != VpnState.State.Stopped) { Log.i("vpn状态:","关闭事件") stopRunner() return Service.START_NOT_STICKY } Log.i("vpn状态:","开启事件") try { data.proxy = TunnelInstance() } catch (e: IllegalArgumentException) { stopRunner(false, e.message) return Service.START_NOT_STICKY }

can't build the app for ios - how to fix it?

Thank you for your work and for sharing your results with the community. unfortunately, I have a problem - I cannot assemble the application. I get an error - "Could not build the precompiled application for the device".
I changed the bundle IDs to my own (registered in my account) but I still get this error. any advice - I will be very grateful

V2RAY

Hi
I am looking for freelancer developer for v2ray application, I will pay for this project. can you message me on whatsapp +971556308714.
or email - [email protected]

在构建ios版时flutter_inappwebview出现问题

错误信息如下:
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/ljc/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.7.2+2/ios/Classes/My
CookieManager.swift:259:43

Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/ljc/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.7.2+2/ios/Classes/My
CookieManager.swift:293:43

请问这个问题需要怎么解决呢 感谢感谢感谢!

error when toggle button

when toggle the button

E/SurfaceSyncer(24114): Failed to find sync for id=0
W/Parcel (24114): Expecting binder but got null!
D/AndroidRuntime(24114): Shutting down VM
E/AndroidRuntime(24114): FATAL EXCEPTION: main
E/AndroidRuntime(24114): Process: com.sail_tunnel.sail, PID: 24114
E/AndroidRuntime(24114): java.lang.UnsatisfiedLinkError: dlopen failed: library "libleaf.so" not found
E/AndroidRuntime(24114): at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
E/AndroidRuntime(24114): at java.lang.Runtime.loadLibrary0(Runtime.java:998)
E/AndroidRuntime(24114): at java.lang.System.loadLibrary(System.java:1661)
E/AndroidRuntime(24114): at com.sail_tunnel.sail.services.TunnelInstance.(TunnelInstance.kt:22)
E/AndroidRuntime(24114): at com.sail_tunnel.sail.TunnelService.onStartCommand(TunnelService.kt:78)
E/AndroidRuntime(24114): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4655)
E/AndroidRuntime(24114): at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
E/AndroidRuntime(24114): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2180)
E/AndroidRuntime(24114): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(24114): at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(24114): at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(24114): at android.app.ActivityThread.main(ActivityThread.java:7872)
E/AndroidRuntime(24114): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(24114): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(24114): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
D/EGL_emulation(24114): app_time_stats: avg=6412.12ms min=181.73ms max=12642.51ms count=2
I/Process (24114): Sending signal. PID: 24114 SIG: 9
Lost connection to device.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.