Setting up the build configuration
Operator Vault
Place the Operator Vault (usually named opvault.json) in the project's main/res/raw folder.
Player Access Kernel (PAK) library files
The two cpak library files (<package-version>-cpakjava.securestorageagent-<cpak-version>.jar and <package-version>-cpak-<cpak-version>.jar) should be placed, alongside the NMP SDK and other required libraries, in the project's lib folder.
Application Manifest
The project's src/main/AndroidManifest.xml file should have the following permissions declared inside the manifest tag:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
build.gradle
The application's build.gradle file should include the libraries specified above in the dependencies section:
dependencies {
:
implementation fileTree(dir: 'libs', include: ['*.jar'])
:
}
Next step: Getting phone permissions