mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
update seeds sdk
This commit is contained in:
parent
179bd18750
commit
cb21f37284
4 changed files with 6 additions and 21 deletions
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
|
||||
|
||||
<application
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ import com.playseeds.android.sdk.Seeds;
|
|||
public class InAppMessageManager {
|
||||
private String mAppKey;
|
||||
private boolean adDoNotTrack;
|
||||
private boolean mIncludeLocation;
|
||||
private static Context mContext;
|
||||
private static IInAppBillingService mBillingService;
|
||||
private HashMap<String, Thread> 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;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
<uses-sdk
|
||||
android:minSdkVersion="12"
|
||||
android:targetSdkVersion="22" />
|
||||
|
||||
<!-- Include required permissions for Google Mobile Ads to run -->
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
|
@ -25,7 +24,6 @@
|
|||
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
||||
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
|
||||
|
||||
<application>
|
||||
|
|
|
|||
Loading…
Reference in a new issue