# Android Set up meta-data

  • To make it easier for developers to build Android The channel pack is used to count the delivery effect of different channels, and developers are now supported to set up custom Meta-data, developers are available at meta-data Set up custom channels in id
  • Note: The Developer Tools version needs to be the latest Nightly, i.e. version >= 1.06.2312182

# Instructions

  • Go to Project.miniapagejson, switch to json Pattern, in the Mini-Android Added in “channel” Configuration, as follows:
  • Explanation: After the above configuration, that is, the underlying generated meta-data Examples are as follows:
  • After configuration, rebuild the APK, built by APK The product will be namedPackage nameField +-${channel.value}field
  • If developers need to build multiple channel installation packages, they need to follow the above actions multiple times, and subsequent developer tools will continue to optimize support for configuring multiple channel packages at once.
  • Set of meta-data Value can then be passed through thewx.miniapp.getMetaData Interface acquisition