-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from studiorvandco/dev
v1.0.0
- Loading branch information
Showing
316 changed files
with
10,973 additions
and
3,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
Oops, something went wrong.