diff --git a/docs/plugin/uts-plugin.md b/docs/plugin/uts-plugin.md index 710313c4cd2b2482b8d9a1cb4219b94eeb7cf99c..3964b1e482b73a854c13c598f42f73f94bffe2ef 100644 --- a/docs/plugin/uts-plugin.md +++ b/docs/plugin/uts-plugin.md @@ -235,7 +235,15 @@ utsæ’件在Androidå¹³å°çš„原生层é…置文件,å¯ä»¥åœ¨å…¶ä¸é…ç½®ä¾èµ– } ], // Android系统版本è¦æ±‚,最低Android 5.0(打包时ä¸è¦å¤åˆ¶æ³¨é‡Šï¼‰ - "minSdkVersion": 21 + "minSdkVersion": 21, + "project": { + "plugins": [ + "com.huawei.agconnect" + ], + "dependencies": [ + "com.huawei.agconnect:agcp:1.6.0.300" + ] + } } ``` @@ -261,12 +269,34 @@ dependencies { } ``` - - minSdkVersion æ’件支æŒçš„Android最低版本,整数类型,å–值范围为Android API Level 默认uni-app最低支æŒç‰ˆæœ¬ä¸º19,å³Android4.4.2 +- project + 云端打包项目相关é…置,当使用的三方SDK需è¦é…ç½®gradleæ’件时å¯é…ç½®æ¤é¡¹ï¼š + + plugins + æ¤é…ç½®å°†ä¼šæ·»åŠ åˆ°äº‘ç«¯æ‰“åŒ…å·¥ç¨‹appåŠbuild.gradle文件的“pluginsâ€ä¸ï¼š +``` +plugins { + id 'com.android.application' + // å‰é¢config.json示例é…ç½®å°†ä¼šæ·»åŠ å¦‚ä¸‹é…ç½® + id 'com.huawei.agconnect' +} +``` + + dependencies + æ¤é…ç½®å°†ä¼šæ·»åŠ åˆ°äº‘ç«¯æ‰“åŒ…å·¥ç¨‹é¡¹ç›®çº§build.gradle文件的“buildscript > dependenciesâ€ä¸ +``` +buildscript { + dependencies { + classpath 'com.android.tools.build:gradle:7.2.0' + // å‰é¢config.json示例é…ç½®å°†ä¼šæ·»åŠ å¦‚ä¸‹é…ç½® + classpath "com.huawei.agconnect:agcp:1.6.0.300" + } +} +``` + **注æ„:**