Skip to content

Commit cf2d935

Browse files
committed
cm
1 parent 068fff8 commit cf2d935

File tree

11 files changed

+15
-53
lines changed

11 files changed

+15
-53
lines changed

example/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,24 @@ repositories {
4242
}
4343
dependencies {
4444

45+
//引入方式1:gradle线上,简单快速
4546
//EasyAds sdk(必须)
46-
implementation "com.github.bayescom:EasyAds-Android:1.0"
47+
// implementation "com.github.bayescom:EasyAds-Android:1.0"
48+
//EasyAds sdk(必须) 排除优量汇执行
49+
implementation(group: 'com.github.bayescom', name: 'EasyAds-Android', version: '1.0') {
50+
exclude module: 'easyylh'
51+
}
52+
4753
//穿山甲广告SDK(建议)
4854
implementation(name: "open_ad_sdk_4105", ext: "aar")
4955
//优量汇广告SDK(建议)
50-
implementation(name: "GDTSDK_4431", ext: "aar")
56+
// implementation(name: "GDTSDK_4431", ext: "aar")
5157
//百度广告SDK(可选)
5258
implementation(name: "Baidu_MobAds_SDK_918", ext: "aar")
5359
//快手广告SDK(可选)
5460
implementation(name: "kssdk-ad_3318", ext: "aar")
5561

56-
// library方式引入
62+
// 引入方式2:library方式引入,可以自己修改代码。注意:两种引入方式互斥,不要同时引入
5763
// implementation project(path: ':easyads')
5864
//
5965
// implementation project(path: ':easyylh')

example/src/main/java/com/easyads/demo/MainActivity.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
import com.easyads.demo.utils.Constant;
2020
import com.easyads.demo.utils.NormalSetting;
2121
import com.easyads.demo.utils.UserPrivacyDialog;
22-
import com.bytedance.sdk.openadsdk.TTAdSdk;
22+
//import com.bytedance.sdk.openadsdk.TTAdSdk;
2323
import com.kwad.sdk.api.KsAdSDK;
24-
import com.qq.e.comm.managers.status.SDKStatus;
24+
//import com.qq.e.comm.managers.status.SDKStatus;
2525

2626
import java.util.ArrayList;
2727
import java.util.List;
@@ -67,7 +67,9 @@ public void call() {
6767
dialog.show();
6868
}
6969

70-
version.setText("版本号:EasyAds聚合SDK:v" + EasyAds.getVersion() + "\n穿山甲:v" + TTAdSdk.getAdManager().getSDKVersion() + " 优量汇:v" + SDKStatus.getSDKVersion() +
70+
version.setText("版本号:EasyAds聚合SDK:v" + EasyAds.getVersion() +
71+
// "\n穿山甲:v" + TTAdSdk.getAdManager().getSDKVersion() +
72+
// " 优量汇:v" + SDKStatus.getSDKVersion() +
7173
" 百度:v" + AdSettings.getSDKVersion() + " 快手:v" + KsAdSDK.getSDKVersion());
7274

7375
}

example/src/main/res/drawable/background_circle.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

example/src/main/res/drawable/btn_bg_creative.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/src/main/res/layout/activity_interstitial.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,18 @@
88
tools:context=".InterstitialActivity">
99

1010
<Button
11-
android:id="@+id/interstitial_load_button"
1211
android:layout_width="match_parent"
1312
android:layout_height="wrap_content"
1413
android:layout_marginTop="10dp"
1514
android:onClick="loadAd"
1615
android:text="加载插屏广告" />
1716

1817
<Button
19-
android:id="@+id/interstitial_show_button"
2018
android:layout_width="match_parent"
2119
android:layout_height="wrap_content"
2220
android:onClick="showAd"
2321
android:text="展示插屏广告" />
2422
<Button
25-
android:id="@+id/interstitial_las_button"
2623
android:layout_width="match_parent"
2724
android:layout_height="wrap_content"
2825
android:layout_marginTop="20dp"

example/src/main/res/layout/activity_main.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
android:text="晃动手机查看SDK执行日志" />
3232

3333
<Button
34-
android:id="@+id/banner_button"
3534
android:layout_width="match_parent"
3635
android:layout_height="wrap_content"
3736
android:layout_marginTop="5dp"
@@ -45,7 +44,6 @@
4544
android:orientation="horizontal">
4645

4746
<Button
48-
android:id="@+id/splash_button"
4947
android:layout_width="0dp"
5048
android:layout_height="wrap_content"
5149
android:layout_weight="1"
@@ -64,44 +62,38 @@
6462

6563

6664
<Button
67-
android:id="@+id/interstitial_button"
6865
android:layout_width="match_parent"
6966
android:layout_height="wrap_content"
7067
android:onClick="onInterstitial"
7168
android:text="插屏(弹窗)广告" />
7269

7370

7471
<Button
75-
android:id="@+id/native_express_button"
7672
android:layout_width="match_parent"
7773
android:layout_height="wrap_content"
7874
android:onClick="onNativeExpress"
7975
android:text="原生模板广告" />
8076

8177
<Button
82-
android:id="@+id/native_express_recycler_view_button"
8378
android:layout_width="match_parent"
8479
android:layout_height="wrap_content"
8580
android:onClick="onNativeExpressRecyclerView"
8681
android:text="原生模板信息流RecyclerView" />
8782

8883

8984
<Button
90-
android:id="@+id/rewardvideo_button"
9185
android:layout_width="match_parent"
9286
android:layout_height="wrap_content"
9387
android:onClick="onRewardVideo"
9488
android:text="激励视频广告" />
9589

9690
<Button
97-
android:id="@+id/fullvideo_button"
9891
android:layout_width="match_parent"
9992
android:layout_height="wrap_content"
10093
android:onClick="onFullVideo"
10194
android:text="全屏视频广告" />
10295

10396
<Button
104-
android:id="@+id/btn_draw"
10597
android:layout_width="match_parent"
10698
android:layout_height="wrap_content"
10799
android:onClick="draw"

example/src/main/res/layout/activity_reward_video.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,20 @@
77
android:orientation="vertical">
88

99
<Button
10-
android:id="@+id/load_rewardvideo"
1110
android:layout_width="match_parent"
1211
android:layout_height="wrap_content"
1312
android:layout_marginTop="30dp"
1413
android:onClick="onLoad"
1514
android:text="请求激励视频" />
1615

1716
<Button
18-
android:id="@+id/show_rewardvideo"
1917
android:layout_width="match_parent"
2018
android:layout_height="wrap_content"
2119
android:onClick="onShow"
2220
android:text="展示激励视频" />
2321

2422

2523
<Button
26-
android:id="@+id/load_show_rewardvideo"
2724
android:layout_width="match_parent"
2825
android:layout_height="wrap_content"
2926
android:layout_marginTop="10dp"
-1.48 KB
Binary file not shown.

example/src/main/res/values/colors.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<color name="colorPrimary">#008577</color>
44
<color name="colorPrimaryDark">#00574B</color>
55
<color name="colorAccent">#D81B60</color>
6-
<color name="transGrayBg">#dddddddd</color>
7-
<color name="trans">#02ffffff</color>
86
<color name="normal_white">#ffffff</color>
97

108
<color name="blue">#015ac9</color>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<resources>
22
<!-- Default screen margins, per the Android Design guidelines. -->
3-
<dimen name="fragment_horizontal_margin">16dp</dimen>
4-
<dimen name="fragment_vertical_margin">16dp</dimen>
53
</resources>

0 commit comments

Comments
 (0)