Skip to content

everscale-org/flutter-web3-proxy

 
 

Repository files navigation

chums_proxy

License

Flutter plugin for interacting with the native library of the chums proxy service.

The source files of the native library can be found here

The proxy launch on port 3000 at 127.0.0.1

Installing

At the moment, the plugin supports Android and iOS platforms.

For Android,

it is enough to add a plugin depending on the main application pubspec.yaml.

For iOS,

in addition to adding a plugin depending on the main application, you need to connect XCFramework with the library on XCode project

The XC Framework is located in ./chums_proxy_ios/ios/Frameworks/libchums_proxy.xcframework You need to copy the folder "libchums_proxy.xcframework" in the main application to the /ios/Frameworks directory

The structure of your application may look like this: Screen 1

You can connect the framework to xcode as follows:

  • Go to the "Frameworks, Libraries, and Embedded Content" section, click "+" and select the framework (find it in the navigator) that was previously added to your project in the ios/Frameworks directory. Screen 1
  • Check that the Embed value is set in "Embed & Sign"
  • In the "Build Phases" section, check that the "Embed frameworks" block is located above the "Thin Binary" block and contains the added libchums_proxy.xcframework Screen 2
  • In the "Build Phases" section, in the "Link Binary With Libraries" block, the "Status" value for libchums_proxy.xcframework set to "Optional" Screen 3

Application usage example:

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  ChumsProxyLifecycle().start();
  runApp(const ProxyApp());
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 28.3%
  • C++ 25.0%
  • CMake 23.2%
  • Ruby 7.6%
  • Kotlin 7.0%
  • C 4.9%
  • Swift 4.0%