From 8fe9551f0caa15caa772b0b4ff42c678aa458975 Mon Sep 17 00:00:00 2001 From: Murali Date: Thu, 28 Nov 2024 11:37:44 +0530 Subject: [PATCH 1/3] feat: hive_ce uptake in server --- packages/at_secondary_server/pubspec.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/at_secondary_server/pubspec.yaml b/packages/at_secondary_server/pubspec.yaml index 9df107fb2..b40672b63 100644 --- a/packages/at_secondary_server/pubspec.yaml +++ b/packages/at_secondary_server/pubspec.yaml @@ -34,6 +34,13 @@ dependencies: yaml: 3.1.2 logging: 1.2.0 +dependency_overrides: + at_persistence_secondary_server: + git: + url: https://github.com/atsign-foundation/at_server.git + path: packages/at_persistence_secondary_server + ref: hive_ce_v2 + dev_dependencies: build_runner: ^2.3.3 test: ^1.24.4 From 06c4355e3810debdc6106cde4af70a6ac8299bf6 Mon Sep 17 00:00:00 2001 From: Murali Date: Thu, 28 Nov 2024 11:46:28 +0530 Subject: [PATCH 2/3] fix: delete hive unwanted file --- .../at_secondary_server/bin/hive_main.dart | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 packages/at_secondary_server/bin/hive_main.dart diff --git a/packages/at_secondary_server/bin/hive_main.dart b/packages/at_secondary_server/bin/hive_main.dart deleted file mode 100644 index 2ac093090..000000000 --- a/packages/at_secondary_server/bin/hive_main.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'dart:convert'; -import 'dart:io'; - -import 'package:crypto/crypto.dart'; -// ignore: depend_on_referenced_packages -import 'package:hive/hive.dart'; - -Future main(List arguments) async { - var boxName = _getShaForAtsign('@muraliđź› '); - try { - await Hive.openBox(boxName, path: Directory.current.path); - } on Exception catch (e) { - print(e); - } -} - -String _getShaForAtsign(String atsign) { - var bytes = utf8.encode(atsign); - return sha256.convert(bytes).toString(); -} From 5ef8741a542113f8d8348bb2cb386b113572cb38 Mon Sep 17 00:00:00 2001 From: Murali Date: Wed, 18 Dec 2024 15:20:03 +0530 Subject: [PATCH 3/3] fix: upgrade at_commons version --- packages/at_secondary_server/pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/at_secondary_server/pubspec.yaml b/packages/at_secondary_server/pubspec.yaml index b40672b63..67f132d8e 100644 --- a/packages/at_secondary_server/pubspec.yaml +++ b/packages/at_secondary_server/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: basic_utils: 5.7.0 ecdsa: 0.1.0 encrypt: 5.0.3 - at_commons: 5.0.1 + at_commons: 5.1.2 at_utils: 3.0.19 at_chops: 2.0.1 at_lookup: 3.0.49 @@ -29,7 +29,7 @@ dependencies: intl: ^0.19.0 json_annotation: ^4.8.0 version: 3.0.2 - meta: 1.15.0 + meta: 1.16.0 mutex: 3.1.0 yaml: 3.1.2 logging: 1.2.0