Closed pablobaxter closed 3 years ago
Overall some much needed cleanup - thanks for the PR!
Curious to learn more about how to support Pre API 24 Java for initializeAsync() - everything else represents notable improvements with no API breaking changes
So everything in this code base works with API 19+ (the min API). I see no issues with supporting <24.
This fixes a major bug when calling
initialize()
from the main dispatcher. This could potentially throwNetworkOnMainThread
exceptions, due to the network calls not being handled on an IO thread. This also performs some cleanup to ensure that calls are more Java/Kotlin friendly. More details about the changes in comments.