Skip to content

Commit

Permalink
单元测试调整,添加open插件
Browse files Browse the repository at this point in the history
  • Loading branch information
K0170016 authored and K0170016 committed Jun 26, 2019
1 parent 906cd4a commit f286a65
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.huyingbao.core.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* kotlin open 支持
* <p>
* Created by liujunfeng on 2019/5/30.
*/
@Target(ElementType.ANNOTATION_TYPE)
public @interface AllOpen {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.huyingbao.core.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* kotlin open 单元测试
* <p>
* Created by liujunfeng on 2019/5/30.
*/
@AllOpen
@Target(ElementType.TYPE)
public @interface OpenForTesting {
}
6 changes: 6 additions & 0 deletions core-arch/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: "kotlin-allopen"
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.dcendents.android-maven'

group = "com.github.coolfire2015"

//指定会打开类的注解的列表
allOpen {
annotation("com.huyingbao.core.annotations.AllOpen")
}

android {
//编译版本
compileSdkVersion COMPILE_SDK_VERSION as int
Expand Down
2 changes: 1 addition & 1 deletion core-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply from: rootProject.file('depend_common.gradle')

//指定会打开类的注解的列表
allOpen {
annotation("com.huyingbao.core.common.annotation.AllOpen")
annotation("com.huyingbao.core.annotations.AllOpen")
}

android {
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit f286a65

Please sign in to comment.