You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement Realm js and Realm java together on an App with React Native integrated to Native Android
Expected Results
Run the app without crashing
Actual Results
After building with proguard enabled, the app crashes on open. Is complain that the class io.realm.react.utils.SSLHelper is not found by the React Native environment.
I lost the stack trace, but for future reference, I fixed this by adding this line to proguard:
keep class io.realm.react.**
aman1arun, yingpengsha, jcampalo, Eyesonly88, tanthanh289 and 2 moreyingpengsha, jcampalo, azanli, Eyesonly88, tanthanh289 and 2 moreEyesonly88, tanthanh289 and falendra-kosh
@githubdoramon To be honest, we haven't tested joining Realm JS and Realm Java in a single app. It sounds like you have figured out how to do it, and your tip is worth adding to our documentation.
It took quite some time, but is working... another important tip is to make sure the js and java versions are reading the update data, it is necessary to always perform an empty write (or executeTransaction) before reading the data (when for example you write on js and then try to directly read on java)
changed the title [-]java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/-][+]When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/+]on Nov 23, 2018
When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper · Issue #1896 · realm/realm-js
Activity
kneth commentedon Jun 27, 2018
@githubdoramon To be honest, we haven't tested joining Realm JS and Realm Java in a single app. It sounds like you have figured out how to do it, and your tip is worth adding to our documentation.
githubdoramon commentedon Jun 27, 2018
It took quite some time, but is working... another important tip is to make sure the js and java versions are reading the update data, it is necessary to always perform an empty write (or executeTransaction) before reading the data (when for example you write on js and then try to directly read on java)
youngjuning commentedon Aug 4, 2018
+1
XiaoJianPeng commentedon Aug 4, 2018
+1
kneth commentedon Aug 6, 2018
@githubdoramon Thanks for the tips!
[-]java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/-][+]When mixing JS and Java: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList - io.realm.react.utils.SSLHelper[/+]