Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lcapeng committed Apr 17, 2020
1 parent d45f0b0 commit dfef365
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions lib/src/keychain_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
});
Expand Down
File renamed without changes.

0 comments on commit dfef365

Please sign in to comment.