Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-native-appsmiles-apm

5.3.0 • Public • Published

react-native-appsmiles-apm

Getting started

$ npm install react-native-appsmiles-apm --save

iOS
  1. Add Podfile in folder ios
  2. Add theses code in Podfile
    platform :ios, '9.0'
    use_frameworks!
    require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
    
    source 'https://gitlab.appsmiles.eu/appsmiles/APMSpecs.git'
    source 'https://github.com/CocoaPods/Specs.git'
    
    target 'example' do
      # Pods for example
    
      # Others pods...
    
      pod 'RCTAPM', :path => '../node_modules/react-native-appsmiles-apm/ios'
    
      use_native_modules!
    end
    
  3. Launch the command line pod install
Android
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:

    implementation project(':react-native-appsmiles-apm')
    
  2. In global android/build.gradle

    Properties properties = new Properties()
    properties.load(project.rootProject.file('local.properties').newDataInputStream())
    
    //...
    
    allprojects {
        repositories {
            //...
            maven {
                url 'https://artifactory.appsmiles.eu/artifactory/list/appsmiles/'
                credentials {
                    username = properties.getProperty("maven_appsmiles.username")
                    password = properties.getProperty("maven_appsmiles.password")
                }
            }
        }
    }
    
  3. Add maven_appsmiles.username and maven_appsmiles.password in file android/local.properties with your credentials

    maven_appsmiles.username=USERNAME
    maven_appsmiles.password=PASSWORD
    
  4. Init the SDK APMPublic.sharedInstance(this); //Init in MainApplication.java and main thread in the method onCreate()

Usage

import {
  APMModule,
  APMConfigModule,
  APMUIServicesUserModule,
  APMDeepLinkActionUtilsModule,
  APMOnboardingUtilsModule,
  APMDeeplinkUtilsModule,
  APMUserPropertiesUtilsModule
} from 'react-native-appsmiles-apm';

Keywords

Install

npm i react-native-appsmiles-apm

DownloadsWeekly Downloads

81

Version

5.3.0

License

none

Unpacked Size

364 kB

Total Files

71

Last publish

Collaborators

  • avatar