Skip to content

Commit d5cab74

Browse files
authored
👷 Update configuration related files (#1091)
1 parent 6873731 commit d5cab74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+36
-1736
lines changed

.github/workflows/cronet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
working-directory: 'pkgs/${{ matrix.package }}'
4848
run: flutter pub get
4949
- name: Check formatting
50+
if: always() && steps.install.outcome == 'success'
5051
working-directory: 'pkgs/${{ matrix.package }}'
5152
run: dart format --output=none --set-exit-if-changed .
52-
if: always() && steps.install.outcome == 'success'
5353
- name: Analyze code
54+
if: always() && steps.install.outcome == 'success'
5455
working-directory: 'pkgs/${{ matrix.package }}'
5556
run: flutter analyze --fatal-infos
56-
if: always() && steps.install.outcome == 'success'
5757
- name: Run tests
5858
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2
5959
if: always() && steps.install.outcome == 'success'
@@ -66,4 +66,4 @@ jobs:
6666
arch: x86_64
6767
target: ${{ matrix.package == 'cronet_http_embedded' && 'default' || 'google_apis' }}
6868
profile: pixel
69-
script: cd 'pkgs/${{ matrix.package }}/example' && flutter test --timeout=1200s integration_test/
69+
script: cd pkgs/${{ matrix.package }}/example && flutter test --timeout=1200s integration_test/

.github/workflows/cupertino.yml

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,37 @@ on:
66
- main
77
- master
88
paths:
9+
- '.github/workflows/cupertino.yml'
910
- 'pkgs/cupertino_http/**'
1011
- 'pkgs/http_client_conformance_tests/**'
11-
- '.github/workflows/cupertino.yml'
1212
pull_request:
1313
paths:
14+
- '.github/workflows/cupertino.yml'
1415
- 'pkgs/cupertino_http/**'
1516
- 'pkgs/http_client_conformance_tests/**'
16-
- '.github/workflows/cupertino.yml'
1717
schedule:
1818
- cron: "0 0 * * 0"
1919

2020
env:
2121
PUB_ENVIRONMENT: bot.github
2222

2323
jobs:
24-
analyze:
25-
name: Lint and static analysis
26-
runs-on: ubuntu-latest
24+
verify:
25+
name: Format & Analyze & Test
26+
runs-on: macos-latest
2727
defaults:
2828
run:
2929
working-directory: pkgs/cupertino_http
30+
strategy:
31+
matrix:
32+
# Test on the minimum supported flutter version and the latest
33+
# version.
34+
flutter-version: ["3.16.0", "any"]
3035
steps:
3136
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
3237
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
3338
with:
39+
flutter-version: ${{ matrix.flutter-version }}
3440
channel: 'stable'
3541
- id: install
3642
name: Install dependencies
@@ -40,48 +46,19 @@ jobs:
4046
# This approach is simpler than using `find` and excluding that file
4147
# because `dart format` also excludes other file e.g. ones in
4248
# directories start with '.'.
43-
run: >
44-
mv lib/src/native_cupertino_bindings.dart lib/src/native_cupertino_bindings.tmp &&
45-
dart format --output=none --set-exit-if-changed . &&
49+
run: |
50+
mv lib/src/native_cupertino_bindings.dart lib/src/native_cupertino_bindings.tmp
51+
dart format --output=none --set-exit-if-changed .
4652
mv lib/src/native_cupertino_bindings.tmp lib/src/native_cupertino_bindings.dart
4753
if: always() && steps.install.outcome == 'success'
4854
- name: Analyze code
4955
run: flutter analyze --fatal-infos
5056
if: always() && steps.install.outcome == 'success'
51-
52-
test:
53-
# Test package:cupertino_http use flutter integration tests.
54-
needs: analyze
55-
name: "Build and test"
56-
strategy:
57-
matrix:
58-
# Test on the minimum supported flutter version and the latest
59-
# version.
60-
flutter-version: ["3.16.0", "any"]
61-
runs-on: macos-latest
62-
defaults:
63-
run:
64-
working-directory: pkgs/cupertino_http/example
65-
steps:
66-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
6757
- uses: futureware-tech/simulator-action@bfa03d93ec9de6dacb0c5553bbf8da8afc6c2ee9
6858
with:
6959
model: 'iPhone 8'
70-
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
71-
with:
72-
flutter-version: ${{ matrix.flutter-version }}
73-
channel: 'stable'
7460
- name: Run tests
75-
# TODO: Remove the retries when
76-
# https://github.com/flutter/flutter/issues/121231 is fixed.
77-
# See https://github.com/dart-lang/http/issues/938 for context.
7861
run: |
79-
for i in {1..6}
80-
do
81-
flutter test integration_test/main.dart && break
82-
if [ $i -eq 6 ]
83-
then
84-
exit 1
85-
fi
86-
echo "Retry $i"
87-
done
62+
cd example
63+
flutter pub get
64+
flutter test --timeout=1200s integration_test/

.github/workflows/java.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
- main
77
- master
88
paths:
9-
- 'pkgs/java_http/**'
10-
- 'pkgs/http_client_conformance_tests/**'
119
- '.github/workflows/java.yml'
10+
- 'pkgs/http_client_conformance_tests/**'
11+
- 'pkgs/java_http/**'
1212
pull_request:
1313
paths:
14-
- 'pkgs/java_http/**'
15-
- 'pkgs/http_client_conformance_tests/**'
1614
- '.github/workflows/java.yml'
15+
- 'pkgs/http_client_conformance_tests/**'
16+
- 'pkgs/java_http/**'
1717
schedule:
1818
# Runs every Sunday at midnight (00:00 UTC).
1919
- cron: "0 0 * * 0"
@@ -22,8 +22,8 @@ env:
2222
PUB_ENVIRONMENT: bot.github
2323

2424
jobs:
25-
analyze:
26-
name: Lint and static analysis
25+
verify:
26+
name: Format & Analyze & Test
2727
runs-on: ubuntu-latest
2828
defaults:
2929
run:
@@ -33,35 +33,16 @@ jobs:
3333
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
3434
with:
3535
channel: 'stable'
36-
3736
- id: install
3837
name: Install dependencies
3938
run: dart pub get
40-
4139
- name: Check formatting
4240
run: dart format --output=none --set-exit-if-changed .
4341
if: always() && steps.install.outcome == 'success'
44-
4542
- name: Analyze code
4643
run: dart analyze --fatal-infos
4744
if: always() && steps.install.outcome == 'success'
48-
49-
test:
50-
needs: analyze
51-
name: Build and test
52-
runs-on: ubuntu-latest
53-
defaults:
54-
run:
55-
working-directory: pkgs/java_http
56-
57-
steps:
58-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
59-
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
60-
with:
61-
channel: 'stable'
62-
6345
- name: Build jni dynamic libraries
6446
run: dart run jni:setup
65-
6647
- name: Run tests
6748
run: dart test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
.idea/
2+
.vscode/
3+
14
# Don’t commit the following directories created by pub.
25
.dart_tool
36
.packages
47
pubspec.lock
8+
pubspec_overrides.yaml

pkgs/cronet_http/cronet_http.iml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
55
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
67
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
78
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
89
<excludeFolder url="file://$MODULE_DIR$/.idea" />
910
<excludeFolder url="file://$MODULE_DIR$/.pub" />
1011
<excludeFolder url="file://$MODULE_DIR$/build" />
1112
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
1213
<excludeFolder url="file://$MODULE_DIR$/example/build" />
14+
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
1315
</content>
1416
<orderEntry type="sourceFolder" forTests="false" />
1517
<orderEntry type="library" name="Dart Packages" level="project" />
1618
<orderEntry type="library" name="Dart SDK" level="project" />
1719
<orderEntry type="library" name="Flutter Plugins" level="project" />
1820
</component>
19-
</module>
21+
</module>

pkgs/cronet_http/example/android/local.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

pkgs/cupertino_http/cupertino_http.iml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
55
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
67
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
78
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
89
<excludeFolder url="file://$MODULE_DIR$/.idea" />
910
<excludeFolder url="file://$MODULE_DIR$/.pub" />
1011
<excludeFolder url="file://$MODULE_DIR$/build" />
1112
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
1213
<excludeFolder url="file://$MODULE_DIR$/example/build" />
14+
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
1315
</content>
1416
<orderEntry type="sourceFolder" forTests="false" />
1517
<orderEntry type="library" name="Dart Packages" level="project" />
1618
<orderEntry type="library" name="Dart SDK" level="project" />
1719
<orderEntry type="library" name="Flutter Plugins" level="project" />
1820
</component>
19-
</module>
21+
</module>

pkgs/cupertino_http/example/android/app/build.gradle

Lines changed: 0 additions & 70 deletions
This file was deleted.

pkgs/cupertino_http/example/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

pkgs/cupertino_http/example/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 35 deletions
This file was deleted.

pkgs/cupertino_http/example/android/app/src/main/kotlin/io/flutter/cupertino_http_example/example/example/MainActivity.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.

pkgs/cupertino_http/example/android/app/src/main/res/drawable-v21/launch_background.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

pkgs/cupertino_http/example/android/app/src/main/res/drawable/launch_background.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)