diff --git a/README.md b/README.md index f911801c2033ff5f6f938544a62d66f5ccdc0dcf..dd5a04e0e76061405fc50d969f500979ba527e69 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,6 @@ - 项目移植状态: - 调用差异:使用鸿蒙api与源项目调用方式不一样 - 开发版本:sdk4,DevEco Studio2.1 beta2 -- 项目作者和维护人:王江涛 -- 联系方式:wangjiangtao003@chinasoftinc.com - 原项目Doc地址: ## 项目介绍 @@ -23,18 +21,23 @@ ## 安装教程 -1. 在主项目entry中的grade文件依赖 -``` -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation project(path: ':speechutils') -} -``` - - -如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, - -并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 +1.在项目根目录下的build.gradle文件中, + ``` + allprojects { + repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } + } + } + ``` + 2.在entry模块的build.gradle文件中, + ``` + dependencies { + implementation('com.gitee.chinasoft_ohos:speechutils:0.0.1-SNAPSHOT') + ...... + } + ``` ## 用法 1.语音转文字功能 在功能AbilityASlice继承AsrBaseAbilitySlice,实现 showAsrResult(String info)方法 @@ -91,7 +94,5 @@ CloudTest代码测试无异常 火绒安全病毒安全检测通过 -测试员:李向涛 - ## 版本迭代 0.0.1-SNAPSHOT diff --git a/build.gradle b/build.gradle index e463f147c46e9b38e8fe2fb8e3f3059b899a057d..9bab9f231a021240afd0ac4c10dcc393d5b80e50 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,9 @@ buildscript { allprojects { repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } maven { url 'https://repo.huaweicloud.com/repository/maven/' } diff --git a/entry/build.gradle b/entry/build.gradle index 5a1b0ce338d1668a922771fb0aa01f8ddf6de38b..112b6fcc297b664b8a1a4bf6543b2f24c37b64e1 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -1,17 +1,7 @@ apply plugin: 'com.huawei.ohos.hap' apply plugin: 'com.huawei.ohos.decctest' ohos { - signingConfigs { - debug { - storeFile file('D:\\wjt\\WJT\\wangjiangtao.p12') - storePassword '00000018304C0FE1E851C644B7B5B4CB1084E70D7D281D48D403195360687D412E7211FFC2DA6E38' - keyAlias = 'wjt' - keyPassword '00000018FAB8873634A0F7550832F9213107F884E2175083E361FEA57026A0F53EA77E4C2552457B' - signAlg = 'SHA256withECDSA' - profile file('D:\\wjt\\WJT\\speechutlsDebug.p7b') - certpath file('D:\\wjt\\WJT\\wangjiangtao.cer') - } - } + compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 @@ -29,7 +19,7 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation project(path: ':speechutils') + implementation('com.gitee.chinasoft_ohos:speechutils:0.0.1-SNAPSHOT') testImplementation 'junit:junit:4.13' ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' }