yuebinyun / debug-badge

Add badge(version code, version name, etc) for your DEBUG APK.
74 stars 6 forks source link

How to change label value programmatically? #1

Closed myinnos closed 7 years ago

yuebinyun commented 7 years ago

The icon can not be changed via programmatically while the app is running. The icon with label is generated when the APK (debug version) is generated Sorry for my poor English.

myinnos commented 7 years ago

So programmatically we cannot change label?

yuebinyun commented 7 years ago

Sorry,we can't change label via programmatically. We can set label info in build.gradle (app module)

badge {
  /* The label you want to show*/
  // label = "${project.android.defaultConfig.versionCode}"   // version code
  // label = "${project.android.defaultConfig.versionName}" // version name
  // label = "Debug" 
  label = "Dev"
}
myinnos commented 7 years ago

OK! Thank you!