Skip to content

Commit

Permalink
fix: fix package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rIIh committed Dec 25, 2020
1 parent 23b8fbc commit b5a92d1
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:http/http.dart' as http;
import 'package:oxford_dictionary/oxford_dict.dart';
import 'package:oxford_dictionary/oxford_dictionary.dart';

void main() {
find('programming').then((word) {});
Expand Down
15 changes: 7 additions & 8 deletions lib/oxford_dict.dart → lib/oxford_dictionary.dart
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
library oxford_dict;
library oxford_dictionary;

export 'src/index.dart';
export 'src/common/exception/cache_exception.dart';
export 'src/entities/word.dart';
export 'src/entries/model/dictionary_entry.dart';
export 'src/entries/model/lexical_entries.dart';
export 'src/entries/model/domain_class.dart';
export 'src/entries/model/grammatical_feature.dart';
export 'src/entries/model/lexical_entry.dart';
export 'src/entries/model/example.dart';
export 'src/entries/model/grammatical_feature.dart';
export 'src/entries/model/lexical_category.dart';
export 'src/entries/model/lexical_entries.dart';
export 'src/entries/model/lexical_entry.dart';
export 'src/entries/model/metadata.dart';
export 'src/entries/model/phrase.dart';
export 'src/entries/model/pronunciation.dart';
export 'src/entries/model/result.dart';
export 'src/entries/model/semantic_classes.dart';
export 'src/entries/model/sense.dart';
export 'src/entities/word.dart';
export 'src/index.dart';
export 'src/lemmas/entity/lemmas.dart';
export 'src/lemmas/model/inflection_of_data.dart';

export 'src/common/exception/cache_exception.dart';
2 changes: 1 addition & 1 deletion lib/src/entities/word.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:collection';

import 'package:oxford_dictionary/oxford_dict.dart' as remote;
import 'package:oxford_dictionary/oxford_dictionary.dart' as remote;
import 'package:oxford_dictionary/src/entries/model/cross_reference.dart';
import 'package:oxford_dictionary/src/entries/model/grammatical_feature.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/lemmas/entity/lemmas.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:oxford_dictionary/oxford_dict.dart';
import 'package:oxford_dictionary/oxford_dictionary.dart';
import 'package:oxford_dictionary/src/lemmas/model/inflection_of_data.dart';
import 'package:oxford_dictionary/src/lemmas/model/lemma_response.dart';
import 'package:oxford_dictionary/src/utils/iterable/expand.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lemmas/model/lemma_entry.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:oxford_dictionary/oxford_dict.dart';
import 'package:oxford_dictionary/oxford_dictionary.dart';

import 'inflection_of_data.dart';

Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ packages:
source: hosted
version: "0.2.0"
http:
dependency: transitive
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
http: ^0.12.2
chopper: ^3.0.6
json_annotation: ^3.1.0
stash: ^1.0.2
Expand Down
2 changes: 1 addition & 1 deletion test/oxford_api_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:oxford_dictionary/oxford_dict.dart';
import 'package:oxford_dictionary/oxford_dictionary.dart';
import 'package:oxford_dictionary/src/entities/word.dart';
import 'package:oxford_dictionary/src/index.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/test_dictionary_cache.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:oxford_dictionary/oxford_dict.dart';
import 'package:oxford_dictionary/oxford_dictionary.dart';
import 'package:stash/stash_api.dart';
import 'package:stash/stash_memory.dart';
import 'package:test/test.dart';
Expand Down

0 comments on commit b5a92d1

Please sign in to comment.