{
"name" : "%app.name%",//这里随便写,配置了 locales,name 就不生效了
"appid" : "",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 100,
"locale" : "auto",//这里要注意,一定要配置 auto ,跟随系统
"transformPx" : false,
/* 5 App特有相关 */
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
"safearea" : {
"background" : "#00000000",
"bottom" : {
"offset" : "auto"
}
},
/* 模块配置 */
"modules" : {},
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
/* ios打包配置 */
"ios" : {
"dSYMs" : false
},
/* SDK配置 */
"sdkConfigs" : {
"ad" : {}
}
},
"locales" : {
"en" : {
// 英文
"name" : "英文appName", // 应用名称
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "Get the user album content permission to manually select and upload photos from the album when changing avatar information. Is it allowed to read album content",
"NSCameraUsageDescription" : "Get the user camera permission to take photos and upload photos when changing avatar information. Is it allowed to use the camera"
}
}
},
"zh" : {
// 中文(简体)
"name" : "中文appName",
"ios" : {
"privacyDescription" : {
//iOS平台隐私访问描述信息
"NSPhotoLibraryUsageDescription" : "获取用户相册内容权限,用于更改头像信息时手动选择上传相册内的照片,是否允许读取相册内容",
"NSCameraUsageDescription" : "获取用户摄像头权限,用于更改头像信息时拍照上传照片,是否允许使用摄像头"
}
}
}
}
},
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "2"
}
uni-app 应用名称 跟随系统语言 改变
Dashingl2024-09-17 12:10
相关推荐
web150850966413 小时前
在uniapp Vue3版本中如何解决webH5网页浏览器跨域的问题何极光14 小时前
uniapp小程序样式穿透User_undefined1 天前
uniapp Native.js 调用安卓arr原生service流氓也是种气质 _Cookie1 天前
uniapp blob格式转换为video .mp4文件使用ffmpeg工具爱笑的眼睛111 天前
uniapp 极速上手鸿蒙开发鱼樱前端1 天前
uni-app框架核心/常用API梳理一(数据缓存)阿琳a_2 天前
解决uniapp中使用axios在真机和模拟器下请求报错问题三天不学习2 天前
uni-app 跨端开发精美开源UI框架推荐多客软件佳佳2 天前
便捷的线上游戏陪玩、线下家政预约以及语音陪聊服务怎么做?系统代码解析洗发水很好用2 天前
uniApp上传文件踩坑日记