Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Preparing to Publish FlutterFire Configurator on pub.dev #36

Merged
merged 5 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cspell/organization-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
altive
muramatsu
naipaka
riscait
riscait
21 changes: 21 additions & 0 deletions LICENSE
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used the LICENSE file from altive_lints.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Altive Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions packages/flutterfire_configurator/LICENSE
50 changes: 20 additions & 30 deletions packages/flutterfire_configurator/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,29 @@
<!--
This README describes the package. If you publish this package to pub.dev,
this README's contents appear on the landing page for your package.
# FlutterFire Configurator

For information about how to write a good package README, see the guide for
[writing package pages](https://dart.dev/guides/libraries/writing-package-pages).

For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-library-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.
Provides a wrapper class for the FlutterFire RemoteConfig package to simplify its usage.

## Getting started

TODO: List prerequisites and provide or point to information on how to
start using the package.
```yaml
dependencies:
flutterfire_configurator: any
```

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
1. Create an instance of `Configurator`.
2. Set default values as needed.
3. Use the instance of `Configurator` to retrieve configuration values. You can specify a callback in `onConfigUpdated` that is called when the configuration values are updated.

```dart
const like = 'sample';
```

## Additional information

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
final configurator = Configurator();
...
await configurator.setDefaultConfig({'int_parameter', 123});
...
final intConfig = configurator.getIntConfig(
'int_parameter',
onConfigUpdated: (value) {
print('int_parameter: $value');
},
);
```
4 changes: 3 additions & 1 deletion packages/flutterfire_configurator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: flutterfire_configurator
description: flutterfire_configurator with FlutterFire Remote Config.
publish_to: "none"
version: 0.1.0
homepage: https://altive.dev
repository: https://github.com/altive/flutterfire_adapter
issue_tracker: https://github.com/altive/flutterfire_adapter/issues

environment:
sdk: ^3.0.0
Expand Down