From 47dbaee7473426e09f3957503fcfe3f28a665a86 Mon Sep 17 00:00:00 2001 From: linju-json Date: Wed, 12 May 2021 19:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E6=96=B9=E4=BE=BF=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=A9=BA=E7=9A=84manifest.json=20un?= =?UTF-8?q?i-config-center=E4=B8=8B=E7=9A=84uni-id=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +- manifest.json | 117 ++++++++++++++++++ .../uni-config-center/uni-id/config.json | 52 ++++++++ 3 files changed, 170 insertions(+), 3 deletions(-) create mode 100644 manifest.json create mode 100644 uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json diff --git a/.gitignore b/.gitignore index 9bf8055e..b0aefc00 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,5 @@ unpackage/ .hbuilderx node_modules .DS_Store -uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json pages/grid/banner.json -pages/list/list.json -manifest.json \ No newline at end of file +pages/list/list.json \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 00000000..417239f8 --- /dev/null +++ b/manifest.json @@ -0,0 +1,117 @@ +{ + "name" : "uni-starter", + "appid" : "", + "description" : "集成了商用项目开发常见功能的项目模板", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "privacy" : { + "prompt" : "template", + "template" : { + "title" : "服务协议和隐私政策", + "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
  你可阅读《服务协议》《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", + "buttonAccept" : "同意", + "buttonRefuse" : "暂不同意" + } + }, + "compatible" : { + "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 + }, + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : { + "Fingerprint" : {}, + "Share" : {}, + "Push" : {}, + "OAuth" : {} + }, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + // "permissionExternalStorage" : { + // "request" : "none", + // "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" + // }, + // "permissionPhoneState" : { + // "request" : "none", + // "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许。" + // }, + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : { + "oauth" : { + "univerify" : {}, + "apple" : {} + }, + "ad" : {}, + "share" : {}, + "geolocation" : {}, + "push" : { + "unipush" : {} + }, + "payment" : {} + } + }, + "nvueLaunchMode" : "" + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "", + "setting" : { + "urlCheck" : false, + "es6" : false + }, + "usingComponents" : true, + "betterScopedSlots" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "h5" : { + "template" : "" + } +} diff --git a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json new file mode 100644 index 00000000..0c99eb58 --- /dev/null +++ b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json @@ -0,0 +1,52 @@ +{ + "passwordSecret": "passwordSecret-demo", + "tokenSecret": "tokenSecret-demo", + "tokenExpiresIn": 7200, + "tokenExpiresThreshold": 600, + "passwordErrorLimit": 6, + "bindTokenToDevice": true, + "passwordErrorRetryTime": 3600, + "autoSetInviteCode": false, + "forceInviteCode": false, + "app-plus": { + "tokenExpiresIn": 2592000, + "oauth": { + "weixin": { + "appid": "", + "appsecret": "" + }, + "apple": { + "bundleId": "" + } + } + }, + "mp-weixin": { + "oauth": { + "weixin": { + "appid": "", + "appsecret": "" + } + } + }, + "mp-alipay": { + "oauth": { + "alipay": { + "appid": "alipay appid", + "privateKey": "alipay privateKey" + } + } + }, + "service": { + "sms": { + "name": "DCloud", + "codeExpiresIn": 300, + "smsKey": "", + "smsSecret": "" + }, + "univerify": { + "appid": "__UNI__03B096E", + "apiKey": "", + "apiSecret": "" + } + } +} \ No newline at end of file -- GitLab