Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0cfbe17

Browse files
[path_provider] Federate mobile implementations (#4465)
Fully federates the plugin by moving the existing mobile implementations to their own packages, per planned repo structure. Temporarily marks `path_provider` as unpublishable to allow the implementations to be moved, rather than copied and deleted, in order to better preserve git history. A follow-up PR will restore it to publishable form. Part of flutter/flutter#68498
1 parent bc95853 commit 0cfbe17

File tree

79 files changed

+2142
-8
lines changed

Some content is hidden

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

79 files changed

+2142
-8
lines changed

packages/path_provider/path_provider/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.7
2+
3+
* Moved Android and iOS implementations to federated packages.
4+
15
## 2.0.6
26

37
* Added support for Background Platform Channels on Android when it is

packages/path_provider/path_provider/android/settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/path_provider/path_provider/pubspec.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: path_provider
22
description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.
33
repository: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
5-
version: 2.0.6
5+
version: 2.0.7
6+
# Temporarily disable publishing to allow moving Android and iOS
7+
# implementations.
8+
publish_to: none
69

710
environment:
811
sdk: ">=2.14.0 <3.0.0"
@@ -12,10 +15,9 @@ flutter:
1215
plugin:
1316
platforms:
1417
android:
15-
package: io.flutter.plugins.pathprovider
16-
pluginClass: PathProviderPlugin
18+
default_package: path_provider_android
1719
ios:
18-
pluginClass: FLTPathProviderPlugin
20+
default_package: path_provider_ios
1921
macos:
2022
default_package: path_provider_macos
2123
linux:
@@ -26,6 +28,11 @@ flutter:
2628
dependencies:
2729
flutter:
2830
sdk: flutter
31+
# Temporary path dependencies to allow moving Android and iOS implementations.
32+
path_provider_android:
33+
path: ../path_provider_android
34+
path_provider_ios:
35+
path: ../path_provider_ios
2936
path_provider_linux: ^2.0.0
3037
path_provider_macos: ^2.0.0
3138
path_provider_platform_interface: ^2.0.0
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Flutter project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.
7+
The Chromium Authors
8+
German Saprykin <saprykin.h@gmail.com>
9+
Benjamin Sauer <sauer.benjamin@gmail.com>
10+
larsenthomasj@gmail.com
11+
Ali Bitek <alibitek@protonmail.ch>
12+
Pol Batlló <pol.batllo@gmail.com>
13+
Anatoly Pulyaevskiy
14+
Hayden Flinner <haydenflinner@gmail.com>
15+
Stefano Rodriguez <hlsroddy@gmail.com>
16+
Salvatore Giordano <salvatoregiordanoo@gmail.com>
17+
Brian Armstrong <brian@flutter.institute>
18+
Paul DeMarco <paulmdemarco@gmail.com>
19+
Fabricio Nogueira <feufeu@gmail.com>
20+
Simon Lightfoot <simon@devangels.london>
21+
Ashton Thomas <ashton@acrinta.com>
22+
Thomas Danner <thmsdnnr@gmail.com>
23+
Diego Velásquez <diego.velasquez.lopez@gmail.com>
24+
Hajime Nakamura <nkmrhj@gmail.com>
25+
Tuyển Vũ Xuân <netsoft1985@gmail.com>
26+
Miguel Ruivo <miguel@miguelruivo.com>
27+
Sarthak Verma <sarthak@artiosys.com>
28+
Mike Diarmid <mike@invertase.io>
29+
Invertase <oss@invertase.io>
30+
Elliot Hesp <elliot@invertase.io>
31+
Vince Varga <vince.varga@smaho.com>
32+
Aawaz Gyawali <awazgyawali@gmail.com>
33+
EUI Limited <ian.evans3@admiralgroup.co.uk>
34+
Katarina Sheremet <katarina@sheremet.ch>
35+
Thomas Stockx <thomas@stockxit.com>
36+
Sarbagya Dhaubanjar <sarbagyastha@gmail.com>
37+
Ozkan Eksi <ozeksi@gmail.com>
38+
Rishab Nayak <rishab@bu.edu>
39+
ko2ic <ko2ic.dev@gmail.com>
40+
Jonathan Younger <jonathan@daikini.com>
41+
Jose Sanchez <josesm82@gmail.com>
42+
Debkanchan Samadder <debu.samadder@gmail.com>
43+
Audrius Karosevicius <audrius.karosevicius@gmail.com>
44+
Lukasz Piliszczuk <lukasz@intheloup.io>
45+
SoundReply Solutions GmbH <ch@soundreply.com>
46+
Rafal Wachol <rwachol@gmail.com>
47+
Pau Picas <pau.picas@gmail.com>
48+
Christian Weder <chrstian.weder@yapeal.ch>
49+
Alexandru Tuca <salexandru.tuca@outlook.com>
50+
Christian Weder <chrstian.weder@yapeal.ch>
51+
Rhodes Davis Jr. <rody.davis.jr@gmail.com>
52+
Luigi Agosti <luigi@tengio.com>
53+
Quentin Le Guennec <quentin@tengio.com>
54+
Koushik Ravikumar <koushik@tengio.com>
55+
Nissim Dsilva <nissim@tengio.com>
56+
Giancarlo Rocha <giancarloiff@gmail.com>
57+
Ryo Miyake <ryo@miyake.id>
58+
Théo Champion <contact.theochampion@gmail.com>
59+
Kazuki Yamaguchi <y.kazuki0614n@gmail.com>
60+
Eitan Schwartz <eshvartz@gmail.com>
61+
Chris Rutkowski <chrisrutkowski89@gmail.com>
62+
Juan Alvarez <juan.alvarez@resideo.com>
63+
Aleksandr Yurkovskiy <sanekyy@gmail.com>
64+
Anton Borries <mail@antonborri.es>
65+
Alex Li <google@alexv525.com>
66+
Rahul Raj <64.rahulraj@gmail.com>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 2.0.6
2+
3+
* Split from `path_provider` as a federated implementation.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright 2013 The Flutter Authors. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# path\_provider\_android
2+
3+
The Android implementation of [`path_provider`].
4+
5+
## Usage
6+
7+
This package is [endorsed][2], which means you can simply use `path_provider`
8+
normally. This package will be automatically included in your app when you do.
9+
10+
[1]: https://pub.dev/packages/path_provider
11+
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'path_provider_android'

0 commit comments

Comments
 (0)