Skip to content

MarvinQuevedo/flutter_chia_rust_utils

Repository files navigation

Flutter Chia Rust library

Flutter Chia Rust library develop by Ozone Team Marvin Quevedo

You can support our work sending a tip to:


CHIA: xch1u63gjtvqyptalmhh9e5pwkwerf5x58f6phajdnlmqms262nhlnesck3pjq

TRON-TRC20: TMxKPo5AnfSbJY8CZcTJR7L8h4JtEG2pBp

Bitcoin: 3Qnbej5wkFYHGm1AzBMkfopzENkNipAaLQ



Using chia_rs we develop a Flutter lib binding.

In this library you have chia_tools_rs commands (run, brun, opc, opd) can be used in Flutter

Program for work with ChiaLisp programs for develop news logic for Chia Blockchain tools




For build in iOS, call the dummy method for keep the libs in release mode

import UIKit
import Flutter

// add import
import flutter_chia_rust_utils
 

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
 
    //...
    // Add this line to call dummyMethodToEnforceBundling 
    // for give the xcode compiler that we need the Rust native library

    FlutterChiaBlsPlugin.dummyMethodToEnforceBundling()

    //...
    
  }
}

For build in macOS

import Cocoa
import FlutterMacOS

// add import
import flutter_chia_rust_utils

class MainFlutterWindow: NSWindow {
  override func awakeFromNib() {
    //...
    // Add this line to call dummyMethodToEnforceBundling 
    // for give the xcode compiler that we need the Rust native library

    FlutterChiaRustUtilsPlugin.dummyMethodToEnforceBundling()

    //...
  }
}