Commit b9ad6fe2 authored by Sky's avatar Sky

ide升级配置修改

parent 1e7f4b7b
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.huawei.harmony.app' apply plugin: 'com.huawei.ohos.app'
harmonyos { ohos {
signingConfigs { signingConfigs {
release { release {
signAlg 'SHA256withECDSA' signAlg 'SHA256withECDSA'
} }
} }
compileSdkVersion 1 compileSdkVersion 3
defaultConfig { defaultConfig {
compatibleSdkVersion 1 compatibleSdkVersion 3
} }
} }
buildscript { buildscript {
repositories { repositories {
maven { maven {
url uri('E:\\HarmonyOS\\plugin') url 'https://mirrors.huaweicloud.com/repository/maven/'
} }
maven { maven {
url 'https://mirrors.huaweicloud.com/repository/maven/' url 'https://developer.huawei.com/repo/'
} }
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.huawei.harmony:hap:1.0.7.4' classpath 'com.huawei.ohos:hap:2.0.0.6'
} }
} }
...@@ -32,10 +32,10 @@ buildscript { ...@@ -32,10 +32,10 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
maven { maven {
url uri('E:\\HarmonyOS\\plugin') url 'https://mirrors.huaweicloud.com/repository/maven/'
} }
maven { maven {
url 'https://mirrors.huaweicloud.com/repository/maven/' url 'https://developer.huawei.com/repo/'
} }
jcenter() jcenter()
} }
......
{
"profile": {
"package": "com.company.fit",
"version-code": 1,
"version-name": "1.0.0",
"uses-sdk": {
"min-version": "zsdk 1.0.0"
},
"distro": {
"delivery-with-install": true,
"module-name": "entry",
"module-type": "entry"
},
"application": {
"label": "Fit",
"icon": "res/drawable",
"abilities": [
{
"name": "default",
"label": "Fit"
}
],
"js": [
{
"name": "default",
"pages": [
"pages/index/index"
]
}
]
}
}
}
\ No newline at end of file
apply plugin: 'com.huawei.harmony.hap' apply plugin: 'com.huawei.ohos.hap'
harmonyos { ohos {
signingConfigs { signingConfigs {
debug { debug {
certpath file('D:/HuaweiWatchClient/fitjs_certificate.cer') certpath file('D:/HuaweiWatchClient/fitjs_certificate.cer')
...@@ -12,9 +12,9 @@ harmonyos { ...@@ -12,9 +12,9 @@ harmonyos {
storeFile file('D:/HuaweiWatchClient/huawei_watch.jks') storeFile file('D:/HuaweiWatchClient/huawei_watch.jks')
} }
} }
compileSdkVersion 1 compileSdkVersion 3
defaultConfig { defaultConfig {
compatibleSdkVersion 1 compatibleSdkVersion 3
} }
} }
sourceSets{ sourceSets{
......
...@@ -4,19 +4,16 @@ ...@@ -4,19 +4,16 @@
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0.0" "name": "1.0.0"
}
}, },
"deviceConfig": { "apiVersion": {
"default": { "compatible": 3,
"reqSdk": { "target": 3
"compatible": "zsdk 1.0.0",
"target": "zsdk 1.0.0"
}
} }
}, },
"deviceConfig": {},
"module": { "module": {
"deviceType": [ "deviceType": [
"fitnessWatch" "liteWearable"
], ],
"abilities": [ "abilities": [
{ {
......
<div class="container"> <div class="container" onswipe="touchMove">
<!--启动页面--> <!--启动页面-->
<image class="logo" if="!page" src="../../common/default_img.png"></image> <image class="logo" if="!page" src="../../common/default_img.png"></image>
<!--启动页面--> <!--启动页面-->
...@@ -174,8 +174,6 @@ ...@@ -174,8 +174,6 @@
<div class="train-out-text-box"> <div class="train-out-text-box">
<text class="train-out-text"> <text class="train-out-text">
在手机上开启你 在手机上开启你
</text>
<text class="train-out-text">
今天的训练 今天的训练
</text> </text>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment