Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
huaweiWatchClient
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sky
huaweiWatchClient
Commits
b9ad6fe2
Commit
b9ad6fe2
authored
Sep 25, 2020
by
Sky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide升级配置修改
parent
1e7f4b7b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
178 additions
and
167 deletions
+178
-167
build.gradle
build.gradle
+9
-9
HarmonyProfile.json
entry/HarmonyProfile.json
+0
-33
build.gradle
entry/build.gradle
+4
-4
config.json
entry/src/main/config.json
+6
-9
default_img.png
entry/src/main/js/default/common/default_img.png
+0
-0
index.hml
entry/src/main/js/default/pages/index/index.hml
+2
-4
index.js
entry/src/main/js/default/pages/index/index.js
+157
-108
No files found.
build.gradle
View file @
b9ad6fe2
// 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'
harmony
os
{
oh
os
{
signingConfigs
{
release
{
signAlg
'SHA256withECDSA'
}
}
compileSdkVersion
1
compileSdkVersion
3
defaultConfig
{
compatibleSdkVersion
1
compatibleSdkVersion
3
}
}
buildscript
{
repositories
{
maven
{
url
uri
(
'E:\\HarmonyOS\\plugin'
)
url
'https://mirrors.huaweicloud.com/repository/maven/'
}
maven
{
url
'https://
mirrors.huaweicloud.com/repository/maven
/'
url
'https://
developer.huawei.com/repo
/'
}
jcenter
()
}
dependencies
{
classpath
'com.huawei.
harmony:hap:1.0.7.4
'
classpath
'com.huawei.
ohos:hap:2.0.0.6
'
}
}
...
...
@@ -32,10 +32,10 @@ buildscript {
allprojects
{
repositories
{
maven
{
url
uri
(
'E:\\HarmonyOS\\plugin'
)
url
'https://mirrors.huaweicloud.com/repository/maven/'
}
maven
{
url
'https://
mirrors.huaweicloud.com/repository/maven
/'
url
'https://
developer.huawei.com/repo
/'
}
jcenter
()
}
...
...
entry/HarmonyProfile.json
deleted
100644 → 0
View file @
1e7f4b7b
{
"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
entry/build.gradle
View file @
b9ad6fe2
apply
plugin:
'com.huawei.
harmony
.hap'
apply
plugin:
'com.huawei.
ohos
.hap'
harmony
os
{
oh
os
{
signingConfigs
{
debug
{
certpath
file
(
'D:/HuaweiWatchClient/fitjs_certificate.cer'
)
...
...
@@ -12,9 +12,9 @@ harmonyos {
storeFile
file
(
'D:/HuaweiWatchClient/huawei_watch.jks'
)
}
}
compileSdkVersion
1
compileSdkVersion
3
defaultConfig
{
compatibleSdkVersion
1
compatibleSdkVersion
3
}
}
sourceSets
{
...
...
entry/src/main/config.json
View file @
b9ad6fe2
...
...
@@ -4,19 +4,16 @@
"version"
:
{
"code"
:
1
,
"name"
:
"1.0.0"
},
"apiVersion"
:
{
"compatible"
:
3
,
"target"
:
3
}
},
"deviceConfig"
:
{
"default"
:
{
"reqSdk"
:
{
"compatible"
:
"zsdk 1.0.0"
,
"target"
:
"zsdk 1.0.0"
}
}
},
"deviceConfig"
:
{},
"module"
:
{
"deviceType"
:
[
"
fitnessWatch
"
"
liteWearable
"
],
"abilities"
:
[
{
...
...
entry/src/main/js/default/common/default_img.png
View replaced file @
1e7f4b7b
View file @
b9ad6fe2
3.19 KB
|
W:
|
H:
6.17 KB
|
W:
|
H:
2-up
Swipe
Onion skin
entry/src/main/js/default/pages/index/index.hml
View file @
b9ad6fe2
<div class="container">
<div class="container"
onswipe="touchMove"
>
<!--启动页面-->
<image class="logo" if="!page" src="../../common/default_img.png"></image>
<!--启动页面-->
...
...
@@ -174,9 +174,7 @@
<div class="train-out-text-box">
<text class="train-out-text">
在手机上开启你
</text>
<text class="train-out-text">
今天的训练
今天的训练
</text>
</div>
</div>
...
...
entry/src/main/js/default/pages/index/index.js
View file @
b9ad6fe2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment