Fork this repo and work on your own github.
- Language / UI: Java 17, XML layouts, Material 3, AppCompat, ConstraintLayout
- Networking: gRPC (lite, OkHttp transport) with Protocol Buffers, compiled by the protobuf Gradle plugin
- Jetpack: Lifecycle ViewModel and LiveData
- Build: Gradle 8.14.5, Android Gradle Plugin 8.12.3, Kotlin plugin 2.2.0
- SDK: compileSdk 36, targetSdk 35, minSdk 33
- Test: JUnit 4, AndroidX Test, gRPC in-process transport
- Server (provided): Java gRPC server in
server/
The app should call the Greeter.SayHello gRPC service (app/src/main/proto/hello.proto) and show the
greeting it returns on screen.
- Use MVVM and modern Android best practices.
- Handle the cases a real user would hit.
- Write the tests you think are necessary.
- Use JDK 17-21 for Gradle (Gradle 8.14.5 does not support JDK 25+).
- Start the server:
./gradlew :server:run(plaintext, port 50051). - Run the
appon an emulator. It reaches the host at10.0.2.2:50051.
If you forked this repo before the live session, your fork won't have the newer branch. Pull it from the original repo:
git remote add upstream https://github.com/Mereb-Tech/android_challenge.git
git fetch upstream live-message-id
git checkout -b live-message-id upstream/live-message-id
To apply only the server change on top of your own work, cherry-pick it instead:
git cherry-pick baab716