Example #1
0
def generateModulePart(presenterName,packageName,viewType):
    utility.createFolder(presenterName.lower()+"_module")
    utility.createFile(presenterName+"Module")
    utility.createFile(presenterName+viewType+"Module")
    utility.writeFile(presenterName+"Module",helper.generatePresenterModuleCode(packageName,presenterName))
    utility.writeFile(presenterName+viewType+"Module",helper.genereateViewModuleCode(packageName,presenterName,viewType))
    utility.moveFileToFolder(presenterName+"Module",presenterName.lower()+"_module")
    utility.moveFileToFolder(presenterName+viewType+"Module",presenterName.lower()+"_module")
    utility.moveFolderToFolder(presenterName.lower()+"_module","../di/modules")
def generateModuleLayer(packageName, featureName, repositoryName,
                        repositoryImpName):
    utility.createFolder(featureName.lower() + "_module")
    utility.createFile(featureName + "Module")
    utility.writeFile(
        featureName + "Module",
        helper.generateModuleCode(packageName, featureName, repositoryName,
                                  repositoryImpName))
    utility.moveFileToFolder(featureName + "Module",
                             featureName.lower() + "_module")
    utility.moveFolderToFolder(featureName.lower() + "_module",
                               "../di/modules")
Example #3
0
def aggreateViewModel(viewmodelName):
    utility.moveFolderToFolder(viewmodelName.lower(), "../ui")
def aggreateData(featureName):
    utility.moveFolderToFolder("api", "data")
    utility.moveFolderToFolder("repository", "data")
    utility.moveFolderToFolder("entities", "data")
    utility.moveFolderToFolder("data", featureName)
def aggreateDomain():
    utility.moveFolderToFolder("entities", "domain")
    utility.moveFolderToFolder("mapper", "domain")
    utility.moveFolderToFolder("repository", "domain")
    utility.moveFolderToFolder("usecase", "domain")
def aggreateFeature(featureName):
    utility.moveFolderToFolder("domain", featureName)
    utility.moveFolderToFolder("data", featureName)
    utility.moveFolderToFolder(featureName, "../")
Example #7
0
def aggreatePresenter(presenterName):
    utility.moveFolderToFolder(presenterName.lower(),"../ui")