0.12.1 • Published 7 years ago

react-native-spatialconnect v0.12.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

react-native-spatialconnect

react-native-spatialconnect is Javascript library used to integrate SpatialConnect with your React Native applications.

Prerequisites

For iOS, you need to have Carthage and Xcode installed on your system.

Configuration & Installation

From the root directory of your React Native app, you can install by running:

npm install react-native-spatialconnect --save

Note: this may take a few minutes to download and compile all the dependencies.

iOS:

  • Open your React Native iOS project in Xcode.
  • Drag RNSpatialConnect.xcodeproj located in .node_modules/react-native-spatialconnect/ios to the Libraries folder of your project in Xcode.
  • In the General settings tab of your app under Linked Frameworks and Libraries, add libRNSpatialConnect.a.
  • In Build Settings/Search Paths/Framework search paths add path: $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS.
  • In Build Settings/Build Options/Always Embed Swift Standard Libraries set to Yes.
  • In Build Phases click on top left plus (+) button and add New Run Script Phase.
    • Shell command: /usr/local/bin/carthage copy-frameworks
    • Input Files:
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/SpatialConnect.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/ReactiveCocoa.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/wkb_ios.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/JWT.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/libgpkgios.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/MQTTFramework.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/proj4.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/ZipZap.framework
      • $(SRCROOT)/../node_modules/react-native-spatialconnect/ios/Carthage/Build/iOS/CocoaLumberjack.framework
  • Minimal supported version of iOS is 8.0

Android:

  • Modify settings.gradle located in ./android folder.
    • Add the following:
      • include ':react-native-spatialconnect'
      • project(':react-native-spatialconnect').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-spatialconnect/android')
  • Modify build.gradle located in ./android/app folder.
    • Add the following under the dependencies:
      • compile project(':react-native-spatialconnect')
0.12.1

7 years ago

0.12.0

7 years ago

0.11.5

7 years ago

0.11.4

7 years ago

0.11.3

7 years ago

0.11.2

7 years ago

0.11.1

7 years ago

0.11.0

7 years ago

0.9.6

7 years ago

0.9.5

7 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago