Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 2.45 KB

CONTRIBUTING.md

File metadata and controls

62 lines (42 loc) · 2.45 KB

Contributing to AuthPass

We apreciate any kind of contributions to AuthPass 😅️ Check out the article on helping support AuthPass on our website.

If you want to contribute documentatin or code, never hesitate to get in contact.

Code

AuthPass is based on Flutter, so you should get familiar with the dart programming language as well as flutter itself. You can checkout the flutter website at https://flutter.dev/

If you have never used flutter before you might want to walk through a few codelabs before getting into AuthPass.

Cloning/Forking

AuthPass makes heavy use of submodules right now. If you fork the repository you might experience a few permission denied errors when you clone using ssh. To work around those you might need to add the follwing to your ~/.gitconfig:

[url "https://github.com/"]
  insteadOf = [email protected]:
[url "[email protected]:"]
  pushInsteadOf = "https://github.com/"

(If you don't want it for all github repositories, you might only configure it for github:hpoul/ and github:authpass/).

Setup Development Environment

  1. Download Flutter and make sure flutter doctor shows no errors.

  2. Clone the repository git clone https://github.com/authpass/authpass.git (or better yet, create your own fork to make later creating Pull Requests easier).

  3. Change to the authpass/ subdirectory:

    git clone https://github.com/authpass/authpass.git
    cd authpass/authpass
  4. Launch AuthPass

    flutter run -t lib/env/development.dart

You are required to select a specific target file, usually this will be lib/env/develompent.dart.

Running on Android

For android you have to add an additional flavor:

flutter run --target=lib/env/development.dart --flavor=playstore

Code Style

Make sure to follow common dart coding conventions, and follow all lints provided by analysis_options.yaml and activate auto-formatting using dartfmt.