Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Support Api version 15 #54

Closed
Alireza-Farahani opened this issue Apr 13, 2020 · 1 comment
Closed

Support Api version 15 #54

Alireza-Farahani opened this issue Apr 13, 2020 · 1 comment

Comments

@Alireza-Farahani
Copy link

Alireza-Farahani commented Apr 13, 2020

First, thank you for your work. I tested this library and it works great. But the library minSdkVersion is set to 16. I am working on an application that has millions of user supporting minSdkVersion 15. I tried to override this in manifest but as I expected, I got runtime error in an emulator on Api version 15.

NoSuchMethodError: android.content.res.Configuration.setLocale

This happens in your LocalizationContext Class. Configuration.setLocale() is added in Api 17 and previously this had been done with Configuration.locale = .... If this is the only reason to set minSdk to 17, could you consider supporting Api version 15?

Also a question, if setLocale is defined in Api 17, how your library supports Api 16?

@akexorcist
Copy link
Owner

You make me surprising about minSdkVersion in your project!!

So Here you go! version 1.2.5 with minSdkVersion 14

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

No branches or pull requests

2 participants