From cb21f372849855498fb0fbf7e25d4584b77a1b7e Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Sat, 10 Dec 2016 11:16:49 +0100 Subject: [PATCH] update seeds sdk --- seeds-sdk/build.gradle | 5 +---- seeds-sdk/src/main/AndroidManifest.xml | 1 - .../sdk/inappmessaging/InAppMessageManager.java | 17 ++++------------- seeds-sdk/src/test/AndroidManifest.xml | 4 +--- 4 files changed, 6 insertions(+), 21 deletions(-) diff --git a/seeds-sdk/build.gradle b/seeds-sdk/build.gradle index df61afccd..28186f149 100755 --- a/seeds-sdk/build.gradle +++ b/seeds-sdk/build.gradle @@ -50,9 +50,6 @@ dependencies { compile 'com.google.code.gson:gson:2.4' compile 'com.android.support:multidex:1.0.1' compile 'com.loopj.android:android-async-http:1.4.9' - - compile 'org.solovyev.android:checkout:0.7.5@aar' - androidTestCompile 'org.mockito:mockito-core:1.9.5' androidTestCompile 'com.google.dexmaker:dexmaker:1.0' androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.0' @@ -65,7 +62,7 @@ publish { userOrg = 'seedsinc' groupId = 'com.playseeds' artifactId = 'android-sdk' - version = '0.4.1' + version = '0.4.2' description = 'Android SDK for Seeds mobile analytics' website = 'https://github.com/therealseeds/seeds-sdk-android' } diff --git a/seeds-sdk/src/main/AndroidManifest.xml b/seeds-sdk/src/main/AndroidManifest.xml index 8a0638325..deb034655 100755 --- a/seeds-sdk/src/main/AndroidManifest.xml +++ b/seeds-sdk/src/main/AndroidManifest.xml @@ -5,7 +5,6 @@ - mRequestThreads; @@ -434,18 +433,10 @@ public class InAppMessageManager { Location location = null; - if (this.mIncludeLocation) { - location = Util.getLocation(mContext); - } - - if (location != null) { - Log.d("location is longitude: " + location.getLongitude() + ", latitude: " + location.getLatitude()); - request.setLatitude(location.getLatitude()); - request.setLongitude(location.getLongitude()); - } else { - request.setLatitude(0.0); - request.setLongitude(0.0); - } + // TODO Atte Keinänen 12/8/16 + // Reduce the count of needed permissions by removing location tracking + request.setLatitude(0.0); + request.setLongitude(0.0); if (mContext.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { requestedHorizontalAd = true; diff --git a/seeds-sdk/src/test/AndroidManifest.xml b/seeds-sdk/src/test/AndroidManifest.xml index 3da699de5..74e6f0d87 100644 --- a/seeds-sdk/src/test/AndroidManifest.xml +++ b/seeds-sdk/src/test/AndroidManifest.xml @@ -7,8 +7,7 @@ - - + @@ -25,7 +24,6 @@ -