@react-native-ohos/react-native-fileupload 1.1.1-rc.2 → 1.1.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/NativeRNFileupload.ts +7 -7
- package/OAT.xml +46 -46
- package/README.OpenSource +10 -10
- package/README.md +9 -9
- package/harmony/fileUpload/LICENSE +19 -19
- package/harmony/fileUpload/build-profile.json5 +8 -8
- package/harmony/fileUpload/hvigorfile.ts +6 -6
- package/harmony/fileUpload/index.ets +3 -3
- package/harmony/fileUpload/obfuscation-rules.txt +17 -17
- package/harmony/fileUpload/oh-package.json5 +11 -11
- package/harmony/fileUpload/src/main/cpp/CMakeLists.txt +8 -8
- package/harmony/fileUpload/src/main/cpp/FileUploadPackage.h +35 -35
- package/harmony/fileUpload/src/main/cpp/generated/RNOH/generated/BaseReactNativeFileuploadPackage.h +65 -65
- package/harmony/fileUpload/src/main/cpp/generated/RNOH/generated/turbo_modules/RNFileupload.cpp +16 -16
- package/harmony/fileUpload/src/main/cpp/generated/RNOH/generated/turbo_modules/RNFileupload.h +16 -16
- package/harmony/fileUpload/src/main/ets/FileUpLoadModule.ts +106 -106
- package/harmony/fileUpload/src/main/ets/FileUpLoadPackage.ets +46 -46
- package/harmony/fileUpload/src/main/ets/Logger.ts +63 -63
- package/harmony/fileUpload/src/main/ets/generated/components/ts.ts +5 -5
- package/harmony/fileUpload/src/main/ets/generated/index.ets +5 -5
- package/harmony/fileUpload/src/main/ets/generated/ts.ts +6 -6
- package/harmony/fileUpload/src/main/ets/generated/turboModules/RNFileupload.ts +14 -14
- package/harmony/fileUpload/src/main/ets/generated/turboModules/ts.ts +5 -5
- package/harmony/fileUpload/src/main/module.json5 +11 -11
- package/harmony/fileUpload/src/main/resources/base/element/string.json +8 -8
- package/harmony/fileUpload/src/main/resources/en_US/element/string.json +8 -8
- package/harmony/fileUpload/src/main/resources/zh_CN/element/string.json +8 -8
- package/harmony/fileUpload/src/test/List.test.ets +4 -4
- package/harmony/fileUpload/src/test/LocalUnit.test.ets +32 -32
- package/harmony/fileUpload/ts.ets +1 -1
- package/harmony/fileupload.har +0 -0
- package/index.js +1 -1
- package/package.json +46 -46
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
|
|
2
|
-
|
|
3
|
-
export default function localUnitTest() {
|
|
4
|
-
describe('localUnitTest',() => {
|
|
5
|
-
// Defines a test suite. Two parameters are supported: test suite name and test suite function.
|
|
6
|
-
beforeAll(() => {
|
|
7
|
-
// Presets an action, which is performed only once before all test cases of the test suite start.
|
|
8
|
-
// This API supports only one parameter: preset action function.
|
|
9
|
-
});
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
// Presets an action, which is performed before each unit test case starts.
|
|
12
|
-
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
13
|
-
// This API supports only one parameter: preset action function.
|
|
14
|
-
});
|
|
15
|
-
afterEach(() => {
|
|
16
|
-
// Presets a clear action, which is performed after each unit test case ends.
|
|
17
|
-
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
18
|
-
// This API supports only one parameter: clear action function.
|
|
19
|
-
});
|
|
20
|
-
afterAll(() => {
|
|
21
|
-
// Presets a clear action, which is performed after all test cases of the test suite end.
|
|
22
|
-
// This API supports only one parameter: clear action function.
|
|
23
|
-
});
|
|
24
|
-
it('assertContain', 0, () => {
|
|
25
|
-
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
|
|
26
|
-
let a = 'abc';
|
|
27
|
-
let b = 'b';
|
|
28
|
-
// Defines a variety of assertion methods, which are used to declare expected boolean conditions.
|
|
29
|
-
expect(a).assertContain(b);
|
|
30
|
-
expect(a).assertEqual(a);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
1
|
+
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
|
|
2
|
+
|
|
3
|
+
export default function localUnitTest() {
|
|
4
|
+
describe('localUnitTest',() => {
|
|
5
|
+
// Defines a test suite. Two parameters are supported: test suite name and test suite function.
|
|
6
|
+
beforeAll(() => {
|
|
7
|
+
// Presets an action, which is performed only once before all test cases of the test suite start.
|
|
8
|
+
// This API supports only one parameter: preset action function.
|
|
9
|
+
});
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
// Presets an action, which is performed before each unit test case starts.
|
|
12
|
+
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
13
|
+
// This API supports only one parameter: preset action function.
|
|
14
|
+
});
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
// Presets a clear action, which is performed after each unit test case ends.
|
|
17
|
+
// The number of execution times is the same as the number of test cases defined by **it**.
|
|
18
|
+
// This API supports only one parameter: clear action function.
|
|
19
|
+
});
|
|
20
|
+
afterAll(() => {
|
|
21
|
+
// Presets a clear action, which is performed after all test cases of the test suite end.
|
|
22
|
+
// This API supports only one parameter: clear action function.
|
|
23
|
+
});
|
|
24
|
+
it('assertContain', 0, () => {
|
|
25
|
+
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function.
|
|
26
|
+
let a = 'abc';
|
|
27
|
+
let b = 'b';
|
|
28
|
+
// Defines a variety of assertion methods, which are used to declare expected boolean conditions.
|
|
29
|
+
expect(a).assertContain(b);
|
|
30
|
+
expect(a).assertEqual(a);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
33
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./src/main/ets/FileUpLoadPackage";
|
|
1
|
+
export * from "./src/main/ets/FileUpLoadPackage";
|
|
2
2
|
export * from "./src/main/ets/FileUpLoadModule";
|
package/harmony/fileupload.har
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import NativeModule from "./NativeRNFileupload";
|
|
1
|
+
import NativeModule from "./NativeRNFileupload";
|
|
2
2
|
export default NativeModule;
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@react-native-ohos/react-native-fileupload",
|
|
3
|
-
"version": "1.1.1
|
|
4
|
-
"description": "A file upload plugin for react-native",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-fileupload --cpp-output-path ./harmony/fileUpload/src/main/cpp/generated --ets-output-path ./harmony/fileUpload/src/main/ets/generated --turbo-modules-spec-paths ./NativeRNFileUpload.ts"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload.git"
|
|
13
|
-
},
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"registry": "https://registry.npmjs.org/",
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"react-component",
|
|
20
|
-
"react-native",
|
|
21
|
-
"file",
|
|
22
|
-
"upload"
|
|
23
|
-
],
|
|
24
|
-
"harmony": {
|
|
25
|
-
"alias": "react-native-fileupload",
|
|
26
|
-
"autolinking": {
|
|
27
|
-
"etsPackageClassName":"FileUploadPackage",
|
|
28
|
-
"cppPackageClassName":"FileUploadPackage",
|
|
29
|
-
"cmakeLibraryTargetName": "rnoh_fileupload",
|
|
30
|
-
"ohPackageName": "@react-native-ohos/react-native-fileupload"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"overrides": {
|
|
34
|
-
"@react-native/codegen": "0.74.0"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"react-native-fileupload": "1.1.0",
|
|
38
|
-
"react": "18.2.0",
|
|
39
|
-
"react-native": "0.72.5"
|
|
40
|
-
},
|
|
41
|
-
"author": "Philipp Krone",
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload/issues"
|
|
45
|
-
},
|
|
46
|
-
"homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload"
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-ohos/react-native-fileupload",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "A file upload plugin for react-native",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"codegen-lib": "react-native codegen-lib-harmony --no-safety-check --npm-package-name react-native-fileupload --cpp-output-path ./harmony/fileUpload/src/main/cpp/generated --ets-output-path ./harmony/fileUpload/src/main/ets/generated --turbo-modules-spec-paths ./NativeRNFileUpload.ts"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload.git"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"registry": "https://registry.npmjs.org/",
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"react-component",
|
|
20
|
+
"react-native",
|
|
21
|
+
"file",
|
|
22
|
+
"upload"
|
|
23
|
+
],
|
|
24
|
+
"harmony": {
|
|
25
|
+
"alias": "react-native-fileupload",
|
|
26
|
+
"autolinking": {
|
|
27
|
+
"etsPackageClassName":"FileUploadPackage",
|
|
28
|
+
"cppPackageClassName":"FileUploadPackage",
|
|
29
|
+
"cmakeLibraryTargetName": "rnoh_fileupload",
|
|
30
|
+
"ohPackageName": "@react-native-ohos/react-native-fileupload"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"overrides": {
|
|
34
|
+
"@react-native/codegen": "0.74.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"react-native-fileupload": "1.1.0",
|
|
38
|
+
"react": "18.2.0",
|
|
39
|
+
"react-native": "0.72.5"
|
|
40
|
+
},
|
|
41
|
+
"author": "Philipp Krone",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-fileupload"
|
|
47
47
|
}
|