Skip to content

This is an example project that is using an early alpha version of Jetpack Compose. I'm collecting informations about Compose in the project wiki.

License

Notifications You must be signed in to change notification settings

Sheng-Xuan/Jetpack-Compose-Playground

 
 

Repository files navigation

Jetpack Compose Playground

jCenter PRs Welcome All Contributors Tweet

A Jetpack Compose Example App

Introduction 🙋‍♂️

This is an example project that is using an early alpha version of Jetpack Compose https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/compose/

ℹ️ Please be aware that Compose is still experimental and should not be used in a production application.

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks GitHub watchers Twitter Follow

📙 Docs

Documentation avaible at:https://github.com/Foso/Jetpack-Compose-Playground/wiki

🏠 Architecture

🛠️ Built With

Kotlin

jCenter

Project Structure

  • androidx_prebuilts - This folder contains the Compose Libraries 1.0.0-alpha01 and the Compiler Plugin 1.0.0-alpha01 I compiled this versions from the AndroidX git repo. Because Compose is still in early alpha stage, Google doesn't offer any binaries online. In the AndroidX repo, Compose is used with a special Kotlin compiler "1.3.30-compose-20190503", but i figured out, it is also working with the Kotlin compiler v1.3.40-eap-21.

  • app - Base android project directory

  • compose - a android library module that is using the compose libraries. It contains my example/test functions and the demo classes i copied out of the AndroidX repo (https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/ui/material/integration-tests/) Inside the MyComposeApp() you can change the demo page that should be opened

What is Jetpack Compose

Declarative UI Patterns (Google I/O'19)

Chain React 2019 - Leland Richardson - React, Meet Compose

Android Developer Backstage: Episode 115: Jetpack Compose http://androidbackstage.blogspot.com/2019/06/episode-115-jetpack-compose.html

Links:

✍️ Feedback

If you want to improve Compose, join the Kotlin Slack and the #compose channel or file a bug at https://issuetracker.google.com/issues?q=componentid:612128

📜 License

This project is licensed under the MIT License - see the LICENSE.md file for details

Find this project useful ? ❤️

  • Support it by clicking the ⭐ button on the upper right of this page. ✌️

License

MIT License

Copyright (c) 2019 Jens Klingenberg

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.

Acknowledgments

Projects that helped me understand how to setup the project:

About

This is an example project that is using an early alpha version of Jetpack Compose. I'm collecting informations about Compose in the project wiki.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 95.0%
  • Shell 4.2%
  • Java 0.8%