A script that automates the tedious task of creating basic android files with the packages and imports for MVVM architecture.
A script that creates the files and codes in them for android MVVM architecture in kotlin.
Android-MVVM-Boilerplate-Creater - behind the scenes
(tested on linux)
METHOD 1:
METHOD 2:
git clone https://github.com/thenishchalraj/Android-MVVM-Boilerplate-Creater.git
cd Android-MVVM-Boilerplate-Creater
chmod +x ./mvvm_creater.sh
./mvvm_creater.sh ~/testing_dir Weather com.example.weatherapp
Boom! you're done.
.
└── data/
├── api/
│ ├── MainApi.kt
│ └── MainDataSource.kt
├── model/
│ └── SomeModel.kt
├── repository/
│ └── MainRepository.kt
├── di/
│ ├── base/
│ │ ├── AppComponent.kt
│ │ ├── AppModule.kt
│ │ ├── ViewModelFactoryModule.kt
│ │ ├── ViewModelKey.kt
│ │ └── ViewModelModule.kt
│ ├── ActivityBuildersModule.kt
│ └── MainModule.kt
├── ui/
│ ├── base/
│ │ └── ViewModelFactory.kt
│ └── main/
│ ├── view
│ └── viewmodel/
│ └── MainViewModel.kt
├── utils/
│ ├── Endpoints.kt
│ ├── ISTDateDeserializer.kt
│ ├── Resource.kt
│ └── Status.kt
└── WeatherApplication.kt
Fork the repository, either do your own improvements or pick something from the ToDos or Issues and start a PR to the dev
branch after successful testing.
Read the license here