From 6be036e0eb749f67cb4c752e6f322aeb32c4bf3a Mon Sep 17 00:00:00 2001 From: Airsaid Date: Thu, 9 Sep 2021 22:12:38 +0800 Subject: [PATCH] Prepare version 1.0.3 --- README.md | 5 +++-- README_CN.md | 8 ++++---- build.gradle | 4 ++-- okmock-plugin/build.gradle | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f4392be..d301726 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,8 @@ public class Person { # More Examples ``` -@Mock +// The size of the data set can be set by randomSizeRange attribute +@Mock(randomSizeRange = [1, 100]) public List personList; @Mock @@ -96,4 +97,4 @@ 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. -``` +``` \ No newline at end of file diff --git a/README_CN.md b/README_CN.md index eedc940..dc41da4 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,7 +1,7 @@ [![Version](https://img.shields.io/maven-central/v/com.airsaid/okmock)](https://plugins.gradle.org/plugin/com.airsaid.okmock) # OKMock -:balloon: OKMock 是一个用与 Android 上快速填充字段数据的 Gradle Plugin。 +:balloon: OKMock 是一个 Android 上快速填充字段数据的 Gradle Plugin。 # 使用 @@ -57,7 +57,8 @@ public class Person { # 更多示例 ``` -@Mock +// 通过 randomSizeRange 属性可以设置数据集的大小 +@Mock(randomSizeRange = [1, 100]) public List personList; @Mock @@ -82,7 +83,6 @@ public Map[] personMapArray; public Map> personMapNested; ``` - # License ``` Copyright 2021 Airsaid @@ -98,4 +98,4 @@ 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. -``` +``` \ No newline at end of file diff --git a/build.gradle b/build.gradle index 4162818..e53611d 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = "1.5.10" ext.agp_version = "4.1.1" - ext.okmock_version = "1.0.2" + ext.okmock_version = "1.0.3" ext.isReleaseBuild = !okmock_version.endsWith('-SNAPSHOT') repositories { if (!isReleaseBuild) { @@ -23,7 +23,7 @@ buildscript { subprojects { group('com.airsaid') - version("1.0.2") + version("1.0.3") } allprojects { diff --git a/okmock-plugin/build.gradle b/okmock-plugin/build.gradle index b6f8e80..4e96612 100644 --- a/okmock-plugin/build.gradle +++ b/okmock-plugin/build.gradle @@ -16,7 +16,7 @@ dependencies { pluginBundle { website = 'https://github.com/Airsaid/OKMock' vcsUrl = 'https://github.com/Airsaid/OKMock' - tags = ['Mock', 'Java', 'Android', 'Annotation'] + tags = ['Mock', 'Java', 'Android', 'Annotation', 'ASM', 'Transform'] } java {