Skip to content

CesarValiente/qualifiers-bazel-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qualifiers-bazel-sample

This is a sample app that shows how resource qualifiers are used on Surface Duo devices. The sample purpose is also to be a as a playground to experiment with Bazel to build and deploy the app.

How to build and deploy?

  1. In the terminal, go inside the project's folder (e.g. /foo/bar/qualifiers-bazel-sample).
  2. To build the app, type in the terminal bazel build //src/main:app.
  3. To deploy/install the app in your device/emulator, type bazel mobile-install //src/main:app.

If you need to clean the project after a previous build, type bazel clean.

How resource qualifiers work on Surface Duo?

The app will show different layouts and strings depending on the device/emulator you are using and how the app is displayed (single screen mode or spanned).

Surface Duo 1 - single screen mode Surface Duo 1 - spanned mode

Surface Duo 2 - single screen mode Surface Duo 2 - spanned mode

Resources

Qualifiers and Surface Duo

Bazel essential docs

Building an Android app

Rules and releases

IntelliJ/Android Studio Bazel plugin

Code of Conduct

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.

Other copyrights

Images located in /res folder are taken from Microsoft Paint 3D. You can download and install the app from the Microsoft Store.

About

This is a sample app that shows the usage of resource qualifiers + using Bazel to build and deploy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published