Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Mar 28, 2024
1 parent b3cc1ce commit aca4640
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions lib/src/utils/utils.dart
Original file line number Diff line number Diff line change
@@ -1,52 +1,6 @@
import 'dart:io';

import 'package:flutter/cupertino.dart';

import '../generated/frb_generated.dart';

export 'exceptions.dart';
//
// void simpleBuild(List<String> args) async {
// final rustCrateDir = buildConfig.packageRoot.resolve('rust');
//
// final cargoNightly = true;
// final cargoExtraArgs =
// Platform.environment['FRB_SIMPLE_BUILD_CARGO_EXTRA_ARGS']?.split(' ') ??
// const <String>[];
// final skip = Platform.environment['FRB_SIMPLE_BUILD_SKIP'] == '1';
// final rustflags = Platform.environment['RUSTFLAGS'];
//
// if (skip) {
// print(
// 'frb_utils::simpleBuild SKIP BUILD since environment variable requires this');
// } else {
// await runCommand(
// 'cargo',
// [
// '+nightly',
// 'build',
// '--release',
// ...cargoExtraArgs,
// ],
// pwd: rustCrateDir.toFilePath(),
// printCommandInStderr: true,
// env: {
// // Though runCommand auto pass environment variable to commands,
// // we do this to explicitly show this important flag
// if (rustflags != null) 'RUSTFLAGS': rustflags,
// },
// );
// }
//
// final dependencies = {
// rustCrateDir,
// buildConfig.packageRoot.resolve('build.rs'),
// };
// print('dependencies: $dependencies');
// buildOutput.dependencies.dependencies.addAll(dependencies);
//
// await buildOutput.writeToFile(outDir: buildConfig.outDir);
// }

class Frb {
static Future<void> verifyInit() async {
Expand All @@ -55,8 +9,6 @@ class Frb {
await BdkCore.init();
}
} catch (e) {
print(Directory.current);
debugPrint(e.toString());
throw Exception("Failed to initialize bdk-flutter");
}
}
Expand Down

0 comments on commit aca4640

Please sign in to comment.