@json-eval-rs/react-native 0.0.28
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/README.md +455 -0
- package/android/CMakeLists.txt +78 -0
- package/android/build.gradle +90 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/json-eval-rn.cpp +875 -0
- package/android/src/main/java/com/jsonevalrs/JsonEvalRsModule.kt +532 -0
- package/android/src/main/java/com/jsonevalrs/JsonEvalRsPackage.kt +16 -0
- package/android/src/main/jniLibs/arm64-v8a/libjson_eval_rs.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libjson_eval_rs.so +0 -0
- package/android/src/main/jniLibs/x86/libjson_eval_rs.so +0 -0
- package/android/src/main/jniLibs/x86_64/libjson_eval_rs.so +0 -0
- package/cpp/json-eval-bridge.cpp +1366 -0
- package/cpp/json-eval-bridge.h +583 -0
- package/ios/JsonEvalRs.h +5 -0
- package/ios/JsonEvalRs.mm +852 -0
- package/ios/JsonEvalRs.xcframework/Info.plist +44 -0
- package/ios/JsonEvalRs.xcframework/ios-arm64/libjson_eval_rs.a +0 -0
- package/ios/JsonEvalRs.xcframework/ios-arm64_x86_64-simulator/libjson_eval_rs.a +0 -0
- package/json-eval-rs.podspec +33 -0
- package/lib/commonjs/index.js +786 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +778 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/index.d.ts +565 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/package.json +140 -0
- package/src/index.tsx +999 -0
package/package.json
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@json-eval-rs/react-native",
|
|
3
|
+
"version": "0.0.28",
|
|
4
|
+
"description": "High-performance JSON Logic evaluator with schema validation for React Native",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"android/src/main/jniLibs/**/*.so",
|
|
15
|
+
"ios",
|
|
16
|
+
"ios/libs/libjson_eval_rs_device.a",
|
|
17
|
+
"ios/libs/libjson_eval_rs_simulator.a",
|
|
18
|
+
"cpp",
|
|
19
|
+
"json-eval-rs.podspec",
|
|
20
|
+
"!lib/typescript/example",
|
|
21
|
+
"!android/build",
|
|
22
|
+
"!android/.cxx",
|
|
23
|
+
"!ios/build",
|
|
24
|
+
"!**/__tests__",
|
|
25
|
+
"!**/__fixtures__",
|
|
26
|
+
"!**/__mocks__"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "jest",
|
|
30
|
+
"typescript": "tsc --noEmit",
|
|
31
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
32
|
+
"prepare": "bob build",
|
|
33
|
+
"clean": "rm -rf lib"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"react-native",
|
|
37
|
+
"ios",
|
|
38
|
+
"android",
|
|
39
|
+
"json",
|
|
40
|
+
"json-logic",
|
|
41
|
+
"schema",
|
|
42
|
+
"validation",
|
|
43
|
+
"evaluation",
|
|
44
|
+
"rust",
|
|
45
|
+
"performance"
|
|
46
|
+
],
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/byrizki/json-eval-rs.git",
|
|
50
|
+
"directory": "bindings/react-native/packages/react-native"
|
|
51
|
+
},
|
|
52
|
+
"author": "Muhamad Rizki <hello@byrizki.com>",
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/byrizki/json-eval-rs/issues"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/byrizki/json-eval-rs#readme",
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"registry": "https://registry.npmjs.org/",
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@babel/core": "^7.20.0",
|
|
64
|
+
"@babel/preset-env": "^7.20.0",
|
|
65
|
+
"@babel/runtime": "^7.20.0",
|
|
66
|
+
"@react-native/babel-preset": "0.75.5",
|
|
67
|
+
"@react-native/eslint-config": "0.75.5",
|
|
68
|
+
"@react-native/metro-config": "0.75.5",
|
|
69
|
+
"@react-native/typescript-config": "0.75.5",
|
|
70
|
+
"@types/jest": "^28.1.2",
|
|
71
|
+
"@types/react": "^18.2.6",
|
|
72
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
73
|
+
"babel-jest": "^29.6.3",
|
|
74
|
+
"eslint": "^8.19.0",
|
|
75
|
+
"eslint-config-prettier": "^8.5.0",
|
|
76
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
77
|
+
"jest": "^29.6.3",
|
|
78
|
+
"pod-install": "^0.1.0",
|
|
79
|
+
"prettier": "2.8.8",
|
|
80
|
+
"react": "18.3.1",
|
|
81
|
+
"react-native": "0.75.5",
|
|
82
|
+
"react-native-builder-bob": "^0.20.0",
|
|
83
|
+
"react-test-renderer": "18.3.1",
|
|
84
|
+
"typescript": "5.0.4"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"react": "*",
|
|
88
|
+
"react-native": "*"
|
|
89
|
+
},
|
|
90
|
+
"jest": {
|
|
91
|
+
"preset": "react-native",
|
|
92
|
+
"modulePathIgnorePatterns": [
|
|
93
|
+
"<rootDir>/lib/"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"eslintConfig": {
|
|
97
|
+
"root": true,
|
|
98
|
+
"extends": [
|
|
99
|
+
"@react-native",
|
|
100
|
+
"prettier"
|
|
101
|
+
],
|
|
102
|
+
"rules": {
|
|
103
|
+
"prettier/prettier": [
|
|
104
|
+
"error",
|
|
105
|
+
{
|
|
106
|
+
"quoteProps": "consistent",
|
|
107
|
+
"singleQuote": true,
|
|
108
|
+
"tabWidth": 2,
|
|
109
|
+
"trailingComma": "es5",
|
|
110
|
+
"useTabs": false
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"eslintIgnore": [
|
|
116
|
+
"node_modules/",
|
|
117
|
+
"lib/"
|
|
118
|
+
],
|
|
119
|
+
"prettier": {
|
|
120
|
+
"quoteProps": "consistent",
|
|
121
|
+
"singleQuote": true,
|
|
122
|
+
"tabWidth": 2,
|
|
123
|
+
"trailingComma": "es5",
|
|
124
|
+
"useTabs": false
|
|
125
|
+
},
|
|
126
|
+
"react-native-builder-bob": {
|
|
127
|
+
"source": "src",
|
|
128
|
+
"output": "lib",
|
|
129
|
+
"targets": [
|
|
130
|
+
"commonjs",
|
|
131
|
+
"module",
|
|
132
|
+
[
|
|
133
|
+
"typescript",
|
|
134
|
+
{
|
|
135
|
+
"project": "tsconfig.build.json"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|