Create gradle tasks supporting buildTypes for headless build

[postlink] https://the-best-way-of-life-is-islam.blogspot.com/2015/07/create-gradle-tasks-supporting.html [/postlink]

First of all I know there are many similar topics, but I'm confused with this issue. I have an Android project that is integrated with the fabric.io plug-in and crashlytics lib. In our project we're using Crashlytics for remote logging and Crashlytics Beta for build distribution. We want to distribute project for two different teams in Crashlytics Beta depending on task: one task for Customer builds and one for the Team ones. We're using ship.io as our CI server but I don't think it is a very important detail.

So, as now I can write in my release buildTypes something like that:

ext.betaDistributionGroupAliases = "MY_CUSTOM_DISTRIBUTION_GROUP"

next I can run my bash script like this:

./gradlew clean assembleRelease crashlyticsUploadDistributionRelease

and after successful building all group members will receive released apk-file.

Is it possible to write custom gradle task which will run sequence of calls

clean assembleRelease crashlyticsUploadDistributionRelease

and apply buildTypes which I need?

اذا أعجبك الموضوع ساهم في نشره :

Enregistrer un commentaire

 
حقوق النشر: Published by | Template Created by | القناة على اليوتيب
copyright © 2014. The Best Way Of Life Is Islam -يمكن نقل كل ما هو موجود في موقع الرحمة تيوب
القرآن الكريم و الأحاديث النبوية أناشيد و دروس اسلامية منوعة موقع الفيديوهات الاسلامية
تطوير و تعريب مدونة ثعلوب