Integration of Mobibox SDK

Integrate SDK to Unity - Android

Create a new android studio project with target SDK <= 30 then download and extract the .zip file below, and put it next to the created project (screenshot attached below)

Open the project and navigate to settings.gradle file and add the following:

include ':app' include ':unityLibrary' project(':unityLibrary').projectDir=new File('..\\UnityProject\\androidBuild\\unityLibrary')

in the build.gradle (project level) add the below under → allprojectsbuildscriptrepositories:

flatDir { dirs "${project(':unityLibrary').projectDir}/libs" }

build.gradle (app level)

under android add

aaptOptions { noCompress = ['.unity3d', '.ress', '.resource', '.obb'] ignoreAssetsPattern = "!.git:!.ds_store:!thumbs.db:!*~" } lintOptions { abortOnError false } repositories { flatDir { dirs 'libs' } }

under dependencies add

implementation project(':unityLibrary') implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('\\libs'), include: ['*.jar'])