Skip to content

frokanic/Calculator

Repository files navigation

Calculator App 🧮

A simple and elegant calculator app built using the MVVM (Model-View-ViewModel) architecture. The app allows basic calculations such as addition, subtraction, multiplication, and division.

Features ✨

  • Perform basic arithmetic calculations: addition, subtraction, multiplication, and division.
  • Clear the current calculation with a single tap. 🔄
  • Change the sign of a number with a dedicated button. ➖➕
  • Responsive design and intuitive user interface. 📱
  • Built using the MVVM architecture for separation of concerns and maintainability.
  • Utilizes Android Architecture Components such as ViewModel and LiveData. 🏗️
  • Implements ViewBinding for efficient view access and null safety. 🔗
  • Includes comprehensive unit tests to ensure accuracy and reliability. ✅

Technologies Used 🚀

  • MVVM (Model-View-ViewModel) architecture
  • ViewBinding
  • Kotlin programming language
  • Android Architecture Components: ViewModel and LiveData
  • XML
  • Gradle build system

Screenshots 📷

Testing ✅

The Calculator App includes a comprehensive suite of unit tests to verify the correctness and functionality of its calculations. The tests cover scenarios such as appending digits, performing arithmetic operations, clearing the calculator, changing the sign of a number, and more.

To run the unit tests locally, you can navigate to the CalculatorViewModelTest class located in the com.dji.calculator package. This class contains individual test methods for each specific functionality, ensuring that the app behaves as expected.

Contact 📧

For any questions or inquiries, feel free to reach out to [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages