/AndroidGenerator

This is a java application which generates Android sources. It is most useful for creating an initial mvvm, mvp or normal Android Application

Primary LanguageJavaApache License 2.0Apache-2.0

AndroidGenerator

This is a java application which generates Android sources. It is most useful for creating an initial mvvm, mvp or normal Android Application.

Getting Started

You should checkout this repository at first. Then goto the root of local cloned repository in shell.

Generate Via Jar

$ java -jar AndroidGenerator.jar
====Please input project type====
1.mvvm(*default)  2.mvp  3.normal
1
====Please input project name====
Sample
====Please input package name====
com.dream.android.sample
====Please input your local gradle version(default value is 2.8)====
2.8
====Please input your local build tools version(default value is 23.0.1)====
23.0.3
====Please input minimal sdk version(default value is 14)====
15
====Please input target sdk version(default value is 23)====
23
====Whether use java 8 for development(y/n)====
n

Generate Via Source

This project is managed by gradle, so you can import this project by gradle and run "main" method in AndroidGenerator.java.

"AndroidGenerator.jar" can be generated by the following command.

$ gradle release

Generated Android Project

Modules

The generated project consists of the following three parts:

  • library: Base components, widgets, utils.
  • DaoGenerator: Grenndao generator application(see http://greenrobot.org/greendao/).
  • app: Main module for application development.

Architecture

The generated project is derived from Android-Clean-Architecture

Dependencies

License

Copyright 2016 Meng Jiang.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.