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(); -} diff --git a/packages/at_secondary_server/pubspec.yaml b/packages/at_secondary_server/pubspec.yaml index b84fd9513..55f55afac 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.25.9