Showing
7 changed files
with
30 additions
and
25 deletions
1 | -name: Close inactive issues | 1 | +# .github/workflows/publish.yml |
2 | +name: Publish to pub.dev | ||
3 | + | ||
2 | on: | 4 | on: |
3 | - schedule: | ||
4 | - - cron: "30 1 * * *" | 5 | + push: |
6 | + tags: | ||
7 | + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v' | ||
5 | 8 | ||
9 | +# Publish using custom workflow | ||
6 | jobs: | 10 | jobs: |
7 | - close-issues: | ||
8 | - runs-on: ubuntu-latest | 11 | + publish: |
9 | permissions: | 12 | permissions: |
10 | - issues: write | ||
11 | - pull-requests: write | 13 | + id-token: write # Required for authentication using OIDC |
14 | + runs-on: ubuntu-latest | ||
12 | steps: | 15 | steps: |
13 | - - uses: actions/stale@v3 | ||
14 | - with: | ||
15 | - days-before-issue-stale: 30 | ||
16 | - days-before-issue-close: 14 | ||
17 | - stale-issue-label: "stale" | ||
18 | - stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
19 | - close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
20 | - days-before-pr-stale: -1 | ||
21 | - days-before-pr-close: -1 | ||
22 | - repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
16 | + - uses: actions/checkout@v3 | ||
17 | + - uses: dart-lang/setup-dart@v1 | ||
18 | + - name: Install dependencies | ||
19 | + run: dart pub get | ||
20 | + # Here you can insert custom steps you need | ||
21 | + # - run: dart tool/generate-code.dart | ||
22 | + - name: Publish | ||
23 | + run: dart pub publish --force |
1 | +# 5.9.1 | ||
2 | +- merge pr #550 #555 #556 | ||
3 | +- update readme | ||
4 | + | ||
1 | # 5.9.0 | 5 | # 5.9.0 |
2 | - ScreenUtilInit won't rebuild the whole widget tree | 6 | - ScreenUtilInit won't rebuild the whole widget tree |
3 | - Add `fontSizeResolver` to specify how font size should be scaled | 7 | - Add `fontSizeResolver` to specify how font size should be scaled |
@@ -39,7 +39,7 @@ android { | @@ -39,7 +39,7 @@ android { | ||
39 | defaultConfig { | 39 | defaultConfig { |
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). |
41 | applicationId "li.zhuoyuan.example" | 41 | applicationId "li.zhuoyuan.example" |
42 | - minSdkVersion 16 | 42 | + minSdkVersion flutter.minSdkVersion |
43 | targetSdkVersion 31 | 43 | targetSdkVersion 31 |
44 | versionCode flutterVersionCode.toInteger() | 44 | versionCode flutterVersionCode.toInteger() |
45 | versionName flutterVersionName | 45 | versionName flutterVersionName |
@@ -3,12 +3,11 @@ | @@ -3,12 +3,11 @@ | ||
3 | export "FLUTTER_ROOT=/Users/lizhuoyuan/fvm/versions/stable" | 3 | export "FLUTTER_ROOT=/Users/lizhuoyuan/fvm/versions/stable" |
4 | export "FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example" | 4 | export "FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example" |
5 | export "COCOAPODS_PARALLEL_CODE_SIGN=true" | 5 | export "COCOAPODS_PARALLEL_CODE_SIGN=true" |
6 | -export "FLUTTER_TARGET=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/lib/main.dart" | 6 | +export "FLUTTER_TARGET=lib/main.dart" |
7 | export "FLUTTER_BUILD_DIR=build" | 7 | export "FLUTTER_BUILD_DIR=build" |
8 | export "FLUTTER_BUILD_NAME=1.0.0" | 8 | export "FLUTTER_BUILD_NAME=1.0.0" |
9 | export "FLUTTER_BUILD_NUMBER=1" | 9 | export "FLUTTER_BUILD_NUMBER=1" |
10 | -export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9jZGJlZGE3ODhhMjkzZmEyOTY2NWRjM2ZhM2Q2ZTYzYmQyMjFjYjBkLw==" | ||
11 | export "DART_OBFUSCATION=false" | 10 | export "DART_OBFUSCATION=false" |
12 | export "TRACK_WIDGET_CREATION=true" | 11 | export "TRACK_WIDGET_CREATION=true" |
13 | export "TREE_SHAKE_ICONS=false" | 12 | export "TREE_SHAKE_ICONS=false" |
14 | -export "PACKAGE_CONFIG=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/.dart_tool/package_config.json" | 13 | +export "PACKAGE_CONFIG=.dart_tool/package_config.json" |
1 | import 'package:example/responsive_widgets.su.dart'; | 1 | import 'package:example/responsive_widgets.su.dart'; |
2 | -import 'package:example/src/home.dart'; | ||
3 | import 'package:flutter/material.dart'; | 2 | import 'package:flutter/material.dart'; |
4 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 3 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
5 | 4 | ||
5 | +import '../src_zh/home.dart'; | ||
6 | + | ||
6 | class MyApp extends StatelessWidget { | 7 | class MyApp extends StatelessWidget { |
7 | const MyApp({Key? key}) : super(key: key); | 8 | const MyApp({Key? key}) : super(key: key); |
8 | 9 |
@@ -2,10 +2,10 @@ import 'dart:async'; | @@ -2,10 +2,10 @@ import 'dart:async'; | ||
2 | import 'dart:collection'; | 2 | import 'dart:collection'; |
3 | 3 | ||
4 | import 'package:flutter/widgets.dart'; | 4 | import 'package:flutter/widgets.dart'; |
5 | -import './_flutter_widgets.dart'; | ||
6 | 5 | ||
7 | -import 'screenutil_mixin.dart'; | 6 | +import './_flutter_widgets.dart'; |
8 | import 'screen_util.dart'; | 7 | import 'screen_util.dart'; |
8 | +import 'screenutil_mixin.dart'; | ||
9 | 9 | ||
10 | typedef RebuildFactor = bool Function(MediaQueryData old, MediaQueryData data); | 10 | typedef RebuildFactor = bool Function(MediaQueryData old, MediaQueryData data); |
11 | 11 |
1 | name: flutter_screenutil | 1 | name: flutter_screenutil |
2 | description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models | 2 | description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models |
3 | -version: 5.9.0 | 3 | +version: 5.9.1 |
4 | homepage: https://github.com/OpenFlutter/flutter_screenutil | 4 | homepage: https://github.com/OpenFlutter/flutter_screenutil |
5 | 5 | ||
6 | environment: | 6 | environment: |
-
Please register or login to post a comment