Skip to content

Commit

Permalink
Add null-safety support (#2)
Browse files Browse the repository at this point in the history
* Add null-safety support

* Use Flutter 1.24.x for tests

* Add missing newline to CHANGELOG
  • Loading branch information
Albert221 authored Dec 28, 2020
1 parent 3021e48 commit 84fa6bc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: google/dart:2.10
image: google/dart:2.12-beta

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
include:
- version: '1.22.x'
- version: '1.24.x'
- channel: stable
- channel: beta
- channel: dev
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.0.0-nullsafety.0

- Bump minimum SDK version to 2.12 prerelease.
- Add support for null-safety.

# 1.0.0

- First release.
8 changes: 4 additions & 4 deletions lib/logging_bugfender.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ class LoggingBugfenderListener {
/// unrelevant records.
LoggingBugfenderListener(
String appKey, {
Uri apiUri,
Uri baseUri,
int maximumLocalStorageSize,
Uri? apiUri,
Uri? baseUri,
int? maximumLocalStorageSize,
bool printToConsole = true,
bool enableUIEventLogging = true,
bool enableCrashReporting = true,
bool enableAndroidLogcatLogging = true,
}) : assert(appKey != null) {
}) {
FlutterBugfender.init(
appKey,
apiUri: apiUri,
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: logging_bugfender
description: A library helping integrate Bugfender with the logging package.
version: 1.0.0
version: 2.0.0-nullsafety.0
homepage: https://github.com/leancodepl/logging_bugfender

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: ">=2.12.0-0 <3.0.0"

dependencies:
flutter_bugfender: ^1.2.2
logging: ^0.11.4
flutter_bugfender: ^2.0.0-nullsafety.0
logging: ^1.0.0-nullsafety.0

dev_dependencies:
lint: ^1.3.0

0 comments on commit 84fa6bc

Please sign in to comment.