mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 09:08:40 +00:00
fixing ios release issues
This commit is contained in:
parent
86e1c6a0f7
commit
71823c9fae
5 changed files with 57 additions and 37 deletions
|
|
@ -241,7 +241,7 @@ PODS:
|
||||||
- sqlite3/perf-threadsafe
|
- sqlite3/perf-threadsafe
|
||||||
- sqlite3/rtree
|
- sqlite3/rtree
|
||||||
- sqlite3/session
|
- sqlite3/session
|
||||||
- SwiftProtobuf (1.32.0)
|
- SwiftProtobuf (1.33.1)
|
||||||
- url_launcher_ios (0.0.1):
|
- url_launcher_ios (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- video_player_avfoundation (0.0.1):
|
- video_player_avfoundation (0.0.1):
|
||||||
|
|
@ -421,7 +421,7 @@ SPEC CHECKSUMS:
|
||||||
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
||||||
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
|
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
|
||||||
sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1
|
sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1
|
||||||
SwiftProtobuf: 81e341191afbddd64aa031bd12862dccfab2f639
|
SwiftProtobuf: 533a18409c3ca3a6156b2b1e46afd0f69e751aba
|
||||||
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
|
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
|
||||||
video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a
|
video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
</Testables>
|
</Testables>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Release"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
|
||||||
|
|
|
||||||
|
|
@ -362,36 +362,49 @@ Future<Uint8List?> encryptPushNotification(
|
||||||
|
|
||||||
Future<List<PushUser>> getPushKeys(String storageKey) async {
|
Future<List<PushUser>> getPushKeys(String storageKey) async {
|
||||||
const storage = FlutterSecureStorage();
|
const storage = FlutterSecureStorage();
|
||||||
final pushKeysProto = await storage.read(
|
try {
|
||||||
key: storageKey,
|
final pushKeysProto = await storage.read(
|
||||||
iOptions: const IOSOptions(
|
key: storageKey,
|
||||||
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
iOptions: const IOSOptions(
|
||||||
accessibility: KeychainAccessibility.first_unlock,
|
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
||||||
),
|
accessibility: KeychainAccessibility.first_unlock,
|
||||||
);
|
),
|
||||||
if (pushKeysProto == null) return [];
|
);
|
||||||
final pushKeysRaw = base64Decode(pushKeysProto);
|
if (pushKeysProto == null) return [];
|
||||||
return PushUsers.fromBuffer(pushKeysRaw).users;
|
final pushKeysRaw = base64Decode(pushKeysProto);
|
||||||
|
return PushUsers.fromBuffer(pushKeysRaw).users;
|
||||||
|
} catch (e) {
|
||||||
|
Log.error(e);
|
||||||
|
}
|
||||||
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> setPushKeys(String storageKey, List<PushUser> pushKeys) async {
|
Future<void> setPushKeys(String storageKey, List<PushUser> pushKeys) async {
|
||||||
const storage = FlutterSecureStorage();
|
const storage = FlutterSecureStorage();
|
||||||
|
|
||||||
await storage.delete(
|
try {
|
||||||
key: storageKey,
|
await storage.delete(
|
||||||
iOptions: const IOSOptions(
|
key: storageKey,
|
||||||
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
iOptions: const IOSOptions(
|
||||||
accessibility: KeychainAccessibility.first_unlock,
|
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
||||||
),
|
accessibility: KeychainAccessibility.first_unlock,
|
||||||
);
|
),
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
Log.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
final jsonString = base64Encode(PushUsers(users: pushKeys).writeToBuffer());
|
final jsonString = base64Encode(PushUsers(users: pushKeys).writeToBuffer());
|
||||||
await storage.write(
|
try {
|
||||||
key: storageKey,
|
await storage.write(
|
||||||
value: jsonString,
|
key: storageKey,
|
||||||
iOptions: const IOSOptions(
|
value: jsonString,
|
||||||
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
iOptions: const IOSOptions(
|
||||||
accessibility: KeychainAccessibility.first_unlock,
|
groupId: 'CN332ZUGRP.eu.twonly.shared',
|
||||||
),
|
accessibility: KeychainAccessibility.first_unlock,
|
||||||
);
|
),
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
Log.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
pubspec.lock
15
pubspec.lock
|
|
@ -705,18 +705,19 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: flutter_secure_storage
|
path: flutter_secure_storage
|
||||||
ref: "71b75a36f35f2ce945998e20c6c6aa1820babfc6"
|
ref: a06ead81809c900e7fc421a30db0adf3b5919139
|
||||||
resolved-ref: "71b75a36f35f2ce945998e20c6c6aa1820babfc6"
|
resolved-ref: a06ead81809c900e7fc421a30db0adf3b5919139
|
||||||
url: "https://github.com/juliansteenbakker/flutter_secure_storage.git"
|
url: "https://github.com/juliansteenbakker/flutter_secure_storage.git"
|
||||||
source: git
|
source: git
|
||||||
version: "10.0.0-beta.4"
|
version: "10.0.0-beta.4"
|
||||||
flutter_secure_storage_darwin:
|
flutter_secure_storage_darwin:
|
||||||
dependency: transitive
|
dependency: "direct overridden"
|
||||||
description:
|
description:
|
||||||
name: flutter_secure_storage_darwin
|
path: flutter_secure_storage_darwin
|
||||||
sha256: f226f2a572bed96bc6542198ebaec227150786e34311d455a7e2d3d06d951845
|
ref: a06ead81809c900e7fc421a30db0adf3b5919139
|
||||||
url: "https://pub.dev"
|
resolved-ref: a06ead81809c900e7fc421a30db0adf3b5919139
|
||||||
source: hosted
|
url: "https://github.com/juliansteenbakker/flutter_secure_storage.git"
|
||||||
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
flutter_secure_storage_linux:
|
flutter_secure_storage_linux:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
|
|
||||||
10
pubspec.yaml
10
pubspec.yaml
|
|
@ -3,7 +3,7 @@ description: "twonly, a privacy-friendly way to connect with friends through sec
|
||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.0.64+64
|
version: 0.0.65+65
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.6.0
|
sdk: ^3.6.0
|
||||||
|
|
@ -36,7 +36,7 @@ dependencies:
|
||||||
flutter_secure_storage:
|
flutter_secure_storage:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/juliansteenbakker/flutter_secure_storage.git
|
url: https://github.com/juliansteenbakker/flutter_secure_storage.git
|
||||||
ref: 71b75a36f35f2ce945998e20c6c6aa1820babfc6 # from develop
|
ref: a06ead81809c900e7fc421a30db0adf3b5919139 # from develop
|
||||||
path: flutter_secure_storage/
|
path: flutter_secure_storage/
|
||||||
flutter_svg: ^2.0.17
|
flutter_svg: ^2.0.17
|
||||||
flutter_volume_controller: ^1.3.4
|
flutter_volume_controller: ^1.3.4
|
||||||
|
|
@ -77,6 +77,12 @@ dependencies:
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
|
|
||||||
|
flutter_secure_storage_darwin:
|
||||||
|
git:
|
||||||
|
url: https://github.com/juliansteenbakker/flutter_secure_storage.git
|
||||||
|
ref: a06ead81809c900e7fc421a30db0adf3b5919139 # from develop
|
||||||
|
path: flutter_secure_storage_darwin/
|
||||||
|
|
||||||
flutter_android_volume_keydown:
|
flutter_android_volume_keydown:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/yenchieh/flutter_android_volume_keydown.git
|
url: https://github.com/yenchieh/flutter_android_volume_keydown.git
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue