diff --git a/CHANGELOG.md b/CHANGELOG.md index 00ec82e..b646e9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.0.2] - New default class name + +- Default class name moved to `TranslationsKeychain` +- Example project provided + ## [0.0.1] - First stable version - Generates abstract class from JSON file diff --git a/build.yaml b/build.yaml index be0b653..a524b58 100644 --- a/build.yaml +++ b/build.yaml @@ -10,7 +10,7 @@ targets: builders: translations_keychain: - import: "package:translations_keychain/builder.dart" + import: "package:translations_keychain/translations_keychain.dart" builder_factories: ["keychainGenerator"] build_extensions: { ".json": [".dart"] } auto_apply: dependents diff --git a/lib/src/keychain_generator.dart b/lib/src/keychain_generator.dart index f5d09ed..7c9fa4d 100644 --- a/lib/src/keychain_generator.dart +++ b/lib/src/keychain_generator.dart @@ -5,7 +5,7 @@ import 'package:glob/glob.dart'; import 'package:build/build.dart'; import 'package:path/path.dart' as p; -import '../builder.dart'; +import '../translations_keychain.dart'; class KeychainGenerator implements Builder { final KeychainConfig config; @@ -61,8 +61,7 @@ class KeychainGenerator implements Builder { // Extracts the translations from inner JSON else if (value is Map) { - final expandedTranslations = - _extractTranslations(value, prefix: newPrefix); + final expandedTranslations = _extractTranslations(value, prefix: newPrefix); extracted.addAll(expandedTranslations); } }); diff --git a/lib/builder.dart b/lib/translations_keychain.dart similarity index 100% rename from lib/builder.dart rename to lib/translations_keychain.dart