Skip to content

Latest commit

 

History

History
90 lines (78 loc) · 3.13 KB

CONTRIBUTING.md

File metadata and controls

90 lines (78 loc) · 3.13 KB

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. All bug reports or feature requests are welcome, even if you can't contribute code!

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Install an IDE of your choice (e.g. VSCode with the Dart/Flutter extensions)
  • Install the flutter SDK (https://docs.flutter.dev/get-started/install) or use the flutter git submodule pinned in this project by running git submodule update --init inside the project root directory.

Install dependencies and generate files

  1. First, clone the repository:
git clone https://github.com/astubenbord/paperless-mobile.git

You can now run the scripts/install_dependencies.sh script at the root of the project, which will automatically install dependencies and generate files for both the app and local packages.

If you want to manually install dependencies and build generated files, you can also run the following commands:

Inside the packages/paperless_api/ folder:

  1. Install the dependencies for paperless_api
    flutter pub get
  2. Build generated files for paperless_api
     flutter pub run build_runner build --delete-conflicting-outputs

Inside the project's root folder

  1. Install the dependencies for the app
    flutter packages pub get
  2. Build generated files for the app
    flutter packages pub run build_runner build --delete-conflicting-outputs
  3. Generate the localization files for the app
    flutter gen-l10n

Build release version

In order to build a release version, you have to...

  1. Exchange the signing configuration in android/app/build.gradle from
buildTypes {
    release {
        signingConfig signingConfigs.release
    }
}

to

buildTypes {
    release {
        signingConfig signingConfigs.debug
    }
}

or use your own signing configuration as described in https://docs.flutter.dev/deployment/android#signing-the-app and leave the build.gradle as is.

  1. Build the app with release profile (here for android):
flutter build apk

The --release flag is implicit for the build command. You can also run this command with --split-per-abi, which will generate three separate (smaller) binaries.

  1. Install the app to your device (when omitting the --split-per-abi flag)
flutter install

or when you built with --split-per-abi

flutter install --use-application-binary=build/pp/outputs/flutter-apk/<apk_file_name>.apk