...
project.home=Path of project (ex:/user/workspace/project1)
#Add only Kotlin project
project.kotlin.path=$PROJECT_HOME/app/build/tmp/kotlin-classes
#Add only Java project
project.java.path=$PROJECT_HOME/app/build/intermediates/javac/debug/classes
#Path to built manifest file
project.manifest.path=$PROJECT_HOME/app/build/intermediates/merged_manifest/debug/AndroidManifest.xml
#gradle action
project.task.execute=:assemble
...
@Override
public void onCreate() {
super.onCreate();
io.imqa.core.IMQAOption imqaOption = new io.imqa.core.IMQAOption();
imqaOption.setBuildType(false);
imqaOption.setUploadPeriod(true);
imqaOption.setKeepFileAtUploadFail(false);
imqaOption.setDumpInterval(10000);
imqaOption.setFileInterval(5);
imqaOption.setHttpTracing(true);
io.imqa.mpm.IMQAMpmAgent.getInstance()
.setOption(imqaOption) // Sets an option to decide the MPM operation method.
.setContext(this, BuildConfig.FLAVOR)
// Initializes the application context. (Insert an empty string if there is no flavor)
.setProjectKey("PROJECT_KEY")
// Sets the project key of the IMQA MPM client.
.init();
// Initializes and executes the registered option.
...
}
...
MyApplication.kt
...
override fun onCreate() {
super.onCreate()
val imqaOption : IMQAOption = io.imqa.core.IMQAOption()
imqaOption.setBuildType(false)
imqaOption.setUploadPeriod(true)
imqaOption.setKeepFileAtUploadFail(false)
imqaOption.setDumpInterval(10000)
imqaOption.setFileInterval(5)
imqaOption.setHttpTracing(true)
io.imqa.mpm.IMQAMpmAgent.getInstance()
.setOption(imqaOption)
// Sets an option to decide the MPM operation method.
.setContext(this, BuildConfig.FLAVOR)
// Initializes the application context. (Insert an empty string if there is no flavor)
.setProjectKey("PROJECT_KEY")
// Sets the project key of the IMQA MPM client.
.init();
// Initializes and executes the registered option.
...
}
...
MyApplication.java
...
override fun onCreate() {
super.onCreate()
io.imqa.mpm.IMQAMpmAgent.getInstance()
.setContext(this, BuildConfig.FLAVOR) // Initializes the application context. (Insert an empty string if there is no flavor)
.setProjectKey("PROJECT_KEY") // Sets the project key of the IMQA MPM client.
.init() // Initializes and executes the registered option.
...
}
...
MyApplication.kt
...
override fun onCreate() {
super.onCreate()
io.imqa.mpm.IMQAMpmAgent.getInstance()
.setContext(this, BuildConfig.FLAVOR) // Initializes the application context. (Insert an empty string if there is no flavor)
.setProjectKey("PROJECT_KEY") // Sets the project key of the IMQA MPM client.
.init() // Initializes and executes the registered option.
...
}
...
...
@Override
public void onCreate() {
super.onCreate();
io.imqa.core.IMQAOption imqaOption = new io.imqa.core.IMQAOption();
/*
* Default value: 'https://collector.imqa.io'
* Sets the MPM server URL.
* String: Server information
*/
imqaOption.setServerUrl('https://(IPAddress)');
io.imqa.mpm.IMQAMpmAgent.getInstance()
.setOption(imqaOption) // Sets the option to decide the MPM operation method.
.setContext(this, BuildConfig.FLAVOR) // AInitializes the application context. (Insert an empty string if there is no flavor)
.setProjectKey("PROJECT_KEY") // Sets the project key of the IMQA MPM client.
.init() // Initializes and executes the registered option.
...
}
...