Material design Hacker News client for Android, uses official HackerNews/API, Dagger for dependency injection and Robolectric for unit testing.
Requirements
- Latest Android SDK tools
- Latest Android platform tools
- Android SDK Build tools 23.0.1
- Android SDK 23
- Android Support Repository
- Android Support Library 23.1.0
- Google Repository
- Google Play services 8.1.0
Dependencies
- Official Hacker News API
- Algolia Hacker News Search API
- appcompat-v7 / recyclerview-v7 / cardview-v7
- Square Retrofit / OkHttp
- Square AssertJ
- Square Dagger
- Robolectric
Build
./gradlew assembleDebug
Supply your own release signing config to build release. Release signing config is left out on purpose.
Run all/selective tests:
./gradlew testDebug
./gradlew testDebug --tests "*HackerNewsClientTest"
You may need to set up Android Studio for unit test, by changing 'Build Variants -> Test Artifact' to 'Unit Tests'. See technical docs.
./gradlew jacocoTestReport
- Supporting multiple themes in your Android app (Part 1)
- Supporting multiple themes in your Android app (Part 2)
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.