gitea 0.1.0

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new46

Gitea for Dart

Runtime Release License Coverage Build

Gitea client library, in Dart.

Documentation

Development

License

Gitea for Dart is distributed under the MIT License.

Changelog

Version 0.1.0

  • Initial release.

example/main.dart

import 'dart:async';
import 'package:gitea/gitea.dart';

/// Handles the payload of a Gitea push event.
Future<PushEvent> main() async => null;

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  gitea: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:gitea/gitea.dart';
  
Version Uploaded Documentation Archive
0.1.0 Nov 21, 2018 Go to the documentation of gitea 0.1.0 Download gitea 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:gitea/gitea.dart.

Health suggestions

Format lib/src/models/payload_commit.dart.

Run dartfmt to format lib/src/models/payload_commit.dart.

Format lib/src/models/payload_commit_verification.dart.

Run dartfmt to format lib/src/models/payload_commit_verification.dart.

Format lib/src/models/payload_user.dart.

Run dartfmt to format lib/src/models/payload_user.dart.

Fix additional 8 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/models/permission.dart (Run dartfmt to format lib/src/models/permission.dart.)
  • lib/src/models/repository.dart (Run dartfmt to format lib/src/models/repository.dart.)
  • lib/src/models/server_version.dart (Run dartfmt to format lib/src/models/server_version.dart.)
  • lib/src/models/status_state.dart (Run dartfmt to format lib/src/models/status_state.dart.)
  • lib/src/models/team.dart (Run dartfmt to format lib/src/models/team.dart.)
  • lib/src/models/team_permission.dart (Run dartfmt to format lib/src/models/team_permission.dart.)
  • lib/src/models/user.dart (Run dartfmt to format lib/src/models/user.dart.)
  • lib/src/push_event.dart (Run dartfmt to format lib/src/push_event.dart.)

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
json_annotation ^2.0.0 2.0.0
Dev dependencies
build_runner ^1.1.2
build_test ^0.10.3
build_web_compilers ^0.4.4
coverage ^0.12.2
grinder ^0.8.3
json_serializable ^2.0.0
test ^1.5.1