Skip to content

Commit 773f309

Browse files
author
Emre Demir
committed
Removed unnecessary files and updated dependencies.
1 parent 8a12213 commit 773f309

File tree

5 files changed

+16
-34
lines changed

5 files changed

+16
-34
lines changed

Source/GDApi/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
buildscript {
33
repositories {
44
jcenter()
5+
maven {
6+
url 'https://maven.google.com/'
7+
name 'Google'
8+
}
59
}
610
dependencies {
711
classpath 'com.android.tools.build:gradle:2.3.3'
@@ -11,5 +15,9 @@ buildscript {
1115
allprojects {
1216
repositories {
1317
jcenter()
18+
maven {
19+
url 'https://maven.google.com/'
20+
name 'Google'
21+
}
1422
}
1523
}

Source/GDApi/gdapi/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ dependencies {
3636
})
3737
testCompile 'junit:junit:4.12'
3838

39-
compile 'com.android.support:appcompat-v7:25.3.1'
40-
compile 'com.android.support:support-v4:25.3.1'
41-
compile 'com.google.android.gms:play-services-ads:11.0.4'
39+
compile 'com.android.support:appcompat-v7:25.4.0'
40+
compile 'com.android.support:support-v4:25.4.0'
41+
compile 'com.google.android.gms:play-services-ads:11.8.0'
42+
compile 'com.android.volley:volley:1.0.0'
43+
compile 'com.google.code.gson:gson:2.8.2'
44+
4245
}
4346

4447
task removeJar(type: Delete){
Binary file not shown.

Source/GDApi/gdapi/libs/gdapi.jar

23.1 KB
Binary file not shown.

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

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
import android.app.Activity;
44
import android.util.Log;
55

6-
import com.google.android.gms.common.ConnectionResult;
7-
import com.google.android.gms.common.GoogleApiAvailability;
8-
9-
106
public class GDlogger {
117

128
static Activity mContext;
@@ -25,11 +21,6 @@ public class GDlogger {
2521
public static void init(String gameId, String regId, Activity _mContext) {
2622

2723
mContext = _mContext;
28-
29-
if (!checkPlayServices(_mContext)) {
30-
GDutils.log("Google play services out of date. Update it in order to use GDApi properly.");
31-
}
32-
3324
if (GDstatic.enable) {
3425
GDutils.log("API is already Initialized.");
3526
} else {
@@ -67,8 +58,8 @@ public static void debug(Boolean enable) {
6758
/**
6859
* GDlogger enables test ads
6960
*/
70-
public static void EnableTestAds(Boolean test) {
71-
GDstatic.testAds = test;
61+
public static void enableTestAds() {
62+
GDstatic.testAds = true;
7263
}
7364

7465
/**
@@ -109,24 +100,4 @@ public static void hideBanner() {
109100
}
110101
}
111102

112-
public static boolean checkPlayServices(Activity activity) {
113-
try {
114-
final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
115-
116-
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
117-
int result = googleAPI.isGooglePlayServicesAvailable(activity);
118-
if (result != ConnectionResult.SUCCESS) {
119-
if (googleAPI.isUserResolvableError(result)) {
120-
googleAPI.getErrorDialog(activity, result,
121-
PLAY_SERVICES_RESOLUTION_REQUEST).show();
122-
}
123-
return false;
124-
}
125-
return true;
126-
} catch (Exception e) {
127-
return false;
128-
}
129-
130-
}
131-
132103
}

0 commit comments

Comments
 (0)