fix: Secure storage

This commit is contained in:
Christian Pauly 2021-07-20 14:07:52 +02:00
parent 9faaedb727
commit 0a52496bdb
6 changed files with 15 additions and 3 deletions

View File

@ -15,7 +15,8 @@
android:label="FluffyChat"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true"
android:allowBackup="false">
android:allowBackup="false"
android:fullBackupContent="false">
<activity
android:name=".MainActivity"
android:launchMode="singleTask"

View File

@ -5,12 +5,16 @@
#include "generated_plugin_registrant.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>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
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 =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);

View File

@ -4,6 +4,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
flutter_secure_storage
url_launcher_linux
)

View File

@ -453,7 +453,7 @@ packages:
name: flutter_secure_storage
url: "https://pub.dartlang.org"
source: hosted
version: "3.3.5"
version: "4.2.0"
flutter_slidable:
dependency: "direct main"
description:

View File

@ -34,7 +34,7 @@ dependencies:
flutter_matrix_html: ^0.3.0
flutter_olm: ^1.1.2
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_svg: ^0.22.0
flutter_typeahead: ^3.2.0

View File

@ -34,6 +34,12 @@ parts:
fluffychat:
plugin: dump
source: ./build/linux/x64/release/bundle/
build-packages:
- libsecret-1-dev
- libjsoncpp-dev
stage-packages:
- libsecret-1-dev
- libjsoncpp1-dev
slots:
dbus-svc: