Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 1.4 KB

MANUAL INSTALLATION.md

File metadata and controls

29 lines (22 loc) · 1.4 KB

Manual installation

Manual installation is no longer supported, but the instructions below are included for reference. We recommend using React Native 0.60-style auto-linking.

iOS

  1. Add the Apptentive SDK to the iOS project or workspace. We recommend using CocoaPods.
  2. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  3. Go to node_modulesapptentive-react-native and add RNApptentiveModule.xcodeproj
  4. In XCode, in the project navigator, select your project. Add libRNApptentiveModule.a to your project's Build PhasesLink Binary With Libraries
  5. Run your project (Cmd+R)

Android

Note: Apptentive SDK requires Android API level 26 and up to work properly.

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.apptentive.android.sdk.reactlibrary.RNApptentivePackage; to the imports at the top of the file
  • Add new RNApptentivePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':apptentive-react-native'
    project(':apptentive-react-native').projectDir = new File(rootProject.projectDir, 	'../node_modules/apptentive-react-native/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':apptentive-react-native')