Skip to content

Commit 5b6f8a1

Browse files
author
Laks Castro
authored
Merge pull request #83 from lakscastro/master
Release hotfix of `/example` project
2 parents 1b2b572 + 1433462 commit 5b6f8a1

File tree

9 files changed

+60
-17
lines changed

9 files changed

+60
-17
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@
6969
"code",
7070
"doc"
7171
]
72+
},
73+
{
74+
"login": "jfaltis",
75+
"name": "jfaltis",
76+
"avatar_url": "https://avatars.githubusercontent.com/u/45465572?v=4",
77+
"profile": "http://jfaltis.de",
78+
"contributions": [
79+
"bug"
80+
]
7281
}
7382
],
7483
"projectName": "shared-storage",

.github/workflows/build-docs.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build MkDocs
22
on:
33
workflow_dispatch:
4+
workflow_run:
5+
workflows: ["Publish new plugin version"]
6+
types:
7+
- completed
48
push:
59
branches:
610
- release
@@ -11,10 +15,14 @@ jobs:
1115

1216
steps:
1317
- uses: actions/checkout@v2
14-
- name: Checkout to documentation branch
15-
run: |
16-
git fetch
17-
git checkout ${{ github.ref_name }}
18+
- uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: "2.10.0"
21+
channel: "stable"
22+
- run: |
23+
flutter --version
24+
flutter pub get
25+
flutter analyze --fatal-infos
1826
1927
- name: Deploy docs
2028
uses: mhausenblas/mkdocs-deploy-gh-pages@master

.github/workflows/publish.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: dart-lang/setup-dart@v1
15-
16-
- name: Checkout to release branch
17-
run: |
18-
git fetch
19-
git checkout ${{ github.ref_name }}
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: "2.10.0"
17+
channel: "stable"
18+
- run: |
19+
flutter --version
20+
flutter pub get
21+
flutter analyze --fatal-infos
2022
2123
- name: Create credentials file
2224
run: echo $PUB_CREDENTIALS > ~/pub-credentials.json
@@ -33,4 +35,3 @@ jobs:
3335

3436
- name: Publish
3537
run: dart pub publish --force
36-
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Perform static code analysis through Dart CLI
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- release
9+
10+
jobs:
11+
static_analysis:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: subosito/flutter-action@v2
17+
with:
18+
flutter-version: "2.10.0"
19+
channel: "stable"
20+
- run: |
21+
flutter --version
22+
flutter pub get
23+
flutter analyze --fatal-infos

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ These are the brilliant minds behind the development of this plugin!
4949
<td align="center"><a href="https://github.com/dangilbert"><img src="https://avatars.githubusercontent.com/u/6799566?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dangilbert</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/commits?author=dangilbert" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Adangilbert" title="Bug reports">🐛</a></td>
5050
<td align="center"><a href="https://github.com/dhaval-k-simformsolutions"><img src="https://avatars.githubusercontent.com/u/90894202?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dhaval-k-simformsolutions</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Adhaval-k-simformsolutions" title="Bug reports">🐛</a> <a href="#ideas-dhaval-k-simformsolutions" title="Ideas, Planning, & Feedback">🤔</a></td>
5151
<td align="center"><a href="https://eternityforest.com"><img src="https://avatars.githubusercontent.com/u/758047?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Dunn</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3AEternityForest" title="Bug reports">🐛</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=EternityForest" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=EternityForest" title="Documentation">📖</a></td>
52+
<td align="center"><a href="http://jfaltis.de"><img src="https://avatars.githubusercontent.com/u/45465572?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jfaltis</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Ajfaltis" title="Bug reports">🐛</a></td>
5253
</tr>
5354
</table>
5455

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ These are the brilliant minds behind the development of this plugin!
8080
<td align="center"><a href="https://github.com/dangilbert"><img src="https://avatars.githubusercontent.com/u/6799566?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dangilbert</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/commits?author=dangilbert" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Adangilbert" title="Bug reports">🐛</a></td>
8181
<td align="center"><a href="https://github.com/dhaval-k-simformsolutions"><img src="https://avatars.githubusercontent.com/u/90894202?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dhaval-k-simformsolutions</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Adhaval-k-simformsolutions" title="Bug reports">🐛</a> <a href="#ideas-dhaval-k-simformsolutions" title="Ideas, Planning, & Feedback">🤔</a></td>
8282
<td align="center"><a href="https://eternityforest.com"><img src="https://avatars.githubusercontent.com/u/758047?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Dunn</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3AEternityForest" title="Bug reports">🐛</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=EternityForest" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=EternityForest" title="Documentation">📖</a></td>
83+
<td align="center"><a href="http://jfaltis.de"><img src="https://avatars.githubusercontent.com/u/45465572?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jfaltis</b></sub></a><br /><a href="#question-jfaltis" title="Answering Questions">💬</a> <a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Ajfaltis" title="Bug reports">🐛</a></td>
8384
</tr>
8485
</table>
8586

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'screens/persisted_uris/persisted_uri_list.dart';
2+
import 'screens/granted_uris/granted_uris_page.dart';
33

44
/// TODO: Add examples using [Environment] and [MediaStore] API
55
void main() => runApp(const Root());
@@ -14,6 +14,6 @@ class Root extends StatefulWidget {
1414
class _RootState extends State<Root> {
1515
@override
1616
Widget build(BuildContext context) {
17-
return const MaterialApp(home: PersistedUriList());
17+
return const MaterialApp(home: GrantedUrisPage());
1818
}
1919
}

example/lib/screens/granted_uris/granted_uri_card.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '../../theme/spacing.dart';
55
import '../../widgets/buttons.dart';
66
import '../../widgets/key_value_text.dart';
77
import '../../widgets/simple_card.dart';
8-
import '../folder_files/folder_file_list.dart';
8+
import '../file_explorer/file_explorer_page.dart';
99

1010
class GrantedUriCard extends StatefulWidget {
1111
const GrantedUriCard({
@@ -50,7 +50,7 @@ class _GrantedUriCardState extends State<GrantedUriCard> {
5050
void _openListFilesPage() {
5151
Navigator.of(context).push(
5252
MaterialPageRoute(
53-
builder: (context) => FolderFileList(uri: widget.permissionUri.uri),
53+
builder: (context) => FileExplorerPage(uri: widget.permissionUri.uri),
5454
),
5555
);
5656
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: shared_storage
2-
description: "Flutter plugin to get Android shared folders like DCIM, Downloads, Video, Audio. Works with Android 4.1 (API Level 16+)"
3-
version: 0.4.0
2+
description: "Flutter plugin to work with external storage."
3+
version: 0.4.1
44
homepage: https://github.com/lakscastro/shared-storage
55
repository: https://github.com/lakscastro/shared-storage
66
issue_tracker: https://github.com/lakscastro/shared-storage/issues

0 commit comments

Comments
 (0)