Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(firebase_storage): firebase storage Dart & Desktop #67

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 225 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,228 @@
{
"dart.lineLength": 80,
"dart.runPubGetOnPubspecChanges": false
"dart.runPubGetOnPubspecChanges": false,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"packages/firebase_auth/firebase_auth_desktop/macos": true,
"packages/firebase_auth/firebase_auth_desktop/windows": true,
"packages/firebase_auth/firebase_auth_desktop/.gitignore": true,
"packages/firebase_auth/firebase_auth_desktop/.metadata": true,
"packages/firebase_auth/firebase_auth_desktop/.packages": true,
"packages/firebase_auth/firebase_auth_desktop/CHANGELOG.md": true,
"packages/firebase_auth/firebase_auth_desktop/LICENSE": true,
".vscode": true,
".dart_tool/melos_tool": true,
".github": true,
"packages/firebase_auth/firebase_auth_dart/pubspec.lock": true,
"packages/firebase_auth/firebase_auth_dart/test": true,
"packages/firebase_auth/firebase_auth_dart/.gitignore": true,
"packages/firebase_auth/firebase_auth_dart/.packages": true,
"packages/firebase_auth/firebase_auth_dart/CHANGELOG.md": true,
"packages/firebase_auth/firebase_auth_dart/LICENSE": true,
"packages/firebase_functions/firebase_functions_dart/.dart_tool": true,
"packages/firebase_functions/firebase_functions_dart/.gitignore": true,
"packages/firebase_functions/firebase_functions_dart/.packages": true,
"packages/firebase_functions/firebase_functions_dart/CHANGELOG.md": true,
"packages/firebase_functions/firebase_functions_dart/LICENSE": true,
"packages/firebase_functions/firebase_functions_dart/pubspec.lock": true,
"packages/firebase_functions/firebase_functions_desktop/macos": true,
"packages/firebase_functions/firebase_functions_desktop/.dart_tool": true,
"packages/firebase_functions/firebase_functions_desktop/example": true,
"packages/firebase_functions/firebase_functions_desktop/linux": true,
"packages/firebase_functions/firebase_functions_desktop/test": true,
"packages/firebase_functions/firebase_functions_desktop/windows": true,
"packages/firebase_functions/firebase_functions_desktop/.gitignore": true,
"packages/firebase_functions/firebase_functions_desktop/.metadata": true,
"packages/firebase_functions/firebase_functions_desktop/.packages": true,
"packages/firebase_functions/firebase_functions_desktop/CHANGELOG.md": true,
"packages/firebase_functions/firebase_functions_desktop/LICENSE": true,
"packages/firebase_functions/firebase_functions_desktop/pubspec.lock": true,
"packages/firebase_functions/firebase_functions_desktop/README.md": true,
"packages/firebase_storage/firebase_storage_dart/pubspec.lock": true,
"packages/firebase_storage/firebase_storage_dart/test": true,
"packages/firebase_storage/firebase_storage_dart/test/firebase_storage_dart_test.dart": true,
"packages/firebase_storage/firebase_storage_dart/.gitignore": true,
"packages/firebase_storage/firebase_storage_dart/.packages": true,
"packages/firebase_storage/firebase_storage_dart/analysis_options.yaml": true,
"packages/firebase_storage/firebase_storage_dart/CHANGELOG.md": true,
"packages/firebase_storage/firebase_storage_dart/LICENSE": true,
"packages/firebase_storage/firebase_storage_dart/README.md": true,
"packages/firebase_storage/firebase_storage_desktop/firebase_storage_desktop.iml": true,
"packages/firebase_storage/firebase_storage_desktop/test": true,
"packages/firebase_storage/firebase_storage_desktop/test/firebase_storage_desktop_test.dart": true,
"packages/firebase_storage/firebase_storage_desktop/.gitignore": true,
"packages/firebase_storage/firebase_storage_desktop/.metadata": true,
"packages/firebase_storage/firebase_storage_desktop/.packages": true,
"packages/firebase_storage/firebase_storage_desktop/analysis_options.yaml": true,
"packages/firebase_storage/firebase_storage_desktop/CHANGELOG.md": true,
"packages/firebase_storage/firebase_storage_desktop/LICENSE": true,
"packages/firebase_storage/firebase_storage_desktop/pubspec.lock": true,
"packages/firebase_storage/firebase_storage_desktop/README.md": true,
"LICENSE": true,
"packages/firebase_storage/firebase_storage_desktop/.dart_tool": true,
"packages/firebase_storage/firebase_storage_dart/example": true,
"packages/firebase_storage/firebase_storage_dart/.dart_tool": true,
"packages/firebase_functions/firebase_functions_dart/README.md": true,
".dart_tool": true,
"packages/firebase_auth/firebase_auth_dart/example": true,
"packages/firebase_auth/firebase_auth_dart/.dart_tool": true,
"packages/firebase_auth/firebase_auth_dart/README.md": true,
"packages/firebase_auth/firebase_auth_desktop/linux": true,
"packages/firebase_auth/firebase_auth_desktop/.dart_tool": true,
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/package_config_subset": true,
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/package_config.json": true,
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/version": true,
"packages/firebase_auth/firebase_auth_desktop/example": true,
"packages/firebase_auth/firebase_auth_desktop/pubspec.lock": true,
"packages/firebase_auth/firebase_auth_desktop/pubspec.yaml": true,
"packages/firebase_auth/firebase_auth_desktop/README.md": true,
"README.md": true,
"tests": true,
".gitignore": true,
"all_lint_rules.yaml": true,
"analysis_options.yaml": true,
"melos.yaml": true,
"packages/firebase_functions/firebase_functions_dart/pubspec.yaml": true,
"packages/firebase_storage/firebase_storage_desktop/pubspec.yaml": true,
"packages/firebase_storage/firebase_storage_desktop/.idea": true,
"packages/firebase_storage/firebase_storage_dart/pubspec.yaml": true,
"packages/firebase_core/firebase_core_desktop/.dart_tool": true,
"packages/firebase_core/firebase_core_desktop/example": true,
"packages/firebase_core/firebase_core_desktop/linux": true,
"packages/firebase_core/firebase_core_desktop/macos": true,
"packages/firebase_core/firebase_core_desktop/test": true,
"packages/firebase_core/firebase_core_desktop/windows": true,
"packages/firebase_core/firebase_core_desktop/.gitignore": true,
"packages/firebase_core/firebase_core_desktop/.packages": true,
"packages/firebase_core/firebase_core_desktop/CHANGELOG.md": true,
"packages/firebase_core/firebase_core_desktop/LICENSE": true,
"packages/firebase_core/firebase_core_desktop/pubspec.lock": true,
"packages/firebase_core/firebase_core_desktop/pubspec.yaml": true,
"packages/firebase_core/firebase_core_desktop/README.md": true,
"packages/firebase_auth/firebase_auth_dart/pubspec.yaml": true,
"packages/firebase_core/firebase_core_dart/.dart_tool": true,
"packages/firebase_core/firebase_core_dart/.packages": true,
"packages/firebase_core/firebase_core_dart/test": true,
"packages/firebase_core/firebase_core_dart/.gitignore": true,
"packages/firebase_core/firebase_core_dart/CHANGELOG.md": true,
"packages/firebase_core/firebase_core_dart/LICENSE": true,
"packages/firebase_core/firebase_core_dart/pubspec.lock": true,
"packages/firebase_core/firebase_core_dart/pubspec.yaml": true,
"packages/firebase_core/firebase_core_dart/README.md": true,
"packages/firebase_functions/firebase_functions_dart/test": true
},
"hide-files.files": [
"packages/firebase_auth/firebase_auth_desktop/macos",
"packages/firebase_auth/firebase_auth_desktop/windows",
"packages/firebase_auth/firebase_auth_desktop/.gitignore",
"packages/firebase_auth/firebase_auth_desktop/.metadata",
"packages/firebase_auth/firebase_auth_desktop/.packages",
"packages/firebase_auth/firebase_auth_desktop/CHANGELOG.md",
"packages/firebase_auth/firebase_auth_desktop/LICENSE",
".vscode",
".dart_tool/melos_tool",
".github",
"packages/firebase_auth/firebase_auth_dart/pubspec.lock",
"packages/firebase_auth/firebase_auth_dart/test",
"packages/firebase_auth/firebase_auth_dart/.gitignore",
"packages/firebase_auth/firebase_auth_dart/.packages",
"packages/firebase_auth/firebase_auth_dart/CHANGELOG.md",
"packages/firebase_auth/firebase_auth_dart/LICENSE",
"packages/firebase_functions/firebase_functions_dart/.dart_tool",
"packages/firebase_functions/firebase_functions_dart/.gitignore",
"packages/firebase_functions/firebase_functions_dart/.packages",
"packages/firebase_functions/firebase_functions_dart/CHANGELOG.md",
"packages/firebase_functions/firebase_functions_dart/LICENSE",
"packages/firebase_functions/firebase_functions_dart/pubspec.lock",
"packages/firebase_functions/firebase_functions_desktop/macos",
"packages/firebase_functions/firebase_functions_desktop/.dart_tool",
"packages/firebase_functions/firebase_functions_desktop/example",
"packages/firebase_functions/firebase_functions_desktop/linux",
"packages/firebase_functions/firebase_functions_desktop/test",
"packages/firebase_functions/firebase_functions_desktop/windows",
"packages/firebase_functions/firebase_functions_desktop/.gitignore",
"packages/firebase_functions/firebase_functions_desktop/.metadata",
"packages/firebase_functions/firebase_functions_desktop/.packages",
"packages/firebase_functions/firebase_functions_desktop/CHANGELOG.md",
"packages/firebase_functions/firebase_functions_desktop/LICENSE",
"packages/firebase_functions/firebase_functions_desktop/pubspec.lock",
"packages/firebase_functions/firebase_functions_desktop/README.md",
"packages/firebase_storage/firebase_storage_dart/pubspec.lock",
"packages/firebase_storage/firebase_storage_dart/test",
"packages/firebase_storage/firebase_storage_dart/test/firebase_storage_dart_test.dart",
"packages/firebase_storage/firebase_storage_dart/.gitignore",
"packages/firebase_storage/firebase_storage_dart/.packages",
"packages/firebase_storage/firebase_storage_dart/analysis_options.yaml",
"packages/firebase_storage/firebase_storage_dart/CHANGELOG.md",
"packages/firebase_storage/firebase_storage_dart/LICENSE",
"packages/firebase_storage/firebase_storage_dart/README.md",
"packages/firebase_storage/firebase_storage_desktop/firebase_storage_desktop.iml",
"packages/firebase_storage/firebase_storage_desktop/test",
"packages/firebase_storage/firebase_storage_desktop/test/firebase_storage_desktop_test.dart",
"packages/firebase_storage/firebase_storage_desktop/.gitignore",
"packages/firebase_storage/firebase_storage_desktop/.metadata",
"packages/firebase_storage/firebase_storage_desktop/.packages",
"packages/firebase_storage/firebase_storage_desktop/analysis_options.yaml",
"packages/firebase_storage/firebase_storage_desktop/CHANGELOG.md",
"packages/firebase_storage/firebase_storage_desktop/LICENSE",
"packages/firebase_storage/firebase_storage_desktop/pubspec.lock",
"packages/firebase_storage/firebase_storage_desktop/README.md",
"LICENSE",
"packages/firebase_storage/firebase_storage_desktop/.dart_tool",
"packages/firebase_storage/firebase_storage_dart/example",
"packages/firebase_storage/firebase_storage_dart/.dart_tool",
"packages/firebase_functions/firebase_functions_dart/README.md",
".dart_tool",
"packages/firebase_auth/firebase_auth_dart/example",
"packages/firebase_auth/firebase_auth_dart/.dart_tool",
"packages/firebase_auth/firebase_auth_dart/README.md",
"packages/firebase_auth/firebase_auth_desktop/linux",
"packages/firebase_auth/firebase_auth_desktop/.dart_tool",
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/package_config_subset",
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/package_config.json",
"packages/firebase_auth/firebase_auth_desktop/.dart_tool/version",
"packages/firebase_auth/firebase_auth_desktop/example",
"packages/firebase_auth/firebase_auth_desktop/pubspec.lock",
"packages/firebase_auth/firebase_auth_desktop/pubspec.yaml",
"packages/firebase_auth/firebase_auth_desktop/README.md",
"README.md",
"tests",
".gitignore",
"all_lint_rules.yaml",
"analysis_options.yaml",
"melos.yaml",
"packages/firebase_functions/firebase_functions_dart/pubspec.yaml",
"packages/firebase_storage/firebase_storage_desktop/pubspec.yaml",
"packages/firebase_storage/firebase_storage_desktop/.idea",
"packages/firebase_storage/firebase_storage_dart/pubspec.yaml",
"packages/firebase_core/firebase_core_desktop/.dart_tool",
"packages/firebase_core/firebase_core_desktop/example",
"packages/firebase_core/firebase_core_desktop/linux",
"packages/firebase_core/firebase_core_desktop/macos",
"packages/firebase_core/firebase_core_desktop/test",
"packages/firebase_core/firebase_core_desktop/windows",
"packages/firebase_core/firebase_core_desktop/.gitignore",
"packages/firebase_core/firebase_core_desktop/.packages",
"packages/firebase_core/firebase_core_desktop/CHANGELOG.md",
"packages/firebase_core/firebase_core_desktop/LICENSE",
"packages/firebase_core/firebase_core_desktop/pubspec.lock",
"packages/firebase_core/firebase_core_desktop/pubspec.yaml",
"packages/firebase_core/firebase_core_desktop/README.md",
"packages/firebase_auth/firebase_auth_dart/pubspec.yaml",
"packages/firebase_core/firebase_core_dart/.dart_tool",
"packages/firebase_core/firebase_core_dart/.packages",
"packages/firebase_core/firebase_core_dart/test",
"packages/firebase_core/firebase_core_dart/.gitignore",
"packages/firebase_core/firebase_core_dart/CHANGELOG.md",
"packages/firebase_core/firebase_core_dart/LICENSE",
"packages/firebase_core/firebase_core_dart/pubspec.lock",
"packages/firebase_core/firebase_core_dart/pubspec.yaml",
"packages/firebase_core/firebase_core_dart/README.md",
"packages/firebase_functions/firebase_functions_dart/test"
]
}
10 changes: 10 additions & 0 deletions packages/firebase_storage/firebase_storage_dart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Files and directories created by pub.
.dart_tool/
.packages

# Conventional directory for build outputs.
build/

# Omit committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
3 changes: 3 additions & 0 deletions packages/firebase_storage/firebase_storage_dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
29 changes: 29 additions & 0 deletions packages/firebase_storage/firebase_storage_dart/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD-3-Clause
------------

Copyright (c) 2016-present Invertase Limited <[email protected]> & Contributors

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Creative Commons Attribution 3.0 License
----------------------------------------

Copyright (c) 2016-present Invertase Limited <[email protected]> & Contributors

Documentation and other instructional materials provided for this project
(including on a separate documentation repository or it's documentation website) are
licensed under the Creative Commons Attribution 3.0 License. Code samples/blocks
contained therein are licensed under the BSD-3-Clause License (the "License"), as above.

You may obtain a copy of the Creative Commons Attribution 3.0 License at

https://creativecommons.org/licenses/by/3.0/
39 changes: 39 additions & 0 deletions packages/firebase_storage/firebase_storage_dart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
This README describes the package. If you publish this package to pub.dev,
this README's contents appear on the landing page for your package.

For information about how to write a good package README, see the guide for
[writing package pages](https://dart.dev/guides/libraries/writing-package-pages).

For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-library-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

## Getting started

TODO: List prerequisites and provide or point to information on how to
start using the package.

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.

```dart
const like = 'sample';
```

## Additional information

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import 'package:firebase_storage_dart/firebase_storage_dart.dart';

void main() {}
Loading