17
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

fabric betaへのアップロードにRelease Noteを指定する

Posted at

fabricプラグインの導入後、下記コマンドでbetaへのアップロードを行えます。

gradle crashlyticsUploadDistributionDebug

駄菓子菓子、デフォルトの場合だとRelease Noteが空で配布されてしまいます...

document : https://dev.twitter.com/crashlytics/beta-distribution/gradle

ドキュメントによれば、BuildTypeかFlavorに指定して上げれば良いようです。

とりあえず実装

今回はBuildTypeにて指定してみました。(ついでにTesterGroupもしています

app/build.gradle
android {
    ... 
 
 
    buildTypes {
        develop {
            ...
 
            ext.betaDistributionReleaseNotes = getCurrentCommitMessage()
            ext.betaDistributionGroupAliases = 'tester_group'
        }
        
        ...
    }
    
    ...
}

gradleでコミットメッセージを返すような関数を用意してあげて.

def getCurrentCommitMessage() {
    def gitlog = 'git log --oneline'.execute().text.split('\n')[0]
    def date   = "date +%y-%m-%d_%H:%M:%S".execute().in.text.split('\n')[0]
 
    return "$date $gitlog"
}

うむうむ、素敵だ。

17
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?