Skip to content
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

git actions for build apk #630

Closed
wants to merge 274 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
0566354
HLM-6132:: Disabled Enter manual code for GS1 codes, and Changed the …
Ramkrishna-egov Jun 11, 2024
0ff5747
Updated packages version and change log files
Ramkrishna-egov Jun 11, 2024
cbef96d
published registration_delivery and updated pubspec of hcm app
naveenr-egov Jun 11, 2024
cd06ee9
added master enum for firebase config
naveenr-egov Jun 12, 2024
5832266
Merge branch 'registration-datamodel-update' into HLM-5998
naveenr-egov Jun 12, 2024
66ab35a
updated permissions for foreground in manifest
naveenr-egov Jun 14, 2024
a48ecdf
documentation in sync package
naveenr-egov Jun 17, 2024
2fc523b
HLM-6246 fix
naveenr-egov Jun 18, 2024
ce06249
updated dart_mappable_builder to latest version
naveenr-egov Jun 18, 2024
6b23f21
Updated scripts
naveenr-egov Jun 18, 2024
91e9cbb
added translator for administration area
naveenr-egov Jun 21, 2024
3e70663
Fixed Facility search based on tenant ID
Ramkrishna-egov Jun 27, 2024
4813190
Added disable battery optimization permission for background service
Ramkrishna-egov Jun 27, 2024
069e530
Added disable battery optimization ask permission on App start and ba…
Ramkrishna-egov Jun 28, 2024
b1005a3
HLM-5984:: Get Precise location on Submitting latitude longitude details
Ramkrishna-egov Jul 1, 2024
64fe375
Reverted install_bricks.sh
Ramkrishna-egov Jul 1, 2024
a1f30f2
removed validation for latitude for HLM-6246 fix
naveenr-egov Jul 4, 2024
d6a65a5
Merge branch 'v1.4-master-hotfix' into HLM-6000
naveenr-egov Jul 5, 2024
a60bac3
mobile number validation in individual_details.dart as per new versio…
naveenr-egov Jul 5, 2024
978baf5
added default curve for digit_stepper.dart
naveenr-egov Jul 8, 2024
e8ca9c5
Updated the integer form picker and added a new text block component …
rachana-egov Jul 8, 2024
150c83e
updated description for household location and details page (#443)
rachana-egov Jul 9, 2024
63ec9ac
qr_scanner fix - HLM-6411
naveenr-egov Jul 9, 2024
9b7c6e1
updated custom validator for minlength 2 and not null check with upda…
naveenr-egov Jul 9, 2024
b390081
replaced product variant dropdown to selection card (#445)
rachana-egov Jul 10, 2024
a93df14
HLM-6283:: IRS- Household Details Fields added (#444)
Ramkrishna-egov Jul 10, 2024
86eb01a
Updated checklist for a new type boolean (#446)
rachana-egov Jul 10, 2024
3b0ba14
HLM-6282 and HLM-6283:: House Structure Details Page added (#447)
Ramkrishna-egov Jul 11, 2024
b6f96c2
integrated checklist inside the beneficiary flow and updated gender f…
rachana-egov Jul 11, 2024
9001274
HLM-6371:: Beneficiary Registration Summary Page (#452)
Ramkrishna-egov Jul 11, 2024
e7178da
Added refused delivery page (#451)
rachana-egov Jul 12, 2024
63e4824
No delivery flow page (#453)
rachana-egov Jul 12, 2024
40ad143
HLM-6367:: Auto Create project beneficiary (#454)
Ramkrishna-egov Jul 15, 2024
1177a6d
Hlm 6414 - MDMS StatusFilter, Filter search (#448)
naveenr-egov Jul 15, 2024
9493093
HCMPRE-98 Filter search pagination, Removed private PageState (#457)
naveenr-egov Jul 17, 2024
2e7ad26
Created a new package for marking closed household (#459)
rachana-egov Jul 18, 2024
9ba7186
HCMPRE-98 - Inventory TeamCode fixes, Filter search fixes (#460)
naveenr-egov Jul 18, 2024
888fdb2
Hcmpre 118 - Closed Household, Filter improvements, Bug fixes (#467)
naveenr-egov Jul 23, 2024
09c7508
Hcmpre 155 - ClosedHousehold flow change (#478)
naveenr-egov Jul 28, 2024
b28be04
Implement search pagination (#476)
rachana-egov Jul 29, 2024
2c2e7c3
localization update, input validation for numeric, disabled delivery …
rachana-egov Jul 29, 2024
0cce089
Hcmpre 164, 165 - Count implementation for filter search (#485)
naveenr-egov Aug 2, 2024
4d26bb7
fixed reports are not getting refreshed after updating facility (#486)
rachana-egov Aug 2, 2024
ee8099f
Delivery summary page Resources and quantity added (#473)
Ramkrishna-egov Aug 2, 2024
244f2cb
updated script for closed household (#489)
rachana-egov Aug 5, 2024
1ca409c
Hcmpre 166 - Moved Localization from ISAR To SQL (#488)
naveenr-egov Aug 5, 2024
6e0b52e
Removed null condition, fixed double is not a subtype of string issue…
rachana-egov Aug 5, 2024
07b7da9
HCMPRE-177:: Metric and Table Charts Integration in Mobile dashboard …
Ramkrishna-egov Aug 6, 2024
5860ae2
HCMPRE-177:: Fetch and send attendees uuids of registers to dss filte…
Ramkrishna-egov Aug 6, 2024
caa1c5f
Task update rather than creating new, updated filter popup loading (#…
rachana-egov Aug 6, 2024
dcd1a67
updated status and registration_delivery_enums.dart (#494)
naveenr-egov Aug 7, 2024
478a4b6
Uploaded pre release for inventory-management and digit-dss (#495)
Ramkrishna-egov Aug 7, 2024
37afaf1
removed the page count from filter, updated status filter pop up (#496)
rachana-egov Aug 8, 2024
5cce00b
updated demo changes (#498)
rachana-egov Aug 8, 2024
c4c3de0
added lat and long inside additional field when user submit the check…
rachana-egov Aug 14, 2024
1b0a993
HCMPRE-221 data segration (#501)
naveen-egov Aug 19, 2024
162b89f
Added Privacy Policy (#499)
rachana-egov Aug 26, 2024
d1a8046
HCMPRE-332:: Mobile dashboard added check for lastSyncTime to convert…
Ramkrishna-egov Aug 26, 2024
c6f0449
Hcmpre 263 - Sync write transaction for ISAR - fix, Localization fall…
naveenr-egov Aug 27, 2024
6b80b8f
Impel changes - background-services, beneficiary_checklist (#548)
naveenr-egov Aug 27, 2024
fbe1a4c
resolved code rabbit comments (#549)
naveenr-egov Aug 27, 2024
7e42940
privacy policy config issue fix (#550)
rachana-egov Aug 28, 2024
78dd3f3
fixed text ellipse issue (#553)
rachana-egov Aug 28, 2024
6f28bee
Merge remote-tracking branch 'refs/remotes/origin/HLM-5998' into HCMP…
naveenr-egov Aug 29, 2024
30b6396
updated sync package with dev
naveenr-egov Aug 29, 2024
f40558a
Resource validation added (#555)
rachana-egov Aug 30, 2024
7ff5507
UAT fixes, HCMPRE-412 (#556)
naveenr-egov Aug 30, 2024
9ad9ea9
removed dialog closing function from language page (#560)
rachana-egov Aug 30, 2024
b2e458c
Merge branch 'develop' into HCMPRE-355
naveenr-egov Sep 2, 2024
9257fdc
Merge remote-tracking branch 'origin/HLM-6000' into HCMPRE-355
naveenr-egov Sep 4, 2024
8d673c5
pulled 6000 changes for pub upgrade
naveenr-egov Sep 4, 2024
af767d6
Merge remote-tracking branch 'origin/HLM-6002' into HCMPRE-355
naveenr-egov Sep 4, 2024
d6272f0
pulled 6000 changes for pub upgrade
naveenr-egov Sep 4, 2024
15bfebf
reverted auto_route module changes as latest auto_route generator is …
naveenr-egov Sep 5, 2024
fccdbcd
Merge branch 'develop' into HCMPRE-355
naveenr-egov Sep 5, 2024
ea28053
Updated dart yml file to incorporate the latest flutter version
naveenr-egov Sep 5, 2024
033b205
Updated melos.yaml
naveenr-egov Sep 5, 2024
c2596f3
added flutter clean for .dart tool not found error
naveenr-egov Sep 5, 2024
e5bf02a
inventory package dart analyze fixes
naveenr-egov Sep 5, 2024
218e9d0
attendance package dart analyze fixes
naveenr-egov Sep 5, 2024
54b40b5
closed_household package dart analyze fixes
naveenr-egov Sep 5, 2024
2cae9a0
digit_dss package dart analyze fixes
naveenr-egov Sep 6, 2024
8af4cdf
registration_delivery, scanner, referral package dart analyze fixes
naveenr-egov Sep 6, 2024
fdf239e
updated melos yaml - deleted generate-flutter
naveenr-egov Sep 9, 2024
3b02155
updated dart.yml to remove caching
naveenr-egov Sep 9, 2024
2292849
updated dart.yml - reverted generate-flutter and removed dart
naveenr-egov Sep 9, 2024
4fc693a
updated data_model and components versions
naveenr-egov Sep 9, 2024
b9b65bb
Removed privacy policy from main app to digit component (#569)
rachana-egov Sep 10, 2024
7fd8359
created custom annotation in sync package to create generated file wi…
naveenr-egov Sep 10, 2024
f7dd2b7
updated className and added return to sync_service_annotation.dart
naveenr-egov Sep 11, 2024
36641eb
updated sync_service_annotation.dart
naveenr-egov Sep 12, 2024
2c425a5
wayBillNumber key change from waybillNumber
naveenr-egov Sep 12, 2024
9b14bfd
validation for wayBillNumber
naveenr-egov Sep 12, 2024
242f374
changed the digit_component library to new digit_ui-component library
Shashwat12-egov Sep 13, 2024
af196dc
added assets for the acknowledgement page
Shashwat12-egov Sep 13, 2024
8673a48
Delivery action label and administered_success status update based on…
naveenr-egov Sep 13, 2024
1b0d44f
Revert "Delivery action label and administered_success status update …
naveenr-egov Sep 13, 2024
9368c07
Reapply "Delivery action label and administered_success status update…
naveenr-egov Sep 13, 2024
d951368
beneficiary-registartion component updated
yashita-egov Sep 18, 2024
0b7c570
Changed textchunk component to digittextblock
Shashwat12-egov Sep 19, 2024
81d7ead
beneficiary pages component updated
yashita-egov Sep 19, 2024
5a63005
widgets updated
yashita-egov Sep 19, 2024
4d8c157
fixed table issues
yashita-egov Sep 19, 2024
48184ca
digit ui library version updated
yashita-egov Sep 23, 2024
837d359
Using digit_ui library from the published page
Shashwat12-egov Sep 23, 2024
88ef47b
Changed the flutter version in lock files
Shashwat12-egov Sep 24, 2024
bb4a162
Changed the flutter version in lock files
Shashwat12-egov Sep 24, 2024
a1049a6
Changed the flutter version in lock files
Shashwat12-egov Sep 24, 2024
a5a4393
localisation added for no facilities dialog
yashita-egov Oct 1, 2024
9faa857
comment code remove
yashita-egov Oct 1, 2024
23c5b37
resolved review comments
yashita-egov Oct 21, 2024
af78fed
Merge branch 'develop' into closed_household_new_digit_component
Shashwat12-egov Nov 11, 2024
1b8bc78
Made changes in referral reconciliation
Shashwat12-egov Sep 2, 2024
a02e2b1
Made changes in referral reconciliation(Changed the digit_component l…
Shashwat12-egov Sep 6, 2024
13658fb
merge conflict changes
naveenr-egov Nov 11, 2024
41d1600
Made changes in referral reconciliation(Changed the digit_component l…
Shashwat12-egov Sep 6, 2024
52e4c94
Changes in radiolist button
Shashwat12-egov Sep 9, 2024
f50ede5
Fixed button issues and changed search bar component
Shashwat12-egov Sep 10, 2024
1523608
Added a value in i18 file
Shashwat12-egov Sep 10, 2024
dab87ad
Made changes in HF referral widget files
Shashwat12-egov Sep 11, 2024
d367691
Removed commented code
Shashwat12-egov Sep 13, 2024
75997a4
Using digit-ui library from the published page
Shashwat12-egov Sep 23, 2024
11cd059
Did all the asked changes on PR
Shashwat12-egov Sep 25, 2024
7cd45c9
merge conflict changes
naveenr-egov Nov 11, 2024
58001d4
Merge remote-tracking branch 'origin/hf-referral-new-digit-component'…
naveenr-egov Nov 11, 2024
f38943d
additionalDetails from string to Map<String,dynamic>
naveenr-egov Nov 11, 2024
69d6de2
lock file version changes
naveenr-egov Nov 11, 2024
e72d72b
updated flutter components in checklist package
yashita-egov Sep 5, 2024
4dcbd5b
updated validations for fields
yashita-egov Sep 9, 2024
9923dea
added label value pair
yashita-egov Sep 9, 2024
c36be9f
digit ui component version update
yashita-egov Sep 23, 2024
2a90902
panel card fix
yashita-egov Sep 23, 2024
c3a5516
fixed additionalDetails issue in survey_form_view
yashita-egov Nov 12, 2024
3e6c816
Merge remote-tracking branch 'origin/develop' into registration-deliv…
yashita-egov Nov 12, 2024
0d00dec
fixed version conflicts data model
yashita-egov Nov 12, 2024
0aabe48
version conflicts data model handled
yashita-egov Nov 12, 2024
85f3600
lock file added for survey_form
yashita-egov Nov 12, 2024
7be2a61
pubspec.lock file added in survey_form
yashita-egov Nov 12, 2024
0fcf0b1
fix digit_data_model in survey-form
yashita-egov Nov 12, 2024
cecd158
fix digit data model issue in complaints package
yashita-egov Nov 12, 2024
082a211
fix digit data model in example (survey-form)
yashita-egov Nov 14, 2024
10798fd
Merge branch 'develop' into hf-referral-new-digit-component
Shashwat12-egov Nov 14, 2024
b7ea977
modified MainActivity.kt and location_service.kt to update accuracy
naveenr-egov Nov 14, 2024
8278880
added retry to localization.dart local repo
naveenr-egov Nov 15, 2024
e1daea0
Solved the scroll issue and additional fields in checklist
Shashwat12-egov Nov 15, 2024
32a7346
Merge branch 'develop' into SurveyForm-component
naveenr-egov Nov 18, 2024
9ee2489
Merge branch 'develop' into registration-delivery-component
naveenr-egov Nov 18, 2024
553f6c7
merge conflicts
naveenr-egov Nov 18, 2024
a7421d9
Solved the submitted checklist localization issue
Shashwat12-egov Nov 18, 2024
173fb98
updated data_model and survey_form package
naveenr-egov Nov 18, 2024
d5d643d
pub lock file changes
naveenr-egov Nov 18, 2024
af150be
complaints version change
naveenr-egov Nov 18, 2024
5ee0811
Merge branch 'refs/heads/hf-referral-new-digit-component' into compon…
naveenr-egov Nov 18, 2024
f423c65
Merge branch 'refs/heads/registration-delivery-component' into compon…
naveenr-egov Nov 18, 2024
fa6ccbd
Merge remote-tracking branch 'refs/remotes/origin/closed_household_ne…
naveenr-egov Nov 18, 2024
8dd1e47
component upgrade version increments
naveenr-egov Nov 18, 2024
0a7d0de
Merge branch 'develop' into HCMPRE-466
naveenr-egov Nov 18, 2024
cb5fd0f
merge conflicts
naveenr-egov Nov 18, 2024
897435d
Removing the additional fields if item is singlevaluelist.
Shashwat12-egov Nov 20, 2024
439576b
Merge branch 'refs/heads/component-upgrade' into custom_annotations
naveenr-egov Nov 21, 2024
d77c367
merge conflicts
naveenr-egov Nov 21, 2024
8e49242
version fixes and import fixes
naveenr-egov Nov 21, 2024
acf5c79
Solved the checklist localization issue
Shashwat12-egov Nov 22, 2024
2fc780e
Changed the attribute datatype from string to bool in digit data mode…
Shashwat12-egov Nov 22, 2024
3112dd6
HCMPRE-1310 and HCMPRE-1319 apk issues
Shashwat12-egov Nov 26, 2024
386f8a1
Wrote the migration script
Shashwat12-egov Nov 26, 2024
48d6fe9
Wrote the migration script
Shashwat12-egov Nov 26, 2024
5375c95
HCMPRE-1310 and HCMPRE-1319 apk issues
Shashwat12-egov Nov 26, 2024
e1b40d1
HCMPRE-1310 and HCMPRE-1319 apk issues
Shashwat12-egov Nov 26, 2024
de2e484
Merge remote-tracking branch 'origin/develop' into custom_annotations
naveenr-egov Dec 10, 2024
700627a
Added additional field in service.dart and survey_form_view.dart
Shashwat12-egov Dec 10, 2024
1773096
merge conflicts
naveenr-egov Dec 10, 2024
61faf98
cherry picked complaints changes
yashita-egov Sep 2, 2024
b537319
updated theme
yashita-egov Sep 2, 2024
fe478db
cherry picked complaints changes
yashita-egov Sep 3, 2024
f65a805
cherry picked complaints changes
yashita-egov Sep 23, 2024
b0599aa
acknowledgment fixed
yashita-egov Sep 23, 2024
ba347b0
updated complaint with latest digit_ui_components
Dec 11, 2024
4b26ee9
version upgrade digit_ui_components
naveenr-egov Dec 11, 2024
5597aea
version upgrade digit_ui_components
naveenr-egov Dec 11, 2024
dedfd6e
updated referral with latest digit_ui_components
Dec 11, 2024
54ff60c
Merge pull request #623 from egovernments/referral_update
naveenr-egov Dec 11, 2024
bcc9b2d
Merge branch 'custom_annotations' into complaints_changes
rachana-egov Dec 11, 2024
4ceb3de
Merge pull request #622 from egovernments/complaints_changes
naveenr-egov Dec 11, 2024
c7a5622
version upgrade digit_ui_components
naveenr-egov Dec 11, 2024
a7a1eb6
updated components to ui_components in dss and scanner
naveenr-egov Dec 11, 2024
0caab37
updated inventory package with new components
Dec 11, 2024
d104997
Merge pull request #624 from egovernments/inventory_management
naveenr-egov Dec 11, 2024
e4d3a01
updated components to ui_components in attendance
naveenr-egov Dec 11, 2024
1068baf
overrides package dependencies
Dec 11, 2024
42d637b
Updated components
Dec 11, 2024
8df830c
Merge pull request #627 from egovernments/component-update
naveenr-egov Dec 12, 2024
9e9fdb2
Complaint new component integration
Dec 12, 2024
ab2d1dc
Merge pull request #628 from egovernments/complaints-changes
naveenr-egov Dec 12, 2024
a2996c1
version update fixes
naveenr-egov Dec 12, 2024
c984db6
sync null check fixes
naveenr-egov Dec 12, 2024
8fd17a6
Merge remote-tracking branch 'origin/HCMPRE-1310_APK_issues_boundary_…
naveenr-egov Dec 12, 2024
8f256e0
merge conflicts fixes and boundary module fix
naveenr-egov Dec 12, 2024
452c2ee
V1.5 sync count patch (#620)
naveenr-egov Dec 5, 2024
616b9a7
Merge remote-tracking branch 'refs/remotes/origin/HCMPRE-1224_HCMPRE-…
naveenr-egov Dec 12, 2024
c4e49d5
merge conflicts fixes
naveenr-egov Dec 12, 2024
13a7b3b
lock file changes
naveenr-egov Dec 12, 2024
ce3a71b
added missing userLocation case for sync count
naveenr-egov Dec 12, 2024
cc02ec3
reverted super annotations for sync package
naveenr-egov Dec 13, 2024
35c75c4
Updated missing changes in Side Effects Model
Ramkrishna-egov Dec 13, 2024
f946887
Create flutter-build-apk.yml
naveen-egov Dec 13, 2024
1f89fbd
moved the file to workflow folder
naveen-egov Dec 13, 2024
2a65eab
Update flutter-build-apk.yml
naveen-egov Dec 13, 2024
b57ff16
updated digit_ui_components to dev branch
naveenr-egov Dec 13, 2024
9c3fb77
individual name search fix
naveenr-egov Oct 23, 2024
b2e6ee3
solved the localization issue in survey_form_view.dart and taking the…
Shashwat12-egov Dec 13, 2024
660aa9a
component ui fixes
naveenr-egov Dec 13, 2024
96451e2
solved the scanner issue.
Shashwat12-egov Dec 13, 2024
8b9bee3
Merge branch '1.6-final-dev' into apk-localization-fixes
Shashwat12-egov Dec 13, 2024
d866112
Merge pull request #632 from egovernments/apk-localization-fixes
Shashwat12-egov Dec 13, 2024
e743071
Added loader animation files
Dec 13, 2024
c7f8423
sync package publish
naveenr-egov Dec 13, 2024
d07756c
disabled selection state in table
naveenr-egov Dec 13, 2024
d9d1b3f
Merge remote-tracking branch 'origin/location_tracker_patch' into 1.6…
naveenr-egov Dec 13, 2024
b93fd78
removed creds
naveenr-egov Dec 13, 2024
3ea14d0
solved the scanner ui issue (#633)
Shashwat12-egov Dec 13, 2024
890026a
cancel button fix
naveenr-egov Dec 13, 2024
6abe310
Merge remote-tracking branch 'origin/1.6-final-dev' into 1.6-final-dev
naveenr-egov Dec 13, 2024
da5cc21
Merge remote-tracking branch 'origin/HCMPRE-466' into 1.6-final-dev
naveenr-egov Dec 13, 2024
08ed907
checklist help text and action label PR merge
naveenr-egov Dec 13, 2024
9596281
modified helpText mapping to additionalFields
naveenr-egov Dec 13, 2024
cbbfb7b
pulled back changes https://github.com/HCM-MOZ-IMPEL/health-campaign-…
naveenr-egov Dec 13, 2024
44cc459
theme fixing (#634)
Shashwat12-egov Dec 15, 2024
21b38dc
dashboard loader fix
naveenr-egov Dec 16, 2024
2d06c43
ui fixes
naveenr-egov Dec 16, 2024
1e74675
ui_components reference to dev branch
naveenr-egov Dec 17, 2024
4483a38
ui fixes, bug fixes, version upgrades and package publish
naveenr-egov Dec 18, 2024
2627f8c
Merge branch 'refs/heads/master' into 1.6-final-dev
naveenr-egov Dec 18, 2024
c87ce10
registration_delivery package update
naveenr-egov Dec 18, 2024
ebf8835
registration_delivery package update
naveenr-egov Dec 18, 2024
7ed52ed
code rabbit comments resolved
naveenr-egov Dec 18, 2024
3dc4031
code rabbit comments resolved
naveenr-egov Dec 19, 2024
1977a98
property check for apk git flow
naveenr-egov Dec 19, 2024
23ad109
build apk git action changes
naveenr-egov Dec 19, 2024
29128ec
reverted localization insert
naveenr-egov Dec 19, 2024
a5d768f
changing env to qa for git actions
naveenr-egov Dec 19, 2024
7f554b3
Update generate-apk.sh
Shashwat12-egov Dec 19, 2024
b6ff46b
Update generate-apk.sh
Shashwat12-egov Dec 19, 2024
d12b9e0
Android 34 support fix for registerReceiver issue
naveenr-egov Dec 19, 2024
52b0b14
Update generate-apk.sh
Shashwat12-egov Dec 19, 2024
4b96d2f
Merge branch 'refs/heads/develop' into 1.6-final-dev
naveenr-egov Dec 19, 2024
6f7ff66
code-rabbit comments resolved
naveenr-egov Dec 19, 2024
6ef26f5
Update flutter-build-apk.yml
Shashwat12-egov Dec 20, 2024
b4cd318
pointing dart_mappable_builder to master branch
naveenr-egov Dec 20, 2024
e57a270
lock file change
naveenr-egov Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 7 additions & 6 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# 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: Run analysis and tests

on:
Expand All @@ -22,7 +17,13 @@ jobs:
- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: "3.16.5"
flutter-version: "3.22.1"

- name: Clean previous builds
run: flutter clean

- name: Install dependencies
run: flutter pub get

- name: Generate models
run: ./tools/install_bricks.sh
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/flutter-build-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Build APK Workflow

on:
push:
branches: [ 'develop', 'master' ] # This specifies that the workflow will run on any push to the 'develop' or 'master' branches
pull_request:
branches: [ 'develop', 'master' ] # Optionally, run on pull requests targeting the 'develop' or 'master' branches

jobs:
build-apk:
runs-on: ubuntu-latest
environment: UAT

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin' # Specify the Java distribution

- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: "3.22.2"

- name: Set up Android SDK
uses: android-actions/setup-android@v2
with:
api-level: 33
build-tools: 33.0.2

- name: Install Dependencies
run: flutter pub get

- name: Create .env file
run: |
echo "BASE_URL=${{ vars.BASE_URL }}" >> apps/health_campaign_field_worker_app/.env
echo "MDMS_API_PATH=${{ vars.MDMS_API_PATH }}" >> apps/health_campaign_field_worker_app/.env
echo "TENANT_ID=${{ vars.TENANT_ID }}" >> apps/health_campaign_field_worker_app/.env
echo "ACTIONS_API_PATH=${{ vars.ACTIONS_API_PATH }}" >> apps/health_campaign_field_worker_app/.env
echo "SYNC_DOWN_RETRY_COUNT=${{ vars.SYNC_DOWN_RETRY_COUNT }}" >> apps/health_campaign_field_worker_app/.env
echo "RETRY_TIME_INTERVAL=${{ vars.RETRY_TIME_INTERVAL }}" >> apps/health_campaign_field_worker_app/.env
echo "CONNECT_TIMEOUT=${{ vars.CONNECT_TIMEOUT }}" >> apps/health_campaign_field_worker_app/.env
echo "RECEIVE_TIMEOUT=${{ vars.RECEIVE_TIMEOUT }}" >> apps/health_campaign_field_worker_app/.env
echo "SEND_TIMEOUT=${{ vars.SEND_TIMEOUT }}" >> apps/health_campaign_field_worker_app/.env
echo "CHECK_BANDWIDTH_API=${{ vars.CHECK_BANDWIDTH_API }}" >> apps/health_campaign_field_worker_app/.env
echo "HIERARCHY_TYPE=${{ vars.HIERARCHY_TYPE }}" >> apps/health_campaign_field_worker_app/.env
echo "ENV_NAME=${{ vars.ENV_NAME }}" >> apps/health_campaign_field_worker_app/.env

- name: Verify .env file
run: |
ls -l apps/health_campaign_field_worker_app/.env
cat apps/health_campaign_field_worker_app/.env

- name: Run APK build script
env:
BUILD_CONFIG: release # or profile depending on your choice
run: bash ./tools/generate-apk.sh

# Archive the APK as a build artifact so it can be downloaded
- name: Upload APKs
uses: actions/upload-artifact@v3
with:
name: app-release-apk
path: apps/health_campaign_field_worker_app/build/app/outputs/flutter-apk/app-release.apk

- name: Upload .env as artifact
uses: actions/upload-artifact@v3
with:
name: env-file
path: apps/health_campaign_field_worker_app/.env
include-hidden-files: true
44 changes: 22 additions & 22 deletions apps/health_campaign_field_worker_app/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'dev.flutter.flutter-gradle-plugin'
id 'com.google.gms.google-services'
}
naveen-egov marked this conversation as resolved.
Show resolved Hide resolved

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand All @@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
Expand All @@ -21,24 +23,18 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
// START: FlutterFire Configuration
apply plugin: 'com.google.gms.google-services'
// END: FlutterFire Configuration
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 34
compileSdk = flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
naveenr-egov marked this conversation as resolved.
Show resolved Hide resolved
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}

sourceSets {
Expand All @@ -50,8 +46,8 @@ android {
applicationId "com.digit.hcm"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand All @@ -63,12 +59,16 @@ android {
signingConfig signingConfigs.debug
}
}

if (!project.hasProperty('USE_GOOGLE_SERVICES')) {
tasks.whenTaskAdded { task ->
if (task.name.contains("GoogleServices")) {
task.enabled = false
}
}
}
naveenr-egov marked this conversation as resolved.
Show resolved Hide resolved
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
<uses-permission android:name="com.android.alarm.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
Expand All @@ -28,16 +29,16 @@
<!--#enddocregion android-queries-->
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="HCM">
android:allowBackup="false"
android:fullBackupOnly="false"
android:fullBackupContent="false"
android:fullBackupOnly="false"
android:icon="@mipmap/ic_launcher"
android:label="HCM">
<service
android:name=".LocationService"
android:enabled="true"
android:foregroundServiceType="location"
android:exported="false" />
android:exported="false"
android:foregroundServiceType="location" />

<activity
android:name=".MainActivity"
Expand All @@ -64,9 +65,10 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>


</activity>
<service
android:name="id.flutter.flutter_background_service.BackgroundService"
android:foregroundServiceType="dataSync" />
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,60 +1,82 @@
package com.digit.hcm

import io.flutter.embedding.android.FlutterActivity
import android.os.Bundle
import java.io.File
import java.io.FileOutputStream
import io.flutter.plugin.common.MethodChannel
import android.content.Intent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Environment
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import android.os.Build
import android.os.Bundle
import android.widget.Toast
import io.flutter.embedding.android.FlutterActivity
import io.flutter.plugin.common.MethodChannel

class MainActivity : FlutterActivity() {
private val CHANNEL = "com.digit.location_tracker"
private val locationReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
val latitude = intent?.getDoubleExtra("latitude", 0.0)
val longitude = intent?.getDoubleExtra("longitude", 0.0)
val accuracy = intent?.getFloatExtra("accuracy", 0.0f) // Retrieve accuracy here

// Handle the location data here
Toast.makeText(context, "Latitude: $latitude, Longitude: $longitude", Toast.LENGTH_LONG).show()
Toast.makeText(
context,
"Latitude: $latitude, Longitude: $longitude, Accuracy: $accuracy",
Toast.LENGTH_LONG
).show()
// Optionally, you can send this data to Flutter via MethodChannel
flutterEngine?.dartExecutor?.binaryMessenger?.let {
MethodChannel(it, CHANNEL).invokeMethod("locationUpdate", mapOf("latitude" to latitude, "longitude" to longitude))
MethodChannel(it, CHANNEL).invokeMethod(
"locationUpdate", mapOf(
"latitude" to latitude,
"longitude" to longitude,
"accuracy" to accuracy
)
)
naveenr-egov marked this conversation as resolved.
Show resolved Hide resolved
}
}
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

MethodChannel(flutterEngine!!.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result ->
MethodChannel(
flutterEngine!!.dartExecutor.binaryMessenger,
CHANNEL
).setMethodCallHandler { call, result ->
when (call.method) {
"startLocationUpdates" -> {
val interval = (call.argument<Number>("interval")?.toLong()) ?: 60000L
val stopAfterTimestamp = (call.argument<Number>("stopAfterTimestamp")?.toLong()) ?: (System.currentTimeMillis() + 60000L)
val stopAfterTimestamp = (call.argument<Number>("stopAfterTimestamp")?.toLong())
?: (System.currentTimeMillis() + 60000L)
if (!isMyServiceRunning(LocationService::class.java)) {
startService(interval, stopAfterTimestamp)
} else {
Toast.makeText(this, "Location service is already running", Toast.LENGTH_SHORT).show()
Toast.makeText(
this,
"Location service is already running",
Toast.LENGTH_SHORT
).show()
}
result.success(null)
}

"stopLocationUpdates" -> {
stopService()
result.success(null)
}

else -> result.notImplemented()
}
}

// Register the receiver for location updates
// Register the receiver for location updates, with proper export settings for Android 13+
val filter = IntentFilter("LocationUpdate")
registerReceiver(locationReceiver, filter)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
registerReceiver(locationReceiver, filter, Context.RECEIVER_EXPORTED)
} else {
registerReceiver(locationReceiver, filter)
}
}

override fun onDestroy() {
Expand Down Expand Up @@ -90,7 +112,8 @@ class MainActivity : FlutterActivity() {
val manager = getSystemService(Context.ACTIVITY_SERVICE) as android.app.ActivityManager
for (service in manager.getRunningServices(Int.MAX_VALUE)) {
if (serviceClass.name == service.service.className) {
Toast.makeText(this, "Location service is already running", Toast.LENGTH_SHORT).show()
Toast.makeText(this, "Location service is already running", Toast.LENGTH_SHORT)
.show()
naveenr-egov marked this conversation as resolved.
Show resolved Hide resolved
return true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ class LocationService : Service() {
val intent = Intent("LocationUpdate")
intent.putExtra("latitude", location.latitude)
intent.putExtra("longitude", location.longitude)
intent.putExtra("accuracy", location.accuracy)

sendBroadcast(intent)

Log.d("LocationSharing", "Location sent to MainActivity: Latitude ${location.latitude}, Longitude ${location.longitude}")
Log.d("LocationSharing", "Location sent to MainActivity: Latitude ${location.latitude}, Longitude ${location.longitude}, Accuracy ${location.accuracy}")
}

override fun onDestroy() {
Expand Down Expand Up @@ -129,8 +130,10 @@ class LocationService : Service() {
val notificationIntent = Intent(this, MainActivity::class.java)
val pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE)
val timestamp = System.currentTimeMillis()
val notificationContent = "Latitude: ${location.latitude}, Longitude: ${location.longitude},"
writeToFile("Latitude: ${location.latitude}, Longitude: ${location.longitude}, isSync: false, timestamp: $timestamp")
val notificationContent = "Latitude: ${location.latitude}, Longitude: ${location.longitude}, Accuracy: ${location.accuracy}" // Include accuracy

// Write location and accuracy to file
writeToFile("Latitude: ${location.latitude}, Longitude: ${location.longitude}, Accuracy: ${location.accuracy}, isSync: false, timestamp: $timestamp")
naveenr-egov marked this conversation as resolved.
Show resolved Hide resolved

val notification = NotificationCompat.Builder(this, CHANNEL_ID)
.setContentTitle("Location Service")
Expand Down
16 changes: 0 additions & 16 deletions apps/health_campaign_field_worker_app/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
buildscript {
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// START: FlutterFire Configuration
classpath 'com.google.gms:google-services:4.3.10'
// END: FlutterFire Configuration
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
Loading
Loading