Go to file
Hillel Coren 13a401fbd2 Show linked invoice in sidebar 2023-12-27 15:28:13 +02:00
.github/workflows Bump version 2023-12-20 10:43:07 +02:00
android Fix for Android photos/storage permission 2023-11-14 09:39:22 +02:00
assets Update Flathub logo 2023-11-28 16:41:24 +02:00
fastlane/metadata/android/en-US remove invalid link 2023-10-25 10:49:39 +00:00
flatpak Bump version 2023-12-20 10:43:07 +02:00
ios iOS/macOS fixes for Flutter upgrade 2023-12-20 14:04:51 +02:00
lib Show linked invoice in sidebar 2023-12-27 15:28:13 +02:00
linux Flutter upgrade 2023-12-07 17:58:04 +02:00
macos iOS/macOS fixes for Flutter upgrade 2023-12-20 14:04:51 +02:00
samples Flatpak 2023-11-01 13:28:25 +02:00
snap Bump version 2023-12-20 10:43:07 +02:00
stubs Fix for back button 2023-06-06 17:36:22 +03:00
test_driver Flutter upgrade 2023-10-10 12:00:37 +03:00
web
windows Flutter upgrade 2023-12-07 13:00:17 +02:00
.gitignore Add fvm to gitignore 2023-11-27 16:19:24 +02:00
.metadata Flutter upgrade 2023-12-07 17:58:04 +02:00
LICENSE.txt
README.md Update readme 2023-11-28 16:35:37 +02:00
analysis_options.yaml Flutter upgrade 2023-10-10 12:00:37 +03:00
bump_version.sh Bump version 2023-11-01 21:39:28 +02:00
codemagic.yaml Fix Snapcraft 2023-12-07 18:41:06 +02:00
invoiceninja.iml
invoiceninja_android.iml
pubspec.foss.yaml Fix for selfhost build 2023-12-20 11:02:11 +02:00
pubspec.lock Update super_editor to fix link feature 2023-12-17 13:57:41 +02:00
pubspec.yaml Bump version 2023-12-20 10:43:07 +02:00
run_all_it_tests.sh
starter.sh Cancel button for client settings doesn't work 2023-06-04 17:57:34 +03:00

README.md

Invoice Ninja

Client application for Invoice Ninja.

Desktop Apps

Mobile Apps

Dashboard View Invoice List Invoice New Invoice

Table of Contents


Setting up the app

  • Initialize the config file

    cp lib/.env.dart.example lib/.env.dart

  • Support running the code unsigned on Android

    cp android/app/build.gradle.dev android/app/build.gradle

  • Run the app

    flutter run

Note: if you don't have an Invoice Ninja backend setup you can test the app with these credentials:

  • Email: demo@invoiceninja.com
  • Password: Password0
  • URL: demo.invoiceninja.com

Steps to remove non-FOSS code

cp android/build.gradle.foss android/build.gradle
cp lib/utils/oauth.dart.foss lib/utils/oauth.dart
cp lib/utils/app_review.dart.foss lib/utils/app_review.dart
cp lib/ui/app/upgrade_dialog.dart.foss lib/ui/app/upgrade_dialog.dart
cp lib/ui/app/pinput.dart.foss lib/ui/app/pinput.dart
cp android/app/src/main/AndroidManifest.foss.xml android/app/src/main/AndroidManifest.xml
cp pubspec.foss.yaml pubspec.yaml 
rm pubspec.lock

Application Architecture

The application was created using the Flutter Redux Starter.

The architecture is based off these two projects:

File Structure

A High-level overview of the project structure:


lib/                     # Root Package
|
├─ data/                 # For data handling
│  ├─ mock/              # sample used for testing
│  ├─ models/            # Objects representing data
│  ├─ repositories/      # Source of data
|
├─ redux/                # manages app state
│  ├─ component/         # app building block
│     ├─ actions         # methods to update app state
|     ├─ middleware      # run in response to actions, execute before reducer
|     ├─ reducer         # intercepts actions, responsible for updating the state
|     ├─ selectors       # read data from the state, queries against your 'state database'
|     ├─ state           # immutable object that lives at the top of the widget hierarchy
|
├─ ui/                   # app views
│  ├─ component/         # views for different components
│    ├─ view/            # generel view for component
│    ├─ edit/            # change values on the views fields
|
├─ utils/                # Utility classes

The ui and redux folders contain components that are paired together. Put simply you will find an 'auth' folder in both the ui and redux folders.

For additional information on Redux architecture

Blog Posts

Code generation

  • Run flutter packages pub run build_runner build --delete-conflicting-outputs to regenerate the model files. It will also remove the old generated files so conflicts are avoided..

Tests

  • Run flutter drive --target=test_driver/all_it.dart to run the tests

Credits

https://github.com/invoiceninja/invoiceninja#credits

Contributions

We gladly accept contributions! If you'd like to get involved with development please join our Slack group or Discord Server.