mirror of
https://github.com/Iconica-Development/flutter_timetable.git
synced 2025-05-18 19:43:43 +02:00
chore: ready the package for deployment to the pub server
This commit is contained in:
parent
0136f84a10
commit
79f31f2552
22 changed files with 146 additions and 23 deletions
|
@ -36,3 +36,7 @@
|
||||||
* Create Melos variant of the component where there are multiple packages in the same repository.
|
* Create Melos variant of the component where there are multiple packages in the same repository.
|
||||||
|
|
||||||
* Added the option to sort on the starttime of an event.
|
* Added the option to sort on the starttime of an event.
|
||||||
|
|
||||||
|
## [3.0.0] - 11 July 2024
|
||||||
|
|
||||||
|
* Rename main entry point to flutter_timetable
|
||||||
|
|
1
packages/flutter_timetable_firebase/CHANGELOG.md
Symbolic link
1
packages/flutter_timetable_firebase/CHANGELOG.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../CHANGELOG.md
|
1
packages/flutter_timetable_firebase/LICENSE
Symbolic link
1
packages/flutter_timetable_firebase/LICENSE
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../LICENSE
|
1
packages/flutter_timetable_firebase/README.md
Symbolic link
1
packages/flutter_timetable_firebase/README.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../README.md
|
43
packages/flutter_timetable_firebase/example/.gitignore
vendored
Normal file
43
packages/flutter_timetable_firebase/example/.gitignore
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
migrate_working_dir/
|
||||||
|
|
||||||
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
|
# is commented out by default.
|
||||||
|
#.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
|
**/ios/Flutter/.last_build_id
|
||||||
|
.dart_tool/
|
||||||
|
.flutter-plugins
|
||||||
|
.flutter-plugins-dependencies
|
||||||
|
.pub-cache/
|
||||||
|
.pub/
|
||||||
|
/build/
|
||||||
|
|
||||||
|
# Symbolication related
|
||||||
|
app.*.symbols
|
||||||
|
|
||||||
|
# Obfuscation related
|
||||||
|
app.*.map.json
|
||||||
|
|
||||||
|
# Android Studio will place build artifacts here
|
||||||
|
/android/app/debug
|
||||||
|
/android/app/profile
|
||||||
|
/android/app/release
|
16
packages/flutter_timetable_firebase/example/README.md
Normal file
16
packages/flutter_timetable_firebase/example/README.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# example
|
||||||
|
|
||||||
|
A new Flutter project.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
This project is a starting point for a Flutter application.
|
||||||
|
|
||||||
|
A few resources to get you started if this is your first Flutter project:
|
||||||
|
|
||||||
|
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||||
|
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||||
|
|
||||||
|
For help getting started with Flutter development, view the
|
||||||
|
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||||
|
samples, guidance on mobile development, and a full API reference.
|
|
@ -0,0 +1,28 @@
|
||||||
|
# This file configures the analyzer, which statically analyzes Dart code to
|
||||||
|
# check for errors, warnings, and lints.
|
||||||
|
#
|
||||||
|
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||||
|
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||||
|
# invoked from the command line by running `flutter analyze`.
|
||||||
|
|
||||||
|
# The following line activates a set of recommended lints for Flutter apps,
|
||||||
|
# packages, and plugins designed to encourage good coding practices.
|
||||||
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
|
linter:
|
||||||
|
# The lint rules applied to this project can be customized in the
|
||||||
|
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||||
|
# included above or to enable additional rules. A list of all available lints
|
||||||
|
# and their documentation is published at https://dart.dev/lints.
|
||||||
|
#
|
||||||
|
# Instead of disabling a lint rule for the entire project in the
|
||||||
|
# section below, it can also be suppressed for a single line of code
|
||||||
|
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||||
|
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||||
|
# producing the lint.
|
||||||
|
rules:
|
||||||
|
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||||
|
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||||
|
|
||||||
|
# Additional information about this file can be found at
|
||||||
|
# https://dart.dev/guides/language/analysis-options
|
|
@ -16,7 +16,7 @@ class MyRosterModel extends TimetableEvent {
|
||||||
|
|
||||||
final myRosterServiceProvider = Provider(
|
final myRosterServiceProvider = Provider(
|
||||||
(ref) => FirebaseTimetableService<MyRosterModel>(
|
(ref) => FirebaseTimetableService<MyRosterModel>(
|
||||||
options: FirebaseTimetableOptions(timetableCollectionName: 'roster'),
|
options: const FirebaseTimetableOptions(timetableCollectionName: 'roster'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,8 @@ dependencies:
|
||||||
flutter_timetable_firebase:
|
flutter_timetable_firebase:
|
||||||
path: ../
|
path: ../
|
||||||
flutter_timetable_interface:
|
flutter_timetable_interface:
|
||||||
path: ../../flutter_timetable_interface
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
version: ^2.0.0
|
||||||
hooks_riverpod: ^2.4.9
|
hooks_riverpod: ^2.4.9
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
// This is a basic Flutter widget test.
|
||||||
|
//
|
||||||
|
// To perform an interaction with a widget in your test, use the WidgetTester
|
||||||
|
// utility in the flutter_test package. For example, you can send tap and scroll
|
||||||
|
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||||
|
// tree, read text, and verify that the values of widget properties are correct.
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
|
import 'package:example/main.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||||
|
// Build our app and trigger a frame.
|
||||||
|
await tester.pumpWidget(const MyApp());
|
||||||
|
|
||||||
|
// Verify that our counter starts at 0.
|
||||||
|
expect(find.text('0'), findsOneWidget);
|
||||||
|
expect(find.text('1'), findsNothing);
|
||||||
|
|
||||||
|
// Tap the '+' icon and trigger a frame.
|
||||||
|
await tester.tap(find.byIcon(Icons.add));
|
||||||
|
await tester.pump();
|
||||||
|
|
||||||
|
// Verify that our counter has incremented.
|
||||||
|
expect(find.text('0'), findsNothing);
|
||||||
|
expect(find.text('1'), findsOneWidget);
|
||||||
|
});
|
||||||
|
}
|
|
@ -22,7 +22,7 @@ class FirebaseTimetableService<Event extends TimetableEvent>
|
||||||
@override
|
@override
|
||||||
Future<void> addEvent(Event event) async {
|
Future<void> addEvent(Event event) async {
|
||||||
event.toJson();
|
event.toJson();
|
||||||
|
|
||||||
throw UnimplementedError();
|
throw UnimplementedError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@ name: flutter_timetable_firebase
|
||||||
description: A new Flutter package project.
|
description: A new Flutter package project.
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
repository: https://github.com/Iconica-Development/flutter_timetable
|
repository: https://github.com/Iconica-Development/flutter_timetable
|
||||||
publish_to: none
|
|
||||||
|
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.1.0 <4.0.0"
|
sdk: ">=3.1.0 <4.0.0"
|
||||||
|
@ -18,13 +19,9 @@ dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_timetable_interface:
|
flutter_timetable_interface:
|
||||||
git:
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
url: https://github.com/Iconica-Development/flutter_timetable
|
version: ^2.0.0
|
||||||
ref: 2.0.0
|
|
||||||
path: packages/flutter_timetable_interface
|
|
||||||
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
||||||
flutter:
|
|
||||||
|
|
1
packages/flutter_timetable_interface/CHANGELOG.md
Symbolic link
1
packages/flutter_timetable_interface/CHANGELOG.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../CHANGELOG.md
|
1
packages/flutter_timetable_interface/LICENSE
Symbolic link
1
packages/flutter_timetable_interface/LICENSE
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../LICENSE
|
1
packages/flutter_timetable_interface/README.md
Symbolic link
1
packages/flutter_timetable_interface/README.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../README.md
|
|
@ -6,7 +6,8 @@ name: flutter_timetable_interface
|
||||||
description: A new Flutter package project.
|
description: A new Flutter package project.
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
repository: https://github.com/Iconica-Development/flutter_timetable
|
repository: https://github.com/Iconica-Development/flutter_timetable
|
||||||
publish_to: none
|
|
||||||
|
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.1.0 <4.0.0"
|
sdk: ">=3.1.0 <4.0.0"
|
||||||
|
@ -18,5 +19,3 @@ dependencies:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
||||||
flutter:
|
|
||||||
|
|
1
packages/flutter_timetable_view/CHANGELOG.md
Symbolic link
1
packages/flutter_timetable_view/CHANGELOG.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../CHANGELOG.md
|
1
packages/flutter_timetable_view/LICENSE
Symbolic link
1
packages/flutter_timetable_view/LICENSE
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../LICENSE
|
1
packages/flutter_timetable_view/README.md
Symbolic link
1
packages/flutter_timetable_view/README.md
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../README.md
|
|
@ -16,7 +16,7 @@ dependencies:
|
||||||
flutter_timetable_view:
|
flutter_timetable_view:
|
||||||
path: ../
|
path: ../
|
||||||
flutter_timetable_interface:
|
flutter_timetable_interface:
|
||||||
path: ../../flutter_timetable_interface
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: BSD-3-Clause
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
library timetable;
|
library flutter_timetable;
|
||||||
|
|
||||||
export 'src/models/table_theme.dart';
|
export 'src/models/table_theme.dart';
|
||||||
export 'src/timetable.dart';
|
export 'src/timetable.dart';
|
||||||
|
|
|
@ -3,7 +3,7 @@ description: Flutter package to create a Timetable Widget that display blocks of
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
repository: https://github.com/Iconica-Development/flutter_timetable
|
repository: https://github.com/Iconica-Development/flutter_timetable
|
||||||
|
|
||||||
publish_to: none
|
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.2.0 <4.0.0"
|
sdk: ">=3.2.0 <4.0.0"
|
||||||
|
@ -13,14 +13,10 @@ dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_timetable_interface:
|
flutter_timetable_interface:
|
||||||
git:
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
url: https://github.com/Iconica-Development/flutter_timetable
|
version: ^2.0.0
|
||||||
ref: 2.0.0
|
|
||||||
path: packages/flutter_timetable_interface
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
||||||
flutter:
|
|
Loading…
Reference in a new issue