Material design Hacker News client for Android, uses official HackerNews/API, Dagger for dependency injection and Robolectric for unit testing.
Requirements
- JDK 8
- Latest Android SDK tools
- Latest Android platform tools
- Android SDK Build tools 24.0.0
- Android SDK 24
- Android Support Repository
- Android Support Library 24.0.0
Dependencies
- Official Hacker News API, user services (e.g. login/create account/vote/comment) rely on redirect requests to Hacker News website
- Algolia Hacker News Search API
- Readability Parser API
- AOSP support library: appcompat-v7 / recyclerview-v7 / design / cardview-v7 / preference-v7 / customtabs
- Square Retrofit / OkHttp / AssertJ / Dagger / LeakCanary
- Retrolambda & Retrolambda Gradle plugin
- Robolectric
Build
./gradlew assembleDebug
Build with LeakCanary on
./gradlew assembleLeak
Grab your Readability Parser API key here if you want to connect to Readability.
Run all/selective tests:
./gradlew testDebug
./gradlew testDebug --tests "*HackerNewsClientTest"
./gradlew jacocoTestReport
- Supporting multiple themes in your Android app (Part 1)
- Supporting multiple themes in your Android app (Part 2)
- Building custom preferences with preference-v7
- Hacking up an ad blocker for Android
- Bottom sheet everything
Contributions are always welcome. Please make sure you read Contributing notes first.
Copyright 2015 Ha Duy Trung
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.