mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:45:14 +00:00
fix: Secure storage
This commit is contained in:
parent
3423565bf9
commit
3d2d4fd23b
6 changed files with 15 additions and 3 deletions
|
@ -15,7 +15,8 @@
|
||||||
android:label="FluffyChat"
|
android:label="FluffyChat"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
android:allowBackup="false">
|
android:allowBackup="false"
|
||||||
|
android:fullBackupContent="false">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
|
|
@ -5,12 +5,16 @@
|
||||||
#include "generated_plugin_registrant.h"
|
#include "generated_plugin_registrant.h"
|
||||||
|
|
||||||
#include <file_selector_linux/file_selector_plugin.h>
|
#include <file_selector_linux/file_selector_plugin.h>
|
||||||
|
#include <flutter_secure_storage/flutter_secure_storage_plugin.h>
|
||||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||||
|
|
||||||
void fl_register_plugins(FlPluginRegistry* registry) {
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
||||||
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
||||||
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
||||||
|
g_autoptr(FlPluginRegistrar) flutter_secure_storage_registrar =
|
||||||
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStoragePlugin");
|
||||||
|
flutter_secure_storage_plugin_register_with_registrar(flutter_secure_storage_registrar);
|
||||||
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
||||||
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
||||||
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
list(APPEND FLUTTER_PLUGIN_LIST
|
list(APPEND FLUTTER_PLUGIN_LIST
|
||||||
file_selector_linux
|
file_selector_linux
|
||||||
|
flutter_secure_storage
|
||||||
url_launcher_linux
|
url_launcher_linux
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -453,7 +453,7 @@ packages:
|
||||||
name: flutter_secure_storage
|
name: flutter_secure_storage
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.3.5"
|
version: "4.2.0"
|
||||||
flutter_slidable:
|
flutter_slidable:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -34,7 +34,7 @@ dependencies:
|
||||||
flutter_matrix_html: ^0.3.0
|
flutter_matrix_html: ^0.3.0
|
||||||
flutter_olm: ^1.1.2
|
flutter_olm: ^1.1.2
|
||||||
flutter_openssl_crypto: ^0.0.1
|
flutter_openssl_crypto: ^0.0.1
|
||||||
flutter_secure_storage: 3.3.5 # Do not upgrade or this will break Linux builds!
|
flutter_secure_storage: ^4.2.0
|
||||||
flutter_slidable: ^0.6.0
|
flutter_slidable: ^0.6.0
|
||||||
flutter_svg: ^0.22.0
|
flutter_svg: ^0.22.0
|
||||||
flutter_typeahead: ^3.2.0
|
flutter_typeahead: ^3.2.0
|
||||||
|
|
|
@ -34,6 +34,12 @@ parts:
|
||||||
fluffychat:
|
fluffychat:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
source: ./build/linux/x64/release/bundle/
|
source: ./build/linux/x64/release/bundle/
|
||||||
|
build-packages:
|
||||||
|
- libsecret-1-dev
|
||||||
|
- libjsoncpp-dev
|
||||||
|
stage-packages:
|
||||||
|
- libsecret-1-dev
|
||||||
|
- libjsoncpp1-dev
|
||||||
|
|
||||||
slots:
|
slots:
|
||||||
dbus-svc:
|
dbus-svc:
|
||||||
|
|
Loading…
Reference in a new issue