Skip to content

Commit 25f58f9

Browse files
author
Alex Rintt
authored
Merge pull request #109 from alexrintt/master
Remove multiple-like statements and fix severe issue on `DocumentFile` API
2 parents 394cf26 + ef6061b commit 25f58f9

Some content is hidden

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

45 files changed

+196
-249
lines changed

.all-contributorsrc

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

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.6.0
2+
3+
This release contains a severe API fixes and some minor doc changes:
4+
5+
### Breaking changes
6+
7+
- Unused arguments in `DocumentFile.getContent` and `DocumentFile.getContentAsString`. [#107](https://github.com/alexrintt/shared-storage/issues/107).
8+
- Package import it's now done through a single import.
9+
110
## 0.5.0
211

312
This release contains:
@@ -7,7 +16,7 @@ This release contains:
716
- Example project improvements.
817
- Bug fixes.
918

10-
To see details, refer to rollup PR [#100](https://github.com/lakscastro/shared-storage/pull/100).
19+
To see details, refer to rollup PR [#100](https://github.com/alexrintt/shared-storage/pull/100).
1120

1221
### New
1322

@@ -23,7 +32,7 @@ To see details, refer to rollup PR [#100](https://github.com/lakscastro/shared-s
2332
### Bug fixes
2433

2534
- `DocumentFile.canRead` it's now calling the right API (`canRead`) instead of the similar one (`canWrite`).
26-
- [Fix](https://github.com/lakscastro/shared-storage/pull/100/files#diff-6f516633fcc1095b16ad5e0cc2a2c9711ee903cb115835d703f3c0ccfd6e0d31R38-R62) infinite loading of `getDocumentThumbnail` API when thumbnail is not available.
35+
- [Fix](https://github.com/alexrintt/shared-storage/pull/100/files#diff-6f516633fcc1095b16ad5e0cc2a2c9711ee903cb115835d703f3c0ccfd6e0d31R38-R62) infinite loading of `getDocumentThumbnail` API when thumbnail is not available.
2736

2837
### Example project
2938

@@ -38,13 +47,13 @@ To see details, refer to rollup PR [#100](https://github.com/lakscastro/shared-s
3847

3948
Minimal hotfix:
4049

41-
- Closes the `OutputStream` when creating a file [#61](https://github.com/lakscastro/shared-storage/issues/61), [#86](https://github.com/lakscastro/shared-storage/pull/86) (@jfaltis).
50+
- Closes the `OutputStream` when creating a file [#61](https://github.com/alexrintt/shared-storage/issues/61), [#86](https://github.com/alexrintt/shared-storage/pull/86) (@jfaltis).
4251

4352
## 0.4.1
4453

4554
Minimal hotfix of the example project:
4655

47-
- Fix build error of the example project. Reported at [#70](https://github.com/lakscastro/shared-storage/issues/70) and fixed by [#72](https://github.com/lakscastro/shared-storage/pull/72) (@jfaltis).
56+
- Fix build error of the example project. Reported at [#70](https://github.com/alexrintt/shared-storage/issues/70) and fixed by [#72](https://github.com/alexrintt/shared-storage/pull/72) (@jfaltis).
4857

4958
## 0.4.0
5059

CODE_OF_CONDUCT.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
lakscastro@gmail.com.
63+
alexrintt@gmail.com.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Laks Castro
3+
Copyright (c) 2021 Alex Rintt
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,41 +22,27 @@
2222

2323
## Documentation
2424

25-
See the website for [documentation](https://lakscastro.github.io/shared-storage).
25+
See the website for [documentation](https://alexrintt.github.io/shared-storage).
2626

2727
All documentation is also available under `/docs` to each released version which is the data source of the website.
2828

2929
You can contribute to the documentation by just editing these files through the GitHub web editor!
3030

31-
To check all ways you can contribute to this package see [Contributing/Ways to contribute](https://lakscastro.github.io/shared-storage/Contributing/Ways%20to%20contribute/).
31+
To check all ways you can contribute to this package see [Contributing/Ways to contribute](https://alexrintt.github.io/shared-storage/Contributing/Ways%20to%20contribute/).
3232

3333
Latest changes are available on `master` branch and the actual latest published package version lives under `release` branch.
3434

3535
All other branches are derivated from issues, new features or bug fixes.
3636

3737
## Contributors
3838

39-
These are the brilliant minds behind the development of this plugin!
40-
41-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
42-
<!-- prettier-ignore-start -->
43-
<!-- markdownlint-disable -->
44-
<table>
45-
<tr>
46-
<td align="center"><a href="https://lakscastro.github.io"><img src="https://avatars.githubusercontent.com/u/51419598?v=4?s=100" width="100px;" alt=""/><br /><sub><b>lask</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/commits?author=lakscastro" title="Code">💻</a> <a href="#maintenance-lakscastro" title="Maintenance">🚧</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=lakscastro" title="Documentation">📖</a></td>
47-
<td align="center"><a href="https://github.com/ankitparmar007"><img src="https://avatars.githubusercontent.com/u/73648141?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ankitparmar007</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Aankitparmar007" title="Bug reports">🐛</a></td>
48-
<td align="center"><a href="https://www.bibliotecaortodoxa.ro"><img src="https://avatars.githubusercontent.com/u/1148228?v=4?s=100" width="100px;" alt=""/><br /><sub><b>www.bibliotecaortodoxa.ro</b></sub></a><br /><a href="https://github.com/lakscastro/shared-storage/commits?author=aplicatii-romanesti" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/issues?q=author%3Aaplicatii-romanesti" title="Bug reports">🐛</a> <a href="#ideas-aplicatii-romanesti" title="Ideas, Planning, & Feedback">🤔</a></td>
49-
<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>
50-
<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>
51-
<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="https://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> <a href="https://github.com/lakscastro/shared-storage/commits?author=jfaltis" title="Code">💻</a> <a href="https://github.com/lakscastro/shared-storage/commits?author=jfaltis" title="Documentation">📖</a></td>
53-
</tr>
54-
</table>
55-
56-
<!-- markdownlint-restore -->
57-
<!-- prettier-ignore-end -->
58-
59-
<!-- ALL-CONTRIBUTORS-LIST:END -->
39+
- [clragon](https://github.com/clragon) submitted a severe bug report and opened discussions around package architecture, thanks!
40+
- [jfaltis](https://github.com/jfaltis) fixed a memory leak and implemented an API to override existing files, thanks for you contribution!
41+
- [EternityForest](https://github.com/EternityForest) did fix a severe crash when the ID column was not provided and implemented a new feature to list all subfolders, thanks man!
42+
- Thanks [dhaval-k-simformsolutions](https://github.com/dhaval-k-simformsolutions) for taking time to submit bug reports related to duplicated file entries!
43+
- [dangilbert](https://github.com/dangilbert) pointed and fixed bug when the user doesn't select a folder, thanks man!
44+
- A huge thanks to [aplicatii-romanesti](https://www.bibliotecaortodoxa.ro/) for taking time to submit device specific issues and for supporting the project!
45+
- I would thanks [ankitparmar007](https://github.com/ankitparmar007) for discussing and requesting create file related APIs!
6046

6147
<br>
6248

@@ -66,9 +52,9 @@ These are the brilliant minds behind the development of this plugin!
6652
Open Source
6753
</h2>
6854
<p align="center">
69-
<sub>Copyright © 2021-present, Laks Castro.</sub>
55+
<sub>Copyright © 2021-present, Alex Rintt.</sub>
7056
</p>
71-
<p align="center">Shared Storage <a href="https://github.com/LaksCastro/shared-storage/blob/master/LICENSE.md">is MIT licensed 💖</a></p>
57+
<p align="center">Shared Storage <a href="https://github.com/alexrintt/shared-storage/blob/master/LICENSE.md">is MIT licensed 💖</a></p>
7258
<p align="center">
7359
<img src="https://user-images.githubusercontent.com/51419598/161439601-fc228a0d-d09d-4dbb-b5a3-ebc5dbcf9f46.png" width="35" />
7460
</p>

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
group 'io.lakscastro.sharedstorage'
1+
group 'io.alexrintt.sharedstorage'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="io.lakscastro.sharedstorage">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="io.alexrintt.sharedstorage">
22
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
33
</manifest>

android/src/main/kotlin/io/lakscastro/sharedstorage/SharedStoragePlugin.kt renamed to android/src/main/kotlin/io/alexrintt/sharedstorage/SharedStoragePlugin.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
package io.lakscastro.sharedstorage
1+
package io.alexrintt.sharedstorage
22

33
import android.content.Context
44
import androidx.annotation.NonNull
55
import io.flutter.embedding.engine.plugins.FlutterPlugin
66
import io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding
77
import io.flutter.embedding.engine.plugins.activity.ActivityAware
88
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
9-
import io.lakscastro.sharedstorage.environment.EnvironmentApi
10-
import io.lakscastro.sharedstorage.mediastore.MediaStoreApi
11-
import io.lakscastro.sharedstorage.storageaccessframework.StorageAccessFrameworkApi
9+
import io.alexrintt.sharedstorage.environment.EnvironmentApi
10+
import io.alexrintt.sharedstorage.mediastore.MediaStoreApi
11+
import io.alexrintt.sharedstorage.storageaccessframework.StorageAccessFrameworkApi
1212

13-
const val ROOT_CHANNEL = "io.lakscastro.plugins/sharedstorage"
13+
const val ROOT_CHANNEL = "io.alexrintt.plugins/sharedstorage"
1414

1515
/** Flutter plugin Kotlin implementation `SharedStoragePlugin` */
1616
class SharedStoragePlugin : FlutterPlugin, ActivityAware {

android/src/main/kotlin/io/lakscastro/sharedstorage/environment/EnvironmentApi.kt renamed to android/src/main/kotlin/io/alexrintt/sharedstorage/environment/EnvironmentApi.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
package io.lakscastro.sharedstorage.environment
1+
package io.alexrintt.sharedstorage.environment
22

33
import android.os.Build
44
import android.os.Environment
55
import io.flutter.plugin.common.BinaryMessenger
66
import io.flutter.plugin.common.MethodCall
77
import io.flutter.plugin.common.MethodChannel
8-
import io.lakscastro.sharedstorage.ROOT_CHANNEL
9-
import io.lakscastro.sharedstorage.SharedStoragePlugin
10-
import io.lakscastro.sharedstorage.plugin.API_30
11-
import io.lakscastro.sharedstorage.plugin.Listenable
12-
import io.lakscastro.sharedstorage.plugin.notSupported
8+
import io.alexrintt.sharedstorage.ROOT_CHANNEL
9+
import io.alexrintt.sharedstorage.SharedStoragePlugin
10+
import io.alexrintt.sharedstorage.plugin.API_30
11+
import io.alexrintt.sharedstorage.plugin.Listenable
12+
import io.alexrintt.sharedstorage.plugin.notSupported
1313
import java.io.File
1414

1515
class EnvironmentApi(val plugin: SharedStoragePlugin) :

android/src/main/kotlin/io/lakscastro/sharedstorage/mediastore/MediaStoreApi.kt renamed to android/src/main/kotlin/io/alexrintt/sharedstorage/mediastore/MediaStoreApi.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
package io.lakscastro.sharedstorage.mediastore
1+
package io.alexrintt.sharedstorage.mediastore
22

33
import android.os.Build
44
import android.provider.MediaStore
55
import io.flutter.plugin.common.BinaryMessenger
66
import io.flutter.plugin.common.MethodCall
77
import io.flutter.plugin.common.MethodChannel
8-
import io.lakscastro.sharedstorage.ROOT_CHANNEL
9-
import io.lakscastro.sharedstorage.SharedStoragePlugin
10-
import io.lakscastro.sharedstorage.plugin.API_29
11-
import io.lakscastro.sharedstorage.plugin.Listenable
8+
import io.alexrintt.sharedstorage.ROOT_CHANNEL
9+
import io.alexrintt.sharedstorage.SharedStoragePlugin
10+
import io.alexrintt.sharedstorage.plugin.API_29
11+
import io.alexrintt.sharedstorage.plugin.Listenable
1212

1313
class MediaStoreApi(val plugin: SharedStoragePlugin) : MethodChannel.MethodCallHandler, Listenable {
1414
private var channel: MethodChannel? = null

0 commit comments

Comments
 (0)