Skip to content

Commit

Permalink
Merge pull request #163 from studiorvandco/dev
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
maelchiotti authored Mar 15, 2024
2 parents db9e8fb + 87d732a commit 81b29e3
Show file tree
Hide file tree
Showing 316 changed files with 10,973 additions and 3,262 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUPABASE_URL=https://aktiwmbfdcbjyetnippp.supabase.co
SUPABASE_ANONKEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFrdGl3bWJmZGNianlldG5pcHBwIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODgzOTE1NTgsImV4cCI6MjAwMzk2NzU1OH0.ot6QLTuGMWs6Rc0nDeyFWUGDx2biZYpKtONcqrLlSZ8
138 changes: 138 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
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: Get version
id: version
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml'
- 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_${{ steps.version.outputs.result }}.apk
- name: Archive APK
uses: actions/upload-artifact@v3
with:
name: Android
path: build/app/outputs/flutter-apk/CPM_${{ steps.version.outputs.result }}.apk

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: Get version
run: |
choco install yq
echo "VERSION=$(yq -r .version pubspec.yaml)" >> $env:GITHUB_ENV
- name: Replace version
uses: MathieuSoysal/[email protected]
with:
file: windows/CPM.iss
old-string: 0.1.0
new-string: ${{ env.VERSION }}
- name: Build app
run: flutter build windows --release
- name: Run InnoSetup
uses: Minionguyjpro/[email protected]
with:
path: windows/CPM.iss
options: /O+
- name: Archive installer
uses: actions/upload-artifact@v3
with:
name: Windows
path: windows\Output\CPM_${{ env.VERSION }}.exe

build_publish_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: build/web
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_PAGE_ID }}
projectName: cpm-rvandco
directory: build/web
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: main
wranglerVersion: '3'

release:
name: Release
environment: release
needs: [ build_android, build_windows ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download all artifacts
uses: actions/download-artifact@v3
- name: Get version
id: version
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml'
- name: Create tag
uses: rickstaa/action-create-tag@v1
with:
tag: "v${{ steps.version.outputs.result }}"
message: "Release of Cinema Project Manager (version ${{ steps.version.outputs.result }})"
- name: Upload to releases
uses: ncipollo/release-action@v1
with:
artifacts: 'Android/CPM_${{ steps.version.outputs.result }}.apk, Windows/CPM_${{ steps.version.outputs.result }}.exe'
token: ${{ secrets.GITHUB_TOKEN }}
tag: "v${{ steps.version.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: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,9 @@ app.*.symbols
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock

# Flutter
untranslated.txt

# Tests
assets/tests
29 changes: 7 additions & 22 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
# This file should be version controlled and should not be manually edited.

version:
revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
channel: stable
revision: "2f708eb8396e362e280fac22cf171c2cb467343c"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
- platform: android
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
- platform: ios
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
- platform: linux
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
- platform: macos
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
- platform: web
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
- platform: windows
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c
base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c

# User provided section

Expand Down
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions .run/CPM.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="CPM" type="FlutterRunConfigurationType" factoryName="Flutter">
<option name="filePath" value="$PROJECT_DIR$/lib/main.dart" />
<method v="2" />
</configuration>
</component>
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.1 - 2024-03-??

Initial release.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# CPM-frontend
Frontend of Cinema Project Manager, a tool to efficiently manage the production of a cinema project
<div align="center">

![Supported platforms](https://img.shields.io/badge/Supported%20platforms-Android%20%7C%20Windows%20%7C%20Web-blue)
[![Style](https://img.shields.io/badge/Style-lint-blue)](https://pub.dev/packages/lint)

[![License](https://img.shields.io/github/license/StudioRvAndCo/CPM-frontend)](https://github.com/StudioRvAndCo/CPM-frontend/blob/main/LICENSE)
[![Release](https://img.shields.io/github/v/release/StudioRvAndCo/CPM-frontend)](https://github.com/StudioRvAndCo/CPM-frontend/releases)
[![Issues](https://img.shields.io/github/issues/StudioRvAndCo/CPM-frontend)](https://github.com/StudioRvAndCo/CPM-frontend/issues)

</div>

# CPM app

Multiplatform app of Cinema Project Manager, a tool to efficiently manage the production of a cinema project.

## Docs

See the [wiki](https://github.com/studiorvandco/cpm_app/wiki).
Loading

0 comments on commit 81b29e3

Please sign in to comment.