export default defineAppConfig({
  // The four main tabs are rendered inside the single `home` page (state-based
  // switching) instead of being separate tabBar pages — this removes the
  // switchTab transition that caused the white flash. The rest stay as
  // navigateTo pages.
  pages: [
    'pages/home/index',
    'pages/publish/index',
    'pages/profile-edit/index',
    'pages/pet-edit/index',
    'pages/chat/index',
    'pages/contacts/index',
    'pages/my-posts/index',
    'pages/user-profile/index',
    'pages/post-detail/index',
    'pages/post-edit/index'
  ],
  window: {
    navigationStyle: 'custom',
    backgroundColor: '#14102b',
    backgroundTextStyle: 'dark'
  },
  permission: {
    'scope.userLocation': {
      desc: '用于发现附近的毛孩子，以及在发布动态时标记位置'
    }
  },
  requiredPrivateInfos: ['chooseLocation', 'getLocation'],
  lazyCodeLoading: 'requiredComponents'
})
