Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we get a modularized SDK please? #233

Open
ramzyabushaaban opened this issue Apr 23, 2024 · 1 comment
Open

Can we get a modularized SDK please? #233

ramzyabushaaban opened this issue Apr 23, 2024 · 1 comment

Comments

@ramzyabushaaban
Copy link

Is your feature request related to a problem? Please describe.
For the Android SDK, we are intrested only in Klarna login/signup, however, we have to use the who SDK with all the unnecessary code which added about 643KB to our application size. This is a major issue for us.

Describe the solution you'd like
Having a modularized SDK will allow us to add only the dependency we need, if we are intrested in Klarna login, we don't need to add Klarna payments for example. This will reduce the SDK size when adding only the needed dependency.

Describe alternatives you've considered
We used the basic Klaran SDK and it has the same app size increase. We can't exclude some packages from the SDK because we might run into some unpredicted behaviour

@NMGuner
Copy link
Member

NMGuner commented Apr 24, 2024

Hi @ramzyabushaaban,

The request makes a lot of sense, and we indeed have a plan to provide modularized libraries for each integration we offer. Right now most integrations actually use a single core implementation with minor changes but, there are also edge cases where some integrations are almost completely separated, hence the modularization will be more useful for those.

Due to internal changes it requires and other priorities, achieving this will take some time. According to our roadmap as of today we are targeting end of this year to Q1 next year to provide these separate modules. Unfortunately, until then, the library can only be added as a single dependency, including every integration type.

I hope you understand, and continue using our library. Meanwhile, we will try to reduce our SDK size to an even smaller size than it's today for both Android and iOS, hopefully in the near future with modularization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants