Build your adapter for Unity
As many of ironSource publishers are using Unity engine to develop their games, we recommend you to create a dedicated interface for Unity. Our best practice is doing so by using an XML file. Alternatively, if your publishers are working with Unity manual integration, they can add the native artefacts directly to their Unity project.
Follow these instructions to provide a Unity adapter for your publishers:
- Create custom adapters for Android.
- Create custom adapters for iOS.
- Create an XML file that wraps your Android & iOS integrations, as explained below.
Create your custom adapter XML
The XML file will wrap both your android and iOS custom adapters.
Make sure to save your XML file as: IS<your_network_name>CustomAdapterDependencies.xml
Your publishers should add your custom adapter XML file to any Editor library in their Unity project. You can learn more about Unity integration process here.
<dependencies> <androidPackages> <androidPackage spec=your SDK gradle> <repositories> <repository>your network repository url</repository> </repositories> </androidPackage> </androidPackages> <androidPackages> <androidPackage spec=Your Adapter gradle> <repositories> <repository>Your adapter repository url</repository> </repositories> </androidPackage> </androidPackages> <iosPods> <iosPod name=adapter_name version=your_pod_version> <sources> <source>https://github.com/CocoaPods/Specs</source> </sources> </iosPod> </iosPods> </dependencies>