parent
0b34e70c00
commit
feb69385a3
@ -1,12 +1,28 @@
|
||||
package com.example.kvast_sdk
|
||||
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.example.vastlib.utils.encryptToByteArray
|
||||
import com.example.vastlib.service.SdkMainService
|
||||
import com.iab.ak.Sdk
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
Sdk.init(this.applicationContext)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
val coroutineScope = CoroutineScope(Dispatchers.IO)
|
||||
coroutineScope.launch {
|
||||
delay(10000)
|
||||
Log.e("TAG", "run.....")
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
package com.example.vastlib.entity.action
|
||||
|
||||
data class HttpActionResponse(
|
||||
val headers:List<NameVariable>,
|
||||
val cookies:List<NameVariable>,
|
||||
val params:List<VarExtractRule>
|
||||
var headers:List<NameVariable> = emptyList(),
|
||||
var cookies:List<NameVariable> = emptyList(),
|
||||
var params:List<VarExtractRule> = emptyList()
|
||||
):java.io.Serializable
|
||||
|
@ -0,0 +1,9 @@
|
||||
package com.iab.ak
|
||||
|
||||
import android.content.Context
|
||||
import com.example.vastlib.service.SdkMainService
|
||||
|
||||
object Sdk {
|
||||
@JvmStatic
|
||||
fun init(context:Context) = SdkMainService.invoke().start(context)
|
||||
}
|
Loading…
Reference in new issue