的
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/build
|
||||
@@ -0,0 +1,10 @@
|
||||
apply from: "../config.gradle"
|
||||
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "com.android.tools.build:gradle:${rootProject.ext.pluginVer.gradleVersion}"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.doyou.plugin
|
||||
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
|
||||
class WidgetCase implements Plugin<Project>{
|
||||
@Override
|
||||
void apply(Project project) {
|
||||
def extension = project.extensions.create('widgetcase',WidgetCaseExtension)
|
||||
project.afterEvaluate {
|
||||
println "Hi ${extension.keyAlias} ${extension.signPwd} ${extension.keyStoreFileDir}"
|
||||
extension.widgetCase()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.doyou.plugin
|
||||
|
||||
/**
|
||||
* 插件实际功能逻辑类
|
||||
* @autor hongbing
|
||||
* @date 2019-10-11
|
||||
*/
|
||||
class WidgetCaseExtension {
|
||||
|
||||
void widgetCase() {
|
||||
println("hello widget case.")
|
||||
}
|
||||
|
||||
// 签名配置信息
|
||||
String keyAlias = 'widgetcase'
|
||||
String signPwd = '2019888'
|
||||
String keyStoreFileDir = '../widgetcase'
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.doyou.plugin;
|
||||
|
||||
/**
|
||||
* @autor hongbing
|
||||
* @date 2019-10-11
|
||||
*/
|
||||
public class WidgetCaseTransform {
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
implementation-class=com.doyou.plugin.WidgetCase
|
||||
Reference in New Issue
Block a user