How to use this SDK in project?

#1

I do localization work with game, so I need use local 's ADSDK. But the .aar was not same like example(admob), I don’t know how to put in project and init sdk.

step1:
1
step2:
2
step3:

How to put .arr in project?
How to override onCreate() ?

0 Likes

#2

You need to unpack the .aar file (it’s a zip archive) and take the .jar file and any Android resource files and put these in your extension. Once you have these in the right location you need to call some Java code in your extension that does the call to TTAdSdk.init()

Some additional help:

Native extension manual - https://defold.com/manuals/extensions/
Android extension example - https://github.com/defold/extension-android

0 Likes

#3

Thank you. I will try it.

0 Likes