Git Product home page Git Product logo

renatojobal / flipclock-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alynxzhou/flipclock-android

0.0 1.0 0.0 9.46 MB

The Android wrapper of FlipClock.

License: Apache License 2.0

Makefile 0.37% CMake 0.83% HTML 0.03% Shell 3.62% C 72.45% M4 1.46% Batchfile 0.01% PowerShell 0.07% Roff 0.02% C++ 15.95% Objective-C 3.69% Perl 0.13% Python 0.01% Metal 0.02% Assembly 0.18% JavaScript 0.10% Java 1.06%

flipclock-android's Introduction

FlipClock Android

The Android wrapper for FlipClock.

WHY?

Fliqlo, the closed-source app for macOS has an iOS version, so I tried to make an Android version.

HOW?

First, find a phone with LCD screen. Modern phones with non-square screens use OLED, and displaying similar patterns (FlipClock is one of those) will leave permanent mark on OLED screen.

Clone this repo, then call git submodule update --init to get FlipClock, then the font symlink under assets should work. Open this project with Android Studio and try to build by yourself.

When the APP started, double tap to switch between 12/24-hour clock format, rotate your phone to switch between landscape and portrait, don't forget to enable your phone's auto-rotate option.

Java shim was taken directly from SDL2's android-project subdir and I won't modify them to keep consistnt with upstream.

The original FlipClock was used as a git submodule here to keep code clean, because we need to build SDL2 and SDL2_ttf's source inside this project (that's bad, but it's the only way).

The original FlipClock uses CMake, but we cannot use CMake when building Android APP. Android SDK do support CMake now, but the FindSDL2.cmake is written for finding pre-built SDL2, instead of building together from source code, also, SDL2_ttf's CMakeLists.txt cannot handle static build, either. So I just write some Android.mk files for building.

Wanna an iOS version? Just buy your closed-source Tesla! I am not interested in users of closed-source systems.

LICENSE

Code taken directly from SDL2 and SDL2_ttf should keep the same License with SDL2 and SDL2_ttf.

Code modified by me should use Apache-2.0.

flipclock-android's People

Contributors

alynxzhou avatar

Watchers

 avatar

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.