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.
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.