Gradle tip: how to use the archivesBaseName to change the apk name

I am seeing a lot of build.gradle where there are tasks to rename the apks.

I prefer using something different, without use another tasks, setting the archivesBaseName.

For example:

  defaultConfig {
      ....
      project.ext.set("archivesBaseName", "MyName-" + defaultConfig.versionName);

  }

Output:

MyName-1.0.12-release.apk

Comments

  1. I simply couldn’t go away your web site before suggesting that I actually loved the standard info a person provide for your guests? Is gonna be again steadily to inspect new posts.
    토토사이트
    토토사이트

    ReplyDelete
  2. you have a great blog here! would you like to make some invite posts on my blog?
    온라인경마
    온라인경마

    ReplyDelete
  3. Good post. I study one thing more difficult on totally different blogs everyday. It can all the time be stimulating to learn content from different writers and follow a bit one thing from their store.
    바카라
    바카라사이트

    ReplyDelete
  4. Thanks a bunch for sharing this with all people you actually recognise what you’re speaking approximately! Bookmarked.
    토토사이트
    사설토토

    ReplyDelete
  5. Suggestions and ideas are greatly appreciated. Thanks for sharing wonderful post.

    ReplyDelete
  6. I just want to say thank you for one million times to this fabulous article

    ReplyDelete
  7. This blog is awesome. I hope you continue to share these good things

    ReplyDelete
  8. This is really helpful post and very informative there is no doubt about it.

    ReplyDelete
  9. I hope you write more articles like this. I'm your biggest fan.

    ReplyDelete
  10. I'm glad I stumbled into your website!

    ReplyDelete
  11. I genuinely value individuals like you! Be careful!

    ReplyDelete

Post a Comment

Popular posts from this blog

AntiPattern: freezing a UI with Broadcast Receiver

NotificationListenerService and kitkat

How to centralize the support libraries dependencies in gradle