在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vanniktech/gradle-android-apk-size-plugin开源软件地址(OpenSource Url):https://github.com/vanniktech/gradle-android-apk-size-plugin开源编程语言(OpenSource Language):Groovy 55.1%开源软件介绍(OpenSource Introduction):gradle-android-apk-size-pluginGradle plugin that generates CSV files with apk size per output and variant of apk. The files can be found here Starting from version 0.3.0 the plugin can also be applied to Android library projects and hence it'll print out the aar size instead of the apk size. This plugin creates a task per output file, per variant, and configures each task to run after the variant's assemble task. This means that if the assemble task does not run, no apk size will be reported. Works with the latest stable Gradle Android Tools version 3.0.1. Set upapp/build.gradle buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.vanniktech:gradle-android-apk-size-plugin:0.4.0"
}
}
apply plugin: "com.vanniktech.android.apk.size" Information: This plugin is also available on Gradle plugins Snapshotbuildscript {
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.vanniktech:gradle-android-apk-size-plugin:0.5.0-SNAPSHOT"
}
}
apply plugin: "com.vanniktech.android.apk.size" Sample output
Detailed output
Those CSV files can for instance be used to configure the Jenkins Plot Plugin, to see the apk size for each build in a graph. ConfigurationApksize is configurable via a Gradle extension (shown with default values) in apkSize {
maxApkSize = 5800000
teamcity = true
} Configurable flags:
TeamcityThis will print logs in the form of
see https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity for an in depth explanation how it works LicenseCopyright (C) 2015 Vanniktech - Niklas Baudy Licensed under the Apache License, Version 2.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论