How to run a code block each Monday of the week and start of the month in Kotlin/Android
I am working on my final year project where I have requirements to set/re-set some values on Firestore these would be Firebase Firestore APIs calls. and I need these two blocks of codes to be run one block each Monday at 12am and another each 1st day of the month at 12 am.
I will really appreciate the seniors' help in this regard.
Thanks