Compare commits

...

6 Commits

Author SHA1 Message Date
Shreyas Thirumalai 88ca58d62b
feat(github): single commit screen (#253)
closes #238

Co-authored-by: Rongjian Zhang <pd4d10@gmail.com>
2022-10-17 18:02:40 +08:00
Rongjian Zhang ade30dec99 chore: update generated files 2022-10-17 16:32:54 +08:00
Rongjian Zhang 51bd138951 chore: add dep upgrade script 2022-10-17 16:23:44 +08:00
Rongjian Zhang 4595f61961 build: update deps 2022-10-17 16:17:18 +08:00
Rongjian Zhang 7d70886d52 style: dart fix apply 2022-10-16 16:50:58 +08:00
Rongjian Zhang 1edc61edef chore: github trending package 2022-10-16 16:31:08 +08:00
32 changed files with 793 additions and 185 deletions

2
.gitignore vendored
View File

@ -45,3 +45,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
packages/*/pubspec.lock

15
.vscode/tasks.json vendored
View File

@ -3,27 +3,34 @@
"tasks": [
{
"label": "all",
"dependsOn": ["json", "github", "gitlab"]
"dependsOn": ["root", "gql_github", "gql_gitlab", "github_trending"]
},
{
"label": "json",
"label": "root",
"type": "dart",
"command": "dart",
"args": ["run", "build_runner", "watch"]
},
{
"label": "github",
"label": "gql_github",
"type": "dart",
"command": "dart",
"cwd": "packages/gql_github",
"args": ["run", "build_runner", "watch"]
},
{
"label": "gitlab",
"label": "gql_gitlab",
"type": "dart",
"command": "dart",
"cwd": "packages/gql_gitlab",
"args": ["run", "build_runner", "watch"]
},
{
"label": "github_trending",
"type": "dart",
"command": "dart",
"cwd": "packages/github_trending",
"args": ["run", "build_runner", "watch"]
}
]
}

View File

@ -8,13 +8,13 @@ PODS:
- Flutter
- path_provider_ios (0.0.1):
- Flutter
- Sentry (7.26.0):
- Sentry/Core (= 7.26.0)
- Sentry/Core (7.26.0)
- Sentry (7.27.1):
- Sentry/Core (= 7.27.1)
- Sentry/Core (7.27.1)
- sentry_flutter (0.0.1):
- Flutter
- FlutterMacOS
- Sentry (~> 7.26.0)
- Sentry (~> 7.27.1)
- share_plus (0.0.1):
- Flutter
- shared_preferences_ios (0.0.1):
@ -73,8 +73,8 @@ SPEC CHECKSUMS:
maps_launcher: 2e5b6a2d664ec6c27f82ffa81b74228d770ab203
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
Sentry: 6b8f4a4f93c2471b0d73819c52da0c0ce4f0323c
sentry_flutter: 6604b70e74bfb15522c23788295e1debdbc86676
Sentry: bc644307e2eb6a4c9c55cf117a80b895bb2a25a7
sentry_flutter: 649559f0512e00d3f6fc92cf51f74bc2fe68d1d3
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a

View File

@ -203,6 +203,10 @@
"@commits": {
"description": "Commits"
},
"commit": "Commit",
"@commit": {
"description": "Commit"
},
"branches": "Branches",
"@branches": {
"description": "branches"
@ -831,5 +835,18 @@
"starred": "starred",
"@starred": {
"description": "starred"
},
"filesChanged": "{count,plural, =1{{count} file changed} other{{count} files changed}}",
"@filesChanged": {
"description": "no. of files changed",
"placeholders": {
"count": {
"type": "String"
}
}
},
"blankDiff": "No text to be shown here",
"@blankDiff": {
"description": "text to show for a blank diff"
}
}

View File

@ -25,6 +25,7 @@ import 'package:git_touch/screens/ge_search.dart';
import 'package:git_touch/screens/ge_tree.dart';
import 'package:git_touch/screens/ge_user.dart';
import 'package:git_touch/screens/ge_users.dart';
import 'package:git_touch/screens/gh_commit.dart';
import 'package:git_touch/screens/gh_commits.dart';
import 'package:git_touch/screens/gh_compare.dart';
import 'package:git_touch/screens/gh_contributors.dart';
@ -203,6 +204,14 @@ final router = GoRouter(
branch: state.params['branch'],
),
),
GoRoute(
path: 'commit/:sha',
builder: (context, state) => GhCommit(
state.params['owner']!,
state.params['name']!,
state.params['sha']!,
),
),
GoRoute(
path: 'compare/:before/:head',
builder: (context, state) => GhComparisonScreen(

136
lib/screens/gh_commit.dart Normal file
View File

@ -0,0 +1,136 @@
import 'package:antd_mobile/antd_mobile.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/S.dart';
import 'package:git_touch/models/auth.dart';
import 'package:git_touch/scaffolds/refresh_stateful.dart';
import 'package:git_touch/utils/utils.dart';
import 'package:git_touch/widgets/action_button.dart';
import 'package:git_touch/widgets/avatar.dart';
import 'package:git_touch/widgets/files_item.dart';
import 'package:git_touch/widgets/link.dart';
import 'package:github/github.dart';
import 'package:provider/provider.dart';
class GhCommit extends StatelessWidget {
const GhCommit(this.owner, this.name, this.sha);
final String owner;
final String name;
final String sha;
@override
Widget build(BuildContext context) {
return RefreshStatefulScaffold<RepositoryCommit>(
title: Text(
'${AppLocalizations.of(context)!.commit} ${sha.substring(0, 8)}'),
fetch: () async {
// TODO: change to graphql when files diff is available via graphql
final res = await context
.read<AuthModel>()
.ghClient
.repositories
.getCommit(RepositorySlug(owner, name), sha);
return res;
},
actionBuilder: (v, _) {
return ActionButton(
title: AppLocalizations.of(context)!.actions,
items: [
...ActionItem.getUrlActions(
'https://github.com/$owner/$name/commit/$sha'),
],
);
},
bodyBuilder: (v, _) {
final theme = AntTheme.of(context);
return Column(
children: [
Container(
padding: CommonStyle.padding,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
LinkWidget(
url: v.author == null ? null : '/github/${v.author!.login}',
child: Row(
children: <Widget>[
Avatar(
url: v.author?.avatarUrl,
size: AvatarSize.extraSmall),
const SizedBox(width: 4),
Text(
v.author?.login ?? 'ghost',
style: TextStyle(
fontSize: 17,
color: theme.colorTextSecondary,
),
),
],
),
),
const SizedBox(height: 16),
Text(
v.commit?.message ?? 'no message',
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
),
),
],
),
),
Container(
padding: CommonStyle.padding,
child: Column(
children: [
CommonStyle.border,
const SizedBox(height: 8),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
AppLocalizations.of(context)!
.filesChanged(v.files?.length ?? 0),
style: TextStyle(
color: theme.colorTextSecondary,
fontSize: 17,
)),
Row(
children: <Widget>[
Text('+${v.stats?.additions ?? 0}',
style: const TextStyle(
color: Colors.green,
fontSize: 15,
)),
const SizedBox(width: 2),
Text('-${v.stats?.deletions ?? 0}',
style: const TextStyle(
color: Colors.red,
fontSize: 15,
)),
],
),
]),
const SizedBox(height: 8),
CommonStyle.border
],
),
),
Wrap(
children: (v.files ?? [])
.map<Widget>((vs) => FilesItem(
filename: vs.name,
additions: vs.additions,
deletions: vs.deletions,
status: vs.status,
patch:
vs.patch ?? AppLocalizations.of(context)!.blankDiff,
))
.toList(),
),
],
);
},
);
}
}

View File

@ -54,7 +54,7 @@ class GhCommits extends StatelessWidget {
itemBuilder: (p) {
final login = p.author?.user?.login;
return CommitItem(
url: p.url,
url: '/github/$owner/$name/commit/${p.oid}',
avatarUrl: p.author?.avatarUrl,
avatarLink: login == null ? null : '/github/$login',
message: p.messageHeadline,

View File

@ -42,7 +42,7 @@ class GhComparisonScreen extends StatelessWidget {
additions: vs.additions,
deletions: vs.deletions,
status: vs.status,
patch: vs.patch ?? 'No text to be shown here',
patch: vs.patch ?? AppLocalizations.of(context)!.blankDiff,
))
.toList(),
);

View File

@ -11,3 +11,9 @@ schema:
format:
dartfmt --overwrite lib/**/*.dart
upgrade:
cd packages/github_trending && flutter pub upgrade --major-versions && \
cd ../gql_github && flutter pub upgrade --major-versions && \
cd ../gql_gitlab && flutter pub upgrade --major-versions && \
cd ../.. && flutter pub upgrade --major-versions

View File

@ -0,0 +1,44 @@
# [1.1.0](https://github.com/git-touch/github-trending/compare/v1.0.0...v1.1.0) (2021-03-07)
### Features
- null safety ([40d285a](https://github.com/git-touch/github-trending/commit/40d285a511598545aa2c82199f94e1d51f6c256f))
# [1.0.0](https://github.com/git-touch/github-trending/compare/v0.3.0...v1.0.0) (2020-11-14)
### Bug Fixes
- decode with utf8 ([b13d07a](https://github.com/git-touch/github-trending/commit/b13d07a0ea6f98d434c95b1873508741af97d147))
# [0.3.0](https://github.com/git-touch/github-trending/compare/v0.2.0...v0.3.0) (2020-10-06)
# [0.2.0](https://github.com/git-touch/github-trending/compare/v0.1.2...v0.2.0) (2020-02-09)
### Bug Fixes
- developer repo ([09223e2](https://github.com/git-touch/github-trending/commit/09223e238538ff6d9e304171c4dca6a9bc7b77e2))
## [0.1.2](https://github.com/git-touch/github-trending/compare/v0.1.1...v0.1.2) (2019-04-25)
### Bug Fixes
- language color match ([3967fcc](https://github.com/git-touch/github-trending/commit/3967fccc440ceee3cb8c57ab42070c8acfe4507b))
## [0.1.1](https://github.com/git-touch/github-trending/compare/v0.1.0...v0.1.1) (2019-03-12)
### Bug Fixes
- fix color matcher for colors like #ccc ([3222ed6](https://github.com/git-touch/github-trending/commit/3222ed6f261d0f3069d761b7d7229f7c8c888a51))
# [0.1.0](https://github.com/git-touch/github-trending/compare/edb71b7a5fe1f8bcf6662ac20888fc795159137a...v0.1.0) (2019-03-06)
### Bug Fixes
- language node null ([9691db2](https://github.com/git-touch/github-trending/commit/9691db2eebad85e2b4e3ff44c91522086294bca8))
- star and fork number with comma ([4a99551](https://github.com/git-touch/github-trending/commit/4a995516409881f259875b2491a12b312d2125e4))
### Features
- add description HTML field, remove anchor tag of description ([922ecb1](https://github.com/git-touch/github-trending/commit/922ecb194d19d9536436498d642f16c45c9d58c2))
- add since and language params ([ab7a7f0](https://github.com/git-touch/github-trending/commit/ab7a7f03d61a588564ea3c2a4a0500e2643ac434))
- basic implemetation ([edb71b7](https://github.com/git-touch/github-trending/commit/edb71b7a5fe1f8bcf6662ac20888fc795159137a))

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Rongjian Zhang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,41 @@
# github_trending
[![pub](https://img.shields.io/pub/v/github_trending.svg)](https://pub.dev/packages/github_trending) [![test](https://github.com/pd4d10/github-trending/workflows/test/badge.svg)](https://github.com/pd4d10/github-trending/actions?query=workflow:test)
A Dart library to get GitHub trending repositories and developers via [github-trending-api](https://github.com/huchenme/github-trending-api).
## Installation
Add `github_trending` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/packages-and-plugins/using-packages)
## Usage
```dart
import 'package:github_trending/github_trending.dart';
void main() async {
final trending = GithubTrending(prefix: 'https://gtrend.yapie.me');
// get trending repositories
var repos = await trending.getTrendingRepositories();
print(repos[0].name);
// specify time period
var weeklyRepos = await trending.getTrendingRepositories(since: 'weekly');
print(weeklyRepos[0].name);
// specify language
var dartRepos = await trending.getTrendingRepositories(language: 'dart');
print(dartRepos[0].language); // Dart
print(dartRepos[0].languageColor); // #00B4AB
}
```
## Credits
- [github-trending-api](https://github.com/huchenme/github-trending-api)
## License
MIT

View File

@ -0,0 +1,14 @@
# # Defines a default set of lint rules enforced for
# # projects at Google. For details and rationale,
# # see https://github.com/dart-lang/pedantic#enabled-lints.
# include: package:pedantic/analysis_options.yaml
# # For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# # Uncomment to specify additional rules.
# # linter:
# # rules:
# # - camel_case_types
# analyzer:
# # exclude:
# # - path/to/excluded/files/**

View File

@ -0,0 +1,18 @@
import 'package:github_trending/github_trending.dart';
void main() async {
final trending = GithubTrending();
// get trending repositories
var repos = await trending.getTrendingRepositories();
print(repos[0].name);
// specify time period
var weeklyRepos = await trending.getTrendingRepositories(since: 'weekly');
print(weeklyRepos[0].name);
// specify language
var dartRepos = await trending.getTrendingRepositories(language: 'dart');
print(dartRepos[0].language); // Dart
print(dartRepos[0].languageColor); // #00B4AB
}

View File

@ -0,0 +1,2 @@
export 'src/model.dart';
export 'src/api.dart';

View File

@ -0,0 +1,61 @@
import 'dart:convert';
import 'package:github_trending/src/model.dart';
import 'package:http/http.dart' as http;
class TrendingRepositoryPrimaryLanguage {
TrendingRepositoryPrimaryLanguage({this.name, this.color});
String? name;
String? color;
}
class GithubTrending {
GithubTrending({this.prefix = 'https://ghapi.huchen.dev'});
String prefix;
Future _getJson(Uri url) async {
final res = await http.get(url);
return json.decode(utf8.decode(res.bodyBytes));
}
/// Get trending repositories
///
/// https://github.com/huchenme/github-trending-api#trending-repositories
Future<List<GithubTrendingRepository>> getTrendingRepositories({
/// daily, weekly, monthly
String? since,
String? language,
String? spokenLanguageCode,
}) async {
final res = await _getJson(Uri.parse('$prefix/repositories').replace(
queryParameters: {
if (since != null) 'since': since,
if (language != null) 'language': language,
if (spokenLanguageCode != null)
'spoken_language_code': spokenLanguageCode
},
));
return (res as List)
.map((v) => GithubTrendingRepository.fromJson(v))
.toList();
}
/// Get trending developers
///
/// https://github.com/huchenme/github-trending-api#trending-developers
Future<List<GithubTrendingDeveloper>> getTrendingDevelopers({
/// daily, weekly, monthly
String? since,
String? language,
}) async {
final res = await _getJson(Uri.parse('$prefix/developers').replace(
queryParameters: {
if (since != null) 'since': since,
if (language != null) 'language': language,
},
));
return (res as List)
.map((v) => GithubTrendingDeveloper.fromJson(v))
.toList();
}
}

View File

@ -0,0 +1,55 @@
import 'package:json_annotation/json_annotation.dart';
part 'model.g.dart';
@JsonSerializable()
class GithubTrendingRepository {
factory GithubTrendingRepository.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingRepositoryFromJson(json);
GithubTrendingRepository();
String? author;
String? name;
String? avatar;
String? url;
String? description;
String? language;
String? languageColor;
int? stars;
int? forks;
int? currentPeriodStars;
List<GithubTrendingRepositoryBuiltBy>? builtBy;
}
@JsonSerializable()
class GithubTrendingRepositoryBuiltBy {
factory GithubTrendingRepositoryBuiltBy.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingRepositoryBuiltByFromJson(json);
GithubTrendingRepositoryBuiltBy();
String? href;
String? avatar;
String? username;
}
@JsonSerializable()
class GithubTrendingDeveloper {
factory GithubTrendingDeveloper.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingDeveloperFromJson(json);
GithubTrendingDeveloper();
String? username;
String? name;
String? type;
String? url;
String? avatar;
GithubTrendingDeveloperRepository? repo;
}
@JsonSerializable()
class GithubTrendingDeveloperRepository {
factory GithubTrendingDeveloperRepository.fromJson(
Map<String, dynamic> json) =>
_$GithubTrendingDeveloperRepositoryFromJson(json);
GithubTrendingDeveloperRepository();
String? name;
String? description;
String? url;
}

View File

@ -0,0 +1,95 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
GithubTrendingRepository _$GithubTrendingRepositoryFromJson(
Map<String, dynamic> json) =>
GithubTrendingRepository()
..author = json['author'] as String?
..name = json['name'] as String?
..avatar = json['avatar'] as String?
..url = json['url'] as String?
..description = json['description'] as String?
..language = json['language'] as String?
..languageColor = json['languageColor'] as String?
..stars = json['stars'] as int?
..forks = json['forks'] as int?
..currentPeriodStars = json['currentPeriodStars'] as int?
..builtBy = (json['builtBy'] as List<dynamic>?)
?.map((e) => GithubTrendingRepositoryBuiltBy.fromJson(
e as Map<String, dynamic>))
.toList();
Map<String, dynamic> _$GithubTrendingRepositoryToJson(
GithubTrendingRepository instance) =>
<String, dynamic>{
'author': instance.author,
'name': instance.name,
'avatar': instance.avatar,
'url': instance.url,
'description': instance.description,
'language': instance.language,
'languageColor': instance.languageColor,
'stars': instance.stars,
'forks': instance.forks,
'currentPeriodStars': instance.currentPeriodStars,
'builtBy': instance.builtBy,
};
GithubTrendingRepositoryBuiltBy _$GithubTrendingRepositoryBuiltByFromJson(
Map<String, dynamic> json) =>
GithubTrendingRepositoryBuiltBy()
..href = json['href'] as String?
..avatar = json['avatar'] as String?
..username = json['username'] as String?;
Map<String, dynamic> _$GithubTrendingRepositoryBuiltByToJson(
GithubTrendingRepositoryBuiltBy instance) =>
<String, dynamic>{
'href': instance.href,
'avatar': instance.avatar,
'username': instance.username,
};
GithubTrendingDeveloper _$GithubTrendingDeveloperFromJson(
Map<String, dynamic> json) =>
GithubTrendingDeveloper()
..username = json['username'] as String?
..name = json['name'] as String?
..type = json['type'] as String?
..url = json['url'] as String?
..avatar = json['avatar'] as String?
..repo = json['repo'] == null
? null
: GithubTrendingDeveloperRepository.fromJson(
json['repo'] as Map<String, dynamic>);
Map<String, dynamic> _$GithubTrendingDeveloperToJson(
GithubTrendingDeveloper instance) =>
<String, dynamic>{
'username': instance.username,
'name': instance.name,
'type': instance.type,
'url': instance.url,
'avatar': instance.avatar,
'repo': instance.repo,
};
GithubTrendingDeveloperRepository _$GithubTrendingDeveloperRepositoryFromJson(
Map<String, dynamic> json) =>
GithubTrendingDeveloperRepository()
..name = json['name'] as String?
..description = json['description'] as String?
..url = json['url'] as String?;
Map<String, dynamic> _$GithubTrendingDeveloperRepositoryToJson(
GithubTrendingDeveloperRepository instance) =>
<String, dynamic>{
'name': instance.name,
'description': instance.description,
'url': instance.url,
};

View File

@ -0,0 +1,16 @@
name: github_trending
description: A library to get GitHub trending repositories and developers, with languages and period options.
version: 1.1.0
homepage: https://github.com/git-touch/github-trending
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
http: ^0.13.0
json_annotation: ^4.0.0
dev_dependencies:
test: ^1.16.5
build_runner: ^2.3.0
json_serializable: ^6.5.1

View File

@ -0,0 +1,59 @@
import 'package:github_trending/github_trending.dart';
import 'package:test/test.dart';
// https://github.com/huchenme/github-trending-api/issues/130#issuecomment-703483762
final trending = GithubTrending(prefix: 'https://gtrend.yapie.me');
void main() {
group('repositories', () {
List<GithubTrendingRepository>? items;
setUpAll(() async {
items = await trending.getTrendingRepositories();
});
test('has data', () {
expect(items, isList);
});
test('owner, name are not null', () {
items!.forEach((item) {
expect(item.author, isNotNull);
expect(item.name, isNotNull);
});
});
test('star and fork count', () {
// make sure at least one item has star or fork
// to ensure no parse error
final itemHasStar = items!.where((item) => item.stars != null);
expect(itemHasStar, isNotEmpty);
final itemHasFork = items!.where((item) => item.forks != null);
expect(itemHasFork, isNotEmpty);
});
test('language color', () {
items!.forEach((item) {
if (item.languageColor != null) {
expect(
RegExp(r'#[0-9a-fA-F]{3,6}').hasMatch(item.languageColor!),
isTrue,
);
}
});
});
});
group('developers', () {
List<GithubTrendingDeveloper>? items;
setUpAll(() async {
items = await trending.getTrendingDevelopers();
});
test('has data', () {
expect(items, isList);
});
});
}

View File

@ -57,7 +57,7 @@ const CommitsRefCommit = _i1.FragmentDefinitionNode(
directives: [],
selectionSet: _i1.SelectionSetNode(selections: [
_i1.FieldNode(
name: _i1.NameNode(value: 'url'),
name: _i1.NameNode(value: 'oid'),
alias: null,
arguments: [],
directives: [],

View File

@ -308,7 +308,7 @@ abstract class GCommitsData_repository_defaultBranchRef_target__asCommit_history
@BuiltValueField(wireName: '__typename')
String get G__typename;
@override
String get url;
String get oid;
@override
String get messageHeadline;
@override
@ -691,7 +691,7 @@ abstract class GCommitsData_repository_ref_target__asCommit_history_nodes
@BuiltValueField(wireName: '__typename')
String get G__typename;
@override
String get url;
String get oid;
@override
String get messageHeadline;
@override
@ -867,7 +867,7 @@ abstract class GCommitsRefCommit_history_pageInfo {
abstract class GCommitsRefCommit_history_nodes {
String get G__typename;
String get url;
String get oid;
String get messageHeadline;
DateTime get committedDate;
GCommitsRefCommit_history_nodes_author? get author;
@ -1014,7 +1014,7 @@ abstract class GCommitsRefCommitData_history_nodes
@BuiltValueField(wireName: '__typename')
String get G__typename;
@override
String get url;
String get oid;
@override
String get messageHeadline;
@override
@ -1200,7 +1200,7 @@ abstract class GCommitsRef_target__asCommit_history_nodes
@override
String get G__typename;
@override
String get url;
String get oid;
@override
String get messageHeadline;
@override
@ -1451,7 +1451,7 @@ abstract class GCommitsRefData_target__asCommit_history_nodes
@BuiltValueField(wireName: '__typename')
String get G__typename;
@override
String get url;
String get oid;
@override
String get messageHeadline;
@override

View File

@ -580,8 +580,8 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodesS
'__typename',
serializers.serialize(object.G__typename,
specifiedType: const FullType(String)),
'url',
serializers.serialize(object.url, specifiedType: const FullType(String)),
'oid',
serializers.serialize(object.oid, specifiedType: const FullType(String)),
'messageHeadline',
serializers.serialize(object.messageHeadline,
specifiedType: const FullType(String)),
@ -626,8 +626,8 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodesS
result.G__typename = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'url':
result.url = serializers.deserialize(value,
case 'oid':
result.oid = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'messageHeadline':
@ -1188,8 +1188,8 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodesSerializer
'__typename',
serializers.serialize(object.G__typename,
specifiedType: const FullType(String)),
'url',
serializers.serialize(object.url, specifiedType: const FullType(String)),
'oid',
serializers.serialize(object.oid, specifiedType: const FullType(String)),
'messageHeadline',
serializers.serialize(object.messageHeadline,
specifiedType: const FullType(String)),
@ -1234,8 +1234,8 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodesSerializer
result.G__typename = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'url':
result.url = serializers.deserialize(value,
case 'oid':
result.oid = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'messageHeadline':
@ -1670,8 +1670,8 @@ class _$GCommitsRefCommitData_history_nodesSerializer
'__typename',
serializers.serialize(object.G__typename,
specifiedType: const FullType(String)),
'url',
serializers.serialize(object.url, specifiedType: const FullType(String)),
'oid',
serializers.serialize(object.oid, specifiedType: const FullType(String)),
'messageHeadline',
serializers.serialize(object.messageHeadline,
specifiedType: const FullType(String)),
@ -1715,8 +1715,8 @@ class _$GCommitsRefCommitData_history_nodesSerializer
result.G__typename = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'url':
result.url = serializers.deserialize(value,
case 'oid':
result.oid = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'messageHeadline':
@ -2247,8 +2247,8 @@ class _$GCommitsRefData_target__asCommit_history_nodesSerializer
'__typename',
serializers.serialize(object.G__typename,
specifiedType: const FullType(String)),
'url',
serializers.serialize(object.url, specifiedType: const FullType(String)),
'oid',
serializers.serialize(object.oid, specifiedType: const FullType(String)),
'messageHeadline',
serializers.serialize(object.messageHeadline,
specifiedType: const FullType(String)),
@ -2292,8 +2292,8 @@ class _$GCommitsRefData_target__asCommit_history_nodesSerializer
result.G__typename = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'url':
result.url = serializers.deserialize(value,
case 'oid':
result.oid = serializers.deserialize(value,
specifiedType: const FullType(String))! as String;
break;
case 'messageHeadline':
@ -3452,7 +3452,7 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
@override
final String G__typename;
@override
final String url;
final String oid;
@override
final String messageHeadline;
@override
@ -3474,7 +3474,7 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
_$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes._(
{required this.G__typename,
required this.url,
required this.oid,
required this.messageHeadline,
required this.committedDate,
this.author,
@ -3485,9 +3485,9 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
'G__typename');
BuiltValueNullFieldError.checkNotNull(
url,
oid,
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
'url');
'oid');
BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
@ -3517,7 +3517,7 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
return other
is GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes &&
G__typename == other.G__typename &&
url == other.url &&
oid == other.oid &&
messageHeadline == other.messageHeadline &&
committedDate == other.committedDate &&
author == other.author &&
@ -3529,7 +3529,7 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
return $jf($jc(
$jc(
$jc(
$jc($jc($jc(0, G__typename.hashCode), url.hashCode),
$jc($jc($jc(0, G__typename.hashCode), oid.hashCode),
messageHeadline.hashCode),
committedDate.hashCode),
author.hashCode),
@ -3541,7 +3541,7 @@ class _$GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes
return (newBuiltValueToStringHelper(
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes')
..add('G__typename', G__typename)
..add('url', url)
..add('oid', oid)
..add('messageHeadline', messageHeadline)
..add('committedDate', committedDate)
..add('author', author)
@ -3562,9 +3562,9 @@ class GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodesBui
String? get G__typename => _$this._G__typename;
set G__typename(String? G__typename) => _$this._G__typename = G__typename;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
String? _oid;
String? get oid => _$this._oid;
set oid(String? oid) => _$this._oid = oid;
String? _messageHeadline;
String? get messageHeadline => _$this._messageHeadline;
@ -3606,7 +3606,7 @@ class GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodesBui
final $v = _$v;
if ($v != null) {
_G__typename = $v.G__typename;
_url = $v.url;
_oid = $v.oid;
_messageHeadline = $v.messageHeadline;
_committedDate = $v.committedDate;
_author = $v.author?.toBuilder();
@ -3648,10 +3648,10 @@ class GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodesBui
G__typename,
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
'G__typename'),
url: BuiltValueNullFieldError.checkNotNull(
url,
oid: BuiltValueNullFieldError.checkNotNull(
oid,
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
'url'),
'oid'),
messageHeadline: BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsData_repository_defaultBranchRef_target__asCommit_history_nodes',
@ -4779,7 +4779,7 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
@override
final String G__typename;
@override
final String url;
final String oid;
@override
final String messageHeadline;
@override
@ -4801,7 +4801,7 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
_$GCommitsData_repository_ref_target__asCommit_history_nodes._(
{required this.G__typename,
required this.url,
required this.oid,
required this.messageHeadline,
required this.committedDate,
this.author,
@ -4811,8 +4811,8 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
G__typename,
r'GCommitsData_repository_ref_target__asCommit_history_nodes',
'G__typename');
BuiltValueNullFieldError.checkNotNull(url,
r'GCommitsData_repository_ref_target__asCommit_history_nodes', 'url');
BuiltValueNullFieldError.checkNotNull(oid,
r'GCommitsData_repository_ref_target__asCommit_history_nodes', 'oid');
BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsData_repository_ref_target__asCommit_history_nodes',
@ -4842,7 +4842,7 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
return other
is GCommitsData_repository_ref_target__asCommit_history_nodes &&
G__typename == other.G__typename &&
url == other.url &&
oid == other.oid &&
messageHeadline == other.messageHeadline &&
committedDate == other.committedDate &&
author == other.author &&
@ -4854,7 +4854,7 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
return $jf($jc(
$jc(
$jc(
$jc($jc($jc(0, G__typename.hashCode), url.hashCode),
$jc($jc($jc(0, G__typename.hashCode), oid.hashCode),
messageHeadline.hashCode),
committedDate.hashCode),
author.hashCode),
@ -4866,7 +4866,7 @@ class _$GCommitsData_repository_ref_target__asCommit_history_nodes
return (newBuiltValueToStringHelper(
r'GCommitsData_repository_ref_target__asCommit_history_nodes')
..add('G__typename', G__typename)
..add('url', url)
..add('oid', oid)
..add('messageHeadline', messageHeadline)
..add('committedDate', committedDate)
..add('author', author)
@ -4885,9 +4885,9 @@ class GCommitsData_repository_ref_target__asCommit_history_nodesBuilder
String? get G__typename => _$this._G__typename;
set G__typename(String? G__typename) => _$this._G__typename = G__typename;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
String? _oid;
String? get oid => _$this._oid;
set oid(String? oid) => _$this._oid = oid;
String? _messageHeadline;
String? get messageHeadline => _$this._messageHeadline;
@ -4928,7 +4928,7 @@ class GCommitsData_repository_ref_target__asCommit_history_nodesBuilder
final $v = _$v;
if ($v != null) {
_G__typename = $v.G__typename;
_url = $v.url;
_oid = $v.oid;
_messageHeadline = $v.messageHeadline;
_committedDate = $v.committedDate;
_author = $v.author?.toBuilder();
@ -4966,10 +4966,10 @@ class GCommitsData_repository_ref_target__asCommit_history_nodesBuilder
G__typename,
r'GCommitsData_repository_ref_target__asCommit_history_nodes',
'G__typename'),
url: BuiltValueNullFieldError.checkNotNull(
url,
oid: BuiltValueNullFieldError.checkNotNull(
oid,
r'GCommitsData_repository_ref_target__asCommit_history_nodes',
'url'),
'oid'),
messageHeadline: BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsData_repository_ref_target__asCommit_history_nodes',
@ -5824,7 +5824,7 @@ class _$GCommitsRefCommitData_history_nodes
@override
final String G__typename;
@override
final String url;
final String oid;
@override
final String messageHeadline;
@override
@ -5842,7 +5842,7 @@ class _$GCommitsRefCommitData_history_nodes
_$GCommitsRefCommitData_history_nodes._(
{required this.G__typename,
required this.url,
required this.oid,
required this.messageHeadline,
required this.committedDate,
this.author,
@ -5851,7 +5851,7 @@ class _$GCommitsRefCommitData_history_nodes
BuiltValueNullFieldError.checkNotNull(
G__typename, r'GCommitsRefCommitData_history_nodes', 'G__typename');
BuiltValueNullFieldError.checkNotNull(
url, r'GCommitsRefCommitData_history_nodes', 'url');
oid, r'GCommitsRefCommitData_history_nodes', 'oid');
BuiltValueNullFieldError.checkNotNull(messageHeadline,
r'GCommitsRefCommitData_history_nodes', 'messageHeadline');
BuiltValueNullFieldError.checkNotNull(
@ -5872,7 +5872,7 @@ class _$GCommitsRefCommitData_history_nodes
if (identical(other, this)) return true;
return other is GCommitsRefCommitData_history_nodes &&
G__typename == other.G__typename &&
url == other.url &&
oid == other.oid &&
messageHeadline == other.messageHeadline &&
committedDate == other.committedDate &&
author == other.author &&
@ -5884,7 +5884,7 @@ class _$GCommitsRefCommitData_history_nodes
return $jf($jc(
$jc(
$jc(
$jc($jc($jc(0, G__typename.hashCode), url.hashCode),
$jc($jc($jc(0, G__typename.hashCode), oid.hashCode),
messageHeadline.hashCode),
committedDate.hashCode),
author.hashCode),
@ -5895,7 +5895,7 @@ class _$GCommitsRefCommitData_history_nodes
String toString() {
return (newBuiltValueToStringHelper(r'GCommitsRefCommitData_history_nodes')
..add('G__typename', G__typename)
..add('url', url)
..add('oid', oid)
..add('messageHeadline', messageHeadline)
..add('committedDate', committedDate)
..add('author', author)
@ -5914,9 +5914,9 @@ class GCommitsRefCommitData_history_nodesBuilder
String? get G__typename => _$this._G__typename;
set G__typename(String? G__typename) => _$this._G__typename = G__typename;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
String? _oid;
String? get oid => _$this._oid;
set oid(String? oid) => _$this._oid = oid;
String? _messageHeadline;
String? get messageHeadline => _$this._messageHeadline;
@ -5950,7 +5950,7 @@ class GCommitsRefCommitData_history_nodesBuilder
final $v = _$v;
if ($v != null) {
_G__typename = $v.G__typename;
_url = $v.url;
_oid = $v.oid;
_messageHeadline = $v.messageHeadline;
_committedDate = $v.committedDate;
_author = $v.author?.toBuilder();
@ -5982,8 +5982,8 @@ class GCommitsRefCommitData_history_nodesBuilder
new _$GCommitsRefCommitData_history_nodes._(
G__typename: BuiltValueNullFieldError.checkNotNull(G__typename,
r'GCommitsRefCommitData_history_nodes', 'G__typename'),
url: BuiltValueNullFieldError.checkNotNull(
url, r'GCommitsRefCommitData_history_nodes', 'url'),
oid: BuiltValueNullFieldError.checkNotNull(
oid, r'GCommitsRefCommitData_history_nodes', 'oid'),
messageHeadline: BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsRefCommitData_history_nodes',
@ -6979,7 +6979,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
@override
final String G__typename;
@override
final String url;
final String oid;
@override
final String messageHeadline;
@override
@ -6998,7 +6998,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
_$GCommitsRefData_target__asCommit_history_nodes._(
{required this.G__typename,
required this.url,
required this.oid,
required this.messageHeadline,
required this.committedDate,
this.author,
@ -7007,7 +7007,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
BuiltValueNullFieldError.checkNotNull(G__typename,
r'GCommitsRefData_target__asCommit_history_nodes', 'G__typename');
BuiltValueNullFieldError.checkNotNull(
url, r'GCommitsRefData_target__asCommit_history_nodes', 'url');
oid, r'GCommitsRefData_target__asCommit_history_nodes', 'oid');
BuiltValueNullFieldError.checkNotNull(messageHeadline,
r'GCommitsRefData_target__asCommit_history_nodes', 'messageHeadline');
BuiltValueNullFieldError.checkNotNull(committedDate,
@ -7030,7 +7030,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
if (identical(other, this)) return true;
return other is GCommitsRefData_target__asCommit_history_nodes &&
G__typename == other.G__typename &&
url == other.url &&
oid == other.oid &&
messageHeadline == other.messageHeadline &&
committedDate == other.committedDate &&
author == other.author &&
@ -7042,7 +7042,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
return $jf($jc(
$jc(
$jc(
$jc($jc($jc(0, G__typename.hashCode), url.hashCode),
$jc($jc($jc(0, G__typename.hashCode), oid.hashCode),
messageHeadline.hashCode),
committedDate.hashCode),
author.hashCode),
@ -7054,7 +7054,7 @@ class _$GCommitsRefData_target__asCommit_history_nodes
return (newBuiltValueToStringHelper(
r'GCommitsRefData_target__asCommit_history_nodes')
..add('G__typename', G__typename)
..add('url', url)
..add('oid', oid)
..add('messageHeadline', messageHeadline)
..add('committedDate', committedDate)
..add('author', author)
@ -7073,9 +7073,9 @@ class GCommitsRefData_target__asCommit_history_nodesBuilder
String? get G__typename => _$this._G__typename;
set G__typename(String? G__typename) => _$this._G__typename = G__typename;
String? _url;
String? get url => _$this._url;
set url(String? url) => _$this._url = url;
String? _oid;
String? get oid => _$this._oid;
set oid(String? oid) => _$this._oid = oid;
String? _messageHeadline;
String? get messageHeadline => _$this._messageHeadline;
@ -7113,7 +7113,7 @@ class GCommitsRefData_target__asCommit_history_nodesBuilder
final $v = _$v;
if ($v != null) {
_G__typename = $v.G__typename;
_url = $v.url;
_oid = $v.oid;
_messageHeadline = $v.messageHeadline;
_committedDate = $v.committedDate;
_author = $v.author?.toBuilder();
@ -7148,8 +7148,8 @@ class GCommitsRefData_target__asCommit_history_nodesBuilder
G__typename,
r'GCommitsRefData_target__asCommit_history_nodes',
'G__typename'),
url: BuiltValueNullFieldError.checkNotNull(url,
r'GCommitsRefData_target__asCommit_history_nodes', 'url'),
oid: BuiltValueNullFieldError.checkNotNull(oid,
r'GCommitsRefData_target__asCommit_history_nodes', 'oid'),
messageHeadline: BuiltValueNullFieldError.checkNotNull(
messageHeadline,
r'GCommitsRefData_target__asCommit_history_nodes',

View File

@ -5,7 +5,7 @@ fragment CommitsRefCommit on Commit {
endCursor
}
nodes {
url
oid
messageHeadline
committedDate
author {

View File

@ -63,7 +63,7 @@ packages:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "2.3.0"
build_runner_core:
dependency: transitive
description:
@ -112,14 +112,14 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.16.0"
version: "1.17.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
version: "3.1.1"
crypto:
dependency: transitive
description:
@ -224,7 +224,7 @@ packages:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
version: "4.0.2"
io:
dependency: transitive
description:
@ -252,7 +252,7 @@ packages:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.1.0"
matcher:
dependency: transitive
description:
@ -301,7 +301,7 @@ packages:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.2"
pubspec_parse:
dependency: transitive
description:
@ -336,7 +336,7 @@ packages:
name: source_gen
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.5"
version: "1.2.6"
source_span:
dependency: transitive
description:
@ -364,7 +364,7 @@ packages:
name: stream_transform
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
string_scanner:
dependency: transitive
description:
@ -399,7 +399,7 @@ packages:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.2"
web_socket_channel:
dependency: transitive
description:
@ -415,4 +415,4 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.17.5 <3.0.0"
dart: ">=2.18.0 <3.0.0"

View File

@ -2,6 +2,6 @@ name: gql_github
publish_to: none
environment:
sdk: ">=2.17.5 <3.0.0"
dev_dependencies:
ferry_generator:
build_runner:
dev_dependencies:
build_runner: ^2.3.0
ferry_generator: ^0.6.1

View File

@ -63,7 +63,7 @@ packages:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "2.3.0"
build_runner_core:
dependency: transitive
description:

View File

@ -3,5 +3,5 @@ publish_to: none
environment:
sdk: ">=2.17.5 <3.0.0"
dev_dependencies:
ferry_generator:
build_runner:
build_runner: ^2.3.0
ferry_generator: ^0.6.1

View File

@ -21,7 +21,7 @@ packages:
path: "../ant-design-mobile-flutter"
relative: true
source: path
version: "0.0.1"
version: "0.1.0"
args:
dependency: transitive
description:
@ -77,7 +77,7 @@ packages:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "2.3.0"
build_runner_core:
dependency: transitive
description:
@ -147,7 +147,14 @@ packages:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
version: "3.1.1"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.3+2"
crypto:
dependency: transitive
description:
@ -339,9 +346,9 @@ packages:
github_trending:
dependency: "direct main"
description:
name: github_trending
url: "https://pub.dartlang.org"
source: hosted
path: "packages/github_trending"
relative: true
source: path
version: "1.1.0"
glob:
dependency: transitive
@ -356,7 +363,7 @@ packages:
name: go_router
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.4"
version: "5.1.0"
google_fonts:
dependency: "direct main"
description:
@ -454,7 +461,7 @@ packages:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
version: "4.0.2"
intl:
dependency: "direct main"
description:
@ -489,7 +496,7 @@ packages:
name: json_serializable
url: "https://pub.dartlang.org"
source: hosted
version: "6.4.1"
version: "6.5.1"
launch_review:
dependency: "direct main"
description:
@ -510,7 +517,7 @@ packages:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.1.0"
maps_launcher:
dependency: "direct main"
description:
@ -587,42 +594,42 @@ packages:
name: package_info_plus
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.3+1"
version: "2.0.0"
package_info_plus_linux:
dependency: transitive
description:
name: package_info_plus_linux
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
package_info_plus_macos:
dependency: transitive
description:
name: package_info_plus_macos
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "2.0.0"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "2.0.0"
package_info_plus_web:
dependency: transitive
description:
name: package_info_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "2.0.0"
package_info_plus_windows:
dependency: transitive
description:
name: package_info_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "3.0.0"
path:
dependency: "direct main"
description:
@ -748,14 +755,14 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.3"
version: "6.0.4"
pub_semver:
dependency: "direct main"
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.2"
pubspec_parse:
dependency: transitive
description:
@ -783,28 +790,28 @@ packages:
name: sentry
url: "https://pub.dartlang.org"
source: hosted
version: "6.11.1"
version: "6.12.2"
sentry_flutter:
dependency: "direct main"
description:
name: sentry_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "6.11.1"
version: "6.12.2"
share_plus:
dependency: "direct main"
description:
name: share_plus
url: "https://pub.dartlang.org"
source: hosted
version: "4.4.0"
version: "5.0.0"
share_plus_linux:
dependency: transitive
description:
name: share_plus_linux
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.0.1"
share_plus_macos:
dependency: transitive
description:
@ -818,21 +825,21 @@ packages:
name: share_plus_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.3"
version: "3.1.1"
share_plus_web:
dependency: transitive
description:
name: share_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.1.0"
share_plus_windows:
dependency: transitive
description:
name: share_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "4.0.0"
shared_preferences:
dependency: "direct main"
description:
@ -846,7 +853,7 @@ packages:
name: shared_preferences_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
version: "2.0.14"
shared_preferences_ios:
dependency: transitive
description:
@ -914,7 +921,7 @@ packages:
name: source_gen
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.5"
version: "1.2.6"
source_helper:
dependency: transitive
description:
@ -949,7 +956,7 @@ packages:
name: stream_transform
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
string_scanner:
dependency: transitive
description:
@ -991,7 +998,7 @@ packages:
name: tuple
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
typed_data:
dependency: transitive
description:
@ -1110,7 +1117,7 @@ packages:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.2"
web_socket_channel:
dependency: transitive
description:
@ -1131,7 +1138,7 @@ packages:
name: webview_flutter_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.10.3"
version: "2.10.4"
webview_flutter_platform_interface:
dependency: transitive
description:
@ -1152,7 +1159,7 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "2.7.0"
xdg_directories:
dependency: transitive
description:
@ -1175,5 +1182,5 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.17.6 <3.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.3.0"

View File

@ -35,61 +35,55 @@ dependencies:
path: ./packages/gql_github
gql_gitlab:
path: ./packages/gql_gitlab
cupertino_icons:
ferry:
ferry_flutter:
file_icon:
filesize:
fimber:
flutter_highlight:
flutter_markdown:
flutter_svg:
flutter_vector_icons:
github:
github_trending:
gql:
gql_http_link:
http:
# in_app_review:
intl:
json_annotation:
launch_review:
nanoid:
package_info_plus:
primer:
provider:
share_plus:
shared_preferences:
timeago:
tuple:
uni_links:
universal_io:
uri:
url_launcher:
webview_flutter:
sentry_flutter:
pub_semver:
google_fonts:
go_router:
from_css_color:
maps_launcher:
path:
path: ./packages/github_trending
antd_mobile:
path: ../ant-design-mobile-flutter
cupertino_icons: ^1.0.5
ferry: ^0.11.2+1
ferry_flutter: ^0.6.2
file_icon: ^1.0.0
filesize: ^2.0.1
fimber: ^0.6.6
flutter_highlight: ^0.7.0
flutter_markdown: ^0.6.12
flutter_svg: ^1.1.5
flutter_vector_icons: ^2.0.0
github: ^9.4.0
gql: ^0.14.0
gql_http_link: ^0.4.4+1
http: ^0.13.5
intl: ^0.17.0
json_annotation: ^4.7.0
launch_review: ^3.0.1
nanoid: ^1.0.0
package_info_plus: ^2.0.0
primer: ^0.1.0
provider: ^6.0.4
share_plus: ^5.0.0
shared_preferences: ^2.0.15
timeago: ^3.3.0
tuple: ^2.0.1
uni_links: ^0.5.1
universal_io: ^2.0.4
uri: ^1.0.0
url_launcher: ^6.1.6
webview_flutter: ^3.0.4
sentry_flutter: ^6.12.2
pub_semver: ^2.1.2
google_fonts: ^3.0.1
go_router: ^5.1.0
from_css_color: ^2.0.0
maps_launcher: ^2.0.1
path: ^1.8.2
dev_dependencies:
build_runner: ^2.3.0
ferry_generator: ^0.6.1
flutter_lints: ^2.0.1
flutter_test:
sdk: flutter
build_runner:
ferry_generator:
json_serializable:
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
json_serializable: ^6.5.1
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@ -8,6 +8,7 @@
#include <maps_launcher/maps_launcher_plugin.h>
#include <sentry_flutter/sentry_flutter_plugin.h>
#include <share_plus_windows/share_plus_windows_plugin_c_api.h>
#include <url_launcher_windows/url_launcher_windows.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
@ -15,6 +16,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("MapsLauncherPlugin"));
SentryFlutterPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("SentryFlutterPlugin"));
SharePlusWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}

View File

@ -5,6 +5,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
maps_launcher
sentry_flutter
share_plus_windows
url_launcher_windows
)