Code Monkey home page Code Monkey logo

zenbreak's Introduction

ZenBreak

ZenBreak

GitHub all releases GitHub release (with filter) homebrew cask Discord

Overview

ZenBreak screenshot


This app simply reminds you to take a break from the screen, it has customisable behaviour and appereance to suit everyone needs.
(Check out the website for more screenshots)

This is a Kotlin Multiplatform app built for the Jetbrains Contest and for personal use!
It currently supports MacOS, Windows and Linux, but I'll consider porting it to Android and iOS if I receive many requests for that.

Installing

You can install the app via zenbreak.app or via GitHub releases.

Get it on App Store

Inspiration and resources

This project has been insipired by BreakTimer.
I didn't want a js runtime just for a simple menu bar app so I took the opportunity to build ZenBreak ^^

I've found a few projects that really helped learning the technologies used in this project:

  • John O'Reilly
    thank you so much for all the open source repos of your GitHub and the blog, helped a ton expecially with macOS related stuff!
  • Rick Clephas
    amazing Kotlin native libraries 🫢🏼
  • TomatoBar
    great open source macOS menu bar app, gave me a solid base for the macOS app!
  • Conveyor
    amazing tool to built desktop installers for your app, recommend πŸ’―
  • Touchlab
    great tools for kotlin native, such as KMMBridge
  • Kotlin Community of course :>

Contributing

Feel free to contribute to the project!
You can take a look at the issues to see what's currently missing or needs improvement.

Checkout the following section to learn how the project is structured.

Development

Set up the environment

Warning
You need a Mac with macOS to write and run iOS-specific code on simulated or real devices.
This is an Apple requirement.

To work with this template, you need the following:

Check your environment

Before you start, use the KDoctor tool to ensure that your development environment
is configured correctly:

  1. Install KDoctor with Homebrew:
     brew install kdoctor  
  2. Run KDoctor in your terminal:
    kdoctor  
    If everything is set up correctly, you'll see valid output:
    Environment diagnose (to see all details, use -v option):  
    [βœ“] Operation System  
    [βœ“] Java  
    [βœ“] Android Studio  
    [βœ“] Xcode  
    [βœ“] Cocoapods  
      
    Conclusion:  
     βœ“ Your system is ready for Kotlin Multiplatform Mobile development!  
    
    Otherwise, KDoctor will highlight which parts of your setup still need to be configured and will suggest a way to fix them.

Examine the project structure

Open the project in Android Studio and switch the view from Android to Project to see all the files and targets belonging to the project:

This Compose Multiplatform project includes 8 modules:

  • shared-core
  • shared-compose-core
  • shared-compose-popup
  • shared-compose-settings
  • androidApp
  • desktopApp
  • multiplatformApp
  • zenbreak.app

Each module contains a README file, refer to those for informations about each module.
All plugins and dependencies are handled via the version catalog, which you can find in gradle/libs.versions.toml.

Run the application

Running on macOS

Open the multiplatformApp folder with XCode and run the project from XCode directly.

On desktop

To run the desktop application in Android Studio, select desktopApp in the list of run configurations and click Run:
You can also run Gradle tasks in the terminal:

  • ./gradlew run to run application
  • ./gradlew package to store native distribution into build/compose/binaries
On Android

To run the application on an Android emulator:

  1. Ensure you have an Android virtual device available.
    Otherwise, create one
  2. In the list of run configurations, select androidApp.
  3. Choose your virtual device and click Run:

To install the Android application on a real Android device or an emulator, run ./gradlew installDebug in the terminal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.