watomatic icon indicating copy to clipboard operation
watomatic copied to clipboard

Feature/306/feature to add custom package

Open spuday90 opened this issue 4 years ago • 16 comments

CLoses #306

spuday90 avatar Jul 09 '21 03:07 spuday90

Tried this branch. Here are some problems that I found:

  • Watomatic not detecting the app is installed, although it is (I suppose this is also the reason why the app icon is not shown).
  • Adding the same package name two times results in the app crashing.
  • Changing enabled apps to a custom one does not update the main screen until a restart.

Also some suggestions:

  • Move the option to add packages to the enabled apps screen
  • Add the option to remove a custom package

I can give more info or explain better if something is unclear, let me know!

hegocre avatar Jul 11 '21 14:07 hegocre

Hi @hegocre , Thanks for your feedback, ill look into them.

spuday90 avatar Jul 12 '21 02:07 spuday90

~Known issue : Select/Deselect any item and scroll up/down then the state is missing first time - Working on it -- Resolved~

  • [x] List segregation/sorting - b8d314b ~- [ ] Show alert dialog when pressed back without saving~ this is not needed as we are saving on each click

spuday90 avatar Jul 23 '21 03:07 spuday90

https://user-images.githubusercontent.com/16569510/126735159-ce6017da-8fda-45d5-b45a-4da49715e9db.mp4

Screenshot_2021-07-23-09-12-12-970_com parishod watomatic Screenshot_2021-07-23-09-15-06-022_com parishod watomatic

spuday90 avatar Jul 23 '21 03:07 spuday90

@spuday90 Can you also add a warning dialog when floating "+" button is clicked. Something like "Not tested to work with apps in the list and can cause unintended issues. Use at your own risk." With cancel and accept buttons.

adeekshith avatar Jul 23 '21 03:07 adeekshith

@spuday90 Can you also add a warning dialog when floating "+" button is clicked. Something like "Not tested to work with apps in the list and can cause unintended issues. Use at your own risk." With cancel and accept buttons.

Added in abb51ae Removed "Use at your own risk" its looking as if device can be damaged or so. Feel free to add it if u think is needed Screenshot_2021-07-26-08-01-50-152_com parishod watomatic

spuday90 avatar Jul 23 '21 03:07 spuday90

Screenshot_2021-07-24-12-01-22-916_com parishod watomatic Changed the UI to be in sync with contact selector

spuday90 avatar Jul 24 '21 06:07 spuday90

Tested this branch again, everything works right except for the installed apps list, which is weird (see screenshot). I imagine it is because of the rtl approach, so I would suggest using the method shown here, or just using a TextView + Checkbox instead, which I can implement if you are busy.

Screenshot_20210725-121042

hegocre avatar Jul 25 '21 10:07 hegocre

Tested this branch again, everything works right except for the installed apps list, which is weird (see screenshot). I imagine it is because of the rtl approach, so I would suggest using the method shown here, or just using a TextView + Checkbox instead, which I can implement if you are busy.

Screenshot_20210725-121042

Hi @hegocre , Thanks for reporting the issue. Its behaving differently on different devices. I'm just checking for any better solution, if couldn't find any will implement what you have suggested i.e using separate textview+checkbox.

Fixed in 6e19f99 @hegocre Please test now

spuday90 avatar Jul 26 '21 03:07 spuday90

It is fixed indeed. Now I'm facing a couple of issues

  • App names are not visible on dark theme, can be fixed by changing https://github.com/adeekshith/watomatic/blob/6e19f99bf82231362345ed144bc575f0020db1e1/app/src/main/res/layout/installed_apps_list.xml#L28 with android:textColor="?colorOnSurface"
  • Apps are still not detected as installed on the enabled apps selector, as shown on the media below: 21-07-27-15-20-27 Looks like it's checking the app against the SUPPORTED_APPS constant here https://github.com/adeekshith/watomatic/blob/6e19f99bf82231362345ed144bc575f0020db1e1/app/src/main/java/com/parishod/watomatic/model/utils/Constants.kt#L29-L33 instead of checking against installed apps.

Other than that, great work, I think it's nearly working perfectly, and it will be a great addition to Watomatic.

hegocre avatar Jul 27 '21 13:07 hegocre

Hi @hegocre, Yes app not installed is a known issue, Earlier we didn't had the query_all package permission so was not able to detect app. I will fix that.

spuday90 avatar Jul 28 '21 02:07 spuday90

Nice, tried it with telegram, it works great!

hegocre avatar Jul 28 '21 11:07 hegocre

Is there an eta, of when this will be added? This would also solve quite a few other requests such as support for messenger lite, discord and telegram.

Goldmaster avatar Nov 21 '21 09:11 Goldmaster

Merged main into this to solve merge conflicts, this should be tested. And maybe release a new version? There are some nice changes since the last one.

hegocre avatar Nov 23 '21 17:11 hegocre

Is there an eta, of when this will be added? This would also solve quite a few other requests such as support for messenger lite, discord and telegram.

Main reason for not merging this is Google Play has new policies regarding apps having permission to access entire apps list. We are now required to apply to them separately with justification, etc for this. And then they would scrutinize the app and websites before giving permissions. Some of the apps recently got removed from Play store for having a donation button on the website. Watomatic has that too so need to figure out having an alternative URL for Play Store users which does not show Donation button. It is not clear we are violating Play Store policies but there is a gray area there. Need to clear those bureaucratic hurdles before this can merged

adeekshith avatar Nov 24 '21 15:11 adeekshith

Merged main into this to solve merge conflicts, this should be tested. And maybe release a new version? There are some nice changes since the last one.

Thank you @hegocre 🙌

Will make a release next week. Thats true, its long overdue 😊 Will merge this PR after the release though because of this: https://github.com/adeekshith/watomatic/pull/340#issuecomment-977984680

adeekshith avatar Nov 24 '21 15:11 adeekshith