Skip to content

Commit

Permalink
Add topics.
Browse files Browse the repository at this point in the history
Cleanup.
  • Loading branch information
westy92 committed Sep 13, 2023
1 parent abcdbb3 commit e8d6ee5
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 30 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.0.2

- Add `topics` to `pubspec.yaml`.
- Cleanup tests.
- Expand environment SDK version constraints.
- Update dependencies.

## 1.0.1

- Initial release.
2 changes: 1 addition & 1 deletion lib/src/holiday_event_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class HolidayEventApi {

late final String _apiKey;

static const String version = '1.0.1';
static const String version = '1.0.2';
static const JsonDecoder _decoder = JsonDecoder();
static const int _maxRedirects = 5;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/alternate_name.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'alternate_name.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/event_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:holiday_event_api/src/model/pattern.dart';
import 'package:holiday_event_api/src/model/rich_text.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'event_info.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/event_summary.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'event_summary.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/founder_info.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'founder_info.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/get_event_info_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:holiday_event_api/src/model/rate_limit.dart';
import 'package:holiday_event_api/src/model/standard_response.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'get_event_info_response.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/get_events_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:holiday_event_api/src/model/rate_limit.dart';
import 'package:holiday_event_api/src/model/standard_response.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'get_events_response.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/image_info.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'image_info.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/occurrence.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'occurrence.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/pattern.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'pattern.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/rate_limit.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'rate_limit.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/rich_text.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'rich_text.g.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/model/search_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:holiday_event_api/src/model/rate_limit.dart';
import 'package:holiday_event_api/src/model/standard_response.dart';
import 'package:json_annotation/json_annotation.dart';

// Generated with: flutter packages pub run build_runner build
// Generated with: dart run build_runner build
// Each class needs:
// factory <CLASSNAME>.fromJson(Map<String, dynamic> json) => _$<CLASSNAME>FromJson(json);
part 'search_response.g.dart';
Expand Down
17 changes: 12 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: holiday_event_api
description: The Official Holiday and Event API built for Dart and Flutter.
version: 1.0.1
version: 1.0.2
repository: https://github.com/westy92/holiday-event-api-dart
issue_tracker: https://github.com/westy92/holiday-event-api-dart/issues
funding:
- https://github.com/sponsors/westy92

environment:
sdk: '>=2.15.0 <3.0.0'
sdk: '>=2.15.0 <4.0.0'

platforms:
android:
Expand All @@ -19,12 +19,19 @@ platforms:

dependencies:
equatable: ^2.0.0
http: ^0.13.5
json_annotation: ^4.7.0
http: ^1.0.0
json_annotation: ^4.8.1

dev_dependencies:
build_runner: ^2.1.0
json_serializable: ^6.5.1
json_serializable: ^6.7.1
lints: ^2.0.0
pubspec_parse: ^1.2.1
test: ^1.16.0

topics:
- api
- apis
- client
- event
- http
12 changes: 0 additions & 12 deletions test/holiday_event_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ import 'dart:convert';
import 'dart:io';

import 'package:holiday_event_api/holiday_event_api.dart';
import 'package:holiday_event_api/src/model/alternate_name.dart';
import 'package:holiday_event_api/src/model/event_info.dart';
import 'package:holiday_event_api/src/model/event_summary.dart';
import 'package:holiday_event_api/src/model/founder_info.dart';
import 'package:holiday_event_api/src/model/get_event_info_response.dart';
import 'package:holiday_event_api/src/model/get_events_response.dart';
import 'package:holiday_event_api/src/model/image_info.dart';
import 'package:holiday_event_api/src/model/occurrence.dart';
import 'package:holiday_event_api/src/model/pattern.dart';
import 'package:holiday_event_api/src/model/rate_limit.dart';
import 'package:holiday_event_api/src/model/rich_text.dart';
import 'package:holiday_event_api/src/model/search_response.dart';
import 'package:http/http.dart';
import 'package:http/testing.dart';
import 'package:pubspec_parse/pubspec_parse.dart';
Expand Down

0 comments on commit e8d6ee5

Please sign in to comment.