@react-native-ohos/react-native-audio-recorder-player 3.6.14-rc.1 → 3.7.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.OpenSource +10 -10
- package/README.md +14 -14
- package/RNAudioRecorderPlayer.podspec +21 -21
- package/harmony/audio_recorder_player/BuildProfile.ets +16 -16
- package/harmony/audio_recorder_player/LICENSE +21 -21
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/.ts_checker_cache +3223 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/.tsbuildinfo.linter +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/compileInfo.json +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/AudioPlayer.ts-7391108ec0ab6649d70e1ad7a6dc6efe.msgpack +1389 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/DateTimeUtils.ts-c920a1adb95527a71e2a76e9c8208d6a.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Logger.ts-1beb9638185b515259de1799881a97ba.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RNAudioRecorderPlayerPackage.ts-37b6ca2ece8f8173ac039454c03f8696.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/RNAudioRecorderPlayerTurboModule.ts-90473fa59ce68258e4a2ba607853da80.msgpack +967 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/Recorder.ts-383025daf39213573b2116ef66534385.msgpack +879 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/SaveAudioAsset.ts-721e465483e49c081f01d93a1c449b17.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/index.ets-630032dda2d01bd8411624e5ec5d3c14.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/ts.ts-e926b1836f2de8d224bda20de9d1cfb0.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/types.ts-9ce90158400be2f65f118ff1445bd449.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/modules/types.ts-f09858d94c4799ae3bd6eb85f6029ea3.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/other/pkgName2SourceRoots.msgpack +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/compiler.cache/plugins/plugins.msgpack +0 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@HarCompileArkTS/esmodule/debug/dep_info.json +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/BuildProfile.ets +17 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/LICENSE +21 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/ResourceTable.txt +2 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/build-profile.json5 +28 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/hvigorfile.ts +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/index.ets +25 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/oh-package-lock.json5 +20 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/oh-package.json5 +1 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/cpp/CMakeLists.txt +7 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/cpp/RNAudioRecorderPlayerPackage.h +48 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/cpp/RNAudioRecorderPlayerTurboModule.cpp +91 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/cpp/RNAudioRecorderPlayerTurboModule.h +36 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/RNAudioRecorderPlayerPackage.ts +47 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/RNAudioRecorderPlayerTurboModule.ts +315 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/audioPlayer/AudioPlayer.ts +464 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/audioPlayer/types.ts +45 -0
- package/{index.d.ts → harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/index.d.ts} +33 -50
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/recorder/Recorder.ts +299 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/recorder/types.ts +61 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/utils/DateTimeUtils.ts +88 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/utils/Logger.ts +45 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/ets/utils/SaveAudioAsset.ts +105 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/module.json +30 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/resources/base/element/string.json +8 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/resources/base/media/ic_public_error.svg +10 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/resources/en_US/element/string.json +8 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/src/main/resources/zh_CN/element/string.json +8 -0
- package/harmony/audio_recorder_player/build/default/cache/default/default@PackageHar/ts.ts +27 -0
- package/harmony/audio_recorder_player/build/default/generated/pm/default/oh-package.json5 +1 -0
- package/harmony/audio_recorder_player/build/default/generated/r/default/ResourceTable.h +25 -0
- package/harmony/audio_recorder_player/build/default/intermediates/loader/default/loader.json +31 -0
- package/harmony/audio_recorder_player/build/default/intermediates/merge_profile/default/module.json +27 -0
- package/harmony/audio_recorder_player/build/default/intermediates/patch/default/base_native_libs.json +1 -0
- package/harmony/audio_recorder_player/build/default/intermediates/process_profile/default/module.json +30 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/ResourceTable.txt +2 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/ark_module.json +1 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/ids_map/id_defined.json +11 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/module.json +28 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/opt-compression.json +1 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/resConfig.json +1 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/resources/base/media/ic_public_error.svg +10 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/resources/rawfile/rnoh.profdata +0 -0
- package/harmony/audio_recorder_player/build/default/intermediates/res/default/resources.index +0 -0
- package/harmony/audio_recorder_player/build/default/outputs/default/audio_recorder_player.har +0 -0
- package/harmony/audio_recorder_player/build-profile.json5 +28 -28
- package/harmony/audio_recorder_player/index.ets +25 -25
- package/harmony/audio_recorder_player/oh-package-lock.json5 +7 -5
- package/harmony/audio_recorder_player/oh-package.json5 +20 -20
- package/harmony/audio_recorder_player/src/main/cpp/CMakeLists.txt +7 -7
- package/harmony/audio_recorder_player/src/main/cpp/RNAudioRecorderPlayerPackage.h +48 -48
- package/harmony/audio_recorder_player/src/main/cpp/RNAudioRecorderPlayerTurboModule.cpp +90 -90
- package/harmony/audio_recorder_player/src/main/cpp/RNAudioRecorderPlayerTurboModule.h +35 -35
- package/harmony/audio_recorder_player/src/main/ets/RNAudioRecorderPlayerPackage.ts +47 -47
- package/harmony/audio_recorder_player/src/main/ets/RNAudioRecorderPlayerTurboModule.ts +315 -315
- package/harmony/audio_recorder_player/src/main/ets/audioPlayer/AudioPlayer.ts +464 -464
- package/harmony/audio_recorder_player/src/main/ets/audioPlayer/types.ts +45 -45
- package/harmony/audio_recorder_player/src/main/ets/recorder/Recorder.ts +299 -299
- package/harmony/audio_recorder_player/src/main/ets/recorder/types.ts +61 -61
- package/harmony/audio_recorder_player/src/main/ets/utils/DateTimeUtils.ts +88 -88
- package/harmony/audio_recorder_player/src/main/ets/utils/Logger.ts +45 -45
- package/harmony/audio_recorder_player/src/main/ets/utils/SaveAudioAsset.ts +105 -105
- package/harmony/audio_recorder_player/src/main/module.json5 +9 -9
- package/harmony/audio_recorder_player/src/main/resources/base/element/string.json +8 -8
- package/harmony/audio_recorder_player/src/main/resources/base/media/ic_public_error.svg +9 -9
- package/harmony/audio_recorder_player/src/main/resources/en_US/element/string.json +8 -8
- package/harmony/audio_recorder_player/src/main/resources/zh_CN/element/string.json +8 -8
- package/harmony/audio_recorder_player/ts.ts +26 -26
- package/harmony/audio_recorder_player.har +0 -0
- package/index.ts +538 -538
- package/package.json +59 -59
- package/src/NativeAudioRecorderPlayerModule.ts +42 -42
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export * from './src/main/ets/RNAudioRecorderPlayerPackage';
|
|
26
|
+
|
|
27
|
+
export * from './src/main/ets/RNAudioRecorderPlayerTurboModule';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"license":"ISC","types":"","devDependencies":{},"name":"@react-native-ohos/react-native-audio-recorder-player","description":"","main":"index.ets","version":"3.7.0-rc.1","dependencies":{"@rnoh/react-native-openharmony":"file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"},"metadata":{"sourceRoots":["./src/main"]},"compatibleSdkVersion":"12","compatibleSdkType":"HarmonyOS","obfuscated":false}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2023 Huawei Device 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
|
+
#ifndef RESOURCE_TABLE_H
|
|
17
|
+
#define RESOURCE_TABLE_H
|
|
18
|
+
|
|
19
|
+
#include<stdint.h>
|
|
20
|
+
|
|
21
|
+
namespace OHOS {
|
|
22
|
+
const int32_t STRING_PAGE_SHOW = 0x01000000;
|
|
23
|
+
const int32_t MEDIA_IC_PUBLIC_ERROR = 0x01000001;
|
|
24
|
+
}
|
|
25
|
+
#endif
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modulePathMap": {
|
|
3
|
+
"entry": "E:\\tester\\25P4\\harmony\\entry",
|
|
4
|
+
"audio_recorder_player": "E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player"
|
|
5
|
+
},
|
|
6
|
+
"compileMode": "esmodule",
|
|
7
|
+
"projectRootPath": "E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony",
|
|
8
|
+
"nodeModulesPath": "E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\loader_out\\default\\node_modules",
|
|
9
|
+
"byteCodeHarInfo": {},
|
|
10
|
+
"declarationEntry": [],
|
|
11
|
+
"moduleName": "audio_recorder_player",
|
|
12
|
+
"hspNameOhmMap": {},
|
|
13
|
+
"harNameOhmMap": {},
|
|
14
|
+
"packageManagerType": "ohpm",
|
|
15
|
+
"compileEntry": [
|
|
16
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\RNAudioRecorderPlayerPackage.ts",
|
|
17
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\RNAudioRecorderPlayerTurboModule.ts",
|
|
18
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\audioPlayer\\AudioPlayer.ts",
|
|
19
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\audioPlayer\\types.ts",
|
|
20
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\recorder\\Recorder.ts",
|
|
21
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\recorder\\types.ts",
|
|
22
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\utils\\DateTimeUtils.ts",
|
|
23
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\utils\\Logger.ts",
|
|
24
|
+
"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\ets\\utils\\SaveAudioAsset.ts"
|
|
25
|
+
],
|
|
26
|
+
"otherCompileFiles": [],
|
|
27
|
+
"dynamicImportLibInfo": {},
|
|
28
|
+
"routerMap": [],
|
|
29
|
+
"hspResourcesMap": {},
|
|
30
|
+
"updateVersionInfo": {}
|
|
31
|
+
}
|
package/harmony/audio_recorder_player/build/default/intermediates/merge_profile/default/module.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"bundleName": "com.rnoh.tester25p4",
|
|
4
|
+
"debug": true,
|
|
5
|
+
"versionCode": 1000000,
|
|
6
|
+
"versionName": "1.0.0",
|
|
7
|
+
"minAPIVersion": 50000012,
|
|
8
|
+
"targetAPIVersion": 60000020,
|
|
9
|
+
"apiReleaseType": "Release",
|
|
10
|
+
"targetMinorAPIVersion": 0,
|
|
11
|
+
"targetPatchAPIVersion": 0,
|
|
12
|
+
"compileSdkVersion": "6.0.0.47",
|
|
13
|
+
"compileSdkType": "HarmonyOS",
|
|
14
|
+
"appEnvironments": [],
|
|
15
|
+
"bundleType": "app",
|
|
16
|
+
"buildMode": "debug"
|
|
17
|
+
},
|
|
18
|
+
"module": {
|
|
19
|
+
"name": "audio_recorder_player",
|
|
20
|
+
"type": "har",
|
|
21
|
+
"deviceTypes": [
|
|
22
|
+
"default"
|
|
23
|
+
],
|
|
24
|
+
"packageName": "@react-native-ohos/react-native-audio-recorder-player",
|
|
25
|
+
"installationFree": false
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"libs":{},"stripped":{}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"bundleName": "com.rnoh.tester25p4",
|
|
4
|
+
"debug": true,
|
|
5
|
+
"versionCode": 1000000,
|
|
6
|
+
"versionName": "1.0.0",
|
|
7
|
+
"minAPIVersion": 50000012,
|
|
8
|
+
"targetAPIVersion": 60000020,
|
|
9
|
+
"apiReleaseType": "Release",
|
|
10
|
+
"targetMinorAPIVersion": 0,
|
|
11
|
+
"targetPatchAPIVersion": 0,
|
|
12
|
+
"compileSdkVersion": "6.0.0.47",
|
|
13
|
+
"compileSdkType": "HarmonyOS",
|
|
14
|
+
"appEnvironments": [],
|
|
15
|
+
"bundleType": "app",
|
|
16
|
+
"buildMode": "debug"
|
|
17
|
+
},
|
|
18
|
+
"module": {
|
|
19
|
+
"name": "audio_recorder_player",
|
|
20
|
+
"type": "har",
|
|
21
|
+
"deviceTypes": [
|
|
22
|
+
"default"
|
|
23
|
+
],
|
|
24
|
+
"packageName": "@react-native-ohos/react-native-audio-recorder-player",
|
|
25
|
+
"installationFree": false,
|
|
26
|
+
"virtualMachine": "ark12.0.2.0",
|
|
27
|
+
"compileMode": "esmodule",
|
|
28
|
+
"dependencies": []
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"app":{"bundleName":"com.rnoh.tester25p4","debug":true,"versionCode":1000000,"versionName":"1.0.0","minAPIVersion":50000012,"targetAPIVersion":60000020,"apiReleaseType":"Release","targetMinorAPIVersion":0,"targetPatchAPIVersion":0,"compileSdkVersion":"6.0.0.47","compileSdkType":"HarmonyOS","appEnvironments":[],"bundleType":"app","buildMode":"debug"},"module":{"name":"audio_recorder_player","type":"har","deviceTypes":["default"],"packageName":"@react-native-ohos/react-native-audio-recorder-player","installationFree":false,"virtualMachine":"ark12.0.2.0","compileMode":"esmodule","dependencies":[]}}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"bundleName": "com.rnoh.tester25p4",
|
|
4
|
+
"debug": true,
|
|
5
|
+
"versionCode": 1000000,
|
|
6
|
+
"versionName": "1.0.0",
|
|
7
|
+
"minAPIVersion": 50000012,
|
|
8
|
+
"targetAPIVersion": 60000020,
|
|
9
|
+
"apiReleaseType": "Release",
|
|
10
|
+
"targetMinorAPIVersion": 0,
|
|
11
|
+
"targetPatchAPIVersion": 0,
|
|
12
|
+
"compileSdkVersion": "6.0.0.47",
|
|
13
|
+
"compileSdkType": "HarmonyOS",
|
|
14
|
+
"appEnvironments": [],
|
|
15
|
+
"bundleType": "app",
|
|
16
|
+
"buildMode": "debug"
|
|
17
|
+
},
|
|
18
|
+
"module": {
|
|
19
|
+
"name": "audio_recorder_player",
|
|
20
|
+
"type": "har",
|
|
21
|
+
"deviceTypes": ["default"],
|
|
22
|
+
"packageName": "@react-native-ohos/react-native-audio-recorder-player",
|
|
23
|
+
"installationFree": false,
|
|
24
|
+
"virtualMachine": "ark12.0.2.0",
|
|
25
|
+
"compileMode": "esmodule",
|
|
26
|
+
"dependencies": []
|
|
27
|
+
}
|
|
28
|
+
}
|
package/harmony/audio_recorder_player/build/default/intermediates/res/default/opt-compression.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"context":{"extensionPath":"C:\\Program Files\\Huawei\\DevEco Studio\\sdk\\default\\hms\\toolchains\\lib\\libimage_transcoder_shared.dll"},"compression":{"media":{"enable":false},"filters":[]}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"configPath":"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\process_profile\\default\\module.json","packageName":"com.rnoh.tester25p4","output":"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\res\\default","moduleNames":"audio_recorder_player,entry","ResourceTable":["E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\generated\\r\\default\\ResourceTable.h"],"moduleResources":["E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\src\\main\\resources"],"dependencies":["E:\\tester\\25P4\\harmony\\oh_modules\\.ohpm\\@rnoh+react-native-openharmony@dkckhzbnghjx0jiaazwhrzk+wnmscnuz7a0y9vmtjvw=\\oh_modules\\@rnoh\\react-native-openharmony\\src\\main\\resources"],"iconCheck":false,"compression":"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\res\\default\\opt-compression.json","ids":"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\res\\default\\ids_map","definedIds":"E:\\gitcode\\rntpc_react-native-audio-recorder-player\\harmony\\audio_recorder_player\\build\\default\\intermediates\\res\\default\\ids_map\\id_defined.json","definedSysIds":"C:\\Program Files\\Huawei\\DevEco Studio\\sdk\\default\\hms\\toolchains\\id_defined.json"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" viewBox="0 0 24 24" version="1.1">
|
|
3
|
+
<!-- Generator: Sketch 63.1 (92452) - https://sketch.com -->
|
|
4
|
+
<title>Public/ic_public_error</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<g id="_Public/ic_public_error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
7
|
+
<circle id="_colorError" fill="#E84026" cx="12" cy="12" r="11"/>
|
|
8
|
+
<path d="M12,15.5 C12.6903125,15.5 13.25,16.0596875 13.25,16.75 C13.25,17.4403125 12.6903125,18 12,18 C11.3096875,18 10.75,17.4403125 10.75,16.75 C10.75,16.0596875 11.3096875,15.5 12,15.5 Z M12,6 C12.6414582,6 13.1614628,6.5200046 13.1614628,7.16146279 C13.1614628,7.18988207 13.1604197,7.21829177 13.1583357,7.24663453 L12.6708322,13.8766827 C12.6449936,14.2280877 12.3523536,14.5 12,14.5 C11.6476464,14.5 11.3550064,14.2280877 11.3291678,13.8766827 L10.8416643,7.24663453 C10.7946252,6.60690339 11.2750971,6.05016615 11.9148283,6.00312709 C11.943171,6.00104307 11.9715807,6 12,6 Z" id="_形状结合" fill="#FFFFFF"/>
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"apiType": "stageMode",
|
|
3
|
-
"buildOption": {
|
|
4
|
-
},
|
|
5
|
-
"buildOptionSet": [
|
|
6
|
-
{
|
|
7
|
-
"name": "release",
|
|
8
|
-
"arkOptions": {
|
|
9
|
-
"obfuscation": {
|
|
10
|
-
"ruleOptions": {
|
|
11
|
-
"enable": true,
|
|
12
|
-
"files": [
|
|
13
|
-
"./obfuscation-rules.txt"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"consumerFiles": [
|
|
17
|
-
"./consumer-rules.txt"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
"targets": [
|
|
24
|
-
{
|
|
25
|
-
"name": "default"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"apiType": "stageMode",
|
|
3
|
+
"buildOption": {
|
|
4
|
+
},
|
|
5
|
+
"buildOptionSet": [
|
|
6
|
+
{
|
|
7
|
+
"name": "release",
|
|
8
|
+
"arkOptions": {
|
|
9
|
+
"obfuscation": {
|
|
10
|
+
"ruleOptions": {
|
|
11
|
+
"enable": true,
|
|
12
|
+
"files": [
|
|
13
|
+
"./obfuscation-rules.txt"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"consumerFiles": [
|
|
17
|
+
"./consumer-rules.txt"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
"targets": [
|
|
24
|
+
{
|
|
25
|
+
"name": "default"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* MIT License
|
|
3
|
-
*
|
|
4
|
-
* Copyright (C) 2023 Huawei Device Co., Ltd.
|
|
5
|
-
*
|
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
* furnished to do so, subject to the following conditions:
|
|
12
|
-
*
|
|
13
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
* copies or substantial portions of the Software.
|
|
15
|
-
*
|
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
* SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
export * from './ts';
|
|
1
|
+
/*
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Huawei Device Co., Ltd.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export * from './ts';
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"stableOrder": true
|
|
3
|
+
"stableOrder": true,
|
|
4
|
+
"enableUnifiedLockfile": false
|
|
4
5
|
},
|
|
5
6
|
"lockfileVersion": 3,
|
|
6
7
|
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
|
7
8
|
"specifiers": {
|
|
8
|
-
"@
|
|
9
|
+
"@ohos/materialprogressbar@2.1.3-rc.0": "@ohos/materialprogressbar@2.1.3-rc.0",
|
|
10
|
+
"@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har": "@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har"
|
|
9
11
|
},
|
|
10
12
|
"packages": {
|
|
11
|
-
"@rnoh/react-native-openharmony
|
|
13
|
+
"@rnoh/react-native-openharmony@../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har": {
|
|
12
14
|
"name": "@rnoh/react-native-openharmony",
|
|
13
|
-
"version": "0.77.
|
|
14
|
-
"resolved": "
|
|
15
|
+
"version": "0.77.22",
|
|
16
|
+
"resolved": "../../../../tester/25P4/node_modules/@react-native-oh/react-native-harmony/react_native_openharmony.har",
|
|
15
17
|
"registryType": "local"
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"license": "ISC",
|
|
3
|
-
"types": "",
|
|
4
|
-
"devDependencies": {},
|
|
5
|
-
"name": "@react-native-ohos/react-native-audio-recorder-player",
|
|
6
|
-
"description": "",
|
|
7
|
-
"main": "index.ets",
|
|
8
|
-
"version": "3.
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"
|
|
11
|
-
},
|
|
12
|
-
"metadata": {
|
|
13
|
-
"sourceRoots": [
|
|
14
|
-
"./src/main"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"compatibleSdkVersion": '12',
|
|
18
|
-
"compatibleSdkType": "HarmonyOS",
|
|
19
|
-
"obfuscated": false
|
|
20
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"license": "ISC",
|
|
3
|
+
"types": "",
|
|
4
|
+
"devDependencies": {},
|
|
5
|
+
"name": "@react-native-ohos/react-native-audio-recorder-player",
|
|
6
|
+
"description": "",
|
|
7
|
+
"main": "index.ets",
|
|
8
|
+
"version": "3.7.0-rc.1",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"
|
|
11
|
+
},
|
|
12
|
+
"metadata": {
|
|
13
|
+
"sourceRoots": [
|
|
14
|
+
"./src/main"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"compatibleSdkVersion": '12',
|
|
18
|
+
"compatibleSdkType": "HarmonyOS",
|
|
19
|
+
"obfuscated": false
|
|
20
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.13)
|
|
2
|
-
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
-
|
|
4
|
-
file(GLOB rnoh_audio_recorder_player_SRC CONFIGURE_DEPENDS *.cpp)
|
|
5
|
-
add_library(rnoh_audio_recorder_player SHARED ${rnoh_audio_recorder_player_SRC})
|
|
6
|
-
target_include_directories(rnoh_audio_recorder_player PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
7
|
-
target_link_libraries(rnoh_audio_recorder_player PUBLIC rnoh)
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
3
|
+
|
|
4
|
+
file(GLOB rnoh_audio_recorder_player_SRC CONFIGURE_DEPENDS *.cpp)
|
|
5
|
+
add_library(rnoh_audio_recorder_player SHARED ${rnoh_audio_recorder_player_SRC})
|
|
6
|
+
target_include_directories(rnoh_audio_recorder_player PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
7
|
+
target_link_libraries(rnoh_audio_recorder_player PUBLIC rnoh)
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* MIT License
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2023 Huawei Device Co., Ltd.
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
#include "RNOH/Package.h"
|
|
26
|
-
#include "RNAudioRecorderPlayerTurboModule.h"
|
|
27
|
-
|
|
28
|
-
using namespace rnoh;
|
|
29
|
-
using namespace facebook;
|
|
30
|
-
class RNAudioRecorderPlayerFactoryDelegate : public TurboModuleFactoryDelegate {
|
|
31
|
-
public:
|
|
32
|
-
SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
|
|
33
|
-
if (name == "RNAudioRecorderPlayerTurboModule") {
|
|
34
|
-
return std::make_shared<RNAudioRecorderPlayerTurboModuleSpecJSI>(ctx, name);
|
|
35
|
-
}
|
|
36
|
-
return nullptr;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
namespace rnoh {
|
|
41
|
-
class RNAudioRecorderPlayerPackage : public Package {
|
|
42
|
-
public:
|
|
43
|
-
RNAudioRecorderPlayerPackage(Package::Context ctx) : Package(ctx) {}
|
|
44
|
-
std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
|
|
45
|
-
return std::make_unique<RNAudioRecorderPlayerFactoryDelegate>();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
} // namespace rnoh
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2023 Huawei Device Co., Ltd.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
#include "RNOH/Package.h"
|
|
26
|
+
#include "RNAudioRecorderPlayerTurboModule.h"
|
|
27
|
+
|
|
28
|
+
using namespace rnoh;
|
|
29
|
+
using namespace facebook;
|
|
30
|
+
class RNAudioRecorderPlayerFactoryDelegate : public TurboModuleFactoryDelegate {
|
|
31
|
+
public:
|
|
32
|
+
SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
|
|
33
|
+
if (name == "RNAudioRecorderPlayerTurboModule") {
|
|
34
|
+
return std::make_shared<RNAudioRecorderPlayerTurboModuleSpecJSI>(ctx, name);
|
|
35
|
+
}
|
|
36
|
+
return nullptr;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
namespace rnoh {
|
|
41
|
+
class RNAudioRecorderPlayerPackage : public Package {
|
|
42
|
+
public:
|
|
43
|
+
RNAudioRecorderPlayerPackage(Package::Context ctx) : Package(ctx) {}
|
|
44
|
+
std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
|
|
45
|
+
return std::make_unique<RNAudioRecorderPlayerFactoryDelegate>();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
} // namespace rnoh
|