- Notifications
You must be signed in to change notification settings - Fork9
An api compatibility inspect gradle plugin.(一个Api兼容性检测的Gradle插件)
License
Sunzxyong/ApiInspect
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An api compatibility inspect gradle plugin.(一个Api兼容性检测的Gradle插件)
Add dependencies inbuild.gradle
of theroot project
:
dependencies { // ... classpath('com.zxy.android.plugin:api-inspect:1.2.0') { exclude group: 'com.android.tools.build', module: 'gradle' } }
and add theapply plugin
to build.gradle in the module:
apply plugin: 'api.inspect'
By default,ApiInspect
will inspects all apis but does not contain the system api. Of course, you can also customizeexclude
orinclude
Settings:
apiInspect { enable true //Whether api inspect is enabled. inspectSystemApi false //Whether to inspect the system api. //Specify the library to inspect.// include {// //Value is the package name.// api "com.zxy.tiny"// } //Specify the library not to inspect.// exclude {// //Value is the package name.// api 'com.zxy.tiny'// api 'com.google.zxing'// }}
When the Apk build is completed. The results of the inspection will be printed on the console:
Of course, The results of the inspection will also be stored in theapi-inspect
directory:
Support Gradle Plugin Version: >=2.3.3
Version control supports the semantic 2.0 protocol
- 1.0.0:First version, support api compatibility inspect.
- 1.1.0:Optimization logic.
- 1.2.0:Optimization of the library plugin.
- Blog:https://zhengxiaoyong.com
- Wechat:
Apache LicenseVersion 2.0, January 2004http://www.apache.org/licenses/Copyright 2018 郑晓勇
Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.
About
An api compatibility inspect gradle plugin.(一个Api兼容性检测的Gradle插件)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.