Showing
18 changed files
with
41 additions
and
120 deletions
| ... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
| 15 | </deviceKey> | 15 | </deviceKey> |
| 16 | </Target> | 16 | </Target> |
| 17 | </runningDeviceTargetSelectedWithDropDown> | 17 | </runningDeviceTargetSelectedWithDropDown> |
| 18 | - <timeTargetWasSelectedWithDropDown value="2024-07-26T13:26:33.140020Z" /> | 18 | + <timeTargetWasSelectedWithDropDown value="2024-07-26T14:53:01.900442Z" /> |
| 19 | </State> | 19 | </State> |
| 20 | </entry> | 20 | </entry> |
| 21 | </value> | 21 | </value> | ... | ... |
| ... | @@ -3,6 +3,7 @@ apply plugin: 'com.android.application' | ... | @@ -3,6 +3,7 @@ apply plugin: 'com.android.application' |
| 3 | //apply plugin: 'com.huawei.agconnect' | 3 | //apply plugin: 'com.huawei.agconnect' |
| 4 | 4 | ||
| 5 | android { | 5 | android { |
| 6 | + namespace "warp.ly.android_sdk" | ||
| 6 | compileSdkVersion 34 | 7 | compileSdkVersion 34 |
| 7 | buildToolsVersion "34.0.0" | 8 | buildToolsVersion "34.0.0" |
| 8 | 9 | ... | ... |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | -<manifest xmlns:android="http://schemas.android.com/apk/res/android" | 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - package="warp.ly.android_sdk"> | ||
| 4 | 3 | ||
| 5 | <uses-permission android:name="android.permission.INTERNET" /> | 4 | <uses-permission android:name="android.permission.INTERNET" /> |
| 6 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | 5 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ... | ... |
| ... | @@ -8,7 +8,7 @@ buildscript { | ... | @@ -8,7 +8,7 @@ buildscript { |
| 8 | maven { url 'https://plugins.gradle.org/m2/' } | 8 | maven { url 'https://plugins.gradle.org/m2/' } |
| 9 | } | 9 | } |
| 10 | dependencies { | 10 | dependencies { |
| 11 | - classpath 'com.android.tools.build:gradle:7.1.3' | 11 | + classpath 'com.android.tools.build:gradle:8.1.4' |
| 12 | classpath 'com.google.gms:google-services:4.3.10' | 12 | classpath 'com.google.gms:google-services:4.3.10' |
| 13 | classpath 'com.huawei.agconnect:agcp:1.7.2.300' | 13 | classpath 'com.huawei.agconnect:agcp:1.7.2.300' |
| 14 | classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' | 14 | classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' | ... | ... |
| 1 | +#Fri Jul 26 17:08:44 EEST 2024 | ||
| 1 | distributionBase=GRADLE_USER_HOME | 2 | distributionBase=GRADLE_USER_HOME |
| 2 | distributionPath=wrapper/dists | 3 | distributionPath=wrapper/dists |
| 3 | -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | 4 | +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip |
| 4 | zipStoreBase=GRADLE_USER_HOME | 5 | zipStoreBase=GRADLE_USER_HOME |
| 5 | zipStorePath=wrapper/dists | 6 | zipStorePath=wrapper/dists | ... | ... |
| ... | @@ -32,7 +32,7 @@ afterEvaluate { | ... | @@ -32,7 +32,7 @@ afterEvaluate { |
| 32 | 32 | ||
| 33 | // Two artifacts, the `aar` (or `jar`) and the sources | 33 | // Two artifacts, the `aar` (or `jar`) and the sources |
| 34 | if (project.plugins.findPlugin("com.android.library")) { | 34 | if (project.plugins.findPlugin("com.android.library")) { |
| 35 | - from components.release | 35 | + from components.findByName('release') |
| 36 | } else { | 36 | } else { |
| 37 | from components.java | 37 | from components.java |
| 38 | } | 38 | } | ... | ... |
| ... | @@ -9,7 +9,7 @@ ext { | ... | @@ -9,7 +9,7 @@ ext { |
| 9 | apply from: "${rootProject.projectDir}/scripts/publish-module.gradle" | 9 | apply from: "${rootProject.projectDir}/scripts/publish-module.gradle" |
| 10 | 10 | ||
| 11 | android { | 11 | android { |
| 12 | - | 12 | + namespace 'ly.warp.sdk' |
| 13 | compileSdkVersion 34 | 13 | compileSdkVersion 34 |
| 14 | buildToolsVersion "34.0.0" | 14 | buildToolsVersion "34.0.0" |
| 15 | 15 | ||
| ... | @@ -107,9 +107,6 @@ dependencies { | ... | @@ -107,9 +107,6 @@ dependencies { |
| 107 | implementation 'com.squareup.retrofit2:retrofit:2.9.0' | 107 | implementation 'com.squareup.retrofit2:retrofit:2.9.0' |
| 108 | implementation 'com.squareup.retrofit2:converter-gson:2.9.0' | 108 | implementation 'com.squareup.retrofit2:converter-gson:2.9.0' |
| 109 | 109 | ||
| 110 | - //------------------------------ Expandable Layout -----------------------------// | ||
| 111 | - api 'net.cachapa.expandablelayout:expandablelayout:2.9.2' | ||
| 112 | - | ||
| 113 | //------------------------------ Lifecycle -----------------------------// | 110 | //------------------------------ Lifecycle -----------------------------// |
| 114 | implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" | 111 | implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" |
| 115 | 112 | ... | ... |
| 1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | - xmlns:tools="http://schemas.android.com/tools" | 2 | + xmlns:tools="http://schemas.android.com/tools"> |
| 3 | - package="ly.warp.sdk"> | ||
| 4 | 3 | ||
| 5 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | 4 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
| 6 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | 5 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| ... | @@ -177,57 +176,6 @@ | ... | @@ -177,57 +176,6 @@ |
| 177 | </intent-filter> | 176 | </intent-filter> |
| 178 | </activity> | 177 | </activity> |
| 179 | 178 | ||
| 180 | - <!-- Service used for updating user's location. --> | ||
| 181 | - <service | ||
| 182 | - android:name=".services.UpdateUserLocationService" | ||
| 183 | - android:exported="false" | ||
| 184 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 185 | - | ||
| 186 | - <service | ||
| 187 | - android:name=".services.EventService" | ||
| 188 | - android:exported="false" | ||
| 189 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 190 | - | ||
| 191 | - <service | ||
| 192 | - android:name=".services.VouchersFetchedService" | ||
| 193 | - android:exported="false" | ||
| 194 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 195 | - | ||
| 196 | - <service | ||
| 197 | - android:name=".services.EventCouponsService" | ||
| 198 | - android:exported="false" | ||
| 199 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 200 | - | ||
| 201 | - <service | ||
| 202 | - android:name=".services.EventRewardsCouponsService" | ||
| 203 | - android:exported="false" | ||
| 204 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 205 | - | ||
| 206 | - <service | ||
| 207 | - android:name=".services.EventUnifiedCouponsService" | ||
| 208 | - android:exported="false" | ||
| 209 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 210 | - | ||
| 211 | - <service | ||
| 212 | - android:name=".services.EventCampaignCouponService" | ||
| 213 | - android:exported="false" | ||
| 214 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 215 | - | ||
| 216 | - <service | ||
| 217 | - android:name=".services.EventCampaignService" | ||
| 218 | - android:exported="false" | ||
| 219 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 220 | - | ||
| 221 | - <service | ||
| 222 | - android:name=".services.EventRefreshDeviceTokenService" | ||
| 223 | - android:exported="false" | ||
| 224 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 225 | - | ||
| 226 | - <service | ||
| 227 | - android:name=".services.EventQuestionnaireService" | ||
| 228 | - android:exported="false" | ||
| 229 | - android:permission="android.permission.BIND_JOB_SERVICE" /> | ||
| 230 | - | ||
| 231 | <!-- android:stopWithTask="false"--> | 179 | <!-- android:stopWithTask="false"--> |
| 232 | <!-- android:process=":warplyHealthService"--> | 180 | <!-- android:process=":warplyHealthService"--> |
| 233 | <!-- <service--> | 181 | <!-- <service--> | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -52,7 +52,6 @@ import java.util.List; | ... | @@ -52,7 +52,6 @@ import java.util.List; |
| 52 | import java.util.Map; | 52 | import java.util.Map; |
| 53 | import java.util.concurrent.TimeUnit; | 53 | import java.util.concurrent.TimeUnit; |
| 54 | 54 | ||
| 55 | -import ly.warp.sdk.BuildConfig; | ||
| 56 | import ly.warp.sdk.Warply; | 55 | import ly.warp.sdk.Warply; |
| 57 | import ly.warp.sdk.dexter.listener.DexterError; | 56 | import ly.warp.sdk.dexter.listener.DexterError; |
| 58 | import ly.warp.sdk.dexter.listener.PermissionDeniedResponse; | 57 | import ly.warp.sdk.dexter.listener.PermissionDeniedResponse; |
| ... | @@ -102,10 +101,8 @@ public class UpdateUserLocationService extends Worker { | ... | @@ -102,10 +101,8 @@ public class UpdateUserLocationService extends Worker { |
| 102 | PermissionsUtil.PERMISSION_LOCATION_FINE | 101 | PermissionsUtil.PERMISSION_LOCATION_FINE |
| 103 | ).requestPermissions(); | 102 | ).requestPermissions(); |
| 104 | } catch (SecurityException e) { | 103 | } catch (SecurityException e) { |
| 105 | - if (BuildConfig.DEBUG) { | 104 | + e.printStackTrace(); |
| 106 | - e.printStackTrace(); | 105 | + WorkManager.getInstance(Warply.getWarplyContext()).cancelAllWorkByTag(TAG); |
| 107 | - WorkManager.getInstance(Warply.getWarplyContext()).cancelAllWorkByTag(TAG); | ||
| 108 | - } | ||
| 109 | } | 106 | } |
| 110 | } else { | 107 | } else { |
| 111 | WorkManager.getInstance(Warply.getWarplyContext()).cancelAllWorkByTag(TAG); | 108 | WorkManager.getInstance(Warply.getWarplyContext()).cancelAllWorkByTag(TAG); |
| ... | @@ -187,8 +184,7 @@ public class UpdateUserLocationService extends Worker { | ... | @@ -187,8 +184,7 @@ public class UpdateUserLocationService extends Worker { |
| 187 | getGeofences().add(new WarpGeoFence(geoArray.getJSONObject(i))); | 184 | getGeofences().add(new WarpGeoFence(geoArray.getJSONObject(i))); |
| 188 | } | 185 | } |
| 189 | } catch (JSONException e) { | 186 | } catch (JSONException e) { |
| 190 | - if (BuildConfig.DEBUG) | 187 | + e.printStackTrace(); |
| 191 | - e.printStackTrace(); | ||
| 192 | geofences = null; | 188 | geofences = null; |
| 193 | WarpUtils.log("failed during parsing geofencing data."); | 189 | WarpUtils.log("failed during parsing geofencing data."); |
| 194 | } | 190 | } |
| ... | @@ -407,17 +403,17 @@ public class UpdateUserLocationService extends Worker { | ... | @@ -407,17 +403,17 @@ public class UpdateUserLocationService extends Worker { |
| 407 | FusedLocationProviderClient locationClient = LocationServices.getFusedLocationProviderClient(Warply.getWarplyContext()); | 403 | FusedLocationProviderClient locationClient = LocationServices.getFusedLocationProviderClient(Warply.getWarplyContext()); |
| 408 | 404 | ||
| 409 | locationClient.getCurrentLocation(LocationRequest.PRIORITY_HIGH_ACCURACY, new CancellationToken() { | 405 | locationClient.getCurrentLocation(LocationRequest.PRIORITY_HIGH_ACCURACY, new CancellationToken() { |
| 410 | - @NonNull | 406 | + @NonNull |
| 411 | - @Override | 407 | + @Override |
| 412 | - public CancellationToken onCanceledRequested(@NonNull OnTokenCanceledListener onTokenCanceledListener) { | 408 | + public CancellationToken onCanceledRequested(@NonNull OnTokenCanceledListener onTokenCanceledListener) { |
| 413 | - return null; | 409 | + return null; |
| 414 | - } | 410 | + } |
| 415 | 411 | ||
| 416 | - @Override | 412 | + @Override |
| 417 | - public boolean isCancellationRequested() { | 413 | + public boolean isCancellationRequested() { |
| 418 | - return false; | 414 | + return false; |
| 419 | - } | 415 | + } |
| 420 | - }) | 416 | + }) |
| 421 | .addOnSuccessListener(location1 -> { | 417 | .addOnSuccessListener(location1 -> { |
| 422 | if (location1 != null) { | 418 | if (location1 != null) { |
| 423 | sendLocation(location1); | 419 | sendLocation(location1); |
| ... | @@ -427,9 +423,7 @@ public class UpdateUserLocationService extends Worker { | ... | @@ -427,9 +423,7 @@ public class UpdateUserLocationService extends Worker { |
| 427 | WarpUtils.log("Could not get location data."); | 423 | WarpUtils.log("Could not get location data."); |
| 428 | }); | 424 | }); |
| 429 | } catch (SecurityException e) { | 425 | } catch (SecurityException e) { |
| 430 | - if (BuildConfig.DEBUG) { | 426 | + e.printStackTrace(); |
| 431 | - e.printStackTrace(); | ||
| 432 | - } | ||
| 433 | } | 427 | } |
| 434 | } | 428 | } |
| 435 | }; | 429 | }; | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * Copyright 2010-2013 Warply Ltd. All rights reserved. | 2 | * Copyright 2010-2013 Warply Ltd. All rights reserved. |
| 3 | - * | 3 | + * |
| 4 | * Redistribution and use in source and binary forms, without modification, are | 4 | * Redistribution and use in source and binary forms, without modification, are |
| 5 | * permitted provided that the following conditions are met: | 5 | * permitted provided that the following conditions are met: |
| 6 | - * | 6 | + * |
| 7 | * 1. Redistributions of source code must retain the above copyright notice, | 7 | * 1. Redistributions of source code must retain the above copyright notice, |
| 8 | * this list of conditions and the following disclaimer. | 8 | * this list of conditions and the following disclaimer. |
| 9 | - * | 9 | + * |
| 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 | * this list of conditions and the following disclaimer in the documentation | 11 | * this list of conditions and the following disclaimer in the documentation |
| 12 | * and/or other materials provided with the distribution. | 12 | * and/or other materials provided with the distribution. |
| 13 | - * | 13 | + * |
| 14 | * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | 14 | * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR |
| 15 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | 15 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 16 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | 16 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| ... | @@ -38,7 +38,6 @@ import androidx.work.WorkManager; | ... | @@ -38,7 +38,6 @@ import androidx.work.WorkManager; |
| 38 | 38 | ||
| 39 | import java.util.List; | 39 | import java.util.List; |
| 40 | 40 | ||
| 41 | -import ly.warp.sdk.BuildConfig; | ||
| 42 | import ly.warp.sdk.Warply; | 41 | import ly.warp.sdk.Warply; |
| 43 | import ly.warp.sdk.dexter.listener.DexterError; | 42 | import ly.warp.sdk.dexter.listener.DexterError; |
| 44 | import ly.warp.sdk.dexter.listener.PermissionDeniedResponse; | 43 | import ly.warp.sdk.dexter.listener.PermissionDeniedResponse; |
| ... | @@ -122,9 +121,7 @@ public class WarplyLocationManager { | ... | @@ -122,9 +121,7 @@ public class WarplyLocationManager { |
| 122 | defaultMinTime, defaultMinDistance, | 121 | defaultMinTime, defaultMinDistance, |
| 123 | locationListenerPendingIntent); | 122 | locationListenerPendingIntent); |
| 124 | } catch (SecurityException e) { | 123 | } catch (SecurityException e) { |
| 125 | - if (BuildConfig.DEBUG) { | 124 | + e.printStackTrace(); |
| 126 | - e.printStackTrace(); | ||
| 127 | - } | ||
| 128 | } | 125 | } |
| 129 | } | 126 | } |
| 130 | }; | 127 | }; |
| ... | @@ -137,8 +134,7 @@ public class WarplyLocationManager { | ... | @@ -137,8 +134,7 @@ public class WarplyLocationManager { |
| 137 | PermissionsUtil.PERMISSION_LOCATION_FINE | 134 | PermissionsUtil.PERMISSION_LOCATION_FINE |
| 138 | ).requestPermissions(); | 135 | ).requestPermissions(); |
| 139 | } catch (Exception e) { | 136 | } catch (Exception e) { |
| 140 | - if (BuildConfig.DEBUG) | 137 | + e.printStackTrace(); |
| 141 | - e.printStackTrace(); | ||
| 142 | } | 138 | } |
| 143 | } | 139 | } |
| 144 | 140 | ||
| ... | @@ -262,9 +258,7 @@ public class WarplyLocationManager { | ... | @@ -262,9 +258,7 @@ public class WarplyLocationManager { |
| 262 | lm.requestLocationUpdates(bestProvider, minTime, minDistance, locationListenerPendingIntent); | 258 | lm.requestLocationUpdates(bestProvider, minTime, minDistance, locationListenerPendingIntent); |
| 263 | } | 259 | } |
| 264 | } catch (SecurityException e) { | 260 | } catch (SecurityException e) { |
| 265 | - if (BuildConfig.DEBUG) { | 261 | + e.printStackTrace(); |
| 266 | - e.printStackTrace(); | ||
| 267 | - } | ||
| 268 | } | 262 | } |
| 269 | } | 263 | } |
| 270 | }; | 264 | }; |
| ... | @@ -276,9 +270,7 @@ public class WarplyLocationManager { | ... | @@ -276,9 +270,7 @@ public class WarplyLocationManager { |
| 276 | PermissionsUtil.PERMISSION_LOCATION_FINE | 270 | PermissionsUtil.PERMISSION_LOCATION_FINE |
| 277 | ).requestPermissions(); | 271 | ).requestPermissions(); |
| 278 | } catch (SecurityException e) { | 272 | } catch (SecurityException e) { |
| 279 | - if (BuildConfig.DEBUG) { | 273 | + e.printStackTrace(); |
| 280 | - e.printStackTrace(); | ||
| 281 | - } | ||
| 282 | } | 274 | } |
| 283 | } | 275 | } |
| 284 | } | 276 | } | ... | ... |
| ... | @@ -16,7 +16,6 @@ import android.widget.ImageView; | ... | @@ -16,7 +16,6 @@ import android.widget.ImageView; |
| 16 | import android.widget.RelativeLayout; | 16 | import android.widget.RelativeLayout; |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | -import ly.warp.sdk.BuildConfig; | ||
| 20 | import ly.warp.sdk.io.models.Campaign; | 19 | import ly.warp.sdk.io.models.Campaign; |
| 21 | import ly.warp.sdk.utils.WarpUtils; | 20 | import ly.warp.sdk.utils.WarpUtils; |
| 22 | import ly.warp.sdk.utils.WarplyDeviceInfoCollector; | 21 | import ly.warp.sdk.utils.WarplyDeviceInfoCollector; |
| ... | @@ -117,9 +116,7 @@ public class CampaignItemWebHolder extends CampaignItemViewHolder { | ... | @@ -117,9 +116,7 @@ public class CampaignItemWebHolder extends CampaignItemViewHolder { |
| 117 | try { | 116 | try { |
| 118 | context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); | 117 | context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url))); |
| 119 | } catch (ActivityNotFoundException e) { | 118 | } catch (ActivityNotFoundException e) { |
| 120 | - if (BuildConfig.DEBUG) { | 119 | + e.printStackTrace(); |
| 121 | - e.printStackTrace(); | ||
| 122 | - } | ||
| 123 | } | 120 | } |
| 124 | } | 121 | } |
| 125 | }); | 122 | }); | ... | ... |
| 1 | package ly.warp.sdk.views; | 1 | package ly.warp.sdk.views; |
| 2 | 2 | ||
| 3 | import android.content.Context; | 3 | import android.content.Context; |
| 4 | + | ||
| 4 | import androidx.fragment.app.Fragment; | 5 | import androidx.fragment.app.Fragment; |
| 5 | import androidx.fragment.app.FragmentActivity; | 6 | import androidx.fragment.app.FragmentActivity; |
| 6 | import androidx.fragment.app.FragmentManager; | 7 | import androidx.fragment.app.FragmentManager; |
| 7 | import androidx.fragment.app.FragmentTransaction; | 8 | import androidx.fragment.app.FragmentTransaction; |
| 9 | + | ||
| 8 | import android.text.TextUtils; | 10 | import android.text.TextUtils; |
| 9 | 11 | ||
| 10 | -import ly.warp.sdk.BuildConfig; | ||
| 11 | import ly.warp.sdk.Warply; | 12 | import ly.warp.sdk.Warply; |
| 12 | import ly.warp.sdk.fragments.WarpViewFragment; | 13 | import ly.warp.sdk.fragments.WarpViewFragment; |
| 13 | import ly.warp.sdk.io.callbacks.CallbackReceiver; | 14 | import ly.warp.sdk.io.callbacks.CallbackReceiver; |
| ... | @@ -87,9 +88,7 @@ public class CampaignViewLoader implements CallbackReceiver<CampaignList> { | ... | @@ -87,9 +88,7 @@ public class CampaignViewLoader implements CallbackReceiver<CampaignList> { |
| 87 | try { | 88 | try { |
| 88 | transaction.commit(); | 89 | transaction.commit(); |
| 89 | } catch (IllegalStateException e) { | 90 | } catch (IllegalStateException e) { |
| 90 | - if (BuildConfig.DEBUG) { | 91 | + e.printStackTrace(); |
| 91 | - e.printStackTrace(); | ||
| 92 | - } | ||
| 93 | } | 92 | } |
| 94 | } | 93 | } |
| 95 | } | 94 | } | ... | ... |
| ... | @@ -35,7 +35,6 @@ import android.content.Context; | ... | @@ -35,7 +35,6 @@ import android.content.Context; |
| 35 | import android.content.DialogInterface; | 35 | import android.content.DialogInterface; |
| 36 | import android.content.Intent; | 36 | import android.content.Intent; |
| 37 | import android.content.IntentSender; | 37 | import android.content.IntentSender; |
| 38 | -import android.content.pm.ApplicationInfo; | ||
| 39 | import android.content.pm.PackageManager; | 38 | import android.content.pm.PackageManager; |
| 40 | import android.location.LocationManager; | 39 | import android.location.LocationManager; |
| 41 | import android.net.Uri; | 40 | import android.net.Uri; |
| ... | @@ -103,12 +102,9 @@ import ly.warp.sdk.io.models.RefreshVouchersEventModel; | ... | @@ -103,12 +102,9 @@ import ly.warp.sdk.io.models.RefreshVouchersEventModel; |
| 103 | import ly.warp.sdk.io.models.UnifiedCoupon; | 102 | import ly.warp.sdk.io.models.UnifiedCoupon; |
| 104 | import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; | 103 | import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; |
| 105 | import ly.warp.sdk.io.models.WarplyCouponsChangedEventModel; | 104 | import ly.warp.sdk.io.models.WarplyCouponsChangedEventModel; |
| 106 | -import ly.warp.sdk.io.models.WarplyHealthEventModel; | ||
| 107 | import ly.warp.sdk.io.models.WarplyPacingCardEventModel; | 105 | import ly.warp.sdk.io.models.WarplyPacingCardEventModel; |
| 108 | -import ly.warp.sdk.io.models.WarplyPacingEventModel; | ||
| 109 | import ly.warp.sdk.io.models.WarplyUnifiedActivatedEventModel; | 106 | import ly.warp.sdk.io.models.WarplyUnifiedActivatedEventModel; |
| 110 | import ly.warp.sdk.services.EventCampaignService; | 107 | import ly.warp.sdk.services.EventCampaignService; |
| 111 | -import ly.warp.sdk.services.WarplyHealthService; | ||
| 112 | import ly.warp.sdk.utils.WarpUtils; | 108 | import ly.warp.sdk.utils.WarpUtils; |
| 113 | import ly.warp.sdk.utils.WarplyManagerHelper; | 109 | import ly.warp.sdk.utils.WarplyManagerHelper; |
| 114 | import ly.warp.sdk.utils.WarplyProperty; | 110 | import ly.warp.sdk.utils.WarplyProperty; | ... | ... |
| ... | @@ -10,7 +10,6 @@ import java.util.Collections; | ... | @@ -10,7 +10,6 @@ import java.util.Collections; |
| 10 | import java.util.Comparator; | 10 | import java.util.Comparator; |
| 11 | import java.util.concurrent.atomic.AtomicBoolean; | 11 | import java.util.concurrent.atomic.AtomicBoolean; |
| 12 | 12 | ||
| 13 | -import ly.warp.sdk.BuildConfig; | ||
| 14 | import ly.warp.sdk.Warply; | 13 | import ly.warp.sdk.Warply; |
| 15 | import ly.warp.sdk.io.callbacks.CallbackReceiver; | 14 | import ly.warp.sdk.io.callbacks.CallbackReceiver; |
| 16 | import ly.warp.sdk.io.callbacks.SimpleCallbackReceiver; | 15 | import ly.warp.sdk.io.callbacks.SimpleCallbackReceiver; |
| ... | @@ -142,9 +141,7 @@ public class CampaignsArrayAdapter<VH extends CampaignItemViewHolder> extends Ba | ... | @@ -142,9 +141,7 @@ public class CampaignsArrayAdapter<VH extends CampaignItemViewHolder> extends Ba |
| 142 | itemView = viewHolder.itemView; | 141 | itemView = viewHolder.itemView; |
| 143 | itemView.setTag(viewHolder); | 142 | itemView.setTag(viewHolder); |
| 144 | } catch (Exception e) { | 143 | } catch (Exception e) { |
| 145 | - if (BuildConfig.DEBUG) { | 144 | + e.printStackTrace(); |
| 146 | - e.printStackTrace(); | ||
| 147 | - } | ||
| 148 | } | 145 | } |
| 149 | } else { | 146 | } else { |
| 150 | viewHolder = (VH) itemView.getTag(); | 147 | viewHolder = (VH) itemView.getTag(); |
| ... | @@ -273,7 +270,7 @@ public class CampaignsArrayAdapter<VH extends CampaignItemViewHolder> extends Ba | ... | @@ -273,7 +270,7 @@ public class CampaignsArrayAdapter<VH extends CampaignItemViewHolder> extends Ba |
| 273 | * with certain campaigns. | 270 | * with certain campaigns. |
| 274 | * | 271 | * |
| 275 | * @param result the {@link CampaignList} used to update the | 272 | * @param result the {@link CampaignList} used to update the |
| 276 | - * offers inside the {@link android.widget.ListView} | 273 | + * offers inside the {@link android.widget.ListView} |
| 277 | */ | 274 | */ |
| 278 | public void updateCampaigns(CampaignList result) { | 275 | public void updateCampaigns(CampaignList result) { |
| 279 | this.mCampaigns = result; | 276 | this.mCampaigns = result; | ... | ... |
| 1 | package ly.warp.sdk.views.adapters.mix; | 1 | package ly.warp.sdk.views.adapters.mix; |
| 2 | 2 | ||
| 3 | import android.database.DataSetObserver; | 3 | import android.database.DataSetObserver; |
| 4 | + | ||
| 4 | import androidx.annotation.NonNull; | 5 | import androidx.annotation.NonNull; |
| 5 | import androidx.recyclerview.widget.RecyclerView; | 6 | import androidx.recyclerview.widget.RecyclerView; |
| 7 | + | ||
| 6 | import android.view.View; | 8 | import android.view.View; |
| 7 | import android.view.ViewGroup; | 9 | import android.view.ViewGroup; |
| 8 | import android.widget.AbsListView; | 10 | import android.widget.AbsListView; |
| 9 | import android.widget.BaseAdapter; | 11 | import android.widget.BaseAdapter; |
| 10 | import android.widget.ListView; | 12 | import android.widget.ListView; |
| 11 | 13 | ||
| 12 | -import ly.warp.sdk.BuildConfig; | ||
| 13 | import ly.warp.sdk.io.callbacks.SimpleCallbackReceiver; | 14 | import ly.warp.sdk.io.callbacks.SimpleCallbackReceiver; |
| 14 | import ly.warp.sdk.io.models.Campaign; | 15 | import ly.warp.sdk.io.models.Campaign; |
| 15 | import ly.warp.sdk.io.models.CampaignList; | 16 | import ly.warp.sdk.io.models.CampaignList; |
| ... | @@ -185,9 +186,7 @@ public class CampaignsMixListAdapter<VH extends CampaignItemViewHolder> extends | ... | @@ -185,9 +186,7 @@ public class CampaignsMixListAdapter<VH extends CampaignItemViewHolder> extends |
| 185 | itemView = viewHolder.itemView; | 186 | itemView = viewHolder.itemView; |
| 186 | itemView.setTag(viewHolder); | 187 | itemView.setTag(viewHolder); |
| 187 | } catch (Exception e) { | 188 | } catch (Exception e) { |
| 188 | - if (BuildConfig.DEBUG) { | 189 | + e.printStackTrace(); |
| 189 | - e.printStackTrace(); | ||
| 190 | - } | ||
| 191 | } | 190 | } |
| 192 | } else { | 191 | } else { |
| 193 | viewHolder = (VH) itemView.getTag(); | 192 | viewHolder = (VH) itemView.getTag(); | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -5,6 +5,7 @@ | ... | @@ -5,6 +5,7 @@ |
| 5 | <attr name="dashLength" format="dimension" /> | 5 | <attr name="dashLength" format="dimension" /> |
| 6 | <attr name="dashGap" format="dimension" /> | 6 | <attr name="dashGap" format="dimension" /> |
| 7 | <attr name="dashThickness" format="dimension" /> | 7 | <attr name="dashThickness" format="dimension" /> |
| 8 | + <attr name="colorPrimary" format="color" /> | ||
| 8 | <attr name="orientation" format="enum"> | 9 | <attr name="orientation" format="enum"> |
| 9 | <enum name="horizontal" value="0" /> | 10 | <enum name="horizontal" value="0" /> |
| 10 | <enum name="vertical" value="1" /> | 11 | <enum name="vertical" value="1" /> | ... | ... |
-
Please register or login to post a comment