Skip to content

Comments

Included HermesIntentService. Changes to HermesBroadcastReceiver.#2

Open
sahildave wants to merge 2 commits intoraveeshbhalla:masterfrom
sahildave:master
Open

Included HermesIntentService. Changes to HermesBroadcastReceiver.#2
sahildave wants to merge 2 commits intoraveeshbhalla:masterfrom
sahildave:master

Conversation

@sahildave
Copy link

  • Moved all the message processing to abstract IntentService.
  • Changed HermesBroadcastReceiver to WakefulBroadcastReceiver
  • Added minor logger
  • Updated build tools and support libs

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a n00b when it comes to annotations. Can you explain the benefits of this vs a regular Log, other than typing down a tag each and every time?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup it is basically for easier logging. Have been using loggers like Hugo and Timber so have the habit of cleaner logging. Helps in maintaining log tags etc.

The annotation is to suppress the lint warning of long log tags.

http://grepcode.com/file/repo1.maven.org/maven2/com.android.tools.lint/lint-checks/24.1.0/com/android/tools/lint/checks/LogDetector.java#95

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be having a look at the entire pull request later at night. I would, however, be leaving out Utils and logging the way you've done it, since my preference is to leave as many things to be on platform standards vs personal programming styles for open source projects. For eg, Utils is a common class name and might show up as an option when a bunch of users try importing their own classes. Easier to just avoid the entire thing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, correct. I had first untracked the Utils file in git and made the commit but thought that the logging would become confusing. Would change it to regular logging.

@raveeshbhalla
Copy link
Owner

Sorry about not looking into this, taking out some time later today

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants