This commit is contained in:
lingol
2025-08-20 18:34:05 +08:00
parent 070524e18f
commit 247fb77772
4 changed files with 66 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# mmkv\_win32
# mmkv\_linux
The Windows implementation detail of [`MMKV`][1].
The Linux implementation detail of [`MMKV`][1].
## Usage
@@ -1,4 +1,24 @@
#ifndef FLUTTER_PLUGIN_MMKV_LINUX_PLUGIN_H_
/*
* Tencent is pleased to support the open source community by making
* MMKV available.
*
* Copyright (C) 2025 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of
* the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef FLUTTER_PLUGIN_MMKV_LINUX_PLUGIN_H_
#define FLUTTER_PLUGIN_MMKV_LINUX_PLUGIN_H_
#include <flutter_linux/flutter_linux.h>
+22 -2
View File
@@ -1,10 +1,30 @@
#include "include/mmkv_linux/mmkv_linux_plugin.h"
/*
* Tencent is pleased to support the open source community by making
* MMKV available.
*
* Copyright (C) 2025 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of
* the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "include/mmkv_linux/mmkv_linux_plugin.h"
// #include <flutter_linux/flutter_linux.h>
// #include <gtk/gtk.h>
// #include <sys/utsname.h>
#include <cstring>
// #include <cstring>
// // Handles the getPlatformVersion method call.
// FlMethodResponse *get_platform_version();
@@ -1,4 +1,24 @@
#ifndef FLUTTER_PLUGIN_MMKV_WIN32_PLUGIN_C_API_H_
/*
* Tencent is pleased to support the open source community by making
* MMKV available.
*
* Copyright (C) 2025 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of
* the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef FLUTTER_PLUGIN_MMKV_WIN32_PLUGIN_C_API_H_
#define FLUTTER_PLUGIN_MMKV_WIN32_PLUGIN_C_API_H_
#include <flutter_plugin_registrar.h>