-
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 10 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,94 @@ | ||
License for everything not in third_party and not otherwise marked: | ||
|
||
Copyright 2014 Google, Inc. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are | ||
permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of | ||
conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
of conditions and the following disclaimer in the documentation and/or other materials | ||
provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY GOOGLE, INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE, INC. OR | ||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
The views and conclusions contained in the software and documentation are those of the | ||
authors and should not be interpreted as representing official policies, either expressed | ||
or implied, of Google, Inc. | ||
--------------------------------------------------------------------------------------------- | ||
License for third_party/disklrucache: | ||
|
||
Copyright 2012 Jake Wharton | ||
Copyright 2011 The Android Open Source Project | ||
|
||
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. | ||
--------------------------------------------------------------------------------------------- | ||
License for third_party/gif_decoder: | ||
|
||
Copyright (c) 2013 Xcellent Creations, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
--------------------------------------------------------------------------------------------- | ||
License for third_party/gif_encoder/AnimatedGifEncoder.java and | ||
third_party/gif_encoder/LZWEncoder.java: | ||
|
||
No copyright asserted on the source code of this class. May be used for any | ||
purpose, however, refer to the Unisys LZW patent for restrictions on use of | ||
the associated LZWEncoder class. Please forward any corrections to | ||
[email protected]. | ||
|
||
----------------------------------------------------------------------------- | ||
License for third_party/gif_encoder/NeuQuant.java | ||
|
||
Copyright (c) 1994 Anthony Dekker | ||
|
||
NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See | ||
"Kohonen neural networks for optimal colour quantization" in "Network: | ||
Computation in Neural Systems" Vol. 5 (1994) pp 351-367. for a discussion of | ||
the algorithm. | ||
|
||
Any party obtaining a copy of these files from the author, directly or | ||
indirectly, is granted, free of charge, a full and unrestricted irrevocable, | ||
world-wide, paid up, royalty-free, nonexclusive right and license to deal in | ||
this software and documentation files (the "Software"), including without | ||
limitation the rights to use, copy, modify, merge, publish, distribute, | ||
sublicense, and/or sell copies of the Software, and to permit persons who | ||
receive copies from any such party to do so, with the only requirement being | ||
that this copyright notice remain intact. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Smart Watch Seven | ||
|
||
一UI design for Smart Watch in OpenHarmony. | ||
|
||
|
||
## Smart Watch 7 Design : | ||
|
||
<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"> | ||
|
||
## Functionalities: | ||
|
||
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. | ||
|
||
|
||
## Compatibility: | ||
Supports OpenHarmony API version 6 | ||
|
||
|
||
## Open source License | ||
This project is based on [Apache License 2.0](https://gitee.com/openharmony-sig/Dropdown/blob/master/LICENSE.txt) ,please enjoy and participate in open source freely. | ||
|
||
## Reference: | ||
|
||
https://xd.adobe.com/view/0badc14c-4471-45c3-acc2-b9042b17febf-5efe/specs/ | ||
|
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' | ||
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. pls add copyright details in all new js files |
||
|
||
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.
Licence need to be updated.