Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.shekharAggarwal:MultiView:1.0.0'
}
@Composable
@CustomPreview
fun DefaultPreview() {
DevViewTheme {
Greeting("Android")
}
}
@Composable
@DevicePreview
fun DefaultPreview() {
DevViewTheme {
Greeting("Android")
}
}
Or Add both
@Composable
@CustomPreview
@DevicePreview
fun DefaultPreview() {
DevViewTheme {
Greeting("Android")
}
}
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request