-
-
Notifications
You must be signed in to change notification settings - Fork 262
Develop #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Develop #323
Changes from 43 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
cd64269
Create intl_it.arb
contusionglory 914dca9
chore: increase off timeout duration
simonoppowa 40eb482
chore: add contributors section to readme
simonoppowa 75ed0f0
v1.0.1+42
simonoppowa 34684e9
Updated GettingStarted docs.
Drexel2k 3e9c9bb
chore: enforce dart formatting in CI (#219)
TomAFrench e70d250
fix: edit base quantity reset keyboard bug
LGKentang ce35ec2
chore: enforce consistency of translations in CI (#268)
TomAFrench 5d365fe
added Ukrainian translation
Ihor-Khomenko ae1b1be
Increased limit of recently added foods.
efce918
Increased limit of recently added activities.
f06f00c
Added Czech translation.
aab6295
chore: active cz translations
simonoppowa 64ecd09
ci: exclude failing run ci step
simonoppowa 6b4c8c6
Merge pull request #203 from Kopromaster/main
simonoppowa 09504e0
Fix negative weight
Elxas866 cd5fa6f
Fix negative height
Elxas866 127c4ab
Merge pull request #285 from Elxas866/216-217-no-negative-values
simonoppowa a8f78bb
Add l10n for metric label in German
Elxas866 d3dbc7e
remove generated linux folder
Elxas866 9396db0
chore: change de metric label
simonoppowa e6d35e1
Merge pull request #283 from Elxas866/282-l10n-units-fix
simonoppowa 262ad03
chore: add uk translations
simonoppowa 52a56c2
Merge pull request #278 from Ihor-Khomenko/Ukrainian-language
simonoppowa ecf6e89
Merge remote-tracking branch 'origin/develop' into pr/271
simonoppowa 9f5a52e
Merge pull request #271 from LGKentang/fix/edit-base-quantity-keyboar…
simonoppowa c43104c
Merge remote-tracking branch 'origin/develop' into pr/254
simonoppowa 3654db1
Merge pull request #254 from Drexel2k/main
simonoppowa 2739737
chore: add it translations
simonoppowa 451dcf3
Merge pull request #228 from contusionglory/main
simonoppowa 61e8f7e
Fix single NULL value leading to empty results
Elxas866 ba43467
implement "x kcal too much" when exceeding calorie goal.
Elxas866 d7072db
fix(onboarding): move keyboard focus from height to weight
LarytheLord 9c646a2
Merge pull request #307 from Elxas866/306-fix-query-crash
simonoppowa f18e604
Merge pull request #310 from Elxas866/309-feature-show-exceeded-kcals
simonoppowa 9941a40
Merge pull request #311 from LarytheLord/fix/onboarding-next-key-243
simonoppowa 2a7a6b8
chore: add intl texts
simonoppowa 61a3787
fix(onboarding): fix weight input focus exception
simonoppowa 26203eb
1.1.0+43
simonoppowa 1b856fb
Merge pull request #322 from simonoppowa/fix-focus-node-onboarding
simonoppowa 3a92d37
Fix variable shadowing in updateTrackedDay settings_bloc.dart
Copilot 714e905
Fix getRecentlyAddedUserActivity sorting discarded on temp list
Copilot 5d221fc
Move intl_translation to dev_dependencies
Copilot e057947
Update .metadata
simonoppowa 96ddf4f
docs: fix typos
simonoppowa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,46 +1,51 @@ | ||
| # Getting Started | ||
| # Getting started | ||
| ## Android development with Windows 11 | ||
| This IDE setup ist tested on Windows 11. | ||
|
simonoppowa marked this conversation as resolved.
Outdated
|
||
|
|
||
| For setup first you need the following things: | ||
| - Flutter Version 3.27.1 | ||
| - Android SDK and Android Emulator | ||
| - Flutter | ||
| - IDE like Android Studio or VS Code with Flutter Plugin installed. | ||
|
|
||
| ## Steps to run App | ||
| 1. Clone the repository with Git | ||
| Use paths for SDKs without spaces and sepcial characers. | ||
|
simonoppowa marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```git clone https://github.com/simonoppowa/OpenNutriTracker.git``` | ||
| ### Setup Android SDK and Emulator | ||
| 1. Download Android Studio from https://developer.android.com/studio and install. Keep "Android Virtual Device" checked. Start Android Studio after installation. | ||
|
|
||
| 2. Get Dependencies | ||
| 2. Install the Android SDK when asked. | ||
|
|
||
| ```flutter pub get``` | ||
| 3. After finishing the SDK installation you should the "Welcome to Android Studio" Screen. Click on "More Actions" -> "SDK Manager", switch to "SDK Tools" tab and check "Android SDK Command-line Tools (latest)", click "OK" and install the tools. | ||
|
|
||
| 3. Run Build Runner to generate Files | ||
| 4. Check under "More Actions" -> "Virtual Device Manager" if a virtual phone was set up, if not create one, e.g. a Medium Phone with Default Settings. | ||
|
|
||
| ```flutter pub run build_runner build``` | ||
| 5. Close Android Studio. | ||
|
|
||
| ### Setup Flutter SDK | ||
| 1. Download Flutter 3.27.1 from https://docs.flutter.dev/install/archive and extract. | ||
|
|
||
| 2. Add the bin folder in the folder where you extracted Flutter to the Path variable in "Advanced System Settings" -> "Environement Variables..." -> "System variables" -> "Path" | ||
|
simonoppowa marked this conversation as resolved.
Outdated
|
||
|
|
||
| ### Setup the Workspace in Visual Studio Code (VSC) | ||
| 1. Create a new folder, open the folder in VSC. | ||
|
|
||
| 4. Run App | ||
| 2. Configure the Android SDK path for Flutter: | ||
|
|
||
| ```flutter run lib/main.dart``` | ||
| ```flutter config --android-sdk "e:\path\to\androidSDK"``` | ||
|
|
||
| ## Running the Application | ||
| 3. Clone the repository with git in a VSC terminal (make sure the active folder in the terminal is your created folder from step 1): | ||
|
|
||
| The application can be run on multiple platforms. Here are the commands for each: | ||
| ```git clone https://github.com/simonoppowa/OpenNutriTracker.git .``` | ||
|
|
||
| ### Web (Chrome) | ||
| ```bash | ||
| flutter run -d chrome | ||
| ``` | ||
| 4. Get Dependencies. | ||
|
|
||
| ```flutter pub get``` | ||
|
|
||
| 5. Run Build Runner to generate Files. | ||
|
|
||
| ```flutter pub run build_runner build``` | ||
|
|
||
| ### iOS | ||
| ```bash | ||
| open -a Simulator | ||
| flutter run | ||
| ``` | ||
| At the best revert all the visible generated files now, only env.g.dart is needed, it is not checked in because it is in .gitignore. | ||
|
|
||
| ### macOS | ||
| ```bash | ||
| flutter run -d macos | ||
| ``` | ||
| 6. Restart VSC, VSC detects now that this is a flutter project. On the Bottom Right "No Device" ist displayed, click on it, then select "Start Medium Phone" on the command Palette on the top. Wait for the phone to boot up. | ||
|
|
||
| ### Android | ||
| ```bash | ||
| flutter run -d android | ||
| ``` | ||
| 7. Press F5 to start a debug session (may taka a while on the first time). Keep the virtual phone running all the time, just start and stop Debugging. | ||
|
simonoppowa marked this conversation as resolved.
Outdated
|
||
This file contains hidden or 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 hidden or 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 hidden or 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,29 @@ | ||
| intl_output_dir := "./lib/generated/intl/" | ||
|
|
||
| # Install dependencies | ||
| install: | ||
| flutter pub get | ||
|
|
||
| # Build OpenNutriTracker | ||
| build: | ||
| flutter pub run build_runner build --delete-conflicting-outputs | ||
|
|
||
| # Format dart code | ||
| format *OPTIONS: | ||
| dart format {{OPTIONS}} ./lib ./test | ||
|
|
||
| # Regenerate intl files | ||
| run_intl: && format | ||
| dart run intl_translation:generate_from_arb --output-dir {{intl_output_dir}} lib/**/*.dart ./lib/l10n/*.arb | ||
|
|
||
| # Check if intl files are correctly generated | ||
| check_intl: run_intl | ||
| git diff --exit-code {{intl_output_dir}} | ||
|
|
||
| # Run tests | ||
| test: | ||
| flutter test | ||
|
|
||
| # Run CI checks | ||
| ci: install (format "--set-exit-if-changed") check_intl build && test | ||
| flutter analyze |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.