From abca1f7c45d663b59778330a5c00610a55970382 Mon Sep 17 00:00:00 2001 From: sticks Date: Sat, 19 Oct 2024 14:45:01 -0500 Subject: [PATCH] teamhydra_id_generator better --- README.md | 2 ++ example/idgen_dart_example.dart | 2 +- lib/src/idgen_http.dart | 2 +- lib/src/idgen_main.dart | 4 ++-- pubspec.yaml | 2 +- test/idgen_dart_test.dart | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 438bdaa..4a40fae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# teamhydra_id_generator + This package allows you to generate unique and random IDs for your Flutter/dart applications using the ID generator provided by [team hydra](https://teamhydra.dev/). diff --git a/example/idgen_dart_example.dart b/example/idgen_dart_example.dart index 830299d..9cc4c96 100644 --- a/example/idgen_dart_example.dart +++ b/example/idgen_dart_example.dart @@ -1,5 +1,5 @@ // Import the package -import 'package:teamhydra_idgen/teamhydra_idgen.dart'; +import 'package:teamhydra_id_generator/teamhydra_idgen.dart'; void main() async { IDGen idgen = IDGen(username: 'your_username', token: 'your_token'); diff --git a/lib/src/idgen_http.dart b/lib/src/idgen_http.dart index e89baae..f5f8675 100644 --- a/lib/src/idgen_http.dart +++ b/lib/src/idgen_http.dart @@ -1,7 +1,7 @@ import 'dart:convert'; import 'package:dio/dio.dart'; -import 'package:teamhydra_idgen/src/idgen_dart_base.dart'; +import 'package:teamhydra_id_generator/src/idgen_dart_base.dart'; class IDGenHTTPWorker { final Dio _dio = Dio(); diff --git a/lib/src/idgen_main.dart b/lib/src/idgen_main.dart index 6e2ebef..eb5ebff 100644 --- a/lib/src/idgen_main.dart +++ b/lib/src/idgen_main.dart @@ -1,5 +1,5 @@ -import 'package:teamhydra_idgen/src/idgen_http.dart'; -import 'package:teamhydra_idgen/teamhydra_idgen.dart'; +import 'package:teamhydra_id_generator/src/idgen_http.dart'; +import 'package:teamhydra_id_generator/teamhydra_idgen.dart'; /// The main class to use when generating an ID /// diff --git a/pubspec.yaml b/pubspec.yaml index 3f1d88e..44ba905 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: teamhydra_idgen +name: teamhydra_id_generator description: A library for generating unique IDs using Team Hydra's ID generation service. version: 1.0.0 repository: https://teamhydra.io/Sticks/idgen-dart diff --git a/test/idgen_dart_test.dart b/test/idgen_dart_test.dart index 87b8edf..2997a8b 100644 --- a/test/idgen_dart_test.dart +++ b/test/idgen_dart_test.dart @@ -1,5 +1,5 @@ import 'dart:io'; -import 'package:teamhydra_idgen/teamhydra_idgen.dart'; +import 'package:teamhydra_id_generator/teamhydra_idgen.dart'; import 'package:test/test.dart'; Map loadRequiredVarsFromEnv() {