Giter VIP home page Giter VIP logo

fir-publisher's Introduction

Download

Fir Publisher

简介

发布android apk到fir.im的一个插件。

编译某个flavor的release版本,并发布到fir.im的一个插件。

之前曾使用过官方的fir-cli来发布apk,但是发现它执行的似乎是./gradlew build,会对所有flavor的debug以及release版本都进行构建,速度较慢,而上传的是最后的一个apk。而我们公司的需求是需要构建连接测试服务器的flavor并上传,由于官方暂未支持(现已支持),于是决定自己编写gradle脚本来实现,并修改为gradle插件。

使用

先在项目根目录的build.gradle中加入以下代码:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.githang:fir:0.6.1' // android build plugin 3.0以下版本请使用0.4.3
    }
}

然后在app的build.gradle中加入:

apply plugin: 'fir'

fir {
    apiToken //fir.im上的apitoken
    changeLog "更新日志" // 或者file("日志文件路径")
    upload true
}

在执行assembleRelease时就会进行上传。

多productFlavor发布

fir {
    apiTokens([flavor1: "your api token1",
               flavor2: "your api token2"])
    changeLog "更新日志" // 或者file("日志文件路径")
    upload true
}

上传

./gradlew assembleRelease

./gradlew firFlavorName

捐赠支持

如果你觉得 fir-publisher 对你有所帮助, 欢迎微信打赏支持作者:smile:

fir-publisher's People

Contributors

msdx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fir-publisher's Issues

jdk版本过高

java.lang.UnsupportedClassVersionError: com/githang/firplugin/FirPlugin : Unsupported major.minor version 52.0

推送 firim

您好
image
我这么写的时候 默认将release 版本的包 推送到firim上去了
怎么配置 才能上传 我指定的包 比如 debug包

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.