Skip to content

Commit ba92e44

Browse files
author
Emre Demir
committed
Useless manifest permission deleted. Bug fix for test ads.
1 parent 6733007 commit ba92e44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Source/GDApi/gdapi/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
android:minSdkVersion="16"
99
android:targetSdkVersion="25" />
1010
<uses-permission android:name="android.permission.INTERNET"/>
11-
<uses-permission android:name="android.permission.GET_TASKS"/>
1211

1312
<application
1413
android:allowBackup="true"

Source/GDApi/gdapi/src/main/java/com/gd/analytics/GDbanner.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class GDbanner {
1313

1414
protected static void init() {
1515

16-
if(GDstatic.enable) {
16+
if(GDstatic.enable && !GDstatic.testAds) {
1717
String url = GDstatic.GAME_API_URL + '/' + GDstatic.gameId;
1818
GDHttpRequest.sendHttpRequest(GDlogger.mContext, url, Request.Method.GET, null, new GDHttpCallback() {
1919
@Override
@@ -55,6 +55,9 @@ public void onError(VolleyError error) {
5555
}
5656
});
5757
}
58+
else if(GDstatic.testAds){
59+
GDlogger.gDad.init(GDlogger.mContext,GDlogger.isCordovaPlugin);
60+
}
5861
}
5962

6063
protected static void ShowBanner(String args) {

0 commit comments

Comments
 (0)