pinkfish / flutter_native_timezone

Apache License 2.0
75 stars 152 forks source link

minSDkVersion set to 26 because -> https://developer.android.com/ref… #37

Open sikandernoori opened 2 years ago

sikandernoori commented 2 years ago

Hello @pinkfish,

I have bumped the minSdkVersion to 26 as this plugin imports 'import java.time.ZoneId' which was introduced in API level 26. For reference Link to Android documentation: Android documentation link link to Code where above is imported: Code Link

Also please note this is not a new issue, I see from open && closed issues effort was made in trying to close this matter. #issue28

MaikuB commented 1 year ago

I know his has been open for a while and had just stumbled across this. Wanted to share that desugaring can be done that allows the newer APIs to be used on older Android versions. IMO, this would be better as it allows supporting older Android versions

tjarvstrand commented 1 year ago

Due to lack of maintenance in this repo, I have just published a fork on pub.dev.

I have taken the liberty of cherry-picking the commits in this branch into that fork.