android一键发布,Android一键发布内测平台插件

Pre.im 插件使用说明

前言

在 Android studio 中通过引入 gradle 脚本可以方便集成一款优秀的插件,平时,我们喜欢将自己的应用上传到免费的内测平台进行下载分发,但是每次打包一个版本都需要重复上传,看完这篇,你将可以方便简单的集成一个插件,省去每次重复上传的烦恼。目前该插件已经开源 ,有兴趣的朋友可以到github看看:https://github.com/AllenCoder/UploaderPlugin

官网链接,一款内测分发平台

在根目录下的build.gralde文件的depandencies(buildscript部分)中添加:

dependencies {

classpath 'com.pre.im:preuploader:1.0.2'

}

在module的build.gradle文件的顶部添加:

apply plugin: 'com.pre.im'

pre {

user_key=''

password=''

update_notify=""

}

/build.gradle文件如下:

buildscript {

repositories {

jcenter()

}

dependencies {

...

classpath 'com.pre.im:preuploader:1.0.2'

}

}}

//build.gradle文件如下:

apply plugin: 'com.pre.im'

pre {

user_key='a33333333333rrrr4ddeeeeeeedd'

password='1222222'

update_notify="1"

}

项目应用了Pre插件之后,插件默认是开启的,会在工程Gradle projects生成以下两个task:

ec960586c8e33050889ecbf9dc30c481.png

Paste_Image.png

可以直接点击执行或者在命令行输入以下命令:

gradle uploadReleasePreApkFile

上传成功之后就可以在内测平台看到版本信息:

e3326159db854832c3fae865fd9e2d66.png

Paste_Image.png

Thanks Bugly,

BuglyDevTeam,

IT_xiao小巫

License

Copyright 2016 AllenCoder

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, software

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值