react-native-consumet 0.3.0 → 0.4.0
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/android/src/main/java/com/consumet/ConsumetModule.kt +67 -39
- package/package.json +191 -192
- package/android/src/main/assets/crypto-js.js +0 -1
- package/android/src/main/assets/megacloud.decodedpng.js +0 -606
- package/android/src/main/assets/megacloud.getsrcs.js +0 -714
- package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js +0 -10
- package/lib/commonjs/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
- package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js +0 -864
- package/lib/commonjs/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
- package/lib/module/extractors/megacloud/megacloud.decodedpng.js +0 -6
- package/lib/module/extractors/megacloud/megacloud.decodedpng.js.map +0 -1
- package/lib/module/extractors/megacloud/megacloud.getsrcs.js +0 -864
- package/lib/module/extractors/megacloud/megacloud.getsrcs.js.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
- package/lib/typescript/commonjs/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts +0 -2
- package/lib/typescript/module/src/extractors/megacloud/megacloud.decodedpng.d.ts.map +0 -1
- package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts +0 -1
- package/lib/typescript/module/src/extractors/megacloud/megacloud.getsrcs.d.ts.map +0 -1
- package/src/extractors/megacloud/megacloud.decodedpng.ts +0 -553
- package/src/extractors/megacloud/megacloud.getsrcs.ts +0 -862
|
@@ -4,12 +4,7 @@ import android.annotation.SuppressLint
|
|
|
4
4
|
import android.os.Handler
|
|
5
5
|
import android.os.Looper
|
|
6
6
|
import android.util.Log
|
|
7
|
-
import android.webkit
|
|
8
|
-
import android.webkit.WebChromeClient
|
|
9
|
-
import android.webkit.WebView
|
|
10
|
-
import android.webkit.WebViewClient
|
|
11
|
-
import android.webkit.ConsoleMessage
|
|
12
|
-
import androidx.annotation.NonNull
|
|
7
|
+
import android.webkit.*
|
|
13
8
|
import com.facebook.react.bridge.Promise
|
|
14
9
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
15
10
|
import com.facebook.react.module.annotations.ReactModule
|
|
@@ -18,11 +13,14 @@ import java.util.concurrent.CountDownLatch
|
|
|
18
13
|
import java.util.concurrent.TimeUnit
|
|
19
14
|
|
|
20
15
|
@ReactModule(name = ConsumetModule.NAME)
|
|
21
|
-
class ConsumetModule(reactContext: ReactApplicationContext) : NativeConsumetSpec(reactContext) {
|
|
16
|
+
class ConsumetModule(private val reactContext: ReactApplicationContext) : NativeConsumetSpec(reactContext), TurboModule {
|
|
22
17
|
private val handler by lazy { Handler(Looper.getMainLooper()) }
|
|
23
18
|
private val tag by lazy { javaClass.simpleName }
|
|
24
19
|
|
|
25
|
-
class JsInterface(
|
|
20
|
+
class JsInterface(
|
|
21
|
+
private val latch: CountDownLatch,
|
|
22
|
+
private val context: ReactApplicationContext
|
|
23
|
+
) {
|
|
26
24
|
var result: String? = null
|
|
27
25
|
|
|
28
26
|
@JavascriptInterface
|
|
@@ -31,21 +29,28 @@ class ConsumetModule(reactContext: ReactApplicationContext) : NativeConsumetSpec
|
|
|
31
29
|
result = response
|
|
32
30
|
latch.countDown()
|
|
33
31
|
}
|
|
34
|
-
}
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
@JavascriptInterface
|
|
34
|
+
fun loadLocalAsset(filename: String): String {
|
|
35
|
+
return try {
|
|
36
|
+
context.assets.open(filename).bufferedReader().use { it.readText() }
|
|
37
|
+
} catch (e: Exception) {
|
|
38
|
+
Log.e("ConsumetModule", "Failed to load local asset: $filename", e)
|
|
39
|
+
"console.error('Failed to load $filename: ${e.message}');"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
@SuppressLint("SetJavaScriptEnabled")
|
|
41
45
|
override fun getSources(xrax: String, promise: Promise) {
|
|
42
46
|
val latch = CountDownLatch(1)
|
|
43
47
|
var webView: WebView? = null
|
|
44
|
-
val jsi = JsInterface(latch)
|
|
48
|
+
val jsi = JsInterface(latch, reactContext)
|
|
45
49
|
|
|
46
50
|
handler.post {
|
|
47
|
-
val webview = WebView(
|
|
51
|
+
val webview = WebView(reactContext)
|
|
48
52
|
webView = webview
|
|
53
|
+
|
|
49
54
|
with(webview.settings) {
|
|
50
55
|
javaScriptEnabled = true
|
|
51
56
|
domStorageEnabled = true
|
|
@@ -59,53 +64,76 @@ class ConsumetModule(reactContext: ReactApplicationContext) : NativeConsumetSpec
|
|
|
59
64
|
|
|
60
65
|
webview.webViewClient = object : WebViewClient() {
|
|
61
66
|
override fun onPageFinished(view: WebView?, url: String?) {
|
|
62
|
-
Log.d(tag, "onPageFinished $url")
|
|
63
67
|
super.onPageFinished(view, url)
|
|
64
68
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
val cdnScript = """
|
|
70
|
+
(async function() {
|
|
71
|
+
async function loadScriptWithFallback(url, localFilename) {
|
|
72
|
+
try {
|
|
73
|
+
console.log("Loading from CDN: " + url);
|
|
74
|
+
await new Promise((resolve, reject) => {
|
|
75
|
+
const script = document.createElement('script');
|
|
76
|
+
script.src = url;
|
|
77
|
+
script.onload = () => resolve();
|
|
78
|
+
script.onerror = () => reject(new Error("CDN failed"));
|
|
79
|
+
document.head.appendChild(script);
|
|
80
|
+
setTimeout(() => reject(new Error("CDN timeout")), 5000);
|
|
81
|
+
});
|
|
82
|
+
} catch (e) {
|
|
83
|
+
console.warn("Falling back to local asset: " + localFilename);
|
|
84
|
+
const localScript = window.jsinterface.loadLocalAsset(localFilename);
|
|
85
|
+
eval(localScript);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
try {
|
|
90
|
+
await loadScriptWithFallback("https://cdn.jsdelivr.net/gh/2004durgesh/react-native-consumet@main/android/src/main/assets/crypto-js.js", "crypto-js.js");
|
|
91
|
+
await loadScriptWithFallback("https://cdn.jsdelivr.net/gh/2004durgesh/react-native-consumet@main/android/src/main/assets/megacloud.decodedpng.js", "megacloud.decodedpng.js");
|
|
92
|
+
await loadScriptWithFallback("https://cdn.jsdelivr.net/gh/2004durgesh/react-native-consumet@main/android/src/main/assets/megacloud.getsrcs.js", "megacloud.getsrcs.js");
|
|
93
|
+
|
|
94
|
+
console.log("Calling getSources...");
|
|
95
|
+
const result = await getSources("${xrax}");
|
|
96
|
+
window.jsinterface.setResponse(JSON.stringify(result));
|
|
97
|
+
} catch (err) {
|
|
98
|
+
console.error("Execution error:", err);
|
|
99
|
+
window.jsinterface.setResponse("ERROR: " + err.message);
|
|
100
|
+
}
|
|
101
|
+
})();
|
|
102
|
+
""".trimIndent()
|
|
103
|
+
|
|
104
|
+
view?.evaluateJavascript(cdnScript, null)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
override fun onReceivedError(view: WebView?, errorCode: Int, description: String?, failingUrl: String?) {
|
|
108
|
+
Log.e(tag, "WebView error: $errorCode - $description @ $failingUrl")
|
|
109
|
+
super.onReceivedError(view, errorCode, description, failingUrl)
|
|
76
110
|
}
|
|
77
111
|
}
|
|
78
112
|
|
|
79
113
|
webview.webChromeClient = object : WebChromeClient() {
|
|
80
114
|
override fun onConsoleMessage(consoleMessage: ConsoleMessage?): Boolean {
|
|
81
|
-
Log.d(
|
|
82
|
-
tag,
|
|
83
|
-
"Chrome: [${consoleMessage?.messageLevel()}]" +
|
|
84
|
-
"${consoleMessage?.message()}" +
|
|
85
|
-
" at ${consoleMessage?.lineNumber()}" +
|
|
86
|
-
" in ${consoleMessage?.sourceId()}",
|
|
87
|
-
)
|
|
115
|
+
Log.d(tag, "Console: [${consoleMessage?.messageLevel()}] ${consoleMessage?.message()}")
|
|
88
116
|
return super.onConsoleMessage(consoleMessage)
|
|
89
117
|
}
|
|
90
118
|
}
|
|
91
119
|
|
|
92
120
|
val headers = mapOf("X-Requested-With" to "org.lineageos.jelly")
|
|
93
|
-
|
|
121
|
+
webview.loadUrl("https://megacloud.tv/about", headers)
|
|
94
122
|
}
|
|
95
123
|
|
|
96
|
-
//
|
|
124
|
+
// Await result or timeout
|
|
97
125
|
Thread {
|
|
98
126
|
val success = latch.await(TIMEOUT_SEC, TimeUnit.SECONDS)
|
|
99
|
-
|
|
127
|
+
|
|
100
128
|
handler.post {
|
|
101
129
|
webView?.stopLoading()
|
|
102
130
|
webView?.destroy()
|
|
103
131
|
webView = null
|
|
104
|
-
|
|
132
|
+
|
|
105
133
|
if (success && jsi.result != null) {
|
|
106
134
|
promise.resolve(jsi.result)
|
|
107
135
|
} else {
|
|
108
|
-
promise.reject("ERROR", "Failed to get sources or
|
|
136
|
+
promise.reject("ERROR", "Failed to get sources or timeout2")
|
|
109
137
|
}
|
|
110
138
|
}
|
|
111
139
|
}.start()
|
|
@@ -113,6 +141,6 @@ class ConsumetModule(reactContext: ReactApplicationContext) : NativeConsumetSpec
|
|
|
113
141
|
|
|
114
142
|
companion object {
|
|
115
143
|
const val NAME = "Consumet"
|
|
116
|
-
private const val TIMEOUT_SEC: Long =
|
|
144
|
+
private const val TIMEOUT_SEC: Long = 90
|
|
117
145
|
}
|
|
118
|
-
}
|
|
146
|
+
}
|
package/package.json
CHANGED
|
@@ -1,192 +1,191 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-native-consumet",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React Native library providing access to entertainment media information (anime, movies, manga, etc.) from multiple sources, adapting the Consumet API for mobile applications.",
|
|
5
|
-
"source": "./src/index.ts",
|
|
6
|
-
"main": "./lib/commonjs/index.js",
|
|
7
|
-
"module": "./lib/module/index.js",
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
"*": {
|
|
10
|
-
"*": [
|
|
11
|
-
"lib/typescript/commonjs/src/index.d.ts",
|
|
12
|
-
"lib/typescript/module/src/index.d.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"import": {
|
|
19
|
-
"types": "./lib/typescript/module/src/index.d.ts",
|
|
20
|
-
"default": "./lib/module/index.js"
|
|
21
|
-
},
|
|
22
|
-
"require": {
|
|
23
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
24
|
-
"default": "./lib/commonjs/index.js"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"./package.json": "./package.json"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"src",
|
|
31
|
-
"lib",
|
|
32
|
-
"android",
|
|
33
|
-
"ios",
|
|
34
|
-
"cpp",
|
|
35
|
-
"*.podspec",
|
|
36
|
-
"react-native.config.js",
|
|
37
|
-
"!ios/build",
|
|
38
|
-
"!android/build",
|
|
39
|
-
"!android/gradle",
|
|
40
|
-
"!android/gradlew",
|
|
41
|
-
"!android/gradlew.bat",
|
|
42
|
-
"!android/local.properties",
|
|
43
|
-
"!**/__tests__",
|
|
44
|
-
"!**/test",
|
|
45
|
-
"!**/__fixtures__",
|
|
46
|
-
"!**/__mocks__",
|
|
47
|
-
"!**/.*"
|
|
48
|
-
],
|
|
49
|
-
"scripts": {
|
|
50
|
-
"example": "yarn workspace react-native-consumet-bare-example",
|
|
51
|
-
"test": "jest",
|
|
52
|
-
"typecheck": "tsc",
|
|
53
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
54
|
-
"clean": "del-cli android/build lib \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
|
|
55
|
-
"prepare": "bob build",
|
|
56
|
-
"release": "release-it",
|
|
57
|
-
"prettier": "prettier --write \"**/*.{js,ts,tsx,json}\""
|
|
58
|
-
},
|
|
59
|
-
"keywords": [
|
|
60
|
-
"react-native",
|
|
61
|
-
"ios",
|
|
62
|
-
"android"
|
|
63
|
-
],
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/2004durgesh/react-native-consumet.git"
|
|
67
|
-
},
|
|
68
|
-
"author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
|
|
69
|
-
"license": "GPL-3.0-only",
|
|
70
|
-
"bugs": {
|
|
71
|
-
"url": "https://github.com/2004durgesh/react-native-consumet/issues"
|
|
72
|
-
},
|
|
73
|
-
"homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"registry": "https://registry.npmjs.org/"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@babel/preset-env": "^7.26.9",
|
|
79
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
80
|
-
"@eslint/compat": "^1.2.7",
|
|
81
|
-
"@eslint/eslintrc": "^3.3.0",
|
|
82
|
-
"@eslint/js": "^9.22.0",
|
|
83
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
84
|
-
"@react-native-community/cli": "15.0.1",
|
|
85
|
-
"@react-native/eslint-config": "^0.78.0",
|
|
86
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
87
|
-
"@types/crypto-js": "^4.2.2",
|
|
88
|
-
"@types/jest": "^29.5.5",
|
|
89
|
-
"@types/react": "^19.0.0",
|
|
90
|
-
"babel-jest": "^29.7.0",
|
|
91
|
-
"commitlint": "^19.6.1",
|
|
92
|
-
"del-cli": "^5.1.0",
|
|
93
|
-
"eslint": "^9.22.0",
|
|
94
|
-
"eslint-config-prettier": "^10.1.1",
|
|
95
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
96
|
-
"eslint-plugin-unused-imports": "^4.1.4",
|
|
97
|
-
"jest": "^29.7.0",
|
|
98
|
-
"prettier": "^3.0.3",
|
|
99
|
-
"react": "19.0.0",
|
|
100
|
-
"react-native": "0.78.1",
|
|
101
|
-
"react-native-builder-bob": "^0.38.3",
|
|
102
|
-
"release-it": "^17.10.0",
|
|
103
|
-
"ts-jest": "^29.3.1",
|
|
104
|
-
"ts-node": "^10.9.2",
|
|
105
|
-
"turbo": "^1.10.7",
|
|
106
|
-
"typescript": "^5.2.2"
|
|
107
|
-
},
|
|
108
|
-
"peerDependencies": {
|
|
109
|
-
"react": "*",
|
|
110
|
-
"react-native": "*"
|
|
111
|
-
},
|
|
112
|
-
"workspaces": [
|
|
113
|
-
"apps/bare-example",
|
|
114
|
-
"apps/expo-example"
|
|
115
|
-
],
|
|
116
|
-
"packageManager": "yarn@3.6.1",
|
|
117
|
-
"commitlint": {
|
|
118
|
-
"extends": [
|
|
119
|
-
"@commitlint/config-conventional"
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
"release-it": {
|
|
123
|
-
"git": {
|
|
124
|
-
"commitMessage": "chore: release ${version}",
|
|
125
|
-
"tagName": "v${version}"
|
|
126
|
-
},
|
|
127
|
-
"npm": {
|
|
128
|
-
"publish": true
|
|
129
|
-
},
|
|
130
|
-
"github": {
|
|
131
|
-
"release": true
|
|
132
|
-
},
|
|
133
|
-
"plugins": {
|
|
134
|
-
"@release-it/conventional-changelog": {
|
|
135
|
-
"preset": {
|
|
136
|
-
"name": "conventionalcommits"
|
|
137
|
-
},
|
|
138
|
-
"infile": "CHANGELOG.md"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"react-native-builder-bob": {
|
|
143
|
-
"source": "src",
|
|
144
|
-
"output": "lib",
|
|
145
|
-
"targets": [
|
|
146
|
-
"codegen",
|
|
147
|
-
[
|
|
148
|
-
"module",
|
|
149
|
-
{
|
|
150
|
-
"esm": true
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
[
|
|
154
|
-
"commonjs",
|
|
155
|
-
{
|
|
156
|
-
"esm": true
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
[
|
|
160
|
-
"typescript",
|
|
161
|
-
{
|
|
162
|
-
"project": "tsconfig.build.json"
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
"codegenConfig": {
|
|
168
|
-
"name": "RNConsumetSpec",
|
|
169
|
-
"type": "modules",
|
|
170
|
-
"jsSrcsDir": "src",
|
|
171
|
-
"outputDir": {
|
|
172
|
-
"ios": "ios/generated",
|
|
173
|
-
"android": "android/generated"
|
|
174
|
-
},
|
|
175
|
-
"android": {
|
|
176
|
-
"javaPackageName": "com.consumet"
|
|
177
|
-
},
|
|
178
|
-
"includesGeneratedCode": true
|
|
179
|
-
},
|
|
180
|
-
"create-react-native-library": {
|
|
181
|
-
"type": "turbo-module",
|
|
182
|
-
"languages": "kotlin-objc",
|
|
183
|
-
"version": "0.49.0"
|
|
184
|
-
},
|
|
185
|
-
"dependencies": {
|
|
186
|
-
"ascii-url-encoder": "^1.2.0",
|
|
187
|
-
"axios": "^1.8.4",
|
|
188
|
-
"cheerio": "1.0.0-rc.12",
|
|
189
|
-
"crypto-js": "^4.2.0"
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-consumet",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "React Native library providing access to entertainment media information (anime, movies, manga, etc.) from multiple sources, adapting the Consumet API for mobile applications.",
|
|
5
|
+
"source": "./src/index.ts",
|
|
6
|
+
"main": "./lib/commonjs/index.js",
|
|
7
|
+
"module": "./lib/module/index.js",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"*": [
|
|
11
|
+
"lib/typescript/commonjs/src/index.d.ts",
|
|
12
|
+
"lib/typescript/module/src/index.d.ts"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
20
|
+
"default": "./lib/module/index.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
24
|
+
"default": "./lib/commonjs/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"src",
|
|
31
|
+
"lib",
|
|
32
|
+
"android",
|
|
33
|
+
"ios",
|
|
34
|
+
"cpp",
|
|
35
|
+
"*.podspec",
|
|
36
|
+
"react-native.config.js",
|
|
37
|
+
"!ios/build",
|
|
38
|
+
"!android/build",
|
|
39
|
+
"!android/gradle",
|
|
40
|
+
"!android/gradlew",
|
|
41
|
+
"!android/gradlew.bat",
|
|
42
|
+
"!android/local.properties",
|
|
43
|
+
"!**/__tests__",
|
|
44
|
+
"!**/test",
|
|
45
|
+
"!**/__fixtures__",
|
|
46
|
+
"!**/__mocks__",
|
|
47
|
+
"!**/.*"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"example": "yarn workspace react-native-consumet-bare-example",
|
|
51
|
+
"test": "jest",
|
|
52
|
+
"typecheck": "tsc",
|
|
53
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
54
|
+
"clean": "del-cli android/build lib \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
|
|
55
|
+
"prepare": "bob build",
|
|
56
|
+
"release": "release-it",
|
|
57
|
+
"prettier": "prettier --write \"**/*.{js,ts,tsx,json}\""
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"react-native",
|
|
61
|
+
"ios",
|
|
62
|
+
"android"
|
|
63
|
+
],
|
|
64
|
+
"repository": {
|
|
65
|
+
"type": "git",
|
|
66
|
+
"url": "git+https://github.com/2004durgesh/react-native-consumet.git"
|
|
67
|
+
},
|
|
68
|
+
"author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
|
|
69
|
+
"license": "GPL-3.0-only",
|
|
70
|
+
"bugs": {
|
|
71
|
+
"url": "https://github.com/2004durgesh/react-native-consumet/issues"
|
|
72
|
+
},
|
|
73
|
+
"homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"registry": "https://registry.npmjs.org/"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/preset-env": "^7.26.9",
|
|
79
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
80
|
+
"@eslint/compat": "^1.2.7",
|
|
81
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
82
|
+
"@eslint/js": "^9.22.0",
|
|
83
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
84
|
+
"@react-native-community/cli": "15.0.1",
|
|
85
|
+
"@react-native/eslint-config": "^0.78.0",
|
|
86
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
87
|
+
"@types/crypto-js": "^4.2.2",
|
|
88
|
+
"@types/jest": "^29.5.5",
|
|
89
|
+
"@types/react": "^19.0.0",
|
|
90
|
+
"babel-jest": "^29.7.0",
|
|
91
|
+
"commitlint": "^19.6.1",
|
|
92
|
+
"del-cli": "^5.1.0",
|
|
93
|
+
"eslint": "^9.22.0",
|
|
94
|
+
"eslint-config-prettier": "^10.1.1",
|
|
95
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
96
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"prettier": "^3.0.3",
|
|
99
|
+
"react": "19.0.0",
|
|
100
|
+
"react-native": "0.78.1",
|
|
101
|
+
"react-native-builder-bob": "^0.38.3",
|
|
102
|
+
"release-it": "^17.10.0",
|
|
103
|
+
"ts-jest": "^29.3.1",
|
|
104
|
+
"ts-node": "^10.9.2",
|
|
105
|
+
"turbo": "^1.10.7",
|
|
106
|
+
"typescript": "^5.2.2"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"react": "*",
|
|
110
|
+
"react-native": "*"
|
|
111
|
+
},
|
|
112
|
+
"workspaces": [
|
|
113
|
+
"apps/bare-example",
|
|
114
|
+
"apps/expo-example"
|
|
115
|
+
],
|
|
116
|
+
"packageManager": "yarn@3.6.1",
|
|
117
|
+
"commitlint": {
|
|
118
|
+
"extends": [
|
|
119
|
+
"@commitlint/config-conventional"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"release-it": {
|
|
123
|
+
"git": {
|
|
124
|
+
"commitMessage": "chore: release ${version}",
|
|
125
|
+
"tagName": "v${version}"
|
|
126
|
+
},
|
|
127
|
+
"npm": {
|
|
128
|
+
"publish": true
|
|
129
|
+
},
|
|
130
|
+
"github": {
|
|
131
|
+
"release": true
|
|
132
|
+
},
|
|
133
|
+
"plugins": {
|
|
134
|
+
"@release-it/conventional-changelog": {
|
|
135
|
+
"preset": {
|
|
136
|
+
"name": "conventionalcommits"
|
|
137
|
+
},
|
|
138
|
+
"infile": "CHANGELOG.md"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"react-native-builder-bob": {
|
|
143
|
+
"source": "src",
|
|
144
|
+
"output": "lib",
|
|
145
|
+
"targets": [
|
|
146
|
+
"codegen",
|
|
147
|
+
[
|
|
148
|
+
"module",
|
|
149
|
+
{
|
|
150
|
+
"esm": true
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
"commonjs",
|
|
155
|
+
{
|
|
156
|
+
"esm": true
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
"typescript",
|
|
161
|
+
{
|
|
162
|
+
"project": "tsconfig.build.json"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"codegenConfig": {
|
|
168
|
+
"name": "RNConsumetSpec",
|
|
169
|
+
"type": "modules",
|
|
170
|
+
"jsSrcsDir": "src",
|
|
171
|
+
"outputDir": {
|
|
172
|
+
"ios": "ios/generated",
|
|
173
|
+
"android": "android/generated"
|
|
174
|
+
},
|
|
175
|
+
"android": {
|
|
176
|
+
"javaPackageName": "com.consumet"
|
|
177
|
+
},
|
|
178
|
+
"includesGeneratedCode": true
|
|
179
|
+
},
|
|
180
|
+
"create-react-native-library": {
|
|
181
|
+
"type": "turbo-module",
|
|
182
|
+
"languages": "kotlin-objc",
|
|
183
|
+
"version": "0.49.0"
|
|
184
|
+
},
|
|
185
|
+
"dependencies": {
|
|
186
|
+
"ascii-url-encoder": "^1.2.0",
|
|
187
|
+
"axios": "^1.8.4",
|
|
188
|
+
"cheerio": "1.0.0-rc.12",
|
|
189
|
+
"crypto-js": "^4.2.0"
|
|
190
|
+
}
|
|
191
|
+
}
|