android-multimodule-plugin icon indicating copy to clipboard operation
android-multimodule-plugin copied to clipboard

Availability не работает

Open AlexeyKorshun opened this issue 4 years ago • 2 comments

в рецепте ставлю availability: false и виджет скрывается, вместо того что бы стать недоступным для редактирования

AlexeyKorshun avatar Jul 16 '21 05:07 AlexeyKorshun

@AlexeyKorshun , привет! А приведи, пожалуйста, весь рецепт, который ты пытаешься запустить? Очень поможет в отладке.

PStrelchenko avatar Jul 16 '21 06:07 PStrelchenko

requiredParams:
  name: name
  description: description

optionalParams:
  revision: 1
  category: fragment
  formFactor: mobile
  constraints:
    - kotlin
  screens:
    - fragment_gallery
    - menu_entry
  minApi: 21
  minBuildApi: 21

widgets:
  - stringParameter:
      id: className
      name: Screen Name Prefix
      help: The name of the Screen to create
      constraints:
        - class
        - nonempty
        - unique
      default: Blank

  - stringParameter:
      id: fragmentName
      name: Fragment Name
      help: The name of the Fragment class to create
      constraints:
        - class
        - nonempty
        - unique
      default: BlankFragment
      suggest: ${className}Fragment
      visibility: true
      availability: false

AlexeyKorshun avatar Jul 16 '21 06:07 AlexeyKorshun