This repo contains components built with Jetpack Compose for the Microsoft Surface Duo.
Перейти к файлу
Joy Liu 84fa87338d
Introduce ComposeTesting library (#11)
* Introduce ComposeTesting

* Add sample

* Add test sample

* Add missing files

* Update dependencies

* Add more comments

* Update FoldHelper to use TestRule

* Add ktlint and update config

* Clean up the dependencies

* Rename the APIs

* Update README

* Add simple SwipeHelper example tests

* Update dependencies and README

* Update pipeline to include ComposeTesting

* Delete local.properties

* Delete local.properties

* Delete local.properties

* Add more missing files

* Move ktlint back to 0.40.0

* Address the comments

* Update the name in yml files

* Add more tests

* Rename the package name

Co-authored-by: Kristen Halper <khalp@vt.edu>
2022-02-04 11:57:19 -08:00
.github/workflows Introduce ComposeTesting library (#11) 2022-02-04 11:57:19 -08:00
ComposeTesting Introduce ComposeTesting library (#11) 2022-02-04 11:57:19 -08:00
TwoPaneLayout Introducing Windowstate as a new SDK (#9) 2022-01-07 10:32:06 -08:00
WindowState Update WindowState API (#10) 2022-01-31 19:01:12 -05:00
.gitignore Copy in TwoPaneLayout project (#1) 2021-11-10 15:00:48 -05:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-11-10 08:47:09 -08:00
LICENSE LICENSE updated to template 2021-11-10 08:47:10 -08:00
README.md Introduce ComposeTesting library (#11) 2022-02-04 11:57:19 -08:00
SECURITY.md SECURITY.md committed 2021-11-10 08:47:10 -08:00
SUPPORT.md SUPPORT.md committed 2021-11-10 08:47:12 -08:00

README.md

build-test-check Compose Version

Surface Duo Jetpack Compose SDK

This repo contains components built with Jetpack Compose for the Microsoft Surface Duo and other large screen and foldable devices.

Please read the code of conduct and contribution guidelines.

Prerequisites

  • Jetpack Compose version: 1.1.0-rc03
  • Jetpack Window Manager version: 1.0.0
  • Android Studio version: Bumblebee 2021.1.1

Getting Started

When importing the component source code into Android Studio, use the specific component folder (ex: TwoPaneLayout) as the base directory of the project.

To learn how to load apps on the Surface Duo emulator, see the documentation, and follow our blog.

Please check out our page on Jetpack Compose for Microsoft Surface Duo for more details.

Contents

TwoPaneLayout

A UI component that helps you build two-pane layout for dual-screen, foldable, and large-screen devices.

WindowState

A utility component that helps you easily get details about the window state of dual-screen, foldable, and large-screen devices.

ComposeTesting

Helper functions that help you easily test your application on the dual-screen, foldable and large screen devices.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.