Commit d2f88e0b authored by wanglei's avatar wanglei

[修改]pangle上报

parent 3644c834
...@@ -120,6 +120,7 @@ gradle.taskGraph.whenReady { ...@@ -120,6 +120,7 @@ gradle.taskGraph.whenReady {
dependencies { dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar")))) implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))
implementation(libs.androidx.core.ktx) implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat) implementation(libs.androidx.appcompat)
......
package com.base.appzxhy.business.pangle package com.base.appzxhy.business.pangle
import android.content.Context import android.content.Context
import android.content.Intent
import android.os.Bundle import android.os.Bundle
import android.widget.ImageView
import androidx.activity.enableEdgeToEdge import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsCompat
import com.base.appzxhy.GlobalConfig
import com.base.appzxhy.R import com.base.appzxhy.R
import com.base.appzxhy.business.ads.AdsMgr import com.base.appzxhy.business.ads.AdsMgr
import com.base.appzxhy.business.ads.AdsShowCallBack import com.base.appzxhy.business.ads.AdsShowCallBack
import com.base.appzxhy.business.pangle.PangleInit.initPangle import com.base.appzxhy.business.pangle.PangleInit.initPangle
import com.base.appzxhy.databinding.ActivityPangleBinding import com.base.appzxhy.databinding.ActivityPangleBinding
import com.base.appzxhy.ui.main.MainActivity import com.bumptech.glide.Glide
import com.bytedance.sdk.openadsdk.mtestsuite.api.PAGMTestSuite
import com.bytedance.sdk.openadsdk.mtestsuite.api.PAGMTestSuite.ImageCallBack
class PangleActivity : AppCompatActivity() { class PangleActivity : AppCompatActivity() {
...@@ -62,6 +63,18 @@ class PangleActivity : AppCompatActivity() { ...@@ -62,6 +63,18 @@ class PangleActivity : AppCompatActivity() {
binding.showBanner.setOnClickListener { binding.showBanner.setOnClickListener {
AdsMgr.showBanner(binding.flBanner) AdsMgr.showBanner(binding.flBanner)
} }
binding.testsuite.setOnClickListener {
//完成集成后,您可以在SDK的zip文件中找到testsuite并将其添加到您的项目中,然后测试中介广告。
// 请确保在您正式发布应用程序之前移除此文件。
// test-suite-0.2.10.aar
// PAGMTestSuite.launchTestSuite(this, object : ImageCallBack {
// override fun loadImage(imageView: ImageView, url: String?) {
// Glide.with(applicationContext).load(url).into(imageView)
// }
// })
}
} }
......
...@@ -45,6 +45,14 @@ ...@@ -45,6 +45,14 @@
android:layout_marginVertical="@dimen/dp_3" android:layout_marginVertical="@dimen/dp_3"
android:text="展示banner" /> android:text="展示banner" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/testsuite"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="@dimen/dp_3"
android:text="聚合测试套件" />
<FrameLayout <FrameLayout
android:id="@+id/flBanner" android:id="@+id/flBanner"
android:layout_width="match_parent" android:layout_width="match_parent"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment