Console tools to generate code into domain and data layers in an AndroidApplication
- Add the following lines to your root build.gradle:
repositories {
...
maven {
url "http://dl.bintray.com/racobos/maven"
}
}
dependencies {
...
classpath 'com.racobos:danPlugin:1.0.1'
}
apply plugin: 'dan-plugin'
- Add your app name and your package name in the gradle.properties
# App Name
appName = Suplain
# Package syntax
packageSyntax = com.suplain.app
- Generate your own entities
./gradlew danGenerateEntity -Pentities=<entity1>,<entity2>
- Generate your UI view flows
./gradlew danGenerateUi -PuiName=<uiName>
- Generate the views into the UI flow defined
./gradlew danGenerateView -PuiName=<uiName> -PviewName=<viewName>