File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
android-sdk/src/main/java/com/optimizely/ab/android/sdk
test-app/src/main/java/com/optimizely/ab/android/test_app Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 65
65
- SDK=android
66
66
- BUILD_NUMBER=${TRAVIS_JOB_NUMBER/.}
67
67
- SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
68
+ - TESTAPP_BRANCH=mnoman/epBatchingSupport
68
69
cache : false
69
70
language : minimal
70
71
before_install : skip
Original file line number Diff line number Diff line change 42
42
import com .optimizely .ab .config .ProjectConfig ;
43
43
import com .optimizely .ab .config .parser .ConfigParseException ;
44
44
import com .optimizely .ab .error .ErrorHandler ;
45
+ import com .optimizely .ab .event .BatchEventProcessor ;
45
46
import com .optimizely .ab .event .EventHandler ;
46
47
import com .optimizely .ab .event .EventProcessor ;
47
- import com .optimizely .ab .event .ForwardingEventProcessor ;
48
48
import com .optimizely .ab .event .internal .payload .EventBatch ;
49
49
import com .optimizely .ab .notification .NotificationCenter ;
50
50
import com .optimizely .ab .notification .UpdateConfigNotification ;
56
56
import java .io .InputStream ;
57
57
import java .util .Set ;
58
58
59
+
59
60
/**
60
61
* Handles loading the Optimizely data file
61
62
*/
@@ -817,7 +818,12 @@ public OptimizelyManager build(Context context) {
817
818
}
818
819
819
820
if (eventProcessor == null ) {
820
- eventProcessor = new ForwardingEventProcessor (eventHandler , notificationCenter );
821
+ eventProcessor = BatchEventProcessor .builder ()
822
+ .withNotificationCenter (notificationCenter )
823
+ .withEventHandler (eventHandler )
824
+ .withFlushInterval (eventDispatchInterval )
825
+ .build ();
826
+
821
827
}
822
828
823
829
if (projectId == null && sdkKey == null ) {
Original file line number Diff line number Diff line change 53
53
build_tools_version = " 28.0.3"
54
54
min_sdk_version = 14
55
55
target_sdk_version = 28
56
- java_core_ver = " 3.3.1 "
56
+ java_core_ver = " 3.3.2 "
57
57
android_logger_ver = " 1.3.6"
58
58
jacksonversion= " 2.9.9.1"
59
59
support_annotations_ver = " 24.2.1"
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public void onCreate() {
73
73
// must match the project id of the compiled in Optimizely data file in rest/raw/data_file.json.
74
74
75
75
OptimizelyManager .Builder builder = OptimizelyManager .builder ();
76
- optimizelyManager = builder .withEventDispatchInterval (60L * 10L )
77
- .withDatafileDownloadInterval (30L )
76
+ optimizelyManager = builder .withEventDispatchInterval (60L * 1000L )
77
+ .withDatafileDownloadInterval (0 )
78
78
.withSDKKey ("FCnSegiEkRry9rhVMroit4" )
79
79
.build (getApplicationContext ());
80
80
}
You can’t perform that action at this time.
0 commit comments