gitea 0.1.0

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 pub get

Alternatively, your editor might support pub get or flutter pub 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';
  
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]
40
Overall:
Weighted score of the above. [more]
38
Learn more about scoring.

We analyzed this package on Aug 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

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 issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://dev.belin.io/gitea.dart was unreachable.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (json_annotation).

Documentation URL doesn't exist. (-10 points)

At the time of the analysis the documentation field https://dev.belin.io/gitea.dart/api was unreachable.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
json_annotation ^2.0.0 2.4.0 3.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