1) I added the following power management option under the setting screen.
Wi-Fi only :- Torrents will download and upload only if Wi-Fi is connected
Shutdown when download completes :- The app will shutdown when all downloads have been completed in the background.
Keep CPU awake :- Screen never sleeps. Enabling this will increase battery usage.
Download only when charging is connected :- Torrents will download/upload only when charging. All torrents will pause when not connected to the charger.
Shut down Wifi :- This setting automatically shuts down Wi-Fi when all torrents complete download.
Change battery optimization :- This setting is required if you want to make sure progress notification works smoothly.
battery low stop download :- If the battery percentage is low then the download will stop.
2) I sort all of the import statements to improve code readability and make code maintained.
3) I implemented the required unit and widget testing for added new features.
Describe the changes you have made in this PR -
1) I added the following power management option under the setting screen.
Wi-Fi only
:- Torrents will download and upload only if Wi-Fi is connectedShutdown when download completes
:- The app will shutdown when all downloads have been completed in the background.Keep CPU awake
:- Screen never sleeps. Enabling this will increase battery usage.Download only when charging is connected
:- Torrents will download/upload only when charging. All torrents will pause when not connected to the charger.Shut down Wifi
:- This setting automatically shuts down Wi-Fi when all torrents complete download.Change battery optimization
:- This setting is required if you want to make sure progress notification works smoothly.battery low stop download
:- If the battery percentage is low then the download will stop.2) I sort all of the import statements to improve code readability and make code maintained.
3) I implemented the required unit and widget testing for added new features.
Screenshots of the changes (If any) -