Closed gorjanz closed 8 years ago
@gorjanz In you project settings.gradle!! you add project(':react-native-cordova').projectDir = new File(rootProject.projectDir, '../node_modules/@remobile/react-native-cordova/android')
@gorjanz What is not mentioned in https://github.com/remobile/react-native-file-transfer/blob/master/README.md is that @remobile/react-native-cordova is a requirement for @remobile/react-native-file-transfer.
To enable @remobile/react-native-file-transfer, in addition to the steps mentioned in the readme:
npm i --save @remobile/react-native-cordova
,include ':react-native-cordova'
project(':react-native-cordova').projectDir = new File(rootProject.projectDir, '../node_modules/@remobile/react-native-cordova/android')
to your main project's settings.gradle file.
When I try to use this module, and build the app for the android platform, I get the following error:
FAILURE: Build failed with an exception.
What went wrong: A problem occurred evaluating project ':react-native-file-transfer'.
On iOS, there is the following error: Undefined symbols for architecture x86_64: "_OBJCCLASS$_CDVInvokedUrlCommand", referenced from: objc-class-ref in libRCTFileTransfer.a(CDVFileTransfer.o) "_OBJCCLASS$_CDVPlugin", referenced from: _OBJCCLASS$_CDVFileTransfer in libRCTFileTransfer.a(CDVFileTransfer.o) "_OBJCCLASS$_CDVPluginResult", referenced from: objc-class-ref in libRCTFileTransfer.a(CDVFileTransfer.o) "_OBJCMETACLASS$_CDVPlugin", referenced from: _OBJCMETACLASS$_CDVFileTransfer in libRCTFileTransfer.a(CDVFileTransfer.o)