Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added AndroidX support - 0.0.21 Release
- Loading branch information
Showing
15 changed files
with
561 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.0.21 | ||
* Added Chopper support | ||
* Added AndroidX support | ||
|
||
## 0.0.20 | ||
* Updated dependencies | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.enableR8=true | ||
android.useAndroidX=true | ||
android.enableJetifier=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// YOUR_FILE.dart | ||
|
||
import "dart:async"; | ||
import 'package:chopper/chopper.dart'; | ||
|
||
// this is necessary for the generated code to find your class | ||
part "posts_service.chopper.dart"; | ||
|
||
@ChopperApi(baseUrl: "https://jsonplaceholder.typicode.com/posts") | ||
abstract class PostsService extends ChopperService { | ||
// helper methods that help you instanciate your service | ||
static PostsService create([ChopperClient client]) => _$PostsService(client); | ||
|
||
@Get(path: '/{id}') | ||
Future<Response> getPost(@Path() String id); | ||
|
||
@Post(path: '/') | ||
Future<Response> postPost(@Body() Map<String, dynamic> body); | ||
|
||
@Put(path: '/{id}') | ||
Future<Response> putPost( | ||
@Path() String id, @Body() Map<String, dynamic> body); | ||
} |
Oops, something went wrong.