Skip to content

binghuan/MyHackerNewsAndroid

Repository files navigation

My Hacker News - Android Version

This is a simple Hacker News Android application for listing new stories.
The app is built with Jetpack Compose.
Data source for the project is from Hacker News API.

Table of Contents

Features

  • Users can read news from the Hacker News application.
  • Users can view the highest-ranked articles.
  • Users can open the link associated with each article in the browser.

API to Get New Stories

API to Fetch Item

Illustration

How to Build the App

  • Open MyHackerNewsAndroid project in Android Studio.
  • Connect an Android device or start an emulator.
  • Click the Run button to build and launch the app.

How to Run Tests

You can run the tests for this project using the command line. Follow the steps below:

  1. Open a terminal and navigate to the project directory.

  2. To run unit tests, use the following command:

    ./gradlew test
  3. To run Android instrumented tests, use the following command:

    ./gradlew connectedAndroidTest

Related Projects

Comparison Between iOS SwiftUI and Android Compose

In SwiftUI, you can navigate seamlessly between code and preview: clicking a component in the preview layout takes you directly to the source code, and clicking on a code block highlights the component in the preview. This two-way navigation enhances the development experience.

In Android Compose, however, navigation is one-way—you can only highlight the code block by clicking on the component in the preview.

iOS SwiftUI

Android Compose

About

A simple hacker news client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages