Skip to content

Commit de5d2c9

Browse files
committed
update support 2.2
1 parent cddcc16 commit de5d2c9

File tree

13 files changed

+62
-47
lines changed

13 files changed

+62
-47
lines changed

RECORD.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ https://flutter.cn/docs/development/tools/devtools/cli http://localhost:9100
1010

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

13+
14+
# 如何查看dill文件
15+
16+
我们可以通过dart sdk中的vm package提供的dump_kernel.dart打印出dill的内部结构。
17+
18+
```
19+
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
20+
注意bin/dump_kernel.dart需要改成自己dart sdk中的具体路径。
21+
```
22+
23+
24+
1325
///配置多渠道
1426
flutter run --dart-define=CHANNEL=GSY --dart-define=LANGUAGE=Dart
1527
const CHANNEL = String.fromEnvironment('CHANNEL');

lib/common/dao/repos_dao.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ class ReposDao {
763763
var res = await httpManager.netFetch(url, null, null, null);
764764
if (res != null && res.result && res.headers != null) {
765765
try {
766-
List<String>? link = res.headers['link'];
766+
StringList? link = res.headers['link'];
767767
if (link != null) {
768768
int indexStart = link[0].lastIndexOf("page=") + 5;
769769
int indexEnd = link[0].lastIndexOf(">");

lib/common/dao/user_dao.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class UserDao {
192192
var res = await httpManager.netFetch(url, null, null, null);
193193
if (res != null && res.result && res.headers != null) {
194194
try {
195-
List<String>? link = res.headers['link'];
195+
StringList? link = res.headers['link'];
196196
if (link != null) {
197197
int indexStart = link[0].lastIndexOf("page=") + 5;
198198
int indexEnd = link[0].lastIndexOf(">");

lib/common/utils/common_utils.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import 'package:url_launcher/url_launcher.dart';
2929
* Created by guoshuyu
3030
* Date: 2018-07-16
3131
*/
32+
33+
typedef StringList = List<String>;
34+
3235
class CommonUtils {
3336
static final double MILLIS_LIMIT = 1000.0;
3437

@@ -177,7 +180,7 @@ class CommonUtils {
177180
}
178181
String fullName = '';
179182
if (repository_url != null) {
180-
List<String> splicurl = repository_url.split("/");
183+
StringList splicurl = repository_url.split("/");
181184
if (splicurl.length > 2) {
182185
fullName =
183186
splicurl[splicurl.length - 2] + "/" + splicurl[splicurl.length - 1];
@@ -201,7 +204,7 @@ class CommonUtils {
201204
}
202205

203206
static showLanguageDialog(BuildContext context) {
204-
List<String> list = [
207+
StringList list = [
205208
GSYLocalizations
206209
.i18n(context)!
207210
.home_language_default,
@@ -294,7 +297,7 @@ class CommonUtils {
294297

295298
if (parseUrl.host == "github.com" &&
296299
parseUrl.path.length > 0) {
297-
List<String> pathnames = parseUrl.path.split("/");
300+
StringList pathnames = parseUrl.path.split("/");
298301
if (pathnames.length == 2) {
299302
//解析人
300303
String userName = pathnames[1];
@@ -406,7 +409,7 @@ class CommonUtils {
406409

407410
///列表item dialog
408411
static Future<Null> showCommitOptionDialog(BuildContext context,
409-
List<String>? commitMaps,
412+
StringList? commitMaps,
410413
ValueChanged<int> onTap, {
411414
width = 250.0,
412415
height = 400.0,

lib/common/utils/event_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class EventUtils {
174174
NavigatorUtils.goPushDetailPage(context, owner, repositoryName,
175175
event.payload!.commits![0].sha, true);
176176
} else {
177-
List<String> list = [];
177+
StringList list = [];
178178
for (int i = 0; i < event.payload!.commits!.length; i++) {
179179
list.add(event.payload!.commits![i].message! +
180180
" " +

lib/model/Branch.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/page/debug/debug_label.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DebugLabel {
5252
}
5353
}
5454

55-
Future<List<String>> _getDeviceInfo() async {
55+
Future<StringList> _getDeviceInfo() async {
5656
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
5757
if (Platform.isAndroid) {
5858
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;

lib/page/home/widget/home_drawer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HomeDrawer extends StatelessWidget {
3939
}
4040

4141
showThemeDialog(BuildContext context, Store store) {
42-
List<String> list = [
42+
StringList list = [
4343
GSYLocalizations.i18n(context)!.home_theme_default,
4444
GSYLocalizations.i18n(context)!.home_theme_1,
4545
GSYLocalizations.i18n(context)!.home_theme_2,

lib/page/notify_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class _NotifyPageState extends State<NotifyPage>
7575
}
7676
if (notification.subject!.type == 'Issue') {
7777
String url = notification.subject!.url!;
78-
List<String> tmp = url.split("/");
78+
StringList tmp = url.split("/");
7979
String number = tmp[tmp.length - 1];
8080
String? userName = notification.repository!.owner!.login;
8181
String? reposName = notification.repository!.name;

lib/page/repos/widget/repos_header_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class _ReposHeaderItemState extends State<ReposHeaderItem> {
330330
widget.reposHeaderViewModel.allIssueCount! <= 0) {
331331
return;
332332
}
333-
List<String> list = [
333+
StringList list = [
334334
GSYLocalizations.i18n(context)!.repos_all_issue_count +
335335
widget.reposHeaderViewModel.allIssueCount.toString(),
336336
GSYLocalizations.i18n(context)!.repos_open_issue_count +

0 commit comments

Comments
 (0)