Skip to content

Commit

Permalink
New front (#77)
Browse files Browse the repository at this point in the history
* members and locations working

* members and locations working

* handle login (remove routes)

* simplify login

* add projects and episodes

* Format Dart code

* add planning + improve add/edit/delete operations

* improve theme state + add sequences and shots states

* home page navigation

* renaming

* complete providers and services for sequences and shots

* login and token are saved

* use riverpod for theme

* add splash screen

* add splash screen

* update images

* remove svgs

* redo logos and icons + improve login page

* improved logos

* improve logos

* add back favorite icon

* improve bottom sheet

* improve bottom sheets

* improve textfields and error/loading placeholders

* handle back button

* use gridview

* Format Dart code

* add add() methods to sequences and shots

* add delete methods

* fix header colors in light theme

* move dialogs in widgets

* fix imports

* clean dialogs code

* fix providers add bug of not getting the ids

* improve members list tiles

* improve icons

* fix

* start changing planning page

* remove placeholder episode in movie

* Linting

* Formatting

* Linting

* Add TODO

* Linting & formatting

* Fix projects API

* Add badges to readme

* Center badges

* Center badges

* Remove center

* Add style

* Update CI

* Upgrade Dart SDK

* Upgrade Dart SDK

* Analyze as fatal infos

* Fix

* Add cache

* Add build

* Add dummy test

* Format

* Add dummy test

* Format

* Add dummy test

* Fix build action

* Fixes

* Update ProjectType + Fixes

* Fix project type

* Upgrade dependencies

* Add auto serialization for project

* Improve CI

* Improve CI

* Add secure storage and installation instructions

* Add build action

* Update artifact path

* Add config file

* Try fix echo

* Try fix echo

* Try fix echo

* Try fix echo

* Add build for all platforms

* Fix linux

* Fix echos

* Remove mac/ios builds

* Fix names

* Fix linux build

* Fix build names

* Add icon

* Add MSI

* Fix MSI

* Fix MSI

* Try fix MSI

* Remove useless path

* Try fix linux

* Fix linux build

* Update build CI

* Update README with links

* CPMF-81/92/93 : Releases

Add automatic build and release to the CI #81
Améliorer les metadata du MSI #92
Enable MSI installation to be found in windows search #93

* Sign the Android APK (#96)

CPMF-83

* [CPMF-91] Add links to project (#97)

* [CPMF-91] Update config with local API URL

* [CPMF-91] Add links to project model

* [CPMF-91] [WIP] Add basic ListView of the links

* [CPMF-91] Add the list of buttons to the project header

* [CPMF-91] Add TextFields to edit the links

* [CPMF-91] Improve text fields

* [CPMF-91] Use a menu for actions on the links

* [CPMF-91] Add ability to add links
TODO: bug when deleting

* [CPMF-91] Use Link class

* [CPMF-91] Add deletion

* [CPMF-91] Reorder

* [CPMF-91] Update build information

* [CPMF-91] Format

* [CPMF-91] Update config

* [CPMF-91] Improve header padding

* [CPMF-91] Improve link editor focus

* [CPMF-91] Fix link update

* [CPMF-91] Add URL validator

* [CPMF-91] Disable open link buttons if URL is invalid

* [CPMF-91] Add translations

* [CPMF-91] Add translations

* [CPMF-91] Add scrollbar
Improve platform identification

* [CPMF-91] Fix lint

* [CPMF-91] Format

* [CPMF-91] Fix Platform usage on web

* [CPMF-91] Improve platform identification

* Fix project creation (#102)

* [CPMF-101] Re-generate files

* [CPMF-101] Fix project creation

* [CPMF-101] Lint

* [CPMF100] Fix api path (#104)

* [CPMF-99] Add logout confirmation

* [CPMF-100] Fix / at the end of API URL

* Move build instructions to wiki

* [CPMF80] Ajout Supabase (#107)

* [CPMF-99] Add logout confirmation

* [CPMF-100] Fix / at the end of API URL

* [CPMF-80] Create folders

* [CPMF-80] Update Episode model

* [CPMF-80] Small fixes

* [CPMF-80] Init supabase

* [CPMF-80] [WIP] Migrate services to Supabase

* [CPMF-80] [WIP] Migrate services to Supabase

* [CPMF-80] Add all supabase providers, update models and fix issues accordingly

* [CPMF-80] Fix members

* [CPMF-80] [WIP] fix links

* [CPMF-80] Fix links moving

* [CPMF-80] Add director and writer texts back

* [CPMF-80] Improve services

* [CPMF-80] Move providers to folders

* [CPMF-80] Order sequences

* [CPMF-80] Fix links edit

* [CPMF-80] Fix movie service

* [CPMF-80] Fix shots

* [CPMF-80] Finish members

* [CPMF-80] Fix locations

* [CPMF-80] Fix adding episode/sequence/shot

* [CPMF-80] Fix episode/sequence/shot indexing

* [CPMF-80] Fix episode/sequence/shot indexing

* [CPMF-80] Format

* Update providers and services to add a sequence-location

* Remove useless code

* [CPMF-80] Generate files

* [CPMF-80] Update config for supabase

* [CPMF-80] Remove print

* Generate files

* [CPMF-80] Add a location to a sequence

* [CPMF-80] Get and display sequence's location

* [CPMF-80] Remove useless mixin

* [CPMF-80] Edit the location of a sequence

* [CPMF-80] Fix changing sequence location

* [CPMF-80] Format

---------

Co-authored-by: Maël Chiotti <mael.chiotti@qiminfo.com>

---------

Co-authored-by: Studio Rv & Co <studio.rvandco@gmail.com>
Co-authored-by: Maël Chiotti <mael.chiotti@qiminfo.com>
  • Loading branch information
3 people committed Sep 1, 2023
1 parent 6bf3a95 commit 7c9d704
Show file tree
Hide file tree
Showing 281 changed files with 6,510 additions and 4,856 deletions.
161 changes: 161 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
name: Build | Release

on:
push:
branches:
- main

jobs:
build_android:
name: Android
environment: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Add configuration
run: echo "${{ vars.CONFIG }}" > assets/config/config.yaml
- name: Add keystore
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > android/studiorvandco_keystore.jks
- name: Add key properties
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties
- name: Build app
run: flutter build apk --release
- name: Rename APK
run: mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/CPM_Android.apk
- name: Archive APK
uses: actions/upload-artifact@v3
with:
name: Android
path: build/app/outputs/flutter-apk/CPM_Android.apk

# TODO: build and release
build_ios:
name: iOS
environment: release
runs-on: macos-latest
steps:
- run: echo TODO

build_windows:
name: Windows
environment: release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Add config
run: echo "${{ vars.CPM_CONFIG }}" > assets/config/config.yaml
- name: Build app
run: flutter build windows --release
- name: Create setup directory
run: mkdir setup
- name: Get version
run: |
choco install yq
echo "VERSION=$(yq -r .version pubspec.yaml)" >> $env:GITHUB_ENV
- name: Build MSI
uses: caphyon/advinst-github-action@v1.0
with:
aip-path: 'Cinema Project Manager.aip'
aip-build-name: 'DefaultBuild'
aip-package-name: 'CPM_Windows.msi'
aip-commands: |
SetVersion ${{ env.VERSION }}
- name: Archive MSI
uses: actions/upload-artifact@v3
with:
name: Windows
path: ${{ github.workspace }}/setup/CPM_Windows.msi

# TODO: release
build_linux:
name: Linux
environment: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install required packages
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
sudo apt-get install -y libsecret-1-dev libjsoncpp-dev
- name: Add config
run: echo "${{ vars.CPM_CONFIG }}" > assets/config/config.yaml
- name: Build app
run: flutter build linux --release
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Linux
path: build/linux/x64/release/bundle

# TODO: build and release
build_macos:
name: MacOS
environment: release
runs-on: macos-latest
steps:
- run: echo TODO

# TODO: release
build_web:
name: Web
environment: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Add config
run: echo "${{ vars.CPM_CONFIG }}" > assets/config/config.yaml
- name: Build app
run: flutter build web --release
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Web
path: web

release:
name: Release
environment: release
needs: [ build_android, build_ios, build_windows, build_linux, build_macos, build_web ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Get version
id: yq
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml'
- name: Upload to releases
uses: ncipollo/release-action@v1
with:
artifacts: 'Android/CPM_Android.apk, Windows/CPM_Windows.msi'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.yq.outputs.result }}
25 changes: 0 additions & 25 deletions .github/workflows/dart.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint | Test

on: [ push, pull_request ]

permissions: read-all

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: |
flutter pub get
dart analyze --fatal-infos
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart format -l 120 --set-exit-if-changed ./lib ./test

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter test
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,7 @@ app.*.symbols
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock

# Private settings
assets/config/config.yaml
# Setup files
Cinema Project Manager-cache/
setup/
config.yaml
Loading

0 comments on commit 7c9d704

Please sign in to comment.