Skip to content

Commit

Permalink
Fix deprecations of withNullability (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik authored Sep 2, 2024
1 parent 06e30c3 commit 8a0d0b5
Show file tree
Hide file tree
Showing 11 changed files with 257 additions and 212 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
![Pub Likes](https://img.shields.io/pub/likes/retrofit)
[![Testing](https://github.com/trevorwang/retrofit.dart/actions/workflows/test.yml/badge.svg)](https://github.com/trevorwang/retrofit.dart/actions/workflows/test.yml)



retrofit.dart is a type conversion [dio](https://github.com/flutterchina/dio/) client generator using [source_gen](https://github.com/dart-lang/source_gen) and inspired by [Chopper](https://github.com/lejard-h/chopper) and [Retrofit](https://github.com/square/retrofit).

## Usage
Expand All @@ -17,14 +15,14 @@ Add the generator to your dev dependencies

```yaml
dependencies:
retrofit: '>=4.0.0 <5.0.0'
logger: any #for logging purpose
json_annotation: ^4.8.1
retrofit: ^4.3.0
logger: ^1.2.0 # for logging purpose
json_annotation: ^4.9.0

dev_dependencies:
retrofit_generator: '>=7.0.0 <8.0.0' // required dart >=2.19
build_runner: '>=2.3.0 <4.0.0'
json_serializable: ^6.6.2
retrofit_generator: '>=8.0.0 <10.0.0' # for Dart 3.3 use ^9.0.0
build_runner: ^2.3.3
json_serializable: ^6.8.0
```
### Define and Generate your API
Expand Down
8 changes: 8 additions & 0 deletions generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 9.0.0

- Require Dart 3.3
- Fix issue with deprecated `getDisplayString(withNullability: true)`
- Update `analyzer: ^6.5.0`
- Update `lints: ^4.0.0` and fix issues
- Remove `tuple` dependency

## 8.1.0

- Added `@Extras` to pass extra options to dio requests, response, transformer and interceptors.
Expand Down
2 changes: 2 additions & 0 deletions generator/lib/retrofit_generator.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
library;

import 'package:build/build.dart';

import 'src/generator.dart';
Expand Down
Loading

0 comments on commit 8a0d0b5

Please sign in to comment.