compileDebugKotlin FAILED Unresolved reference: setShareUrl
Closed this issue · 2 comments
KirillRodichevUtorg commented
Android build fails
Environment Details
Storyly SDK Version: 2.0.2
React Native SDK Version: 2.0.0
Platform: Android
Expected Behavior
Build success
Current Behavior
Task :storyly-react-native:compileDebugKotlin FAILED
e: ../node_modules/storyly-react-native/android/src/main/java/com/appsamurai/storyly/reactnative/STStorylyManager.kt: (135, 103): Unresolved reference: setShareUrl
Steps to Reproduce
- yarn add storyly-react-native
- set classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
- run build
if I comment out this line
storylyBundle.getString("storylyShareUrl")?.let { storylyConfigBuilder = storylyConfigBuilder.setShareUrl(it) }
the project builds
KirillRodichevUtorg commented
Same for iOS in line
if let shareUrl = json["storylyShareUrl"] as? String { storylyConfigBuilder = storylyConfigBuilder.setShareUrl(url: shareUrl) }
yigcal commented