-
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.
feat: create flutter app for Web & macOS
- Loading branch information
1 parent
701b1d1
commit 9d0e7b5
Showing
86 changed files
with
3,007 additions
and
1 deletion.
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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "pub" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,28 @@ | ||
name: "Deploy Web App to Github Pages" | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
# - run: flutter pub run build_runner build --delete-conflicting-outputs | ||
- run: flutter config --enable-web | ||
- run: flutter build web --release --target lib/main_production.dart | ||
- run: git config user.name github-actions | ||
- run: git config user.email [email protected] | ||
- run: git --work-tree build/web add --all | ||
- run: git add .well-known --all | ||
- run: git add _config.yml | ||
- run: git commit -m "Automatic deployment by github-actions" | ||
- run: git push origin HEAD:gh-pages --force |
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,22 @@ | ||
name: luckuveryx | ||
|
||
concurrency: | ||
group: $-$ | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 | ||
with: | ||
flutter_channel: stable | ||
min_coverage: 0 | ||
# setup: "flutter pub run build_runner build --delete-conflicting-outputs" | ||
|
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,111 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/* | ||
|
||
# Visual Studio Code related | ||
.classpath | ||
.project | ||
.settings/ | ||
.vscode/* | ||
|
||
# packages file containing multi-root paths | ||
.packages.generated | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
build/ | ||
flutter_*.png | ||
linked_*.ds | ||
unlinked.ds | ||
unlinked_spec.ds | ||
.fvm/ | ||
|
||
# Android related | ||
**/android/**/gradle-wrapper.jar | ||
**/android/.gradle | ||
**/android/captures/ | ||
**/android/local.properties | ||
**/android/**/GeneratedPluginRegistrant.java | ||
**/android/key.properties | ||
**/android/.idea/ | ||
**/android/app/debug | ||
**/android/app/profile | ||
**/android/app/release | ||
*.jks | ||
|
||
# iOS/XCode related | ||
**/ios/**/*.mode1v3 | ||
**/ios/**/*.mode2v3 | ||
**/ios/**/*.moved-aside | ||
**/ios/**/*.pbxuser | ||
**/ios/**/*.perspectivev3 | ||
**/ios/**/*sync/ | ||
**/ios/**/.sconsign.dblite | ||
**/ios/**/.tags* | ||
**/ios/**/.vagrant/ | ||
**/ios/**/DerivedData/ | ||
**/ios/**/Icon? | ||
**/ios/**/Pods/ | ||
**/ios/**/.symlinks/ | ||
**/ios/**/profile | ||
**/ios/**/xcuserdata | ||
**/ios/.generated/ | ||
**/ios/Flutter/App.framework | ||
**/ios/Flutter/Flutter.framework | ||
**/ios/Flutter/Flutter.podspec | ||
**/ios/Flutter/Generated.xcconfig | ||
**/ios/Flutter/app.flx | ||
**/ios/Flutter/app.zip | ||
**/ios/Flutter/.last_build_id | ||
**/ios/Flutter/flutter_assets/ | ||
**/ios/Flutter/flutter_export_environment.sh | ||
**/ios/ServiceDefinitions.json | ||
**/ios/Runner/GeneratedPluginRegistrant.* | ||
|
||
# Coverage | ||
coverage/ | ||
|
||
# Submodules | ||
packages/**/pubspec.lock | ||
|
||
# Web related | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Exceptions to the above rules. | ||
!**/ios/**/default.mode1v3 | ||
!**/ios/**/default.mode2v3 | ||
!**/ios/**/default.pbxuser | ||
!**/ios/**/default.perspectivev3 | ||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages | ||
!/dev/ci/**/Gemfile.lock | ||
!.vscode/extensions.json | ||
!.vscode/launch.json | ||
!.idea/codeStyles/ | ||
!.idea/dictionaries/ | ||
!.idea/runConfigurations/ |
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,30 @@ | ||
# 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 and should not be manually edited. | ||
|
||
version: | ||
revision: "2f708eb8396e362e280fac22cf171c2cb467343c" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c | ||
base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c | ||
- platform: macos | ||
create_revision: 2f708eb8396e362e280fac22cf171c2cb467343c | ||
base_revision: 2f708eb8396e362e280fac22cf171c2cb467343c | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
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,50 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch macOS development", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_development.dart", | ||
"args": ["--target", "lib/main_development.dart"] | ||
}, | ||
{ | ||
"name": "Launch macOS staging", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_development.dart", | ||
"args": ["--target", "lib/main_staging.dart"] | ||
}, | ||
{ | ||
"name": "Launch macOS production", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_development.dart", | ||
"args": ["--target", "lib/main_production.dart"] | ||
}, | ||
{ | ||
"name": "Launch development", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_development.dart", | ||
"args": ["--flavor", "development", "--target", "lib/main_development.dart"] | ||
}, | ||
{ | ||
"name": "Launch staging", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_staging.dart", | ||
"args": ["--flavor", "staging", "--target", "lib/main_staging.dart"] | ||
}, | ||
{ | ||
"name": "Launch production", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "lib/main_production.dart", | ||
"args": ["--flavor", "production", "--target", "lib/main_production.dart"] | ||
} | ||
] | ||
} |
Oops, something went wrong.