Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An api compatibility inspect gradle plugin.(一个Api兼容性检测的Gradle插件)

License

NotificationsYou must be signed in to change notification settings

Sunzxyong/ApiInspect

Repository files navigation

An api compatibility inspect gradle plugin.(一个Api兼容性检测的Gradle插件)


DownloadTravisHex.pm

Introduce

Usage

Installation

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'

Configuration

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'//    }}

Inspect Result

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

Support Gradle Plugin Version: >=2.3.3

Version

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.

About

License

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp