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

Use single package for SDK #2538

Closed
Closed

Description

@ljbade

There are a number of public functions and constructors (particularly in the annotations API) that should be made package private.

For example all the set... functions in Marker etc since these objects should currently be immutable. Calling these functions after addMarker etc will not update the marker on the map. Even worse setId will completely break things.

To make these package private we need everything in one package (annotations and view). The other packages I think we can leave alone at this stage.

Activity

  1. added
    Android
    on Oct 6, 2015
  2. added this to the android-v2.2.0 milestone on Oct 6, 2015
  3. tobrun commented on Oct 6, 2015

    @tobrun
    Member

    Linking #2480 because I feel that this should be tackled simultaneously

  4. ljbade commented on Oct 11, 2015

    @ljbade
    ContributorAuthor

    I am proposing merging the annotations and views packages, perhaps just putting them under the base package. Google Maps API seems to happily keep everything in one package. Hmm they don't...

  5. ljbade commented on Oct 11, 2015

    @ljbade
    ContributorAuthor

    @tobrun @bleege @zugaldia Are there Java patterns for exposing private implementation detail to other packages, but not to the public? Google Maps API must be doing this, along with the Android framework.

  6. ljbade commented on Oct 11, 2015

    @ljbade
    ContributorAuthor

    Hmm a solution might be to create a public interface in a "internal" package, which exposes the implementation methods. Create a private inner class implementation of this in MapView, then pass this in the constructor or some such.

  7. modified the milestones: android-v2.3.0, on Dec 4, 2015
  8. tobrun commented on Jan 11, 2016

    @tobrun
    Member

    To make these package private we need everything in one package (annotations and view). The other packages I think we can leave alone at this stage.

    This is the current situation, this might change with #3485 but will close this for now.

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

    Androidrefactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions