INPS-it / SPIDlibraryIOS

SPIDlibraryIOS is a library for logging in via SPID through several different identity providers.
BSD 3-Clause "New" or "Revised" License
52 stars 5 forks source link

Dev - refactoring, retain cycle broken, timer invalidated #1

Closed mrcfal closed 3 years ago

mrcfal commented 3 years ago

👋

What?

Two changes:

  1. Broken retain cycle when using strong reference on SpidDelegate;
  2. Invalidated timer when tapping on dismiss button in LoginVC;

Few refactoring changes (feel free to edit or discard them, edits by maintainers are on):

  1. Refactored checkError() function in ErrorManager by adding tryError() throws private function;
  2. Refactored enums by removing unnecessary explicit raw values (strings);
  3. Replaced protocol keyword class with AnyObject (class will be deprecated);

Testing?

Anything Else?

Suggestions: