Arch is a flexible base frame to develop an app. It mainly included:
- MVP
- Repository
- BaseView
- BasePresenter
- BaseActivity
- BaseToolbarActivity
- BaseFragment
- BaseListFragment
- BaseDialog
- BaseDialogFragment
You just need to simply inherit them and implement some methods will be able to quickly complete some work.
Download the latest AAR via Maven:
First, Add the following configuration information to the settings.xml file:
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-zhupeng-maven</id>
<name>bintray</name>
<url>https://dl.bintray.com/zhupeng/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-zhupeng-maven</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/zhupeng/maven</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
Then, Add the following information to the pom.xml file:
<dependency>
<groupId>space.zhupeng.arch</groupId>
<artifactId>arch</artifactId>
<version>2.5</version>
<type>pom</type>
</dependency>
or Gradle:
First,Add the maven repository address under the repositories node in the root build.gradle file:
repositories {
maven {
url "https://dl.bintray.com/zhupeng/maven"
}
}
Then,Add the following dependencies under the dependencies node in the app's build.gradle file:
implementation 'space.zhupeng.arch:arch:2.5'
At this point, you can use the app's basic framework for rapid development.
Arch requires at minimum Java 7 or Android 4.0.
Arch is MIT licensed.