first commit
This commit is contained in:
156
manifest.config.ts
Normal file
156
manifest.config.ts
Normal file
@@ -0,0 +1,156 @@
|
||||
import path from 'node:path'
|
||||
import process from 'node:process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { readRuntimeConfig } from './src/config/runtimeConfig.node'
|
||||
import { defineManifestConfig } from '@uni-helper/vite-plugin-uni-manifest'
|
||||
|
||||
const projectRoot = path.dirname(fileURLToPath(import.meta.url))
|
||||
const mode = process.env.NODE_ENV === 'production' ? 'production' : 'development'
|
||||
const rc = readRuntimeConfig(projectRoot, mode)
|
||||
const appName = rc.appName
|
||||
|
||||
export default defineManifestConfig({
|
||||
'name': appName,
|
||||
'appid': '__UNI__CC3DA09',
|
||||
'description': '',
|
||||
'versionName': '1.0.0',
|
||||
'versionCode': '107',
|
||||
'transformPx': false,
|
||||
/* 5+App特有相关 */
|
||||
'app-plus': {
|
||||
usingComponents: true,
|
||||
nvueStyleCompiler: 'uni-app',
|
||||
compilerVersion: 3,
|
||||
background: '#000000',
|
||||
compatible: {
|
||||
ignoreVersion: true,
|
||||
},
|
||||
splashscreen: {
|
||||
alwaysShowBeforeRender: true,
|
||||
waiting: true,
|
||||
autoclose: true,
|
||||
delay: 0,
|
||||
},
|
||||
|
||||
/* 模块配置 */
|
||||
modules: {
|
||||
Share: {},
|
||||
Camera: {},
|
||||
PhotoLibrary: {},
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
distribute: {
|
||||
/* android打包配置 */
|
||||
android: {
|
||||
package: 'com.quannengcha.app',
|
||||
permissions: [
|
||||
'<uses-permission android:name="android.permission.INTERNET"/>',
|
||||
'<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>',
|
||||
'<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>',
|
||||
],
|
||||
},
|
||||
/* ios打包配置 */
|
||||
ios: {
|
||||
privacyDescription: {
|
||||
NSLocalNetworkUsageDescription: '需要访问您的网络来提供更好的服务',
|
||||
NSPhotoLibraryAddUsageDescription: "此应用需要访问您的相册以保存图片",
|
||||
},
|
||||
idfa: false,
|
||||
bundleIdentifier: 'com.allinone.check',
|
||||
},
|
||||
/* SDK配置 */
|
||||
sdkConfigs: {
|
||||
// share: {
|
||||
// weixin: {
|
||||
// appid: 'wx开头的微信开放平台AppID',
|
||||
// UniversalLinks: 'https://chimei.ronsafe.cn/app/',
|
||||
// }
|
||||
// },
|
||||
// oauth: {
|
||||
// weixin: {
|
||||
// appid: 'wx开头的微信开放平台AppID',
|
||||
// appsecret: '微信开放平台AppSecret',
|
||||
// UniversalLinks: 'https://chimei.ronsafe.cn/app/'
|
||||
// }
|
||||
// }
|
||||
},
|
||||
icons: {
|
||||
android: {
|
||||
hdpi: 'static/icons/72x72.png',
|
||||
xhdpi: 'static/icons/96x96.png',
|
||||
xxhdpi: 'static/icons/144x144.png',
|
||||
xxxhdpi: 'static/icons/192x192.png',
|
||||
},
|
||||
ios: {
|
||||
appstore: 'static/icons/1024x1024.png',
|
||||
ipad: {
|
||||
'app': 'static/icons/76x76.png',
|
||||
'app@2x': 'static/icons/152x152.png',
|
||||
'notification': 'static/icons/20x20.png',
|
||||
'notification@2x': 'static/icons/40x40.png',
|
||||
'proapp@2x': 'static/icons/167x167.png',
|
||||
'settings': 'static/icons/29x29.png',
|
||||
'settings@2x': 'static/icons/58x58.png',
|
||||
'spotlight': 'static/icons/40x40.png',
|
||||
'spotlight@2x': 'static/icons/80x80.png',
|
||||
},
|
||||
iphone: {
|
||||
'app@2x': 'static/icons/120x120.png',
|
||||
'app@3x': 'static/icons/180x180.png',
|
||||
'notification@2x': 'static/icons/40x40.png',
|
||||
'notification@3x': 'static/icons/60x60.png',
|
||||
'settings@2x': 'static/icons/58x58.png',
|
||||
'settings@3x': 'static/icons/87x87.png',
|
||||
'spotlight@2x': 'static/icons/80x80.png',
|
||||
'spotlight@3x': 'static/icons/120x120.png',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
'quickapp': {},
|
||||
/* 小程序特有相关 */
|
||||
'mp-weixin': {
|
||||
appid: '',
|
||||
setting: {
|
||||
urlCheck: false,
|
||||
},
|
||||
usingComponents: true,
|
||||
darkmode: false,
|
||||
themeLocation: 'theme.json',
|
||||
},
|
||||
'mp-alipay': {
|
||||
usingComponents: true,
|
||||
},
|
||||
'mp-baidu': {
|
||||
usingComponents: true,
|
||||
},
|
||||
'mp-toutiao': {
|
||||
usingComponents: true,
|
||||
},
|
||||
'h5': {
|
||||
darkmode: false,
|
||||
themeLocation: 'theme.json',
|
||||
},
|
||||
'uniStatistics': {
|
||||
enable: false,
|
||||
},
|
||||
'vueVersion': '3',
|
||||
|
||||
/* UTS 插件配置 */
|
||||
'uts': {
|
||||
'plugins': {
|
||||
'lz-url-launch': {
|
||||
'version': '1.0.0',
|
||||
'description': 'SFSafariViewController插件,支持在iOS中使用系统浏览器打开网页',
|
||||
'platforms': {
|
||||
'ios': {
|
||||
'appid': '__UNI_LZ_URL_LAUNCH_IOS',
|
||||
'autostart': false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user