android support

This commit is contained in:
ekibun
2020-08-12 23:24:01 +08:00
parent 17d2876e36
commit 69c2516ac5
73 changed files with 67422 additions and 84 deletions

View File

@@ -87,7 +87,7 @@ namespace
}
else if (method_call.method_name().compare("evaluate") == 0)
{
flutter::EncodableMap args = *((flutter::EncodableMap *)method_call.arguments());
flutter::EncodableMap args = *std::get_if<flutter::EncodableMap>(method_call.arguments());
std::string script = std::get<std::string>(ValueOrNull(args, "script"));
std::string name = std::get<std::string>(ValueOrNull(args, "name"));
auto presult = result.release();