-
Notifications
You must be signed in to change notification settings - Fork 1.5k
插件接入指南
Jiongxuan Zhang edited this page Jun 29, 2017
·
17 revisions
只需两步,就能让您的App变成“RePlugin插件”:
在项目根目录的 build.gradle(注意:不是 app/build.gradle) 中添加 replugin-plugin-gradle 依赖:
buildscript {
dependencies {
classpath 'com.qihoo360.replugin:replugin-plugin-gradle:2.1.0'
...
}
}
在 app/build.gradle 中应用 replugin-plugin-gradle 插件,并添加 replugin-plugin-lib 依赖:
apply plugin: 'replugin-plugin-gradle'
dependencies {
compile 'com.qihoo360.replugin:replugin-plugin-lib:2.1.0'
...
}
接下来您就可以像单品那样,开发您的插件。生成出来的是APK,既可以“安装到设备”,又可以“作为插件”使用。
若要调试插件,请点击此处阅读《插件的调试》