...
Code Block | ||||
---|---|---|---|---|
| ||||
class Application: Application() { override fun onCreate() { super.onCreate() R89SDK.setDebug() //This is for testing purposes, remove it on prod R89SDK.setLogLevel(LogLevels.DEBUG) //This is for testing purposes, remove it on prod addTestingSingleTagData() /* This is a later step */ R89SDK.initialize( appContext = this, publisherIdpubUUID = "TestRefinery89IDTestRefinery89UUID", /* This is for testing purposes, change it on prod */ appIdapiKey = "TestDemoAppTestRefinery89ApiKey", /* This is for testing purposes, change it on prod */ singleLine = true, initializationEvents = null ) } } |
Info |
---|
Your |
Note |
---|
This |
Then add this application class to the manifest you already had from the Android Get Started.
...
Check both https://refinery89.atlassian.net/wiki/x/A4DcSQ and Android Tagged Wrappers for more information
...
Before initialization method we called addTestingSingleTagData()
that uses the SingleTagConfigBuilder
to create the testing data needed for debugging the sdk.
More info in → Android How to test Single Tag Implementation
...
Remove the methods
R89SDK.setDebug()
andaddTestingSingleTagData()
Change the App id in the manifest for the production one
Change the
appId
pubUUID
andpublisherId
apiKey
in the initialization method for the production onesit’s also recommended to remove
R89SDK.setLogLevel(LogLevels.DEBUG)
but not needed
...