OpenNative / open-native

Open Native brings cross-platform communities together to help them collaborate and strengthen each other through development diversity.
https://open-native.org/
MIT License
459 stars 8 forks source link

react-native-quick-crypto not working #20

Open vallemar opened 1 year ago

vallemar commented 1 year ago

I am testing react-native-quick-crypto and react-native-quick-base64 but it is not working on ios and android

I have been testing it on android and ios, but it does not work on any

In IOS I have this error:

[!] Unable to find a specification for `React-callinvoker` depended upon by `react-native-quick-crypto`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

In android I have this error:

Build file '/xxxx/node_modules/react-native-quick-crypto/android/build.gradle' line: 51
A problem occurred evaluating project ':react-native-quick-crypto'.
/xxxx/node_modules/react-native/ReactAndroid/gradle.properties (No such file or directory)
vallemar commented 1 year ago

In android after patching this line to this::

file("$nodeModules/@open-native/core/react-android/gradle.properties").withInputStream { reactProperties.load(it) }

And this lines to:

  implementation "com.facebook.react:react-android:0.71.0"
  implementation "com.facebook.react:hermes-android:0.71.0"

Now I have this error

/xxxx/node_modules/react-native-quick-base64/android/src/main/java/com/reactnativequickbase64/QuickBase64Module.java:30: error: cannot find symbol
        context.getJavaScriptContextHolder().get(),
                                            ^
  symbol:   method get()
  location: class JavaScriptContextHolder
1 error

Execution failed for task ':react-native-quick-base64:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.