Build: Simple Modular App
Build a simple Android app with two modules: app and greeting. The greeting module provides a function to return a greeting message. The app module uses this function to display the greeting on the main screen.
Target UI
----------------------- | Simple Modular | |---------------------| | | | Greeting: Hello! | | | |---------------------|
Create a separate Kotlin module named 'greeting' with a function getGreeting() that returns a String 'Hello!'
In the app module, call getGreeting() from the greeting module and display the returned text in a TextView on the main screen
Ensure proper module dependency setup so app module can use greeting module
Use a simple vertical layout with a TextView centered on the screen