In the latest SDK version (6.12.2), the class AppsflyerSdk has some initialization logic in the initSdk() method, but it also takes options as an argument. Additionally, AppsflyerSdk is a singleton. This logic leads to calls like AppsflyerSdk(null) every time after the object AppsflyerSdk is created. Also it is not obvious why calls like AppsflyerSdk([anyOtherAppsflyerOptions]) return the same instance of AppsflyerSdk. Please consider moving the logic for passing options to the initSdk() method.
To avoid this issue I need to wrap AppsflyerSdk in wrappers like this.
In the latest SDK version (6.12.2), the class AppsflyerSdk has some initialization logic in the initSdk() method, but it also takes options as an argument. Additionally, AppsflyerSdk is a singleton. This logic leads to calls like AppsflyerSdk(null) every time after the object AppsflyerSdk is created. Also it is not obvious why calls like AppsflyerSdk([anyOtherAppsflyerOptions]) return the same instance of AppsflyerSdk. Please consider moving the logic for passing options to the initSdk() method.
To avoid this issue I need to wrap
AppsflyerSdk
in wrappers like this.