Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"projects": {
"default": "financial-planner-72109"
},
"targets": {
"financial-planner-72109": {
"hosting": {
"website": ["financial-planner-72109"]
}
}
}
}
22 changes: 22 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- release
paths:
- "website/**"
- ".github/workflows/firebase-hosting-merge.yml"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINANCIAL_PLANNER_72109 }}
channelId: live
projectId: financial-planner-72109
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to Firebase Hosting on PR
on:
pull_request:
paths:
- "website/**"
- ".github/workflows/firebase-hosting-pull-request.yml"
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINANCIAL_PLANNER_72109 }}
projectId: financial-planner-72109
35 changes: 17 additions & 18 deletions .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Flutter

on:
["pull_request"]
on: ["pull_request"]

jobs:
analyze:
Expand All @@ -25,9 +19,11 @@ jobs:

- name: Install Dependencies
run: flutter pub get
working-directory: mobile

- name: Analyze Code
run: flutter analyze
working-directory: mobile

build-apk:
name: Build APK
Expand All @@ -45,21 +41,22 @@ jobs:

- name: Install Dependencies
run: flutter pub get
working-directory: mobile

- name: Decode Keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/keystore.jks
echo "${{ secrets.KEYSTORE }}" | base64 --decode > mobile/android/app/keystore.jks

- name: Create key.properties
run: |
echo "storeFile=keystore.jks" > android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties

echo "storeFile=keystore.jks" > mobile/android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> mobile/android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> mobile/android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> mobile/android/key.properties

- name: Build APK
run: flutter build apk --release
working-directory: mobile

build-aab:
name: Build App Bundle
Expand All @@ -77,17 +74,19 @@ jobs:

- name: Install Dependencies
run: flutter pub get
working-directory: mobile

- name: Decode Keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/keystore.jks
echo "${{ secrets.KEYSTORE }}" | base64 --decode > mobile/android/app/keystore.jks

- name: Create key.properties
run: |
echo "storeFile=keystore.jks" > android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
echo "storeFile=keystore.jks" > mobile/android/key.properties
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" >> mobile/android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> mobile/android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> mobile/android/key.properties

- name: Build App Bundle
run: flutter build appbundle
working-directory: mobile
50 changes: 4 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,4 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# Key
android/key.properties
.vscode/
.vs/
.idea/
.DS_STORE
36 changes: 0 additions & 36 deletions .metadata

This file was deleted.

39 changes: 0 additions & 39 deletions android/app/google-services.json

This file was deleted.

Binary file removed assets/images/onboarding.png
Binary file not shown.
81 changes: 46 additions & 35 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,48 @@
{
"flutter": {
"platforms": {
"android": {
"default": {
"projectId": "financial-planner-72109",
"appId": "1:859455980881:android:8f21d0626a1810ac903f70",
"fileOutput": "android/app/google-services.json"
}
},
"dart": {
"lib/firebase_options.dart": {
"projectId": "financial-planner-72109",
"configurations": {
"android": "1:859455980881:android:8f21d0626a1810ac903f70"
}
}
}
}
},
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"emulators": {
"auth": {
"port": 9099
},
"firestore": {
"port": 8080
},
"ui": {
"enabled": true
},
"singleProjectMode": true
}
"flutter": {
"platforms": {
"android": {
"default": {
"projectId": "financial-planner-72109",
"appId": "1:859455980881:android:8f21d0626a1810ac903f70",
"fileOutput": "android/app/google-services.json"
}
},
"dart": {
"lib/firebase_options.dart": {
"projectId": "financial-planner-72109",
"configurations": {
"android": "1:859455980881:android:8f21d0626a1810ac903f70"
}
}
}
}
},
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"emulators": {
"auth": {
"port": 9099
},
"firestore": {
"port": 8080
},
"ui": {
"enabled": true
},
"singleProjectMode": true
},
"hosting": [
{
"target": "website",
"public": "website",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
]
}
Loading