Plan API 5.2-R0.5: More lenient TabInfo annotation usage

- No more warning when TabInfo is defined without Tab annotations.
  This is because builders can define tabs regardless.
This commit is contained in:
Risto Lahtela 2021-04-11 11:53:44 +03:00
parent 1dfc7df307
commit ab31f8a074
2 changed files with 1 additions and 5 deletions

View File

@ -4,7 +4,7 @@ dependencies {
compileOnly "com.google.code.gson:gson:$gsonVersion" compileOnly "com.google.code.gson:gson:$gsonVersion"
} }
ext.apiVersion = '5.2-R0.4' ext.apiVersion = '5.2-R0.5'
publishing { publishing {
repositories { repositories {

View File

@ -384,10 +384,6 @@ public final class ExtensionExtractor {
if (tabName.length() > 50) { if (tabName.length() > 50) {
warnings.add(extensionName + " TabInfo " + tabName + " 'name" + WAS_OVER_50_CHARACTERS); warnings.add(extensionName + " TabInfo " + tabName + " 'name" + WAS_OVER_50_CHARACTERS);
} }
if (!tabNames.contains(tabName)) {
warnings.add(extensionName + " has TabInfo for " + tabName + ", but it is not used.");
}
} }
// Check Tab name lengths // Check Tab name lengths