Skip to content

Commit 940026a

Browse files
littleGnAlpeilinok
authored andcommitted
feat: support ohos
1 parent f89d394 commit 940026a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+821
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ migrate_working_dir/
3030
build/
3131
.ccls-cache/
3232
Podfile.lock
33+
34+
# OHOS
35+
pub-cache
36+
DerivedData

.metadata

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ migration:
3030
- platform: windows
3131
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
3232
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
33+
- platform: ohos
34+
create_revision: 7a712dd5fd8f752b7eba4c4c4482b85f87768d39
35+
base_revision: 7a712dd5fd8f752b7eba4c4c4482b85f87768d39
3336

3437
# User provided section
3538

example/ohos/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/node_modules
2+
/oh_modules
3+
/local.properties
4+
/.idea
5+
**/build
6+
/.hvigor
7+
.cxx
8+
/.clangd
9+
/.clang-format
10+
/.clang-tidy
11+
**/.test
12+
*.har
13+
**/BuildProfile.ets
14+
**/oh-package-lock.json5
15+
16+
**/src/main/resources/rawfile/flutter_assets/
17+
**/libs/arm64-v8a/libapp.so
18+
**/libs/arm64-v8a/libflutter.so
19+
**/libs/arm64-v8a/libvmservice_snapshot.so
20+
21+
GeneratedPluginRegistrant.*

example/ohos/AppScope/app.json5

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"app": {
3+
"bundleName": "com.agora.iris_method_channel_example",
4+
"vendor": "example",
5+
"versionCode": 1000000,
6+
"versionName": "1.0.0",
7+
"icon": "$media:app_icon",
8+
"label": "$string:app_name"
9+
}
10+
}
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": "iris_method_channel_example"
6+
}
7+
]
8+
}
6.63 KB
Loading

example/ohos/build-profile.json5

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"app": {
3+
"products": [
4+
{
5+
"name": "default",
6+
"signingConfig": "default",
7+
"compatibleSdkVersion": "5.0.0(12)",
8+
"runtimeOS": "HarmonyOS"
9+
}
10+
]
11+
},
12+
"modules": [
13+
{
14+
"name": "entry",
15+
"srcPath": "./entry",
16+
"targets": [
17+
{
18+
"name": "default",
19+
"applyToProducts": [
20+
"default"
21+
]
22+
}
23+
]
24+
}
25+
]
26+
}

example/ohos/entry/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
/node_modules
3+
/oh_modules
4+
/.preview
5+
/build
6+
/.cxx
7+
/.test
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
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+
{
17+
"apiType": 'stageMode',
18+
"buildOption": {
19+
},
20+
"targets": [
21+
{
22+
"name": "default",
23+
"runtimeOS": "HarmonyOS"
24+
},
25+
{
26+
"name": "ohosTest",
27+
}
28+
]
29+
}

example/ohos/entry/hvigorfile.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
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+
// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.
17+
export { hapTasks } from '@ohos/hvigor-ohos-plugin';

0 commit comments

Comments
 (0)