-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nnnggel
authored and
nnnggel
committed
May 18, 2020
1 parent
3cf0123
commit 07b5732
Showing
5 changed files
with
52 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## [0.0.1] - TODO: Add release date. | ||
|
||
* TODO: Describe initial release. | ||
## 1.0.0 | ||
* Support .properties | ||
* Support .json | ||
* Support .yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,42 @@ | ||
# config_reader | ||
## What is config_reader | ||
A flutter library for reading config files online or offline. | ||
[github](https://github.com/nnnggel/config_reader) | ||
|
||
A new Flutter project. | ||
## What format does config_reader support | ||
[.properties](https://en.wikipedia.org/wiki/.properties) | ||
> readProperties | ||
> readOnlineProperties | ||
|
||
## Getting Started | ||
[.json](https://en.wikipedia.org/wiki/JSON) | ||
> readJson | ||
> readOnlineJson | ||
|
||
This project is a starting point for a Dart | ||
[package](https://flutter.dev/developing-packages/), | ||
a library module containing code that can be shared easily across | ||
multiple Flutter or Dart projects. | ||
[.yaml](https://en.wikipedia.org/wiki/YAML) | ||
> readYaml | ||
> readOnlineYaml | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
## Result type | ||
All method will return a **MAP** for result. As json and yaml files are designed to support map or LIST as root, config_reader will add a root node for "list". | ||
|
||
For example: | ||
json: | ||
``` | ||
[ | ||
"Cat", | ||
"Dog", | ||
"Goldfish" | ||
] | ||
``` | ||
yaml: | ||
``` | ||
- Cat | ||
- Dog | ||
- Goldfish | ||
``` | ||
Will return: | ||
``` | ||
{list: [Cat, Dog, Goldfish]} | ||
``` | ||
|
||
## More case | ||
see test/config_reader_test.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters