Giter VIP home page Giter VIP logo

hangar's Introduction

Hangar

Hangar (3.0?) for Android -- rewritten in Kotlin and Flutter Currently a WIP rebuild of the original Hangar

TODO

  • Ability to change the 'switch page' icon
  • App shortcuts/Stats widgets

Screenshots

Why?!

The motivation behind this rewrite is explained in this youtube video!

Building

There are a few glitches and gotchas that seem to happen (currently) when your Android app has a Flutter module.

  1. Set the sdk.dir and flutter.sdk variables in app/settings/.android/local.properties to reflect where you have the Android SDKs and flutter SDK installed respectively.
  2. Due to this issue, Flutter modules do not use AndroidX by default. However, the Flutter module in Hangar has been updated manually to use AndroidX. Anytime flutter packages (or possibly other flutter related commands) are run, Flutter overwrites app/settings/.android/ files with pre-AndroidX copies. Run the script restore_androidx.sh in app/settings/ before committing changes to reset back to the working AndroidX versions.
  3. If you wish to use Flutter hot reload, run flutter attach in app/settings before running a debug build.
  4. Dart support seems to randomly switch off in Android Studio. Enable to fix.
  5. Occasionally the io.flutter.plugins.GeneratedPluginRegistrant import in MainActivity will fail to be found by Android Studio. Gradle sync will look like it's succeeding but you'll see the pinned message that it has failed. Restarting Android Studio seems to fix this.
  6. Don't forget about note #2. If you notice things are being weird it may be due to Flutter overwriting AndroidX files in app/settings/.android/. Do a git diff and see if that's the case!

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.