Skip to content

Commit 7ba4126

Browse files
committed
Updates
1 parent c0a92c8 commit 7ba4126

File tree

7 files changed

+264
-6
lines changed

7 files changed

+264
-6
lines changed

.github/workflows/app_facing_package.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: app_facing_package
33
# Controls when the action will run. Triggers the workflow on push or pull request
44
# events but only for the develop branch
55
on:
6+
workflow_dispatch:
7+
68
push:
9+
tags:
10+
- "v[0-9]+.[0-9]+.[0-9]+*"
711
branches: [develop, main]
812
paths:
913
- "cached_network_image/**"
@@ -347,3 +351,52 @@ jobs:
347351
# files: ${{env.source-directory}}/coverage/lcov.info
348352
# name: CachedNetworkImage (App Facing Package)
349353
# fail_ci_if_error: true
354+
355+
publish:
356+
if: ${{ github.ref_type == 'tag' }}
357+
name: Publish package
358+
permissions:
359+
id-token: write
360+
needs:
361+
[
362+
format,
363+
analyze,
364+
tests,
365+
build_android,
366+
build_ios,
367+
build_macOS,
368+
build_windows,
369+
build_linux,
370+
build_web,
371+
]
372+
# The type of runner that the job will run on
373+
runs-on: ubuntu-latest
374+
375+
env:
376+
source-directory: ./cached_network_image
377+
378+
# Steps represent a sequence of tasks that will be executed as part of the job
379+
steps:
380+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
381+
- uses: actions/checkout@v4
382+
383+
- name: Set up Dart
384+
uses: dart-lang/setup-dart@v1
385+
386+
# Make sure the stable version of Flutter is available
387+
- name: Set up Flutter
388+
uses: subosito/flutter-action@v2
389+
with:
390+
channel: "stable"
391+
architecture: x64
392+
cache: true
393+
394+
# Download all Flutter packages
395+
- name: Download dependencies
396+
run: flutter pub get
397+
working-directory: ${{env.source-directory}}
398+
399+
# Publish the package
400+
- name: Publish package
401+
run: dart pub publish -v -f
402+
working-directory: ${{env.source-directory}}

.github/workflows/platform_interface.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: platform_interface
33
# Controls when the action will run. Triggers the workflow on push or pull request
44
# events but only for the develop branch
55
on:
6+
workflow_dispatch:
7+
68
push:
9+
tags:
10+
- "interface-v[0-9]+.[0-9]+.[0-9]+*"
711
branches: [develop, main]
812
paths:
913
- "cached_network_image_platform_interface/**"
@@ -119,3 +123,41 @@ jobs:
119123
# files: ${{env.source-directory}}/coverage/lcov.info
120124
# name: CachedNetworkImage (App Facing Package)
121125
# fail_ci_if_error: true
126+
127+
publish:
128+
if: ${{ github.ref_type == 'tag' }}
129+
name: Publish package
130+
permissions:
131+
id-token: write
132+
needs: [format, analyze, tests]
133+
# The type of runner that the job will run on
134+
runs-on: ubuntu-latest
135+
136+
env:
137+
source-directory: ./cached_network_image_platform_interface
138+
139+
# Steps represent a sequence of tasks that will be executed as part of the job
140+
steps:
141+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
142+
- uses: actions/checkout@v4
143+
144+
- name: Set up Dart
145+
uses: dart-lang/setup-dart@v1
146+
147+
# Make sure the stable version of Flutter is available
148+
- name: Set up Flutter
149+
uses: subosito/flutter-action@v2
150+
with:
151+
channel: "stable"
152+
architecture: x64
153+
cache: true
154+
155+
# Download all Flutter packages
156+
- name: Download dependencies
157+
run: flutter pub get
158+
working-directory: ${{env.source-directory}}
159+
160+
# Publish the package
161+
- name: Publish package
162+
run: dart pub publish -v -f
163+
working-directory: ${{env.source-directory}}

.github/workflows/platform_web.yaml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
name: platform_web
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the develop branch
5+
on:
6+
workflow_dispatch:
7+
8+
push:
9+
tags:
10+
- "web-v[0-9]+.[0-9]+.[0-9]+*"
11+
branches: [develop, main]
12+
paths:
13+
- "cached_network_image_platform_web/**"
14+
- ".github/workflows/platform_web.yaml"
15+
pull_request:
16+
branches: [develop]
17+
paths:
18+
- "cached_network_image_platform_web/**"
19+
- ".github/workflows/platform_web.yaml"
20+
21+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22+
jobs:
23+
format:
24+
name: Format
25+
26+
# The type of runner that the job will run on
27+
runs-on: ubuntu-latest
28+
29+
env:
30+
source-directory: ./cached_network_image_platform_web
31+
32+
# Steps represent a sequence of tasks that will be executed as part of the job
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v4
36+
37+
# Make sure the stable version of Flutter is available
38+
- name: Set up Flutter
39+
uses: subosito/flutter-action@v2
40+
with:
41+
channel: "stable"
42+
architecture: x64
43+
cache: true
44+
45+
# Download all Flutter packages
46+
- name: Download dependencies
47+
run: flutter pub get
48+
working-directory: ${{env.source-directory}}
49+
50+
# Run Flutter Format to ensure formatting is valid
51+
- name: Run Flutter Format
52+
run: dart format --set-exit-if-changed .
53+
working-directory: ${{env.source-directory}}
54+
55+
analyze:
56+
name: Analyze
57+
58+
# The type of runner that the job will run on
59+
runs-on: ubuntu-latest
60+
61+
env:
62+
source-directory: ./cached_network_image_platform_web
63+
64+
# Steps represent a sequence of tasks that will be executed as part of the job
65+
steps:
66+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
67+
- uses: actions/checkout@v4
68+
69+
# Make sure the stable version of Flutter is available
70+
- name: Set up Flutter
71+
uses: subosito/flutter-action@v2
72+
with:
73+
channel: "stable"
74+
architecture: x64
75+
cache: true
76+
77+
# Download all Flutter packages
78+
- name: Download dependencies
79+
run: flutter pub get
80+
working-directory: ${{env.source-directory}}
81+
82+
# Run Flutter Analyzer
83+
- name: Run Flutter Analyzer
84+
run: flutter analyze
85+
working-directory: ${{env.source-directory}}
86+
87+
tests:
88+
name: Unit-tests
89+
# The type of runner that the job will run on
90+
runs-on: ubuntu-latest
91+
92+
env:
93+
source-directory: ./cached_network_image_platform_web
94+
95+
# Steps represent a sequence of tasks that will be executed as part of the job
96+
steps:
97+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
98+
- uses: actions/checkout@v4
99+
100+
# Make sure the stable version of Flutter is available
101+
- name: Set up Flutter
102+
uses: subosito/flutter-action@v2
103+
with:
104+
channel: "stable"
105+
architecture: x64
106+
cache: true
107+
108+
# Download all Flutter packages
109+
- name: Download dependencies
110+
run: flutter pub get
111+
working-directory: ${{env.source-directory}}
112+
113+
# Run all unit-tests with code coverage
114+
- name: Run unit tests
115+
run: flutter test --coverage
116+
working-directory: ${{env.source-directory}}
117+
118+
# Upload code coverage information
119+
# - uses: codecov/codecov-action@v4
120+
# env:
121+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
122+
# with:
123+
# files: ${{env.source-directory}}/coverage/lcov.info
124+
# name: CachedNetworkImage (App Facing Package)
125+
# fail_ci_if_error: true
126+
127+
publish:
128+
if: ${{ github.ref_type == 'tag' }}
129+
name: Publish package
130+
permissions:
131+
id-token: write
132+
needs: [format, analyze, tests]
133+
# The type of runner that the job will run on
134+
runs-on: ubuntu-latest
135+
136+
env:
137+
source-directory: ./cached_network_image_platform_web
138+
139+
# Steps represent a sequence of tasks that will be executed as part of the job
140+
steps:
141+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
142+
- uses: actions/checkout@v4
143+
144+
- name: Set up Dart
145+
uses: dart-lang/setup-dart@v1
146+
147+
# Make sure the stable version of Flutter is available
148+
- name: Set up Flutter
149+
uses: subosito/flutter-action@v2
150+
with:
151+
channel: "stable"
152+
architecture: x64
153+
cache: true
154+
155+
# Download all Flutter packages
156+
- name: Download dependencies
157+
run: flutter pub get
158+
working-directory: ${{env.source-directory}}
159+
160+
# Publish the package
161+
- name: Publish package
162+
run: dart pub publish -v -f
163+
working-directory: ${{env.source-directory}}

cached_network_image/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
flutter: '>=3.10.0'
88

99
dependencies:
10-
baseflow_plugin_template: ^2.1.2
10+
baseflow_plugin_template: ^2.2.0
1111
cached_network_image:
1212
path: ../
1313
flutter:

cached_network_image/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ dependencies:
1616
cached_network_image_web: ^1.2.0
1717
flutter:
1818
sdk: flutter
19-
flutter_cache_manager: ^3.3.3
19+
flutter_cache_manager: ^3.4.0
2020
octo_image: ^2.0.0
2121

2222
dev_dependencies:
2323
file: '>=7.0.0 <8.0.0'
2424
flutter_lints: ^4.0.0
2525
flutter_test:
2626
sdk: flutter
27-
mocktail: ^1.0.0
27+
mocktail: ^1.0.4

cached_network_image_platform_interface/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cached_network_image_platform_interface
22
description: Platform interface for CachedNetworkImage
3-
version: 4.0.0
3+
version: 4.0.1
44
homepage: https://github.com/Baseflow/flutter_cached_network_image
55

66
environment:
@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
flutter_cache_manager: ^3.3.3
13+
flutter_cache_manager: ^3.4.0
1414

1515
dev_dependencies:
1616
file: '>=7.0.0 <8.0.0'

cached_network_image_web/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
cached_network_image_platform_interface: ^4.0.0
1212
flutter:
1313
sdk: flutter
14-
flutter_cache_manager: ^3.3.3
14+
flutter_cache_manager: ^3.4.0
1515

1616
dev_dependencies:
1717
file: '>=7.0.0 <8.0.0'

0 commit comments

Comments
 (0)