Skip to content

Commit 3f769d7

Browse files
Merge pull request #4 from pranav560/main
done changes wrt API 9
2 parents 3edb65d + 892ba6c commit 3f769d7

File tree

36 files changed

+566
-287
lines changed

36 files changed

+566
-287
lines changed

AppScope/app.json5

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"app": {
3+
"bundleName": "com.example.materialsnackbar",
4+
"vendor": "example",
5+
"versionCode": 1000000,
6+
"versionName": "1.0.0",
7+
"icon": "$media:app_icon",
8+
"label": "$string:app_name",
9+
"distributedNotificationEnabled": true
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"string": [
3+
{
4+
"name": "app_name",
5+
"value": "MaterialSnackbar"
6+
}
7+
]
8+
}
6.63 KB
Loading

OAT.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<oatconfig>
4+
<filefilterlist>
5+
<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
6+
<filteritem type="filename" name="hvigorfile.js" desc="hvigor script, Automatically generated by DevEco Studio"/>
7+
<filteritem type="filename" name="*.json5" desc="hvigor profile, Automatically generated by DevEco Studio"/>
8+
</filefilter>
9+
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies">
10+
<filteritem type="filename" name="hvigorfile.js" desc="hvigor script, Automatically generated by DevEco Studio"/>
11+
<filteritem type="filename" name="*.json5" desc="hvigor profile, Automatically generated by DevEco Studio"/>
12+
</filefilter>
13+
<filefilter name="defaultFilter" desc="Filters not to check">
14+
<filteritem type="filename" name="*.png" desc="Not to check png files"/>
15+
<filteritem type="filename" name="*.jpg" desc="Not to check jpg files"/>
16+
<filteritem type="filename" name="*.ttf" desc="Not to check ttf files"/>
17+
</filefilter>
18+
</filefilterlist>
19+
<policylist>
20+
<policy name="projectPolicy" desc= "">
21+
<policyitem type="copyright" name="Application Library Engineering Group." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
22+
</policy>
23+
</policylist>
24+
</oatconfig>
25+
</configuration>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ MaterialSnackBar({
138138
![s44](https://user-images.githubusercontent.com/84433855/175003407-68d0b1ee-e6b3-4cb5-afae-813413280b0a.png)
139139

140140
## Compatibility
141-
Supports OpenHarmony API version 8
141+
Supports OpenHarmony API version 9
142142

143143
# Reference:
144144

build-profile.json5

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/*
2+
* Copyright (c) 2022 Application Library Engineering Group.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
{
217
"app": {
318
"signingConfigs": [],
4-
"compileSdkVersion": 8,
5-
"compatibleSdkVersion": 8,
19+
"compileSdkVersion": 9,
20+
"compatibleSdkVersion": 9,
621
"products": [
722
{
823
"name": "default",
@@ -22,6 +37,10 @@
2237
]
2338
}
2439
]
40+
},
41+
{
42+
"name": "materialsnackbar",
43+
"srcPath": "./materialsnackbar"
2544
}
2645
]
2746
}

entry/build-profile.json5

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1+
/*
2+
* Copyright (c) 2022 Application Library Engineering Group.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
{
2-
"apiType": 'faMode',
17+
"apiType": 'stageMode',
318
"buildOption": {
419
},
520
"targets": [

entry/hvigorfile.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1+
/*
2+
* Copyright (c) 2022 Application Library Engineering Group.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
116
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
2-
module.exports = require('@ohos/hvigor-ohos-plugin').legacyHapTasks
17+
module.exports = require('@ohos/hvigor-ohos-plugin').hapTasks

entry/src/main/config.json

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2022 Application Library Engineering Group.
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
import AbilityStage from "@ohos.application.AbilityStage"
17+
18+
export default class MyAbilityStage extends AbilityStage {
19+
onCreate() {
20+
console.log("[Demo] MyAbilityStage onCreate")
21+
}
22+
}

0 commit comments

Comments
 (0)