Skip to content

Commit

Permalink
feat: update flavors to align with backend (#192)
Browse files Browse the repository at this point in the history
* chore: upgrade Flutter and Dart

* feat: update dart configs

* feat:  update iOS project

* feat: update Android project, README

* feat: update iOS assets

* feat: update android assets

* Update launch.recommended.json
  • Loading branch information
minikin authored Dec 26, 2023
1 parent 604ae94 commit 9c6a67c
Show file tree
Hide file tree
Showing 160 changed files with 6,182 additions and 290 deletions.
155 changes: 112 additions & 43 deletions .vscode/launch.recommended.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,113 @@
{
// Recommended `launch.json` configuration
// 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": "Catalyst Voices [DEV][Debug]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"program": "lib/main_development.dart",
"args": [
"--flavor",
"development",
]
},
{
"name": "Catalyst Voices [DEV][Profile]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/main_development.dart",
"args": [
"--flavor",
"development",
]
},
{
"name": "Catalyst Voices [DEV][Release]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/main_development.dart",
"args": [
"--flavor",
"development",
]
}
]
}
// Recommended `launch.json` configuration
// 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": "Catalyst Voices [DEV][Debug]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"program": "lib/configs/main_dev.dart",
"args": ["--flavor", "dev"]
},
{
"name": "Catalyst Voices [DEV][Profile]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/configs/main_dev.dart",
"args": ["--flavor", "dev"]
},
{
"name": "Catalyst Voices [DEV][Release]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/configs/main_dev.dart",
"args": ["--flavor", "dev"]
},
{
"name": "Catalyst Voices [QA][Debug]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"program": "lib/configs/main_qa.dart",
"args": ["--flavor", "qa"]
},
{
"name": "Catalyst Voices [QA][Profile]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/configs/main_qa.dart",
"args": ["--flavor", "qa"]
},
{
"name": "Catalyst Voices [QA][Release]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/configs/main_qa.dart",
"args": ["--flavor", "qa"]
},
{
"name": "Catalyst Voices [PROD][Debug]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"program": "lib/configs/main_prod.dart",
"args": ["--flavor", "prod"]
},
{
"name": "Catalyst Voices [PROD][Profile]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/configs/main_prod.dart",
"args": ["--flavor", "prod"]
},
{
"name": "Catalyst Voices [PROD][Release]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/configs/main_prod.dart",
"args": ["--flavor", "prod"]
},
{
"name": "Catalyst Voices [PRE:PROD][Debug]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"program": "lib/configs/main_preprod.dart",
"args": ["--flavor", "preprod"]
},
{
"name": "Catalyst Voices [PRE:PROD][Profile]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"program": "lib/configs/main_preprod.dart",
"args": ["--flavor", "preprod"]
},
{
"name": "Catalyst Voices [PRE:PROD][Release]",
"cwd": "catalyst_voices",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"program": "lib/configs/main_preprod.dart",
"args": ["--flavor", "preprod"]
}
]
}
22 changes: 13 additions & 9 deletions catalyst_voices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ This repository contains the Catalyst Voices app and packages.

## Requirements

* flutter: 3.16.1+
* Dart: 3.2.0+
* flutter: 3.16.5+
* Dart: 3.2.3+
* Ruby: 2.5+
* Xcode: 15.0+
* Android Studio: Android Studio Electric Eel | 2022.1.1 +
Expand Down Expand Up @@ -59,21 +59,25 @@ melos bootstrap

This project contains 3 flavors:

* development
* staging
* production
* dev
* qa
* preprod
* prod

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

```sh
# Development
flutter run --flavor development --target lib/main_development.dart
flutter run --flavor dev --target lib/configs/main_dev.dart

# Staging
flutter run --flavor staging --target lib/main_staging.dart
# QA
flutter run --flavor qa --target lib/configs/main_qa.dart

# Pre-Production
flutter run --flavor prod --target lib/configs/main_preprod.dart

# Production
flutter run --flavor production --target lib/main_production.dart
flutter run --flavor prod --target lib/configs/main_prod.dart
```

*\*Catalyst Voices works on Web.
Expand Down
17 changes: 11 additions & 6 deletions catalyst_voices/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,22 @@ android {

flavorDimensions "default"
productFlavors {
production {
prod {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "Catalyst Voices"]
}
staging {
preprod {
dimension "default"
applicationIdSuffix ".stg"
manifestPlaceholders = [appName: "[STG] Catalyst Voices"]
applicationIdSuffix ".preprod"
manifestPlaceholders = [appName: "[PRE] Catalyst Voices"]
}
development {
qa {
dimension "default"
applicationIdSuffix ".qa"
manifestPlaceholders = [appName: "[QA] Catalyst Voices"]
}
dev {
dimension "default"
applicationIdSuffix ".dev"
manifestPlaceholders = [appName: "[DEV] Catalyst Voices"]
Expand All @@ -113,5 +118,5 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.3'
}
Loading

0 comments on commit 9c6a67c

Please sign in to comment.