mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Update MSIX config and documentation (#602)
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
# Photo Search app
|
||||
|
||||
This macOS application enables you to search [Unsplash](https://unsplash.com/)
|
||||
for photographs that interest you. To use it, you need to add an
|
||||
**Access Key** from [Unsplash API](https://unsplash.com/developers) to
|
||||
[unsplash_access_key.dart](lib/unsplash_access_key.dart).
|
||||
This desktop application enables you to search
|
||||
[Unsplash](https://unsplash.com/) for photographs that interest you.
|
||||
To use it, you need to add an **Access Key** from
|
||||
[Unsplash API](https://unsplash.com/developers) to
|
||||
`lib/unsplash_access_key.dart`.
|
||||
|
||||
This sample works on Windows, macOS and Linux.
|
||||
|
||||
## A quick tour of the code
|
||||
|
||||
@@ -21,6 +24,18 @@ atop [http], [built_value] and [built_collection] for JSON Rest API access.
|
||||
The [DataTreeNode] and widget family, along with the [Split] widget capture
|
||||
desktop file explorer master/detail view idioms.
|
||||
|
||||
## Deploying to the Microsoft Store
|
||||
|
||||
This sample uses Yehuda Kremer's [MSIX pub package][msix_pub_package]
|
||||
to bundle up the Windows release build for distribution to the
|
||||
[Microsoft Store][]. Microsoft maintains a [plethora of documentation][ms_store_publishing_doc]
|
||||
on deploying to the Microsoft Store.
|
||||
|
||||
See the `msix_config` stanza in this sample's `pubspec.yaml` for an
|
||||
example configuration. Make sure the `display_name`, `publisher_display_name`
|
||||
`publisher` and `identity_name` attributes match the settings in your
|
||||
Microsoft Partner Center application submission.
|
||||
|
||||
## macOS Network and File entitlements
|
||||
|
||||
To access the network, macOS requires applications enable the
|
||||
@@ -34,9 +49,10 @@ Please see [macOS Signing and Security][macOS-security] for more detail.
|
||||
|
||||
## Flutter Desktop is not in Flutter Stable Release Channel
|
||||
|
||||
This sample is an initial preview, intended to enable developers to preview what is
|
||||
under development. As such, it is currently only available for use on the `master` channel
|
||||
of Flutter. Please see [Flutter build release channels][flutter_channels] for more detail,
|
||||
This sample is a preview, intended to enable developers to preview what is
|
||||
under development. As such, it is currently only available for use on
|
||||
the `dev` and `master` channels of Flutter. Please see
|
||||
[Flutter build release channels][flutter_channels] for more detail,
|
||||
and how to switch between Flutter release channels.
|
||||
|
||||
[DataTreeNode]: lib/src/widgets/data_tree.dart
|
||||
@@ -53,3 +69,7 @@ and how to switch between Flutter release channels.
|
||||
[macOS-security]: https://github.com/google/flutter-desktop-embedding/blob/master/macOS-Security.md
|
||||
[menubar]: https://github.com/google/flutter-desktop-embedding/tree/master/plugins/menubar
|
||||
[url_launcher]: https://pub.dev/packages/url_launcher
|
||||
|
||||
[msix_pub_package]: https://pub.dev/packages/msix
|
||||
[Microsoft Store]: https://www.microsoft.com/en-au/p/flutter-desktop-photo-search/9nh719dxcpj4
|
||||
[ms_store_publishing_doc]: https://docs.microsoft.com/en-us/windows/uwp/publish/
|
||||
|
||||
@@ -28,7 +28,7 @@ packages:
|
||||
name: ansicolor
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
version: "1.1.1"
|
||||
args:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -211,12 +211,19 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.0-nullsafety.3"
|
||||
file:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: file
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "5.2.1"
|
||||
file_chooser:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "plugins/file_chooser"
|
||||
ref: HEAD
|
||||
resolved-ref: "85dde09b702a0cb1f5e1392d2f030bdc3d4e5be3"
|
||||
resolved-ref: dc12db8bcbba6b868b884e4a143d4f843158d7ab
|
||||
url: "https://github.com/google/flutter-desktop-embedding.git"
|
||||
source: git
|
||||
version: "0.2.0"
|
||||
@@ -325,7 +332,7 @@ packages:
|
||||
name: json_annotation
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.1.0"
|
||||
version: "3.1.1"
|
||||
logging:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -345,7 +352,7 @@ packages:
|
||||
description:
|
||||
path: "plugins/menubar"
|
||||
ref: HEAD
|
||||
resolved-ref: "85dde09b702a0cb1f5e1392d2f030bdc3d4e5be3"
|
||||
resolved-ref: dc12db8bcbba6b868b884e4a143d4f843158d7ab
|
||||
url: "https://github.com/google/flutter-desktop-embedding.git"
|
||||
source: git
|
||||
version: "0.1.0"
|
||||
@@ -369,7 +376,7 @@ packages:
|
||||
name: msix
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.1.2"
|
||||
version: "0.1.5"
|
||||
nested:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -383,14 +390,14 @@ packages:
|
||||
name: node_interop
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
version: "1.2.1"
|
||||
node_io:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: node_io
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.1"
|
||||
version: "1.2.0"
|
||||
node_preamble:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -563,7 +570,7 @@ packages:
|
||||
name: test
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.16.0-nullsafety.9"
|
||||
version: "1.16.0-nullsafety.12"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -577,7 +584,7 @@ packages:
|
||||
name: test_core
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.12-nullsafety.9"
|
||||
version: "0.3.12-nullsafety.11"
|
||||
timing:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -39,7 +39,7 @@ dev_dependencies:
|
||||
build_runner: ^1.7.2
|
||||
built_value_generator: ^7.0.0
|
||||
grinder: ^0.8.3
|
||||
msix: ^0.1.2
|
||||
msix: ^0.1.5
|
||||
source_gen: ^0.9.4
|
||||
test: ^1.9.4
|
||||
tuneup: ^0.3.6
|
||||
@@ -49,12 +49,11 @@ flutter:
|
||||
|
||||
msix_config:
|
||||
display_name: Flutter Desktop Photo Search
|
||||
publisher_name: flutter.dev
|
||||
identity_name: Google.Flutter.PhotoSearch
|
||||
publisher_display_name: flutter.dev
|
||||
publisher: CN=01A6D5C0-D51A-4EEE-8DD0-F134DDD378F7
|
||||
identity_name: 16354flutter.dev.FlutterDesktopPhotoSearch
|
||||
msix_version: 1.0.0.0
|
||||
# certificate_subject: CN=MyName
|
||||
# logo_path: packages/flutter_gallery_assets/assets/logo/flutter_logo_color.png
|
||||
# start_menu_icon_path: packages/flutter_gallery_assets/assets/logo/flutter_logo_color.png
|
||||
# tile_icon_path: packages/flutter_gallery_assets/assets/logo/flutter_logo_color.png
|
||||
icons_background_color: ffffff
|
||||
icons_background_color: '#ffffff'
|
||||
architecture: x64
|
||||
# See https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations
|
||||
capabilities: 'internetClient'
|
||||
|
||||
Reference in New Issue
Block a user