Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Android 6.0 release removes support for the Apache HTTP client. #1640

Description

@han361769045

Android 6.0 release removes support for the Apache HTTP client。use the HttpURLConnection class instead。
I think it is necessary to add Androidannotations @HttpUrlConnection instead of @HttpsClient

Activity

  1. WonderCsabo commented on Nov 25, 2015

    @WonderCsabo
    Member

    There is no way to inject HttpUrlConnection as it is can be done with HttpClient, because HttpUrlConnection is obtained via calling URL.openConnection() on a specific URL instance.

  2. dodgex commented on Nov 25, 2015

    @dodgex
    Member

    @WonderCsabo but maybe we want to emit a warning or even error when using those with android 6 target?

  3. WonderCsabo commented on Nov 25, 2015

    @WonderCsabo
    Member

    Yeah, we could add a warning when targetSdkVersion >= 23.

  4. WonderCsabo commented on Nov 25, 2015

    @WonderCsabo
    Member

    And we should issue an error if the HttpClient class is not on the compile classpath.

    ... or we could just remove @HttpsClient...

  5. dodgex commented on Nov 25, 2015

    @dodgex
    Member

    +1 for removing it.

  6. WonderCsabo commented on Dec 14, 2015

    @WonderCsabo
    Member

    @yDelouis should we remove this annotation?

  7. dodgex commented on Jan 17, 2016

    @dodgex
    Member

    @WonderCsabo @yDelouis if we decide to remove this, we should do it before 4.0 to not have a post-4.0 breaking change due to removing an annotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions