Skip to content

Commit

Permalink
Refactor APNS/GCM to only support client interface and eliminate conf…
Browse files Browse the repository at this point in the history
…iguration implementation.
  • Loading branch information
dgilland committed Apr 26, 2015
1 parent 40cedbc commit 5f2b2b1
Show file tree
Hide file tree
Showing 9 changed files with 301 additions and 582 deletions.
25 changes: 6 additions & 19 deletions pushjack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
)

from .apns import (
APNSConnection,
APNSClient,
APNSExpiredToken,
APNSSandboxClient,
)

from .clients import (
APNSClient,
from .gcm import (
GCMCanonicalID,
GCMClient,
GCMResponse,
)

from .exceptions import (
Expand Down Expand Up @@ -55,22 +57,6 @@
ServerError,
)

from .gcm import (
GCMCanonicalID,
GCMConnection,
GCMResponse,
)

from .config import (
APNSConfig,
APNSSandboxConfig,
GCMConfig,
create_apns_config,
create_apns_sandbox_config,
create_gcm_config
)


# Set default logging handler to avoid "No handler found" warnings.
import logging

Expand All @@ -81,4 +67,5 @@ class NullHandler(logging.Handler):
def emit(self, record):
pass


logging.getLogger(__name__).addHandler(NullHandler())
Loading

0 comments on commit 5f2b2b1

Please sign in to comment.