-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Watch Design #2
base: main
Are you sure you want to change the base?
Changes from 4 commits
ae69fc1
575d25d
d1cf36c
b40d2a2
2268a3b
0bcbef9
efc5371
e8c5f96
37bcc70
9177625
21eaa0f
4744368
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Smart Watch Seven | ||
|
||
|
||
* Copyright (C) 2022 Application Library Engineering Group | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
|
||
|
||
The smart watch seven has the following functionalities | ||
|
||
1.Displays current weather , date , month. | ||
|
||
2.Displays calendar notification. | ||
|
||
3.Displays number of foot steps covered by user. | ||
|
||
4.Displays calories burnt by user. | ||
|
||
|
||
<img width="268" alt="Screenshot_2022-05-12_225247-removebg-preview" src="https://user-images.githubusercontent.com/105449448/168287925-f823ce37-e2e2-4e4c-bd4e-4a908286d42e.png"> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"app": { | ||
"signingConfigs": [], | ||
"compileSdkVersion": 8, | ||
"compatibleSdkVersion": 8, | ||
"products": [ | ||
{ | ||
"name": "default", | ||
"signingConfig": "default", | ||
} | ||
] | ||
}, | ||
"modules": [ | ||
{ | ||
"name": "entry", | ||
"srcPath": "./entry", | ||
"targets": [ | ||
{ | ||
"name": "default", | ||
"applyToProducts": [ | ||
"default" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"apiType": 'faMode', | ||
"buildOption": { | ||
}, | ||
"targets": [ | ||
{ | ||
"name": "default", | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. | ||
module.exports = require('@ohos/hvigor-ohos-plugin').legacyHapTasks |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "entry", | ||
"version": "1.0.0", | ||
"ohos": { | ||
"org": "huawei", | ||
"buildTool": "hvigor", | ||
"directoryLevel": "module" | ||
}, | ||
"description": "example description", | ||
"repository": {}, | ||
"license": "ISC", | ||
"dependencies": {} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"app": { | ||
"vendor": "example", | ||
"bundleName": "com.example.myapplication", | ||
"version": { | ||
"code": 1000000, | ||
"name": "1.0.0" | ||
} | ||
}, | ||
"deviceConfig": {}, | ||
"module": { | ||
"mainAbility": ".MainAbility", | ||
"deviceType": [ | ||
"phone", | ||
"tablet" | ||
], | ||
"abilities": [ | ||
{ | ||
"skills": [ | ||
{ | ||
"entities": [ | ||
"entity.system.home" | ||
], | ||
"actions": [ | ||
"action.system.home" | ||
] | ||
} | ||
], | ||
"orientation": "unspecified", | ||
"visible": true, | ||
"srcPath": "MainAbility", | ||
"name": ".MainAbility", | ||
"srcLanguage": "js", | ||
"icon": "$media:icon", | ||
"description": "$string:MainAbility_desc", | ||
"formsEnabled": false, | ||
"label": "$string:MainAbility_label", | ||
"type": "page", | ||
"launchType": "standard" | ||
} | ||
], | ||
"distro": { | ||
"moduleType": "entry", | ||
"installationFree": false, | ||
"deliveryWithInstall": true, | ||
"moduleName": "entry" | ||
}, | ||
"package": "com.example.smartwatchseven", | ||
"srcPath": "", | ||
"name": ".entry", | ||
"js": [ | ||
{ | ||
"pages": [ | ||
"pages/index/index" | ||
], | ||
"name": ".MainAbility", | ||
"window": { | ||
"designWidth": 720, | ||
"autoDesignWidth": false | ||
} | ||
} | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ability_featureAbility from '@ohos.ability.featureAbility' | ||
|
||
export default { | ||
onCreate() { | ||
console.info('AceApplication onCreate'); | ||
//requestPermission() | ||
}, | ||
onDestroy() { | ||
console.info('AceApplication onDestroy'); | ||
} | ||
}; | ||
|
||
function requestPermission() { | ||
var context = ability_featureAbility.getContext(); | ||
let permissions = ["ohos.permission.ACTIVITY_MOTION"]; | ||
let requestCode = 123 | ||
context.requestPermissionsFromUser(permissions, requestCode) | ||
.then((data) => { | ||
console.info('Permission Granted') | ||
}).catch((error) => { | ||
console.error('Permission Denied') | ||
}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [12,3,6,9_point.png] - Change the icon name to better one and dont include commas in name |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"strings": { | ||
"hello": "Hello", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove the unused strings |
||
"world": "World" | ||
}, | ||
"Files": { | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"latitude": "28.4595", | ||
"longitude": "77.0266", | ||
"api_key": "55e15ebc8fdd929dd4c16583773384f3" | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"strings": { | ||
"hello": "您好", | ||
"world": "世界" | ||
}, | ||
"Files": { | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add copyright details in all new js files