File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
AndroidSDK/src/com/leanplum/internal Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2424import android .content .Context ;
2525import android .content .SharedPreferences ;
2626import android .os .AsyncTask ;
27+ import android .os .Build ;
2728import android .support .annotation .NonNull ;
2829
2930import com .leanplum .Leanplum ;
@@ -57,7 +58,7 @@ public class Request {
5758 private static final long DEVELOPMENT_MIN_DELAY_MS = 100 ;
5859 private static final long DEVELOPMENT_MAX_DELAY_MS = 5000 ;
5960 private static final long PRODUCTION_DELAY = 60000 ;
60- static final int MAX_EVENTS_PER_API_CALL = 10000 ;
61+ static final int MAX_EVENTS_PER_API_CALL ;
6162 static final String LEANPLUM = "__leanplum__" ;
6263 static final String UUID_KEY = "uuid" ;
6364
@@ -93,6 +94,14 @@ public class Request {
9394
9495 private static List <Map <String , Object >> localErrors = new ArrayList <>();
9596
97+ static {
98+ if (Build .VERSION .SDK_INT <= 17 ) {
99+ MAX_EVENTS_PER_API_CALL = 5000 ;
100+ } else {
101+ MAX_EVENTS_PER_API_CALL = 10000 ;
102+ }
103+ }
104+
96105 public static void setAppId (String appId , String accessKey ) {
97106 Request .appId = appId ;
98107 Request .accessKey = accessKey ;
You can’t perform that action at this time.
0 commit comments