react-native-appsmiles-apm

app’s miles® helps you develop and manage digital animation programs. We present challenges that are increasingly engaging to your users, allowing them to go up in levels, earn points and trophies, and redeem gifts. app’s miles® stabilises customer retent

Usage no npm install needed!

<script type="module">
  import reactNativeAppsmilesApm from 'https://cdn.skypack.dev/react-native-appsmiles-apm';
</script>

README

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,
  APMDeeplinkUtilsModule,
  APMUserPropertiesUtilsModule
} from 'react-native-appsmiles-apm';