Skip to content

Commit

Permalink
Drop drop default platform channel method: getPlatformVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Mar 7, 2022
1 parent b7c34ac commit 6146432
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions flutter/realm_flutter/linux/realm_plugin.cpp
Expand Up @@ -24,15 +24,7 @@ static void realm_plugin_handle_method_call(

const gchar* method = fl_method_call_get_name(method_call);

if (strcmp(method, "getPlatformVersion") == 0) {
struct utsname uname_data = {};
uname(&uname_data);
g_autofree gchar *version = g_strdup_printf("Linux %s", uname_data.version);
g_autoptr(FlValue) result = fl_value_new_string(version);
response = FL_METHOD_RESPONSE(fl_method_success_response_new(result));
} else {
response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new());
}
response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new());

fl_method_call_respond(method_call, response, nullptr);
}
Expand Down

0 comments on commit 6146432

Please sign in to comment.