chore: ready the package for deployment to the pub server

This commit is contained in:
Bart Ribbers 2024-07-11 19:13:39 +02:00 committed by Bart Ribbers
parent 0136f84a10
commit 79f31f2552
22 changed files with 146 additions and 23 deletions

View file

@ -36,3 +36,7 @@
* 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.
## [3.0.0] - 11 July 2024
* Rename main entry point to flutter_timetable

View file

@ -0,0 +1 @@
../../CHANGELOG.md

View file

@ -0,0 +1 @@
../../LICENSE

View file

@ -0,0 +1 @@
../../README.md

View 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

View 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.

View file

@ -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

View file

@ -16,7 +16,7 @@ class MyRosterModel extends TimetableEvent {
final myRosterServiceProvider = Provider(
(ref) => FirebaseTimetableService<MyRosterModel>(
options: FirebaseTimetableOptions(timetableCollectionName: 'roster'),
options: const FirebaseTimetableOptions(timetableCollectionName: 'roster'),
),
);

View file

@ -16,7 +16,8 @@ dependencies:
flutter_timetable_firebase:
path: ../
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

View file

@ -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);
});
}

View file

@ -6,7 +6,8 @@ name: flutter_timetable_firebase
description: A new Flutter package project.
version: 2.0.0
repository: https://github.com/Iconica-Development/flutter_timetable
publish_to: none
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
environment:
sdk: ">=3.1.0 <4.0.0"
@ -18,13 +19,9 @@ dependencies:
flutter:
sdk: flutter
flutter_timetable_interface:
git:
url: https://github.com/Iconica-Development/flutter_timetable
ref: 2.0.0
path: packages/flutter_timetable_interface
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^2.0.0
dev_dependencies:
flutter_lints: ^2.0.0
flutter:

View file

@ -0,0 +1 @@
../../CHANGELOG.md

View file

@ -0,0 +1 @@
../../LICENSE

View file

@ -0,0 +1 @@
../../README.md

View file

@ -6,7 +6,8 @@ name: flutter_timetable_interface
description: A new Flutter package project.
version: 2.0.0
repository: https://github.com/Iconica-Development/flutter_timetable
publish_to: none
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
environment:
sdk: ">=3.1.0 <4.0.0"
@ -18,5 +19,3 @@ dependencies:
dev_dependencies:
flutter_lints: ^2.0.0
flutter:

View file

@ -0,0 +1 @@
../../CHANGELOG.md

View file

@ -0,0 +1 @@
../../LICENSE

View file

@ -0,0 +1 @@
../../README.md

View file

@ -16,7 +16,7 @@ dependencies:
flutter_timetable_view:
path: ../
flutter_timetable_interface:
path: ../../flutter_timetable_interface
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
dev_dependencies:
flutter_test:

View file

@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: BSD-3-Clause
library timetable;
library flutter_timetable;
export 'src/models/table_theme.dart';
export 'src/timetable.dart';

View file

@ -3,7 +3,7 @@ description: Flutter package to create a Timetable Widget that display blocks of
version: 2.0.0
repository: https://github.com/Iconica-Development/flutter_timetable
publish_to: none
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
environment:
sdk: ">=3.2.0 <4.0.0"
@ -13,14 +13,10 @@ dependencies:
flutter:
sdk: flutter
flutter_timetable_interface:
git:
url: https://github.com/Iconica-Development/flutter_timetable
ref: 2.0.0
path: packages/flutter_timetable_interface
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^2.0.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter: