Skip to content

Commit 4b0748b

Browse files
committed
1
1 parent 0625b55 commit 4b0748b

File tree

5 files changed

+27
-56
lines changed

5 files changed

+27
-56
lines changed

Diff for: YLXD/src/YLXD-app.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
<uses-sdk android:minSdkVersion="9">
278278
</uses-sdk>
279279
<application android:enabled="true">
280-
<!--360广告平台-->
280+
<!--360广告平台
281281
<activity
282282
android:name="com.pubukeji.diandeows.adviews.DiandeActivity"
283283
android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
@@ -293,7 +293,7 @@
293293
<action android:name="android.intent.action.PACKAGE_REMOVED" />
294294
<data android:scheme="package" />
295295
</intent-filter>
296-
</receiver>
296+
</receiver>-->
297297
298298
<!--4399广告平台
299299
<service
@@ -327,10 +327,10 @@
327327
android:exported="true" />
328328
<!--百度广告
329329
<activity android:name="com.baidu.mobads.AppActivity" android:configChanges="keyboard|keyboardHidden|orientation"/>-->
330-
<!--google广告
330+
<!--google广告-->
331331
<meta-data android:name="com.google.android.gms.version" android:value="4452000" />
332332
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
333-
-->
333+
334334
<activity android:excludeFromRecents="false">
335335
<intent-filter>
336336
<action android:name="android.intent.action.MAIN"/>

Diff for: YLXD/src/YLXD.as

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ package
109109

110110

111111
ResolutionUtil.instance.init(new Point(2048,1536));
112-
PlatUtil.initPlat(PlatType.ANDROID_360);
112+
PlatUtil.initPlat(PlatType.GOOGLE_PLAY);
113113
AdvertiseUtil.initBaiDu(stage);
114114
ShareManager.instance.init();
115115
NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);

Diff for: YLXD/src/assets/chinese.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<key id="WUDIWORDS"><![CDATA[无敌模式,冲啊!$COUNT]]></key>
2727
<key id="QIDONGZHONG"><![CDATA[游戏马上开始...]]></key>
2828
<key id="ERROR1"><![CDATA[网络错误,请开启网络再试。]]></key>
29-
<key id="SHARECONTENT"><![CDATA[我在《疯狂之手》中得到了$SCORE分,谁敢一战?下载地址:http://www.g6game.com/fkzs/]]></key>
29+
<key id="SHARECONTENT"><![CDATA[我的大脑在《疯狂之手》中得到了$SCORE分,太不可思议了!下载地址:http://www.g6game.com/fkzs/]]></key>
3030
</common>
3131
<player>
3232
<key><![CDATA[反转模式好难啊]]></key>

Diff for: YLXD/src/com/mike/utils/AdvertiseUtil.as

+20-49
Original file line numberDiff line numberDiff line change
@@ -39,32 +39,22 @@ package com.mike.utils
3939
isIos = DeviceUtil.isIos();
4040
if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
4141
{
42-
// if (Admob.getInstance().supportDevice)
43-
// {
44-
// if (isIos)
45-
// Admob.getInstance().setKeys("ca-app-pub-7801284693895243/1462394619","ca-app-pub-7801284693895243/4415861017");
46-
// else
47-
// Admob.getInstance().setKeys("ca-app-pub-7801284693895243/8332539819","ca-app-pub-7801284693895243/3762739414");
48-
// Admob.getInstance().cacheInterstitial();
49-
// Admob.getInstance().addEventListener(AdmobEvent.onInterstitialDismiss, onFullMiss);
50-
// Admob.getInstance().addEventListener(AdmobEvent.onInterstitialReceive, onFullReveive);
51-
// Admob.getInstance().addEventListener(AdmobEvent.onInterstitialFailedReceive, onFullFailedReveive);
52-
// Admob.getInstance().addEventListener(AdmobEvent.onInterstitialLeaveApplication, onFullLeave);
53-
// Admob.getInstance().addEventListener(AdmobEvent.onInterstitialPresent, onFullPresent);
54-
// }
42+
if (Admob.getInstance().supportDevice)
43+
{
44+
if (isIos)
45+
Admob.getInstance().setKeys("ca-app-pub-7801284693895243/1462394619","ca-app-pub-7801284693895243/4415861017");
46+
else
47+
Admob.getInstance().setKeys("ca-app-pub-7801284693895243/8332539819","ca-app-pub-7801284693895243/3762739414");
48+
Admob.getInstance().cacheInterstitial();
49+
Admob.getInstance().addEventListener(AdmobEvent.onInterstitialDismiss, onFullMiss);
50+
Admob.getInstance().addEventListener(AdmobEvent.onInterstitialReceive, onFullReveive);
51+
Admob.getInstance().addEventListener(AdmobEvent.onInterstitialFailedReceive, onFullFailedReveive);
52+
Admob.getInstance().addEventListener(AdmobEvent.onInterstitialLeaveApplication, onFullLeave);
53+
Admob.getInstance().addEventListener(AdmobEvent.onInterstitialPresent, onFullPresent);
54+
}
5555
}else if (PlatUtil.isCertainPlat(PlatType.ANDROID_4399)){
5656
// SsjjAdsManager.getInstance().init();
5757
// SsjjAdsManager.getInstance().addEventListener(Constants.EVENT_TYPE_ADS_CALLBACK, onAdsCallback);
58-
}else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)){
59-
Ad360.instance.init("48415163d9dfe2657656da45dc523132","9b826737771399dcc63fa76155db0fa7");
60-
// Ad360.instance.init("bb92999153bbc9861de3399be84c3a14","78c5db4fd9bb8367ba26868893847738");
61-
Ad360.instance.loadInsert();
62-
Ad360.instance.addEventListener(Ad360BannerEvent.REQUEST_SUCCESS, onAd360Banner);
63-
Ad360.instance.addEventListener(Ad360BannerEvent.REQUEST_FAILED, onAd360Banner);
64-
Ad360.instance.addEventListener(Ad360BannerEvent.SHOW_SUCCESS, onAd360Banner);
65-
Ad360.instance.addEventListener(Ad360InsertEvent.SHOW_SUCCESS, onAd360Insert);
66-
Ad360.instance.addEventListener(Ad360InsertEvent.REQUEST_FAILED, onAd360Insert);
67-
Ad360.instance.addEventListener(Ad360InsertEvent.REQUEST_SUCCESS, onAd360Insert);
6858
}else{
6959
// if (BaiDu.getInstance().supportDevice)
7060
// {
@@ -79,15 +69,6 @@ package com.mike.utils
7969
}
8070
}
8171

82-
protected static function onAd360Insert(event:Ad360InsertEvent):void
83-
{
84-
trace("insert" + event.type);
85-
}
86-
87-
protected static function onAd360Banner(event:Ad360BannerEvent):void
88-
{
89-
trace("banner" + event.type);
90-
}
9172

9273
/*private static function onAdsCallback(e:AdsCallbackEvent):void{
9374
//广告类展示、关闭、失败回调
@@ -138,7 +119,7 @@ package com.mike.utils
138119
{
139120
trace("全屏广告关闭");
140121
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
141-
// Admob.getInstance().cacheInterstitial();
122+
Admob.getInstance().cacheInterstitial();
142123
// else
143124
// BaiDu.getInstance().cacheInterstitial();
144125
}
@@ -149,41 +130,35 @@ package com.mike.utils
149130
{
150131
trace(stage.orientation);
151132
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
152-
// Admob.getInstance().showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
133+
Admob.getInstance().showBanner(Admob.BANNER,AdmobPosition.BOTTOM_CENTER);
153134
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_4399))
154135
// SsjjAdsManager.getInstance().showBanner();
155-
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)
156-
Ad360.instance.showBanner();
157136
// else
158137
// BaiDu.getInstance().showBanner(BaiDu.BANNER,RelationPosition.BOTTOM_CENTER);
159138
}
160139

161140
public static function hideBaiDuBanner():void
162141
{
163142
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
164-
// Admob.getInstance().hideBanner();
143+
Admob.getInstance().hideBanner();
165144
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_4399))
166145
// SsjjAdsManager.getInstance().hideBanner();
167-
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)
168-
Ad360.instance.hideBanner();
169146
// else
170147
// BaiDu.getInstance().hideBanner();
171148
}
172149

173150
public static function cacheInterstitial():void
174151
{
175152
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
176-
// Admob.getInstance().cacheInterstitial();
177-
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)
178-
Ad360.instance.loadInsert();
153+
Admob.getInstance().cacheInterstitial();
179154
// else
180155
// BaiDu.getInstance().cacheInterstitial();
181156
}
182157

183158
public static function isInterstitialReady():Boolean
184159
{
185160
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
186-
// return Admob.getInstance().isInterstitialReady();
161+
return Admob.getInstance().isInterstitialReady();
187162
// else
188163
// return BaiDu.getInstance().isInterstitialReady();
189164
return true;
@@ -193,23 +168,19 @@ package com.mike.utils
193168
{
194169
trace(GameInstance.instance.sceneWidth, GameInstance.instance.sceneHeight,stage.orientation,stage.autoOrients);
195170
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
196-
// Admob.getInstance().showInterstitial();
171+
Admob.getInstance().showInterstitial();
197172
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_4399))
198173
// SsjjAdsManager.getInstance().showFullScreen();
199-
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)
200-
Ad360.instance.showInsert();
201174
// else
202175
// BaiDu.getInstance().showInterstitial();
203176
}
204177

205178
public static function getBaiDuInstance():EventDispatcher
206179
{
207180
// if (isIos || PlatUtil.isCertainPlat(PlatType.GOOGLE_PLAY))
208-
// return Admob.getInstance();
181+
return Admob.getInstance();
209182
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_4399))
210183
// return SsjjAdsManager.getInstance();
211-
// else if (PlatUtil.isCertainPlat(PlatType.ANDROID_360)
212-
Ad360.instance;
213184
// else
214185
// return BaiDu.getInstance();
215186
return null;

Diff for: YLXD/src/com/mike/utils/ShareManager.as

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ package com.mike.utils
9292
shareParams.description = shareParams.title;
9393
shareParams.siteUrl = "http://www.g6game.com/fkzs/";
9494
shareParams.imagePath = AirUtil.screenShotAndSave();
95-
shareParams.type = ShareType.SHARE_WEBPAGE;
95+
shareParams.type = ShareType.SHARE_TEXT;
9696
sdk.showShareMenu(null, shareParams, GameInstance.instance.sceneWidth>>2, 50, ShareMenuArrowDirection.Up);
9797
}
9898

0 commit comments

Comments
 (0)