react-native-appsmiles-apm
v6.3.0
Published
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
Downloads
18
Keywords
Readme
react-native-appsmiles-apm
Getting started
$ npm install react-native-appsmiles-apm --save
iOS
- Add
Podfile
in folderios
- 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
- Launch the command line
pod install
Android
Insert the following lines inside the dependencies block in
android/app/build.gradle
:implementation project(':react-native-appsmiles-apm')
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") } } } }
Add
maven_appsmiles.username
andmaven_appsmiles.password
in fileandroid/local.properties
with your credentialsmaven_appsmiles.username=USERNAME maven_appsmiles.password=PASSWORD
Init the SDK
APMPublic.sharedInstance(this); //Init in MainApplication.java and main thread
in the methodonCreate()
Usage
import {
APMModule,
APMConfigModule,
APMUIServicesUserModule,
APMDeeplinkUtilsModule,
APMUserPropertiesUtilsModule
} from 'react-native-appsmiles-apm';