在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sangmingming/gradle-fir-plugin开源软件地址(OpenSource Url):https://github.com/sangmingming/gradle-fir-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):#gradle-fir-plugin a gradle plugin for update apk to fir.im 使用方法tasksuploadFir --上传apk到fir ###build.gradle buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.squareup.okhttp:okhttp:2.2.0'
classpath 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
classpath 'org.json:json:20090211'
classpath 'me.isming:firup:0.4.1'
}
}
apply plugin: 'me.isming.fir'
fir {
appId = "" //app的appid,在fir中可以找到
userToken = "" //fir用户的token,也在在fir中找到
apks {
release {
// 要上传的apk的路径,类似下面
sourceFile file("/project/main/build/outputs/apk/xxx.apk")
name "" //app的名称
version "3.3.0" //app的版本version
build "330" //app的版本号
changelog "" //更新日志
icon file("....../res/drawable-xxhdpi/icon_logo.png") //app的icon的路径
}
}
}
###Run
##其他 你也可以在本任务的基础上,在你的build脚本中增加以下内容: uploadFir.dependsOn assembleRelease //后面为你生成apk的任务 这样就可以在执行上传到fir之前首先会生成一个最新的安装包了 关于本插件基于fir.im官方提供的api文档进行编写,时间匆忙,可能还有一些地方不够完善,还有许多地方可以优化,欢迎star,fork,共同完善。 也可以给我提意见,我来优化。 关于我blog:blog.isming.me mail: [email protected] weibo: @码农明明桑 License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论