Skip to content

Commit

Permalink
V1.6 (#639)
Browse files Browse the repository at this point in the history
* release digit_dss new version (#594)

* updated stock and facility model (#597)

* updated stock and facility model

* updated stock and facility model

* updated stock and facility model

* PGR and survey form package merge (#596)

* Removed privacy policy from main app to digit component (#569)

* Updated the integer form picker and added a new text block component (#441)

* updated the integer picker and added a new text block component

* added a field to change the width of button

* modified text block component to conditionally render children

---------

Co-authored-by: rachana-egov <[email protected]>

* updated description for household location and details page (#443)

Co-authored-by: rachana-egov <[email protected]>

* replaced product variant dropdown to selection card (#445)

Co-authored-by: rachana-egov <[email protected]>

* HLM-6283:: IRS- Household Details Fields added (#444)

* Updated checklist for a new type boolean (#446)

* updated checklist for a new type boolean

* added To Do to fix hard code options

---------

Co-authored-by: rachana-egov <[email protected]>

* HLM-6282 and HLM-6283:: House Structure Details Page added (#447)

* HLM-6283:: IRS- Household Details Fields added

* HLM-6283:: House Structure Details Page

* integrated checklist inside the beneficiary flow and updated gender field to selection card (#450)

Co-authored-by: rachana-egov <[email protected]>

* HLM-6371:: Beneficiary Registration Summary Page (#452)

* HLM-6283:: IRS- Household Details Fields added

* HLM-6283:: House Structure Details Page

* HLM-6371:: Beneficiary Registration Summary Page

* Updated registration_delivery script

* Added refused delivery page (#451)

* integrated checklist inside the beneficiary flow and updated gender field to selection card

* fetching refusal reasons

* added refused delivery page

* added refused delivery page

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen J <[email protected]>

* No delivery flow page (#453)

Co-authored-by: rachana-egov <[email protected]>

* HLM-6367:: Auto Create project beneficiary (#454)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

---------

Co-authored-by: Naveen Renati <[email protected]>

* Hlm 6414 - MDMS StatusFilter, Filter search (#448)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

---------

Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* HCMPRE-98 Filter search pagination, Removed private PageState (#457)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

---------

Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Created a new package for marking closed household (#459)

* Created a new package for marking closed household

* fixed build issues

* updated the name to userAction

---------

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-98 - Inventory TeamCode fixes, Filter search fixes (#460)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

* removed multiple filter selection

modified filter search

* fixed delivery team scanner issues in stock_details.dart

* Fixed - missing addition of scanned resources to additional fields

filter search bug fixes

* HCMPRE-74, HCMPRE-82, HCMPRE-83:: Household Reload Fix, Validations for Household details added (#458)

* updated individual global search

added beneficiary type check in view_beneficiary_card.dart
removed commented code in household_overview.dart

* Added null check for beneficiaryTag in closed_household_summary.dart

---------

Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Hcmpre 118 - Closed Household, Filter improvements, Bug fixes (#467)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

* removed multiple filter selection

modified filter search

* fixed delivery team scanner issues in stock_details.dart

* Fixed - missing addition of scanned resources to additional fields

filter search bug fixes

* HCMPRE-74, HCMPRE-82, HCMPRE-83:: Household Reload Fix, Validations for Household details added (#458)

* updated individual global search

added beneficiary type check in view_beneficiary_card.dart
removed commented code in household_overview.dart

* Added null check for beneficiaryTag in closed_household_summary.dart

* Exposed Registration delivery pages

* updated remote repository and some miner fixes (#461)

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-82:: Validations and Bug Fixes

* small css fixes (#462)

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* merge fix

* added closed household search

* status model fix

* Closed-household-registration (#464)

* closed-household-registration

* closed-household-registration

* updated pub file

---------

Co-authored-by: rachana-egov <[email protected]>

* added closed household init file
modified user_action.dart model and db corrected
modified closed household status

* updated registration for closed household

* added closed_household search and updating closed household status

* clearing search before navigating to registration flow

* getting last tasks in household_overview.dart

* HCMPRE-107:: Summary page added for Delivery Flow, HCMPRE-111:: Disable Delete household if beneficiary not present (#463)

* Validation and gps fixes

* fixed closed household count

clearing closedhould results for clear

* pagination fix for closed household

* sync down for closed household, updated scan voucher button, and remove the tag when we navigate to a different page (#465)

Co-authored-by: rachana-egov <[email protected]>

* DeliverySummary Route added to main app

* seperated closedhousehold search
Bug fixes - HCMPRE-112, 110, 113

* updated all the points of this ticket HCMPRE-120 (#466)

Co-authored-by: rachana-egov <[email protected]>

* Bug Fixes, dev version release of packages

* HCMPRE-119:: IRS Demo fixes (#468)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* updated closed button action to push closedhousehold

tasks filter with last fix

* updated validation for closed household name and fix error message size (#470)

Co-authored-by: rachana-egov <[email protected]>

* Irs demo fix patch (#469)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* Edit Household if no project beneficiary fix

* reverted hiding of digit search bar when closed filter is applied

* status update based on last task status in household_overview.dart

mapped administered success in beneficiary_card.dart

moved getstatus to utils.dart

* fixed offset increasing twice

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes (#471)

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes

* Added date formats to constants

* fixed offset increasing twice

closed household distance fix
emitting scanner state loading

* dev version bump-up for registration and scanner

* version updates for packages

---------

Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>

* Hcmpre 155 - ClosedHousehold flow change (#478)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

* removed multiple filter selection

modified filter search

* fixed delivery team scanner issues in stock_details.dart

* Fixed - missing addition of scanned resources to additional fields

filter search bug fixes

* HCMPRE-74, HCMPRE-82, HCMPRE-83:: Household Reload Fix, Validations for Household details added (#458)

* updated individual global search

added beneficiary type check in view_beneficiary_card.dart
removed commented code in household_overview.dart

* Added null check for beneficiaryTag in closed_household_summary.dart

* Exposed Registration delivery pages

* updated remote repository and some miner fixes (#461)

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-82:: Validations and Bug Fixes

* small css fixes (#462)

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* merge fix

* added closed household search

* status model fix

* Closed-household-registration (#464)

* closed-household-registration

* closed-household-registration

* updated pub file

---------

Co-authored-by: rachana-egov <[email protected]>

* added closed household init file
modified user_action.dart model and db corrected
modified closed household status

* updated registration for closed household

* added closed_household search and updating closed household status

* clearing search before navigating to registration flow

* getting last tasks in household_overview.dart

* HCMPRE-107:: Summary page added for Delivery Flow, HCMPRE-111:: Disable Delete household if beneficiary not present (#463)

* Validation and gps fixes

* fixed closed household count

clearing closedhould results for clear

* pagination fix for closed household

* sync down for closed household, updated scan voucher button, and remove the tag when we navigate to a different page (#465)

Co-authored-by: rachana-egov <[email protected]>

* DeliverySummary Route added to main app

* seperated closedhousehold search
Bug fixes - HCMPRE-112, 110, 113

* updated all the points of this ticket HCMPRE-120 (#466)

Co-authored-by: rachana-egov <[email protected]>

* Bug Fixes, dev version release of packages

* HCMPRE-119:: IRS Demo fixes (#468)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* updated closed button action to push closedhousehold

tasks filter with last fix

* updated validation for closed household name and fix error message size (#470)

Co-authored-by: rachana-egov <[email protected]>

* Irs demo fix patch (#469)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* Edit Household if no project beneficiary fix

* reverted hiding of digit search bar when closed filter is applied

* status update based on last task status in household_overview.dart

mapped administered success in beneficiary_card.dart

moved getstatus to utils.dart

* fixed offset increasing twice

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes (#471)

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes

* Added date formats to constants

* fixed offset increasing twice

closed household distance fix
emitting scanner state loading

* dev version bump-up for registration and scanner

* version updates for packages

* View Household button added in delete individual success page, Search project beneficiary fix

* added close button to close the filter and disabled the clear button … (#475)

* added close button to close the filter and disabled the clear button unless something is selected

* added validation for closed household head name same as individual

* updated the condition for validation of closehousehold head

---------

Co-authored-by: rachana-egov <[email protected]>

* View Household button added in delete individual success page, Search project beneficiary fix (#474)

* Search beneficiary fix

* Search beneficiary fix

* Bloc dispose fix

* Bloc dispose fix

* Updated task based search for household

* Modified closed household package to use registration flow for creating a household and related data along with task as closed

deleted user_action from data_model package

Updating closed_household to not_delivered status after closed household registration

* version updates of closed_household, digit_components, digit_data_model, registration_delivery

* version upgrade for registration_delivery

---------

Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* Hcmpre 164, 165 - Count implementation for filter search (#485)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* Resolved code comments

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* fixed reports are not getting refreshed after updating facility (#486)

Co-authored-by: rachana-egov <[email protected]>

* Delivery summary page Resources and quantity added (#473)

* Delivery summary page Resources and quantity added

* fix for offset increment twice

* Delivery summary page Resources and quantity added

---------

Co-authored-by: Naveen Renati <[email protected]>
Co-authored-by: Naveen J <[email protected]>

* updated script for closed household (#489)

Co-authored-by: rachana-egov <[email protected]>

* Hcmpre 166 - Moved Localization from ISAR To SQL (#488)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* created new table for localization

TODO: separate packages localization delegates to individual package and move the localization model to data_model package for common usage

Delete localization related isar files once tested

* init Boundary code wise localization.dart

* create localization local repo

modified module separation from query to exclude and include specified module

* modified module exclude in boundary page

* modified localization call for boundary selection bug where first value is localized in dropdown

* removed un-required localization bloc calls

* updated index value to selected language on home

* removed login cred

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Removed null condition, fixed double is not a subtype of string issue and added null check for table (#490)

* HCMPRE-156 : type 'double' is not a subtype of type 'String'

* added check if the first table row is null

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen J <[email protected]>

* HCMPRE-177:: Metric and Table Charts Integration in Mobile dashboard and digit_dss package initial release (#480)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* HCMPRE-55 Dashboard Static Screen added

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

* removed multiple filter selection

modified filter search

* fixed delivery team scanner issues in stock_details.dart

* Fixed - missing addition of scanned resources to additional fields

filter search bug fixes

* HCMPRE-74, HCMPRE-82, HCMPRE-83:: Household Reload Fix, Validations for Household details added (#458)

* updated individual global search

added beneficiary type check in view_beneficiary_card.dart
removed commented code in household_overview.dart

* Added null check for beneficiaryTag in closed_household_summary.dart

* Exposed Registration delivery pages

* updated remote repository and some miner fixes (#461)

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-82:: Validations and Bug Fixes

* small css fixes (#462)

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* merge fix

* added closed household search

* status model fix

* Closed-household-registration (#464)

* closed-household-registration

* closed-household-registration

* updated pub file

---------

Co-authored-by: rachana-egov <[email protected]>

* added closed household init file
modified user_action.dart model and db corrected
modified closed household status

* updated registration for closed household

* added closed_household search and updating closed household status

* clearing search before navigating to registration flow

* getting last tasks in household_overview.dart

* HCMPRE-107:: Summary page added for Delivery Flow, HCMPRE-111:: Disable Delete household if beneficiary not present (#463)

* Validation and gps fixes

* fixed closed household count

clearing closedhould results for clear

* pagination fix for closed household

* sync down for closed household, updated scan voucher button, and remove the tag when we navigate to a different page (#465)

Co-authored-by: rachana-egov <[email protected]>

* DeliverySummary Route added to main app

* seperated closedhousehold search
Bug fixes - HCMPRE-112, 110, 113

* updated all the points of this ticket HCMPRE-120 (#466)

Co-authored-by: rachana-egov <[email protected]>

* Bug Fixes, dev version release of packages

* HCMPRE-119:: IRS Demo fixes (#468)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* updated closed button action to push closedhousehold

tasks filter with last fix

* updated validation for closed household name and fix error message size (#470)

Co-authored-by: rachana-egov <[email protected]>

* Irs demo fix patch (#469)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* Edit Household if no project beneficiary fix

* reverted hiding of digit search bar when closed filter is applied

* status update based on last task status in household_overview.dart

mapped administered success in beneficiary_card.dart

moved getstatus to utils.dart

* fixed offset increasing twice

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes (#471)

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes

* Added date formats to constants

* fixed offset increasing twice

closed household distance fix
emitting scanner state loading

* dev version bump-up for registration and scanner

* version updates for packages

* View Household button added in delete individual success page, Search project beneficiary fix

* added close button to close the filter and disabled the clear button … (#475)

* added close button to close the filter and disabled the clear button unless something is selected

* added validation for closed household head name same as individual

* updated the condition for validation of closehousehold head

---------

Co-authored-by: rachana-egov <[email protected]>

* View Household button added in delete individual success page, Search project beneficiary fix (#474)

* Search beneficiary fix

* Search beneficiary fix

* Bloc dispose fix

* Bloc dispose fix

* Updated task based search for household

* HCMPRE-177:: Metric Chart Integration and digit_dss package setup

* HCMPRE-177:: Added Refresh Indicator for refreshing the dashboard

* HCMPRE-177:: Table chart integration and Refresh logic update

* Added code comments for digit_dss package

* Added enums and constants

* Resolved code comments and updated versions for packages

* HCMPRE177:: Moved dashboard UI Config to MDMS

* HCMPRE177:: Added dss_import script for digit_dss package

* Resolved code comments

* Updated dashboard Config

* Added dashboard config search to try catch block

* Resolved conflicts

* published data_model and registration_delivery

* Added Read me file and updated pubspec.yaml

---------

Co-authored-by: Naveen Renati <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* HCMPRE-177:: Fetch and send attendees uuids of registers to dss filters (#491)

* added translator for administration area

* Fixed Facility search based on tenant ID

* Added disable battery optimization permission for background service

* Added disable battery optimization ask permission on App start and background service start

* HLM-5984:: Get Precise location on Submitting latitude longitude details

* Reverted install_bricks.sh

* added new status REGISTERED, NOT_REGISTERED

updated conditional check for status by project beneficiaries

* added static status_filter.dart integration in search_beneficiary.dart

* TODO for selected_filters display condition

* integrated household search filters with mdms
implemented search based on filters with pagination for Registered and NotRegistered

* updated status filter component
merge with develop

* create individual_global_search and implemented search

* Auto Create Project Beneficiary on Edit Household, and disable record delivery if no project beneficiary present

* Conflicts resolved

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty

* implemented household_global_search.dart
fixed individual_global_search.dart

* updated proximity search for household_global_search.dart

* Pop State recapture during registration flow, Disable delivery flow for individual based campaign if project beneficiaries is empty (#456)

* updated class state from private for customization override in registration_delivery and inventory

added pagination for filter search

TODO: combination search for registered and not registered needs fix which return only last selected results

* adding missed changes for last commit

* HCMPRE-55 Dashboard Static Screen added

* displaying selected filter value for applied filters in search_beneficiary.dart

* updated changelog for inventory and registration_delivery for new dev versions

* updated pubspec lock of registration_delivery

* removed multiple filter selection

modified filter search

* fixed delivery team scanner issues in stock_details.dart

* Fixed - missing addition of scanned resources to additional fields

filter search bug fixes

* HCMPRE-74, HCMPRE-82, HCMPRE-83:: Household Reload Fix, Validations for Household details added (#458)

* updated individual global search

added beneficiary type check in view_beneficiary_card.dart
removed commented code in household_overview.dart

* Added null check for beneficiaryTag in closed_household_summary.dart

* Exposed Registration delivery pages

* updated remote repository and some miner fixes (#461)

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-82:: Validations and Bug Fixes

* small css fixes (#462)

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* merge fix

* added closed household search

* status model fix

* Closed-household-registration (#464)

* closed-household-registration

* closed-household-registration

* updated pub file

---------

Co-authored-by: rachana-egov <[email protected]>

* added closed household init file
modified user_action.dart model and db corrected
modified closed household status

* updated registration for closed household

* added closed_household search and updating closed household status

* clearing search before navigating to registration flow

* getting last tasks in household_overview.dart

* HCMPRE-107:: Summary page added for Delivery Flow, HCMPRE-111:: Disable Delete household if beneficiary not present (#463)

* Validation and gps fixes

* fixed closed household count

clearing closedhould results for clear

* pagination fix for closed household

* sync down for closed household, updated scan voucher button, and remove the tag when we navigate to a different page (#465)

Co-authored-by: rachana-egov <[email protected]>

* DeliverySummary Route added to main app

* seperated closedhousehold search
Bug fixes - HCMPRE-112, 110, 113

* updated all the points of this ticket HCMPRE-120 (#466)

Co-authored-by: rachana-egov <[email protected]>

* Bug Fixes, dev version release of packages

* HCMPRE-119:: IRS Demo fixes (#468)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* updated closed button action to push closedhousehold

tasks filter with last fix

* updated validation for closed household name and fix error message size (#470)

Co-authored-by: rachana-egov <[email protected]>

* Irs demo fix patch (#469)

* HCMPRE-119:: IRS Demo fixes

* Removed unused code

* Edit Household if no project beneficiary fix

* reverted hiding of digit search bar when closed filter is applied

* status update based on last task status in household_overview.dart

mapped administered success in beneficiary_card.dart

moved getstatus to utils.dart

* fixed offset increasing twice

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes (#471)

* HCMPRE-121:: Enter manual code fix and Search Beneficiary fixes

* Added date formats to constants

* fixed offset increasing twice

closed household distance fix
emitting scanner state loading

* dev version bump-up for registration and scanner

* version updates for packages

* View Household button added in delete individual success page, Search project beneficiary fix

* added close button to close the filter and disabled the clear button … (#475)

* added close button to close the filter and disabled the clear button unless something is selected

* added validation for closed household head name same as individual

* updated the condition for validation of closehousehold head

---------

Co-authored-by: rachana-egov <[email protected]>

* View Household button added in delete individual success page, Search project beneficiary fix (#474)

* Search beneficiary fix

* Search beneficiary fix

* Bloc dispose fix

* Bloc dispose fix

* Updated task based search for household

* HCMPRE-177:: Metric Chart Integration and digit_dss package setup

* HCMPRE-177:: Added Refresh Indicator for refreshing the dashboard

* HCMPRE-177:: Table chart integration and Refresh logic update

* Added code comments for digit_dss package

* Added enums and constants

* Resolved code comments and updated versions for packages

* HCMPRE177:: Moved dashboard UI Config to MDMS

* HCMPRE177:: Added dss_import script for digit_dss package

* Resolved code comments

* Updated dashboard Config

* Added dashboard config search to try catch block

* Resolved conflicts

* published data_model and registration_delivery

* Added Read me file and updated pubspec.yaml

* Fetch and send attendees uuids of registers to dss filters

* Added dss filters

---------

Co-authored-by: Naveen Renati <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* Task update rather than creating new, updated filter popup loading (#493)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* Resolved code comments

* HCMPRE220:: Household overview state update on pushing to Registration Wrapper

* update task state if task is already present

* updated selection box to update on initial selection change and updated delivery comment code

* remove changes from beneficiary

* task update

* HCMPRE-220:: SMC Not registered flow reload fix,and closed household Not delivered status fix

* added loader for filter search

* Added name of user to additional details in stock and delivery record

* updated delivery intervention

* check summary page condition for edit flow

* fixed task update for delivery intervention

* fixed household detail page

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* updated status and registration_delivery_enums.dart (#494)

* updated status and registration_delivery_enums.dart

updated check for check-list check in household_overview.dart

* Todo for individual check in beneficiary_registration.dart

* Uploaded pre release for inventory-management and digit-dss (#495)

* removed the page count from filter, updated status filter pop up (#496)

Co-authored-by: rachana-egov <[email protected]>

* updated demo changes (#498)

Co-authored-by: rachana-egov <[email protected]>

* added lat and long inside additional field when user submit the checklist (#526)

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-221 data segration (#501)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* created new table for localization

TODO: separate packages localization delegates to individual package and move the localization model to data_model package for common usage

Delete localization related isar files once tested

* init Boundary code wise localization.dart

* create localization local repo

modified module separation from query to exclude and include specified module

* modified module exclude in boundary page

* modified localization call for boundary selection bug where first value is localized in dropdown

* removed un-required localization bloc calls

* updated index value to selected language on home

* Uploaded pre release for inventory-management and digit-dss

* Updated delivery enums for Not delivered status

* Updated status model in task to taskStatus

* Updated registration delivery package

* Reverted Task Model status key change

* Update pubspec with latest version of packages

* Summary page Type of resource locale key updated

* Resolved comments

* Resolved comments and unused variables

* Resolved comments and unused variables

* Updated version

* Updated individual_global_search.dart for search

* added data segration

* check to enable edit delivery

* added project filter

* Registration delivery- Attendance management fixes (#497)

* Removed captured location dialog on attendance submit

* Removed stpper if deliveries length is greater than 1

* Updated digit_components and digit_data_model packages in attendance management

* Updated digit_components and digit_data_model packages in attendance management

* Localization loader and dialog localization fix (#505)

* added dialog till localization is not loaded

* fixed localization not coming issue

* added a util funtion to show language loading

---------

Co-authored-by: rachana-egov <[email protected]>

* updated search added project id in beneficiary search

removed commented code

* User uuids filter fixes for attendees local search in an attendance register (#512)

* User uuids filters fixes for attendees search in a register

* Removed default dashboard card from home

* Sync fix

---------

Co-authored-by: Naveen Renati <[email protected]>

* Added Task address mapping on refused delivery (#514)

* replace and push homepage from boundary page sync dialog

* updated register search query to exclude attendee and staff in limit query

updated attendance and registration_delivery package

* registration_delivery package update

* * Added error toast for network failure (#525)

* No result card added if no charts available

* Updated end date for dss charts to 23:59 instead of 11:59 (#527)

* task create fix - removed condition check of resources during create

updated changelog of registration, closed, digit_data_model, inventory, registration_delivery

--dry-run fixes

* Updated stable packages for scanner, attendance and dss (#528)

* updated packages to latest version
digit_components version update

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: Naveen Renati <[email protected]>

* Added Privacy Policy (#499)

* added data privacy component

* added privacy component

* updated localization

* updated the dialog to use localized value

* updated privacy config inside mdms

* updated privacy model

* removed local privacy config now coming from mdms

* Delete packages/digit_components/lib/widgets/atoms/privacy_component.dart

as component is part of main application

* fixed github build issue

* added a configuration to enable or disable this privacy policy component

* fix the issue when privacy policy component is not there

* fix the issue when privacy policy component is not there

* fixed github comments

---------

Co-authored-by: rachana-egov <[email protected]>

* HCMPRE-332:: Mobile dashboard added check for lastSyncTime to convert to date format (#540)

* HCMPRE-332:: Mobile dashboard added check for lastSyncTime to convert to date format

* added a enum for lastSyncedTime

---------

Co-authored-by: rachana-egov <[email protected]>

* Hcmpre 263 - Sync write transaction for ISAR - fix, Localization fall back (#538)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* created new table for localization

TODO: separate packages localization delegates to individual package and move the localization model to data_model package for common usage

Delete localization related isar files once tested

* init Boundary code wise localization.dart

* create localization local repo

modified module separation from query to exclude and include specified module

* modified module exclude in boundary page

* modified localization call for boundary selection bug where first value is localized in dropdown

* removed un-required localization bloc calls

* updated index value to selected language on home

* Uploaded pre release for inventory-management and digit-dss

* Updated delivery enums for Not delivered status

* Updated status model in task to taskStatus

* Updated registration delivery package

* Reverted Task Model status key change

* Update pubspec with latest version of packages

* Summary page Type of resource locale key updated

* Resolved comments

* Resolved comments and unused variables

* Resolved comments and unused variables

* Updated version

* Updated individual_global_search.dart for search

* added data segration

* check to enable edit delivery

* added project filter

* Registration delivery- Attendance management fixes (#497)

* Removed captured location dialog on attendance submit

* Removed stpper if deliveries length is greater than 1

* Updated digit_components and digit_data_model packages in attendance management

* Updated digit_components and digit_data_model packages in attendance management

* Localization loader and dialog localization fix (#505)

* added dialog till localization is not loaded

* fixed localization not coming issue

* added a util funtion to show language loading

---------

Co-authored-by: rachana-egov <[email protected]>

* updated search added project id in beneficiary search

removed commented code

* User uuids filter fixes for attendees local search in an attendance register (#512)

* User uuids filters fixes for attendees search in a register

* Removed default dashboard card from home

* Sync fix

---------

Co-authored-by: Naveen Renati <[email protected]>

* Added Task address mapping on refused delivery (#514)

* replace and push homepage from boundary page sync dialog

* updated register search query to exclude attendee and staff in limit query

updated attendance and registration_delivery package

* registration_delivery package update

* * Added error toast for network failure (#525)

* No result card added if no charts available

* Updated end date for dss charts to 23:59 instead of 11:59 (#527)

* task create fix - removed condition check of resources during create

updated changelog of registration, closed, digit_data_model, inventory, registration_delivery

--dry-run fixes

* Updated stable packages for scanner, attendance and dss (#528)

* updated packages to latest version
digit_components version update

* added fallback ui dialog when localization call fails.

* added localization code

* merge from dev

* fix for isar transaction lock issue

* moved boundary localization path to constants.
Updated dialog in language_selection.dart page

* isar lock fix

* updated data_model version for isar fix.
updated a check in language_selection.dart for dialog

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>
Co-authored-by: naveen-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Impel changes - background-services, beneficiary_checklist (#548)

* Update closed_household_details.dart (#482)

* Fixed pagination refresh issue (#481)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

---------

Co-authored-by: rachana-egov <[email protected]>

* implemented count for filter search, added todo for combination search count

* Fixed count

TODO: search with task status filter

* Fixed search with task status filter

Removed delay in delivery_summary_page.dart

* added code comments

* HCMPRE-165 issues (#484)

* Implement search pagination (#476)

* implemented pagination for search

* added one more check to check if last response is equal to current response then also break the loop

* removed changes from data repository and added pagination only project facility and facility

---------

Co-authored-by: rachana-egov <[email protected]>

* localization update, input validation for numeric, disabled delivery intervention for closed household task (#479)

Co-authored-by: rachana-egov <[email protected]>

* fixed pagination refresh issue

* resolved the comments

* HCMPRE-162:: Reload issue fix for closed household and not registered

* HCMPRE-165: issues fixes

* updated reasons for refusals

---------

Co-authored-by: rachana-egov <[email protected]>
Co-authored-by: Ramkrishna-egov <[email protected]>

* Updated publock

* Added a check to avoid multiple leftJoin for projectBeneficiary - fix for multiple left join error

* created new table for localization

TODO: separate packages localization delegates to individual package and move the localization model to data_model package for common usage

Delete localization related isar files once tested

* init Boundary code wise localization.dart

* create localization local repo

modified module separation from query to exclude and include specified module

* modified module exclude in boundary page

* modified localization call for boundary selection bug where first value is localized in dropdown

* removed un-required localization bloc calls

* updated index value to selected language on home

* Uploaded pre release for inventory-management and digit-dss

* Updated delivery enums for Not delivered status

* Updated status model in task to taskStatus

* Updated registration delivery package

* Reverted Task Model status key change

* Update pubspec with latest version of packages

* Summary page Type of resource locale key updated

* Resolved comments

* Resolved comments and unused variables

* Resolved comments and unused variables

* Updated version

* Updated individual_global_search.dart for search

* added data segration

* check to enable edit delivery

* added project filter

* Registration delivery- Attendance management fixes (#497)

* Removed captured location dialog on attendance submit

* Removed stpper if deliveries length is greater than 1

* Updated digit_components and digit_data_model packages in attendance management

* Updated digit_components and digit_data_model packages in attendance management

* Localization loader and dialog localization fix (#505)

* added dialog till localization is not loaded

* fixed localization not coming issue

* added a util funtion to show language loading

---------

Co-authored-by: rachana-egov <[email protected]>

* updated search added project id in beneficiary search

removed commented code

* User uuids filter fixes for attendees local search in an attendance register (#512)

* User uuids filters fixes for attendees search in a register

* Removed default dashboard card from home

* Sync fix

---------

Co-authored-by: Naveen Renati <[email protected]>

* Added Task address mapping on refused delivery (#514)

* replace and push homepage from boundary page sync dialog

* updated register search query to exclude attendee and staff in limit query

updated attendance and registration_delivery package

* registration_delivery package update

* * Added error toast for network failure (#525)

* No result card added if no charts available

* Updated end date for dss charts to 23:59 instead of 11:59 (#527)

* task create fix - removed condition check of resources during create

updated changelog of registration, closed, digit_data…
  • Loading branch information
11 people authored Dec 19, 2024
1 parent 5595f37 commit ab088b8
Show file tree
Hide file tree
Showing 680 changed files with 69,019 additions and 22,839 deletions.
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ migrate_working_dir/
*.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.
Expand Down Expand Up @@ -57,3 +56,7 @@ pubspec_overrides.yaml
apps/health_campaign_field_worker_app/.env
apps/health_campaign_field_worker_app/libisar.dylib
*.properties

# FVM Version Cache
.fvm/
.fvmrc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class _ChecklistDataShowcaseData {
import '../../../utils/i18_key_constants.dart' as i18;
import '../showcase_wrappers.dart';
part 'checklist_data.dart';
part 'survey_form_data.dart';
final checklistDataShowcaseData = _ChecklistDataShowcaseData();
```
Expand Down
4 changes: 4 additions & 0 deletions apps/health_campaign_field_worker_app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# FVM Version Cache
.fvm/
.fvmrc
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'
}

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
}

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
}
}
}
}

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
)
)
}
}
}

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()
return true
}
}
Expand Down
Loading

0 comments on commit ab088b8

Please sign in to comment.