2.1.2 • Published 6 years ago

react-native-appsmiles-apmservices v2.1.2

Weekly downloads
112
License
-
Repository
-
Last release
6 years ago

react-native-appsmiles-apmservices

Getting started

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

Mostly automatic installation

$ react-native link react-native-appsmiles-apmservices

iOS
  1. Add Podfile in folder ios
  2. Add pod 'APMServices', '~> 2.1.2'
  3. Launch the command line pod install
Android
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-appsmiles-apmservices')
  2. In global android/build.gradle
    allprojects {
        repositories {
            //...
            maven { url 'https://dl.bintray.com/moonmiles/appsmiles' }
        }
    }
  3. Init the SDK APMServicesPublic.sharedInstance(this); //Init in MainApplication.java and main thread in the method onCreate()

Manual installation

iOS
  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-appsmiles-apmservices and add RCTAPMServices.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRCTAPMServices.a to your project's Build PhasesLink Binary With Libraries
  4. Add Podfile in folder ios
  5. Add pod 'APMServices', '~> 2.1.2'
  6. Launch the command line pod install
Android
  1. Open up android/app/src/main/java/[...]/MainApplication.java
  2. Add import com.moonmiles.APMReactPackage; and import com.moonmiles.apmservices.sdk.APMServicesPublic; to the imports at the top of the file
  3. Add new APMReactPackage() to the list returned by the getPackages() method
  4. Append the following lines to android/settings.gradle:
    include ':react-native-appsmiles-apmservices'
    project(':react-native-appsmiles-apmservices').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-appsmiles-apmservices/android')
  5. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-appsmiles-apmservices')
  6. In global android/build.gradle
    allprojects {
        repositories {
            //...
            maven { url 'https://dl.bintray.com/moonmiles/appsmiles' }
        }
    }
  7. Init the SDK APMServicesPublic.sharedInstance(this); //Init in MainApplication.java and main thread in the method onCreate()

Usage

import {
  APMServicesModule,
  APMServicesConfigModule,
  APMServicesAdModule,
  APMServicesGenerosityModule,
  APMServicesGiftModule,
  APMServicesLogModule,
  APMServicesPageModule,
  APMServicesPartnerModule,
  APMServicesStatisticModule,
  APMServicesStoreModule,
  APMServicesUserModule
} from 'react-native-appsmiles-apmservices';
2.1.2

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.1-beta.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.15

6 years ago

1.0.0-beta.14

6 years ago

1.0.0-beta.13

6 years ago

1.0.0-beta.12

6 years ago

1.0.0-beta.11

6 years ago

1.0.0-beta.10

6 years ago

1.0.0-beta.9

6 years ago

1.0.0-beta.8

6 years ago

1.0.0-beta.7

6 years ago

1.0.0-beta.6

6 years ago

1.0.0-beta.5

6 years ago

1.0.0-beta.4

6 years ago

1.0.0-beta.3

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago