Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ICTASL/MyHealthApp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.7
Choose a base ref
...
head repository: ICTASL/MyHealthApp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 4,606 additions and 1,373 deletions.
  1. +38 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +20 −0 .github/ISSUE_TEMPLATE/feature_request.md
  3. +102 −0 .github/workflows/main.yml
  4. +3 −0 .gitignore
  5. +52 −0 CONTRIBUTION_GUIDE.MD
  6. +661 −0 LICENSE.txt
  7. +3 −3 README.md
  8. +17 −0 android/.project
  9. +13 −0 android/.settings/org.eclipse.buildship.core.prefs
  10. +6 −0 android/app/.classpath
  11. +23 −0 android/app/.project
  12. +2 −0 android/app/.settings/org.eclipse.buildship.core.prefs
  13. +10 −4 android/app/build.gradle
  14. +19 −25 android/app/src/main/AndroidManifest.xml
  15. +37 −18 android/app/src/main/kotlin/app/ceylon/selftrackingapp/MainActivity.kt
  16. +3 −0 android/app/src/main/kotlin/app/ceylon/selftrackingapp/dao/LocationDao.kt
  17. +7 −2 android/app/src/main/kotlin/app/ceylon/selftrackingapp/service/LocationReceiver.kt
  18. +48 −4 android/app/src/main/kotlin/app/ceylon/selftrackingapp/service/LocationTrackingService.kt
  19. BIN android/app/src/main/res/drawable/ic_launcher.png
  20. BIN android/app/src/main/res/drawable/ic_stat_ic_notification.png
  21. +2 −1 android/app/src/main/res/drawable/launch_background.xml
  22. BIN android/app/src/main/res/drawable/launch_background_img.png
  23. BIN android/app/src/main/res/mipmap-hdpi/ic_stat_ic_notification.png
  24. BIN android/app/src/main/res/mipmap-mdpi/ic_stat_ic_notification.png
  25. BIN android/app/src/main/res/mipmap-xhdpi/ic_stat_ic_notification.png
  26. BIN android/app/src/main/res/mipmap-xxhdpi/ic_stat_ic_notification.png
  27. BIN android/app/src/main/res/mipmap-xxxhdpi/ic_stat_ic_notification.png
  28. BIN android/app/src/main/res/mipmap/ic_launcher.png
  29. +2 −1 android/build.gradle
  30. +2 −2 android/gradle/wrapper/gradle-wrapper.properties
  31. +1 −0 android/settings_aar.gradle
  32. +60 −12 assets/data/constant_data.json
  33. +214 −0 assets/hospitals.json
  34. +1 −0 assets/images/add_ic_call_24px.svg
  35. +1 −0 assets/images/ambulance.svg
  36. +1 −0 assets/images/announcement_24px.svg
  37. BIN assets/images/bg.png
  38. +1 −0 assets/images/casefinder_24px.svg
  39. +1 −0 assets/images/contactus_24px.svg
  40. +25 −0 assets/images/death.svg
  41. +1 −0 assets/images/home_24px.svg
  42. BIN assets/images/hospital_sign_map.png
  43. +1 −0 assets/images/locateme_24px.svg
  44. BIN assets/images/medical_consultion.png
  45. +2 −0 assets/images/rehabilitation.svg
  46. BIN assets/images/stay_safe.png
  47. +1 −0 assets/images/suspect.svg
  48. BIN assets/images/welcome_screen_bg.png
  49. +54 −5 assets/lang/en.json
  50. +64 −20 assets/lang/si.json
  51. +111 −63 assets/lang/ta.json
  52. +31 −10 ios/Podfile.lock
  53. +10 −0 ios/Runner.xcodeproj/project.pbxproj
  54. +1 −67 ios/Runner/AppDelegate.swift
  55. +6 −9 ios/Runner/Info.plist
  56. +11 −2 lib/constants.dart
  57. +73 −15 lib/main.dart
  58. +23 −27 lib/models/contact_us_contact.dart
  59. +3 −3 lib/models/location.dart
  60. +1 −1 lib/models/reported_case.dart
  61. +14 −13 lib/networking/api_client.dart
  62. +1 −0 lib/networking/data_repository.dart
  63. +15 −7 lib/networking/db.dart
  64. +1 −1 lib/page/ios_faq.dart
  65. +234 −0 lib/page/screen/case_details_map_screen.dart
  66. +228 −150 lib/page/screen/case_details_screen.dart
  67. +232 −221 lib/page/screen/case_list_screen.dart
  68. +209 −79 lib/page/screen/contact_us_screen.dart
  69. +318 −261 lib/page/screen/dashboard_screen.dart
  70. +66 −0 lib/page/screen/faq_screen.dart
  71. +151 −73 lib/page/screen/news_detail_screen.dart
  72. +2 −1 lib/page/screen/news_details_screen.dart
  73. +99 −0 lib/page/screen/pharamacy_list_screen.dart
  74. +40 −35 lib/page/screen/privacy_policy_screen.dart
  75. +111 −0 lib/page/screen/qr_scan_screen.dart
  76. +59 −0 lib/page/screen/qr_webview_screen.dart
  77. +253 −92 lib/page/screen/root_screen.dart
  78. +22 −14 lib/page/screen/selected_case_detail_screen.dart
  79. +102 −60 lib/page/screen/user_register_screen.dart
  80. +137 −13 lib/page/screen/welcome_screen.dart
  81. +57 −14 lib/widgets/case_item.dart
  82. +187 −0 lib/widgets/case_item_map_detail.dart
  83. +33 −0 lib/widgets/custom_text.dart
  84. +237 −41 pubspec.lock
  85. +30 −4 pubspec.yaml
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
102 changes: 102 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: CI

on:
push:
branches: [ master ]
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-alpha*
- v[0-9]+.[0-9]+.[0-9]+-beta*
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Set build mode
run: |
BUILD_MODE='debug'
if [[ "${GITHUB_REF}" =~ ^refs\/tags\/v* ]]; then
BUILD_MODE='release'
elif [[ "${GITHUB_REF}" =~ ^refs\/heads\/master$ ]]; then
BUILD_MODE='release'
fi
echo "Build mode: ${BUILD_MODE}"
echo "::set-env name=BUILD_MODE::${BUILD_MODE}"
- uses: actions/checkout@v2

- uses: actions/setup-java@v1
with:
java-version: '8.x'

- uses: subosito/flutter-action@v1
with:
flutter-version: '1.12.13+hotfix.9'

- run: flutter pub get

# - run: flutter analyze TODO: enable after fixing the issues in code

- run: flutter test

- name: Generate Android key store file
if: ${{ env.BUILD_MODE == 'release' }}
run: echo "${SIGNING_KEY}" | openssl base64 -d -out key.jks
working-directory: ${{ github.workspace }}/android
env:
SIGNING_KEY: ${{ secrets.AndroidSigningKeyBase64 }}

- name: Generate Android key.properties file
if: ${{ env.BUILD_MODE == 'release' }}
run: |
echo "storePassword=${STORE_PASSWORD}" >> key.properties
echo "keyPassword=${KEY_PASSWORD}" >> key.properties
echo "keyAlias=key" >> key.properties
echo "storeFile=../key.jks" >> key.properties
working-directory: ${{ github.workspace }}/android
env:
STORE_PASSWORD: ${{ secrets.AndroidStorePassword }}
KEY_PASSWORD: ${{ secrets.AndroidKeyPassword }}

- name: Build Android packages
run: flutter build apk "--${BUILD_MODE}" --target-platform android-arm,android-arm64,android-x64 --split-per-abi

- name: Upload Android release artifacts
if: ${{ env.BUILD_MODE == 'release' }}
uses: actions/upload-artifact@v1
with:
name: android_release
path: "build/app/outputs/apk/release"

- name: Upload Android debug artifacts
if: ${{ env.BUILD_MODE == 'debug' }}
uses: actions/upload-artifact@v1
with:
name: android_debug
path: "build/app/outputs/apk/debug"

release:
runs-on: ubuntu-latest
needs: build
if: success() && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Generate version string
run: echo "::set-env name=VERSION_STR::${GITHUB_REF##*/}"

- uses: actions/download-artifact@v1
with:
name: android_release

- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "android_release/*.apk"
name: Release ${{ env.VERSION_STR }}
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
tag: ${{ env.VERSION_STR }}
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@
.history
.svn/

# Visual Studio Code related
.vscode/

# IntelliJ related
*.iml
*.ipr
52 changes: 52 additions & 0 deletions CONTRIBUTION_GUIDE.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Contributing to the COVID-19 Sri Lankan App

Welcome and thank you for opting to contribute to our project! This is an Open Source Project developed by the Information and Communication Technology Agency of Sri Lanka (ICTA), with the extensive collaboration of the relevant stakeholders for the community under the patronage of the Government of Sri Lanka.

All members in this project are expected to follow and adhere to our [Code of Conduct](https://docs.google.com/document/d/1as4zuQx0xisLtgNqYZYEtbGaBXFB6FxdJw_b2-e9YFM/edit#), please make sure to go through it.

## Table of Contents

- [Repositories](https://docs.google.com/document/d/1GQD7_lD0HfW1v6q7xDGHgY8OoPiTKgQsQARQdJHDHKo/edit#heading=h.7z89lqh1pong)

- [Getting Started](https://docs.google.com/document/d/1GQD7_lD0HfW1v6q7xDGHgY8OoPiTKgQsQARQdJHDHKo/edit#heading=h.o3ckrsq1dbyf)

- [License](https://docs.google.com/document/d/1GQD7_lD0HfW1v6q7xDGHgY8OoPiTKgQsQARQdJHDHKo/edit#heading=h.o8toamvqv9jm)


## Repositories

The following GitHub repositories are used:

- [https://github.com/ayubowan/selft_tracking_app](https://github.com/ayubowan/selft_tracking_app) - Repository for the COVID-19 self-track app

- [https://github.com/ICTASL/COVID-19](https://github.com/ICTASL/COVID-19) - Repository for the backend services needed for the COVID-19 self-tracking app



All completed documentation related to the project can be found here:

- [https://groups.google.com/forum/#!topic/govtechlk-corona/jlk4wDdbzT8](https://groups.google.com/forum/#!topic/govtechlk-corona/jlk4wDdbzT8)


## Getting Started

- Download or clone the [repositories](https://docs.google.com/document/d/1GQD7_lD0HfW1v6q7xDGHgY8OoPiTKgQsQARQdJHDHKo/edit#heading=h.7z89lqh1pong).

- Install [Flutter](https://flutter.dev/) to update the codebase and fix issues.

- Read our [Code of Conduct](https://docs.google.com/document/d/1as4zuQx0xisLtgNqYZYEtbGaBXFB6FxdJw_b2-e9YFM/edit#) (if you have not done so already).

- Read our [design documentation](https://docs.google.com/document/d/1sTe8a-uMpDEEFKnIDeP-SGTmHvTEdhJreiOfRGJpdN4/edit) to understand the scope of the project.

- Join our public [Slack channel](https://join.slack.com/t/govtechlk/shared_invite/zt-cmk8k1z7-qUM~LqxNv1jcDLCwGGbzJA).

- Report issues/bugs on our respective GitHub [repositories](https://docs.google.com/document/d/1GQD7_lD0HfW1v6q7xDGHgY8OoPiTKgQsQARQdJHDHKo/edit#heading=h.7z89lqh1pong), join the conversations on new features, comment on other issues, and send your pull requests.


Tip: Not sure if you found a bug? Search existing issues in the corresponding repository on GitHub and raise it on our Slack channel.

## License

- The source code is licensed under [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0).

- Content is licensed under [CC By 4.0](https://creativecommons.org/licenses/by/4.0/).
Loading