Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Use CT SDK as 'implementation' instead of 'api' #526

Closed hborisoff closed 1 year ago

hborisoff commented 1 year ago
What Where/Who
JIRA Issue SDK-2396
People Involved @hborisoff

Background

Some clients are having issues with resources coming from CT SDK, so decided to put the dependency behind 'implementation' type. Added a verification step that would produce error log when client is using incorrect dependency version. Getting the CT's BuildConfig.VERSION_NAME would use the version from LP SDK instead of the real one, hence using reflection to get it.

Testing steps

Tested verification in sample app by overriding the dependency with bigger version.