Skip to content

deeps2/PiZzza

Repository files navigation

PiZzza

Swiggy coding assignment

NOTE

  • hosted JSON has 2 JSON array inside exclude_list
  • {(1,3);(2,10)} = {Crust:CheeseBurst;Size:Small} and {(2,10);(3,22)} = {Size:Small;Sauce:Mustard}
  • So, when user selects Crust-CheeseBurst then only Size-small will be hidden but when user selects Size-small then 2 options will be hiddden (Crust:CheeseBurst and Sauce:Mustard, both will be hidden) as (2-Size,10-Small) appears at two places above
  • I think the question description requires bit amendment as there was no such exclusion list {(1,2);(2,12)}={(Crust,Thick);(Size,Large)} in the hosted JSON file
  • See the code to know more, I have added comments at all the necessary places.

Components Used

  • Retrofit2
  • Dynamically created RadioGroup & RadioButton

ScreenShots