-
Notifications
You must be signed in to change notification settings - Fork 13
fix: cannot find symbol rn usercentrics package #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0908370
991456d
1ed9d17
47fda20
8b5e101
7dc713f
74efff3
b6d6089
40e57ad
e7774c2
6c23d07
491f776
3cce3da
6f54776
7cb3dd9
2ee4a3a
563b023
f5c72fc
5a75d43
4e0c18c
367539d
7c2f4f6
6c636eb
1bef4ee
8a38fcd
4234ff2
23ad132
b395712
1468217
bba8b9e
a2f1ec7
72db999
aaa7570
45809c6
22654ff
3e7405b
de847e0
a09154d
3dab201
eb2b936
eb60c48
b83c460
fdc6ee4
a0ac6ec
987b2e5
4d31058
a505de6
5212770
326fddd
e916318
5ccbf15
8c245d7
2c92977
bcdf685
968e7ed
d148f09
f958b19
43cc3cb
61f53b6
fa01495
a875956
3783b11
93a2f1f
e24983b
b210f6a
7b0bccc
e4acc19
67245f9
7cb0659
c5424d1
e40e945
39bd887
3063535
279bbe7
0691649
c45f41d
54e81fa
30bdd87
0551bb6
65c644a
709da7a
cf7a41e
deda347
b4d27fb
8de1372
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| org.gradle.jvmargs=-Xmx2048M | ||
| android.useAndroidX=true | ||
| android.enableJetifier=true | ||
|
|
||
| reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 | ||
|
|
||
| hermesEnabled=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| package com.usercentrics.reactnativemodule.fake | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Package declaration doesn't match file path. The package declaration This mismatch will cause compilation errors as the compiler expects the package to match the directory structure. Apply this diff to fix the package declaration: -package com.usercentrics.reactnativemodule.fake
+package com.usercentrics.reactnative.fake🤖 Prompt for AI Agents |
||
|
|
||
| import com.facebook.react.bridge.Promise | ||
| import com.facebook.react.bridge.WritableMap | ||
| import java.util.concurrent.CountDownLatch | ||
|
|
||
| internal class FakePromise : Promise { | ||
|
|
||
| var resolveValue: Any? = null | ||
| var rejectThrowable: Throwable? = null | ||
|
|
||
| private val lock = CountDownLatch(1) | ||
|
|
||
| fun await() { | ||
| lock.await() | ||
| } | ||
|
|
||
| override fun resolve(value: Any?) { | ||
| resolveValue = value | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, message: String?) { | ||
| rejectThrowable = RuntimeException("$code: $message") | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, throwable: Throwable?) { | ||
| rejectThrowable = throwable ?: RuntimeException(code) | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, message: String?, throwable: Throwable?) { | ||
| rejectThrowable = throwable ?: RuntimeException("$code: $message") | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(throwable: Throwable) { | ||
| rejectThrowable = throwable | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(throwable: Throwable, userInfo: WritableMap) { | ||
| rejectThrowable = throwable | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, userInfo: WritableMap) { | ||
| rejectThrowable = RuntimeException("$code: $userInfo") | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, throwable: Throwable?, userInfo: WritableMap) { | ||
| rejectThrowable = throwable | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String, message: String?, userInfo: WritableMap) { | ||
| rejectThrowable = RuntimeException("$code: $message") | ||
| lock.countDown() | ||
| } | ||
|
|
||
| override fun reject(code: String?, message: String?, throwable: Throwable?, userInfo: WritableMap?) { | ||
| rejectThrowable = throwable ?: RuntimeException("$code: $message") | ||
| lock.countDown() | ||
| } | ||
|
|
||
| @Deprecated("Use reject(code, message) instead") | ||
| override fun reject(message: String) { | ||
| rejectThrowable = RuntimeException(message) | ||
| lock.countDown() | ||
| } | ||
| } | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update GitHub Actions versions.
Static analysis detected deprecated action versions that may fail on newer GitHub runners:
actions/checkout@v2→ upgrade to@v4actions/setup-node@v2→ upgrade to@v4actions/setup-node@v2→ upgrade to@v4actions/setup-java@v1→ upgrade to@v4Based on static analysis tool (actionlint).
Apply this diff:
Similar updates for lines 84 and 89.
Also applies to: 51-51, 84-84, 89-89
🧰 Tools
🪛 actionlint (1.7.7)
48-48: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents