Skip to content

Commit

Permalink
update support 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Jun 1, 2021
1 parent cddcc16 commit de5d2c9
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 47 deletions.
12 changes: 12 additions & 0 deletions RECORD.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ https://flutter.cn/docs/development/tools/devtools/cli http://localhost:9100

sudo gem install -n /usr/local/bin cocoapods -v 1.9.3


# 如何查看dill文件

我们可以通过dart sdk中的vm package提供的dump_kernel.dart打印出dill的内部结构。

```
dart bin/dump_kernel.dart /Users/kylewong/Codes/AOP/aspectd/example/aop/build/app.dill /Users/kylewong/Codes/AOP/aspectd/example/aop/build/app.dill.txt
注意bin/dump_kernel.dart需要改成自己dart sdk中的具体路径。
```



///配置多渠道
flutter run --dart-define=CHANNEL=GSY --dart-define=LANGUAGE=Dart
const CHANNEL = String.fromEnvironment('CHANNEL');
Expand Down
2 changes: 1 addition & 1 deletion lib/common/dao/repos_dao.dart
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ class ReposDao {
var res = await httpManager.netFetch(url, null, null, null);
if (res != null && res.result && res.headers != null) {
try {
List<String>? link = res.headers['link'];
StringList? link = res.headers['link'];
if (link != null) {
int indexStart = link[0].lastIndexOf("page=") + 5;
int indexEnd = link[0].lastIndexOf(">");
Expand Down
2 changes: 1 addition & 1 deletion lib/common/dao/user_dao.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class UserDao {
var res = await httpManager.netFetch(url, null, null, null);
if (res != null && res.result && res.headers != null) {
try {
List<String>? link = res.headers['link'];
StringList? link = res.headers['link'];
if (link != null) {
int indexStart = link[0].lastIndexOf("page=") + 5;
int indexEnd = link[0].lastIndexOf(">");
Expand Down
11 changes: 7 additions & 4 deletions lib/common/utils/common_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ import 'package:url_launcher/url_launcher.dart';
* Created by guoshuyu
* Date: 2018-07-16
*/

typedef StringList = List<String>;

class CommonUtils {
static final double MILLIS_LIMIT = 1000.0;

Expand Down Expand Up @@ -177,7 +180,7 @@ class CommonUtils {
}
String fullName = '';
if (repository_url != null) {
List<String> splicurl = repository_url.split("/");
StringList splicurl = repository_url.split("/");
if (splicurl.length > 2) {
fullName =
splicurl[splicurl.length - 2] + "/" + splicurl[splicurl.length - 1];
Expand All @@ -201,7 +204,7 @@ class CommonUtils {
}

static showLanguageDialog(BuildContext context) {
List<String> list = [
StringList list = [
GSYLocalizations
.i18n(context)!
.home_language_default,
Expand Down Expand Up @@ -294,7 +297,7 @@ class CommonUtils {

if (parseUrl.host == "github.com" &&
parseUrl.path.length > 0) {
List<String> pathnames = parseUrl.path.split("/");
StringList pathnames = parseUrl.path.split("/");
if (pathnames.length == 2) {
//解析人
String userName = pathnames[1];
Expand Down Expand Up @@ -406,7 +409,7 @@ class CommonUtils {

///列表item dialog
static Future<Null> showCommitOptionDialog(BuildContext context,
List<String>? commitMaps,
StringList? commitMaps,
ValueChanged<int> onTap, {
width = 250.0,
height = 400.0,
Expand Down
2 changes: 1 addition & 1 deletion lib/common/utils/event_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class EventUtils {
NavigatorUtils.goPushDetailPage(context, owner, repositoryName,
event.payload!.commits![0].sha, true);
} else {
List<String> list = [];
StringList list = [];
for (int i = 0; i < event.payload!.commits!.length; i++) {
list.add(event.payload!.commits![i].message! +
" " +
Expand Down
8 changes: 4 additions & 4 deletions lib/model/Branch.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/page/debug/debug_label.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DebugLabel {
}
}

Future<List<String>> _getDeviceInfo() async {
Future<StringList> _getDeviceInfo() async {
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
if (Platform.isAndroid) {
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
Expand Down
2 changes: 1 addition & 1 deletion lib/page/home/widget/home_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HomeDrawer extends StatelessWidget {
}

showThemeDialog(BuildContext context, Store store) {
List<String> list = [
StringList list = [
GSYLocalizations.i18n(context)!.home_theme_default,
GSYLocalizations.i18n(context)!.home_theme_1,
GSYLocalizations.i18n(context)!.home_theme_2,
Expand Down
2 changes: 1 addition & 1 deletion lib/page/notify_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _NotifyPageState extends State<NotifyPage>
}
if (notification.subject!.type == 'Issue') {
String url = notification.subject!.url!;
List<String> tmp = url.split("/");
StringList tmp = url.split("/");
String number = tmp[tmp.length - 1];
String? userName = notification.repository!.owner!.login;
String? reposName = notification.repository!.name;
Expand Down
2 changes: 1 addition & 1 deletion lib/page/repos/widget/repos_header_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class _ReposHeaderItemState extends State<ReposHeaderItem> {
widget.reposHeaderViewModel.allIssueCount! <= 0) {
return;
}
List<String> list = [
StringList list = [
GSYLocalizations.i18n(context)!.repos_all_issue_count +
widget.reposHeaderViewModel.allIssueCount.toString(),
GSYLocalizations.i18n(context)!.repos_open_issue_count +
Expand Down
4 changes: 2 additions & 2 deletions lib/widget/markdown/gsy_markdown_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ class GSYMarkdownWidget extends StatelessWidget {
data: _getMarkDownData(markdownData!),
imageBuilder: (Uri? uri, String? title, String? alt) {
if (uri == null || uri.toString().isEmpty) return const SizedBox();
final List<String> parts = uri.toString().split('#');
final StringList parts = uri.toString().split('#');
double? width;
double? height;
if (parts.length == 2) {
final List<String> dimensions = parts.last.split('x');
final StringList dimensions = parts.last.split('x');
if (dimensions.length == 2) {
width = double.parse(dimensions[0]);
height = double.parse(dimensions[1]);
Expand Down
46 changes: 23 additions & 23 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.flutter-io.cn"
source: hosted
version: "17.0.0"
version: "22.0.0"
analyzer:
dependency: "direct overridden"
dependency: transitive
description:
name: analyzer
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.0"
version: "1.7.1"
android_intent:
dependency: "direct main"
description:
Expand Down Expand Up @@ -56,42 +56,42 @@ packages:
name: build
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.3"
version: "2.0.2"
build_config:
dependency: transitive
description:
name: build_config
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.4.6"
version: "0.4.7"
build_daemon:
dependency: transitive
description:
name: build_daemon
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.8"
version: "2.1.10"
build_resolvers:
dependency: transitive
description:
name: build_resolvers
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.5.4"
version: "2.0.3"
build_runner:
dependency: "direct dev"
description:
name: build_runner
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.11.5"
version: "1.12.2"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
url: "https://pub.flutter-io.cn"
source: hosted
version: "6.1.10"
version: "6.1.12"
built_collection:
dependency: transitive
description:
Expand All @@ -105,14 +105,14 @@ packages:
name: built_value
url: "https://pub.flutter-io.cn"
source: hosted
version: "8.0.0"
version: "8.0.6"
built_value_generator:
dependency: "direct dev"
description:
name: built_value_generator
url: "https://pub.flutter-io.cn"
source: hosted
version: "8.0.0"
version: "8.0.6"
characters:
dependency: transitive
description:
Expand All @@ -133,7 +133,7 @@ packages:
name: checked_yaml
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.4"
version: "2.0.1"
cli_util:
dependency: transitive
description:
Expand Down Expand Up @@ -210,7 +210,7 @@ packages:
name: dart_style
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.14"
version: "2.0.1"
device_info:
dependency: "direct main"
description:
Expand Down Expand Up @@ -400,7 +400,7 @@ packages:
name: graphs
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.2.0"
version: "1.0.0"
hive:
dependency: transitive
description:
Expand Down Expand Up @@ -456,21 +456,21 @@ packages:
name: json_annotation
url: "https://pub.flutter-io.cn"
source: hosted
version: "4.0.0"
version: "4.0.1"
json_serializable:
dependency: "direct dev"
description:
name: json_serializable
url: "https://pub.flutter-io.cn"
source: hosted
version: "4.0.2"
version: "4.1.3"
logging:
dependency: transitive
description:
name: logging
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.11.4"
version: "1.0.1"
markdown:
dependency: transitive
description:
Expand Down Expand Up @@ -638,7 +638,7 @@ packages:
name: pool
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.0"
version: "1.5.0"
process:
dependency: transitive
description:
Expand Down Expand Up @@ -666,7 +666,7 @@ packages:
name: pubspec_parse
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.8"
version: "1.0.0"
quiver:
dependency: transitive
description:
Expand Down Expand Up @@ -769,7 +769,7 @@ packages:
name: source_gen
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.9.10+3"
version: "1.0.1"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -811,7 +811,7 @@ packages:
name: stream_transform
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.0"
version: "2.0.0"
string_scanner:
dependency: transitive
description:
Expand Down Expand Up @@ -925,7 +925,7 @@ packages:
source: hosted
version: "1.0.0"
web_socket_channel:
dependency: "direct overridden"
dependency: transitive
description:
name: web_socket_channel
url: "https://pub.flutter-io.cn"
Expand Down Expand Up @@ -967,5 +967,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.13.0 <3.0.0"
flutter: ">=2.0.0"
Loading

0 comments on commit de5d2c9

Please sign in to comment.