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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'feat: Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
To get a local copy up and running follow these simple steps.
- 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.
- 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:
- Install the dependencies for
paperless_api
flutter pub get
- Build generated files for
paperless_api
flutter pub run build_runner build --delete-conflicting-outputs
- Install the dependencies for the app
flutter packages pub get
- Build generated files for the app
flutter packages pub run build_runner build --delete-conflicting-outputs
- Generate the localization files for the app
flutter gen-l10n
In order to build a release version, you have to...
- 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.
- 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.
- 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