Closed
Description
HttpEngine is marked as @RequiresApi(34)
But HttpEngine is based on extension versions
@RequiresExtension(extension = Build.VERSION_CODES.S, version = 7)
In practice trying to configure HttpEngine and pass it to HttpEngineDataSource, Android Studio wanted me to add both.
Should HttpEngineDataSource be changed to use RequiresExtension, so that it works on API 31 devices that have received the latest mainline versions?
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
marcbaechinger commentedon Apr 11, 2024
Thanks for raising this!
I think we should do what makes the least hassle for our users. So if AS complains, we probably should do this.
For my education: with
@RequiresApi
I know how I as a developer can code and take different API levels into account. LikeHow would that work with such a
@RequiresExtension
annotation? Do you know?yschimke commentedon Apr 11, 2024
It should clear IDE errors when you check this.
Update HttpEngineDataSource to require at least S extension 7.
icbaker commentedon Jul 9, 2024
This was done in 91633e6, which was then reverted and then re-done in 00d1e70.
Fix 'duplicate class' error caused by incomplete kt stdlib metadata