1.4.0 • Published 4 years ago

audienzz-rn-sdk v1.4.0

Weekly downloads
41
License
-
Repository
gitlab
Last release
4 years ago

Audienzz React Native AppNexus SDK

React Native implementation of the AppNexus SDK.

Usage

yarn add audienzz-rn-sdk

or

npm i audienzz-rn-sdk --save

React Native version compatibility

react-native versionaudienzz-rn-sdk version
<= 0.59.10<= 1.2.5
0.60+1.3+

Installation (react-native 0.60+)

Plugin supports autolinking, no additional linking actions required.

iOS

  1. Install Pod dependencies
    cd ios
    pod install
  2. Go to your project ios folder and open .xcworkspace file. Add the iOS frameworks listed below. To add them, click your application's target. Then click Build Phases, and Link Binary with Libraries to enter the frameworks.
  • AdSupport.framework
  • AudioToolbox.framework
  • AVFoundation.framework
  • AVKit.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreTelephony.framework
  • EventKit.framework
  • Foundation.framework
  • iAd.framework
  • MediaPlayer.framework
  • MessageUI.framework
  • MobileCoreServices.framework
  • PassKit.framework
  • QuartzCore.framework
  • Security.framework
  • Social.framework
  • StoreKit.framework
  • SystemConfiguration.framework
  • UIKit.framework
  • CoreMedia
  • libz.tbd

Android

  1. Append the following lines to android/settings.gradle:
    include ‘:sdk’
    project(‘:sdk’).projectDir = new File(rootProject.projectDir,‘../node_modules/audienzz-rn-sdk/android/lib/sdk’)
    include ‘:instreamvideo’
    project(‘:instreamvideo’).projectDir = new File(rootProject.projectDir,‘../node_modules/audienzz-rn-sdk/android/lib/instreamvideo’)
  2. Open android/app/src/main/AndroidManifest.xml and add the following permissions:
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Installation (react-native <= 0.59.10)

The library should be linked:

react-native link audienzz-rn-sdk

IOS

  1. Go to your project ios folder and open .xcodeproj file. Add the iOS frameworks listed below. To add them, click your application's target. Then click Build Phases, and Link Binary with Libraries to enter the frameworks.
  • AdSupport.framework
  • AudioToolbox.framework
  • AVFoundation.framework
  • AVKit.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreTelephony.framework
  • EventKit.framework
  • Foundation.framework
  • iAd.framework
  • MediaPlayer.framework
  • MessageUI.framework
  • MobileCoreServices.framework
  • PassKit.framework
  • QuartzCore.framework
  • Security.framework
  • Social.framework
  • StoreKit.framework
  • SystemConfiguration.framework
  • UIKit.framework
  • CoreMedia
  • libz.tbd

Android

  1. Open android/app/src/main/java/[...]/MainApplication.java
  • Add import com.reactlibrary.RTCAppNexusLibraryPackage; to the imports at the top of the file
  • Remove import com.appnexus.opensdk.instreamvideo.RTCAppNexusLibraryPackage;
  1. Append the following lines to android/settings.gradle:

      include ':sdk'
      project(':sdk').projectDir = new File(rootProject.projectDir,'../node_modules/audienzz-rn-sdk/android/lib/sdk')
    
      include ':instreamvideo'
      project(':instreamvideo').projectDir = new File(rootProject.projectDir,'../node_modules/audienzz-rn-sdk/android/lib/instreamvideo')
  2. Open android/app/src/main/AndroidManifest.xml: Add permissions

      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Usage

Take a look into this documentation.

Changelog

You can check out the changelog here

1.4.0

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.5

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago