Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 3f75f3e

Browse files
committed
Merge branch 'migrate-to-encrypt'
# Conflicts: # lib/screens/CreateTaskScreen.dart
2 parents 53a21e7 + c246668 commit 3f75f3e

17 files changed

+489
-671
lines changed

ios/Podfile.lock

Lines changed: 0 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -56,73 +56,14 @@ PODS:
5656
- Flutter
5757
- geolocator_apple (1.2.0):
5858
- Flutter
59-
- GoogleDataTransport (9.2.2):
60-
- GoogleUtilities/Environment (~> 7.7)
61-
- nanopb (< 2.30910.0, >= 2.30908.0)
62-
- PromisesObjC (< 3.0, >= 1.2)
63-
- GoogleMLKit/BarcodeScanning (4.0.0):
64-
- GoogleMLKit/MLKitCore
65-
- MLKitBarcodeScanning (~> 3.0.0)
66-
- GoogleMLKit/MLKitCore (4.0.0):
67-
- MLKitCommon (~> 9.0.0)
68-
- GoogleToolboxForMac/DebugUtils (2.3.2):
69-
- GoogleToolboxForMac/Defines (= 2.3.2)
70-
- GoogleToolboxForMac/Defines (2.3.2)
71-
- GoogleToolboxForMac/Logger (2.3.2):
72-
- GoogleToolboxForMac/Defines (= 2.3.2)
73-
- "GoogleToolboxForMac/NSData+zlib (2.3.2)":
74-
- GoogleToolboxForMac/Defines (= 2.3.2)
75-
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.3.2)":
76-
- GoogleToolboxForMac/DebugUtils (= 2.3.2)
77-
- GoogleToolboxForMac/Defines (= 2.3.2)
78-
- "GoogleToolboxForMac/NSString+URLArguments (= 2.3.2)"
79-
- "GoogleToolboxForMac/NSString+URLArguments (2.3.2)"
80-
- GoogleUtilities/Environment (7.11.1):
81-
- PromisesObjC (< 3.0, >= 1.2)
82-
- GoogleUtilities/Logger (7.11.1):
83-
- GoogleUtilities/Environment
84-
- GoogleUtilities/UserDefaults (7.11.1):
85-
- GoogleUtilities/Logger
86-
- GoogleUtilitiesComponents (1.1.0):
87-
- GoogleUtilities/Logger
88-
- GTMSessionFetcher/Core (2.3.0)
8959
- map_launcher (0.0.1):
9060
- Flutter
91-
- MLImage (1.0.0-beta4)
92-
- MLKitBarcodeScanning (3.0.0):
93-
- MLKitCommon (~> 9.0)
94-
- MLKitVision (~> 5.0)
95-
- MLKitCommon (9.0.0):
96-
- GoogleDataTransport (~> 9.0)
97-
- GoogleToolboxForMac/Logger (~> 2.1)
98-
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
99-
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
100-
- GoogleUtilities/UserDefaults (~> 7.0)
101-
- GoogleUtilitiesComponents (~> 1.0)
102-
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
103-
- MLKitVision (5.0.0):
104-
- GoogleToolboxForMac/Logger (~> 2.1)
105-
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
106-
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
107-
- MLImage (= 1.0.0-beta4)
108-
- MLKitCommon (~> 9.0)
109-
- mobile_scanner (3.2.0):
110-
- Flutter
111-
- GoogleMLKit/BarcodeScanning (~> 4.0.0)
112-
- nanopb (2.30909.0):
113-
- nanopb/decode (= 2.30909.0)
114-
- nanopb/encode (= 2.30909.0)
115-
- nanopb/decode (2.30909.0)
116-
- nanopb/encode (2.30909.0)
117-
- openpgp (0.6.0):
118-
- Flutter
11961
- path_provider_foundation (0.0.1):
12062
- Flutter
12163
- FlutterMacOS
12264
- permission_handler_apple (9.0.4):
12365
- Flutter
12466
- Polyline (5.1.0)
125-
- PromisesObjC (2.2.0)
12667
- quick_actions_ios (0.0.1):
12768
- Flutter
12869
- SDWebImage (5.15.6):
@@ -136,10 +77,6 @@ PODS:
13677
- Flutter
13778
- url_launcher_ios (0.0.1):
13879
- Flutter
139-
- vibration (1.7.5):
140-
- Flutter
141-
- workmanager (0.0.1):
142-
- Flutter
14380

14481
DEPENDENCIES:
14582
- apple_maps_flutter (from `.symlinks/plugins/apple_maps_flutter/ios`)
@@ -154,35 +91,19 @@ DEPENDENCIES:
15491
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
15592
- geolocator_apple (from `.symlinks/plugins/geolocator_apple/ios`)
15693
- map_launcher (from `.symlinks/plugins/map_launcher/ios`)
157-
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)
158-
- openpgp (from `.symlinks/plugins/openpgp/ios`)
15994
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
16095
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
16196
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
16297
- share_plus (from `.symlinks/plugins/share_plus/ios`)
16398
- uni_links (from `.symlinks/plugins/uni_links/ios`)
16499
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
165-
- vibration (from `.symlinks/plugins/vibration/ios`)
166-
- workmanager (from `.symlinks/plugins/workmanager/ios`)
167100

168101
SPEC REPOS:
169102
trunk:
170103
- Alamofire
171104
- DKImagePickerController
172105
- DKPhotoGallery
173-
- GoogleDataTransport
174-
- GoogleMLKit
175-
- GoogleToolboxForMac
176-
- GoogleUtilities
177-
- GoogleUtilitiesComponents
178-
- GTMSessionFetcher
179-
- MLImage
180-
- MLKitBarcodeScanning
181-
- MLKitCommon
182-
- MLKitVision
183-
- nanopb
184106
- Polyline
185-
- PromisesObjC
186107
- SDWebImage
187108
- SwiftyGif
188109
- Tangram-es
@@ -212,10 +133,6 @@ EXTERNAL SOURCES:
212133
:path: ".symlinks/plugins/geolocator_apple/ios"
213134
map_launcher:
214135
:path: ".symlinks/plugins/map_launcher/ios"
215-
mobile_scanner:
216-
:path: ".symlinks/plugins/mobile_scanner/ios"
217-
openpgp:
218-
:path: ".symlinks/plugins/openpgp/ios"
219136
path_provider_foundation:
220137
:path: ".symlinks/plugins/path_provider_foundation/darwin"
221138
permission_handler_apple:
@@ -228,10 +145,6 @@ EXTERNAL SOURCES:
228145
:path: ".symlinks/plugins/uni_links/ios"
229146
url_launcher_ios:
230147
:path: ".symlinks/plugins/url_launcher_ios/ios"
231-
vibration:
232-
:path: ".symlinks/plugins/vibration/ios"
233-
workmanager:
234-
:path: ".symlinks/plugins/workmanager/ios"
235148

236149
SPEC CHECKSUMS:
237150
Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204
@@ -248,33 +161,17 @@ SPEC CHECKSUMS:
248161
flutter_osm_plugin: 029b14f54485ced3190bb2c4444616b76e10c6a8
249162
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
250163
geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401
251-
GoogleDataTransport: 8378d1fa8ac49753ea6ce70d65a7cb70ce5f66e6
252-
GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e
253-
GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34
254-
GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749
255-
GoogleUtilitiesComponents: 679b2c881db3b615a2777504623df6122dd20afe
256-
GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2
257164
map_launcher: e325db1261d029ff33e08e03baccffe09593ffea
258-
MLImage: 7bb7c4264164ade9bf64f679b40fb29c8f33ee9b
259-
MLKitBarcodeScanning: 04e264482c5f3810cb89ebc134ef6b61e67db505
260-
MLKitCommon: c1b791c3e667091918d91bda4bba69a91011e390
261-
MLKitVision: 8baa5f46ee3352614169b85250574fde38c36f49
262-
mobile_scanner: 47056db0c04027ea5f41a716385542da28574662
263-
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
264-
openpgp: 1a705bf8398bb2e44f4e61f6d7cd3e18d316a243
265165
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
266166
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
267167
Polyline: 2a1f29f87f8d9b7de868940f4f76deb8c678a5b1
268-
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
269168
quick_actions_ios: 9e80dcfadfbc5d47d9cf8f47bcf428b11cf383d4
270169
SDWebImage: d47d81bea8a77187896b620dc79c3c528e8906b9
271170
share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
272171
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
273172
Tangram-es: 628b634f7fc09d2217469b9914de00d9de49ff9d
274173
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
275174
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
276-
vibration: 7d883d141656a1c1a6d8d238616b2042a51a1241
277-
workmanager: 0afdcf5628bbde6924c21af7836fed07b42e30e6
278175

279176
PODFILE CHECKSUM: 819f6e738594296500811eae0a41f3dceed5a207
280177

lib/api/get-locations.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import 'dart:io';
22

3+
import 'package:basic_utils/basic_utils.dart';
4+
import 'package:cryptography/cryptography.dart';
35
import 'package:locus/services/location_point_service.dart';
46
import 'package:nostr/nostr.dart';
57

68
Future<void Function()> getLocations({
79
required final String nostrPublicKey,
8-
required final String viewPrivateKey,
9-
required final String signPublicKey,
10+
required final SecretKey encryptionPassword,
1011
required final List<String> relays,
1112
required void Function(LocationPointService) onLocationFetched,
1213
required void Function() onEnd,
@@ -40,8 +41,7 @@ Future<void Function()> getLocations({
4041

4142
final locationProcess = LocationPointService.fromEncrypted(
4243
event.message.content,
43-
viewPrivateKey,
44-
signPublicKey,
44+
encryptionPassword,
4545
);
4646

4747
decryptionProcesses.add(locationProcess);

0 commit comments

Comments
 (0)