resolveBytecodeTools function

Future<BytecodeTools> resolveBytecodeTools(
  1. ResolvedToolchain toolchain, {
  2. required bool needsKotlin,
  3. bool needsR8 = false,
})

Implementation

Future<BytecodeTools> resolveBytecodeTools(
  ResolvedToolchain toolchain, {
  required bool needsKotlin,
  bool needsR8 = false,
}) async => BytecodeTools(
  javac: await toolchain.findJavac(),
  d8: await toolchain.findD8(),
  r8: needsR8 ? await toolchain.findR8() : null,
  kotlinc: needsKotlin ? await toolchain.findKotlinc() : null,
);