android-client-sdk icon indicating copy to clipboard operation
android-client-sdk copied to clipboard

LAUNCHDARKLY DEVELOPER SURVEY: Android API versions and Android Gradle plugin versions

Open eli-darkly opened this issue 2 years ago • 9 comments

From the LaunchDarkly SDK team:

We're posting this to get feedback from our customers who use the LaunchDarkly Android SDK. The basic questions we're asking are:

  1. What is the oldest Android API version that your LaunchDarkly-enabled applications need to support?
  2. What major version of the Android Gradle plugin do you use? (Or, more generally: is it at least 4.0?)

The background is that we're trying to determine if we can start modernizing our SDK code to use Java 8 language features and APIs that would require either Android API 26+ or Android Gradle plugin 4.x+.

As described here, older Android APIs lack Java 8 support, but Android Gradle plugin 3.x added some support for language features and Android Gradle plugin 4.x extended this to include many very helpful Java 8 APIs, which are in effect backported by the build tools so they work even in older Android versions.

Our SDK currently has a minimum Android API version of 21, so we cannot assume that these features will work unless the code is being built by version 4.0 or higher of the Android Gradle plugin. If we think that a significant number of customers are still using older versions of the plugin and cannot update their builds, then we will continue to use a more restrictive coding style.

eli-darkly avatar Aug 31 '22 00:08 eli-darkly

minSdk: 23, AGP: 7.2.2

audkar avatar Sep 01 '22 11:09 audkar

minSDK: 21, AGP: 7.2.2

rubensousa avatar Oct 14 '22 14:10 rubensousa

Min: 21 (generally try not to bump this forward unless absolutely necessary) AGP: 7.2.1 (generally try to update AGP pretty aggressively/frequently)

Additionally, you may want to query current customers & reach out via email to get responses instead of via GH? I may not have even found this link if I wasn't here to report an issue/ask an SDK question (and I imagine there's a significant % of customers that don't even visit the issues page 🤷)

erawhctim avatar Oct 17 '22 17:10 erawhctim

@erawhctim We try to use a number of different channels to survey people, and this is one of them.

eli-darkly avatar Oct 18 '22 20:10 eli-darkly

minSDK: 28, AGP: 7.3.0

petrazavadska avatar Oct 19 '22 12:10 petrazavadska

minSdk: 26, AGP: 7.3.1

(Same as mentioned above, we try to keep our libraries up to date as much as possible)

orafaaraujo avatar Nov 03 '22 10:11 orafaaraujo

minSdk: 23 (with no option to bump it) AGP: 7.3.1

denis-bezrukov avatar Feb 20 '23 12:02 denis-bezrukov

minSDK: 21 AGP : 8

kaling852 avatar Sep 05 '23 17:09 kaling852

minSdk: 25, AGP: 8

I'm not sure it's even possible to have an AGP version of 4 or below and still release updates to the Play Store. You wouldn't be able to keep to the Play Store's targetSdk requirements.

davemckelvie avatar Apr 18 '24 07:04 davemckelvie