ucsb-cs56-projects / cs56-android-smoke-signals

-
GNU General Public License v3.0
1 stars 7 forks source link

Refactored all of the commands #39

Closed ankushrayabhari closed 6 years ago

ankushrayabhari commented 7 years ago

Got rid of SMS Request Manager as it was too bloated and tried to do way too many things. Split each command up into separate classes. Created a CommandManager class for getting commands and loading them dynamically using reflection. Created an SMSManager class as a lightweight SMS interceptor that delegates commands to the CommandManager class. Changed the interceptor from a service to a BroadcastReceiver so it gets called even when the application is closed.