update examples
This commit is contained in:
@@ -6,38 +6,19 @@ A collection of Flutter packages maintained by @rodydavis.
|
||||
|
||||
| Package | Description | Version |
|
||||
| :--- | :--- | :--- |
|
||||
| [animations_example](https://github.com/rodydavis/signals.dart/tree/main/examples/animations_example) | A new Flutter project. |  |
|
||||
| [app_review](./packages/app_review) | Request and Write Reviews and Open Store Listing for Android and iOS/MacOS in Flutter. | [](https://pub.dartlang.org/packages/app_review) |
|
||||
| [auth_flow](https://github.com/rodydavis/signals.dart/tree/main/examples/auth_flow) | Example with a user signal and authenticated flow |  |
|
||||
| [breakpoint](./packages/breakpoint) | A Flutter plugin to calculate the material design breakpoints. | [](https://pub.dartlang.org/packages/breakpoint) |
|
||||
| [clean_architecture](https://github.com/rodydavis/signals.dart/tree/main/examples/clean_architecture) | Todo example using domain driven architecture |  |
|
||||
| [crud_dio](https://github.com/rodydavis/signals.dart/tree/main/examples/crud_dio) | A new Flutter project. |  |
|
||||
| [dart_mappable_example](https://github.com/rodydavis/signals.dart/tree/main/examples/dart_mappable_example) | A new Flutter package project. |  |
|
||||
| [drift_example](https://github.com/rodydavis/signals.dart/tree/main/examples/drift_example) | SQLite via drift and signals |  |
|
||||
| [eval_calculator](https://github.com/rodydavis/signals.dart/tree/main/examples/eval_calculator) | Calculator that is driven by dynamic signals at runtime |  |
|
||||
| [flutter_async](https://github.com/rodydavis/signals.dart/tree/main/examples/flutter_async) | Examples that rely on Async/Future/Stream signals |  |
|
||||
| [flutter_colorband](https://github.com/rodydavis/signals.dart/tree/main/examples/flutter_colorband) | Generative color examples |  |
|
||||
| [flutter_sms](./packages/flutter_sms) | A Flutter plugin to send SMS and MMS on iOS and Android. | [](https://pub.dartlang.org/packages/flutter_sms) |
|
||||
| [flutter_vibrate](./packages/flutter_vibrate) | A Haptic Feedback and Vibration plugin. | [](https://pub.dartlang.org/packages/flutter_vibrate) |
|
||||
| [flutter_whatsnew](./packages/flutter_whatsnew) | A new Flutter package to show updates to users. | [](https://pub.dartlang.org/packages/flutter_whatsnew) |
|
||||
| [get_it_signals_example](https://github.com/rodydavis/signals.dart/tree/main/examples/get_it_signals) | get_it + signals |  |
|
||||
| [html_canvas](https://github.com/rodydavis/signals.dart/tree/main/examples/html_canvas) | Signals and the canvas |  |
|
||||
| [html_todo_app](https://github.com/rodydavis/signals.dart/tree/main/examples/html_todo_app) | Todo HTML web app with signals |  |
|
||||
| [infinite_scroll](https://github.com/rodydavis/signals.dart/tree/main/examples/infinite_scroll) | A new Flutter project. |  |
|
||||
| [node_based_editor](https://github.com/rodydavis/signals.dart/tree/main/examples/node_based_editor) | Node based editor built with signals |  |
|
||||
| [open_xml](https://github.com/rodydavis/open_xml) | Open XML (OOXML) formatted documents. | [](https://pub.dartlang.org/packages/open_xml) |
|
||||
| [persist_shared_preferences](https://github.com/rodydavis/signals.dart/tree/main/examples/persist_shared_preferences) | A new Flutter project. |  |
|
||||
| [preact_signals](https://github.com/rodydavis/signals.dart/tree/main/packages/preact_signals) | Dart port of Preact.js Signals | [](https://pub.dartlang.org/packages/preact_signals) |
|
||||
| [rxdart_example](https://github.com/rodydavis/signals.dart/tree/main/examples/rxdart) | RxDart + signals |  |
|
||||
| [shopping_cart](https://github.com/rodydavis/signals.dart/tree/main/examples/shopping_cart) | Shopping cart example |  |
|
||||
| [signals](https://github.com/rodydavis/signals.dart/tree/main/packages/signals) | Reactivity made simple. Do more by doing less. Supports Flutter and any Dart project including HTML/JS, CLI, Shelf Server, VM and more. | [](https://pub.dartlang.org/packages/signals) |
|
||||
| [signals_core](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_core) | The signals library exposes four core functions which are the building blocks to model any business logic you can think of. | [](https://pub.dartlang.org/packages/signals_core) |
|
||||
| [signals_dart_examples](https://github.com/rodydavis/signals.dart/tree/main/examples/dart_examples) | Pure dart examples using signals |  |
|
||||
| [signals_devtools_extension](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_devtools_extension) | Signals DevTools extension. |  |
|
||||
| [signals_flutter](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_flutter) | The signals library exposes four core functions which are the building blocks to model any business logic you can think of. | [](https://pub.dartlang.org/packages/signals_flutter) |
|
||||
| [signals_hooks](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_hooks) | flutter_hooks bindings for signals | [](https://pub.dartlang.org/packages/signals_hooks) |
|
||||
| [signals_lint](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_lint) | linter and developer tool for signals | [](https://pub.dartlang.org/packages/signals_lint) |
|
||||
| [signals_mvi_example](https://github.com/rodydavis/signals.dart/tree/main/examples/mvi_example) | A new Flutter project. |  |
|
||||
|
||||
## Experimental
|
||||
|
||||
|
||||
@@ -12,10 +12,13 @@ Future<void> _processDirectory(Directory dir) async {
|
||||
if (!dir.existsSync()) return;
|
||||
|
||||
await for (final entity in dir.list(recursive: true)) {
|
||||
if (entity is Directory && entity.path.split(Platform.pathSeparator).last == 'example') {
|
||||
final pubspecFile = File('${entity.path}/pubspec.yaml');
|
||||
if (pubspecFile.existsSync()) {
|
||||
await _enforcePublishToNone(pubspecFile);
|
||||
if (entity is Directory) {
|
||||
final segments = entity.path.split(Platform.pathSeparator);
|
||||
if (segments.last == 'example' || segments.last == 'examples') {
|
||||
final pubspecFile = File('${entity.path}/pubspec.yaml');
|
||||
if (pubspecFile.existsSync()) {
|
||||
await _enforcePublishToNone(pubspecFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,8 @@ Future<List<_Package>> _scanDirectory(
|
||||
}
|
||||
|
||||
// Skip example directories
|
||||
if (entity.parent.path.split(Platform.pathSeparator).contains('example')) {
|
||||
if (entity.parent.path.split(Platform.pathSeparator).contains('example') ||
|
||||
entity.parent.path.split(Platform.pathSeparator).contains('examples')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user