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 6565 - SDK=android
6666 - BUILD_NUMBER=${TRAVIS_JOB_NUMBER/.}
6767 - SDK_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
68+ - TESTAPP_BRANCH=mnoman/epBatchingSupport
6869 cache : false
6970 language : minimal
7071 before_install : skip
Original file line number Diff line number Diff line change 4242import com .optimizely .ab .config .ProjectConfig ;
4343import com .optimizely .ab .config .parser .ConfigParseException ;
4444import com .optimizely .ab .error .ErrorHandler ;
45+ import com .optimizely .ab .event .BatchEventProcessor ;
4546import com .optimizely .ab .event .EventHandler ;
4647import com .optimizely .ab .event .EventProcessor ;
47- import com .optimizely .ab .event .ForwardingEventProcessor ;
4848import com .optimizely .ab .event .internal .payload .EventBatch ;
4949import com .optimizely .ab .notification .NotificationCenter ;
5050import com .optimizely .ab .notification .UpdateConfigNotification ;
5656import java .io .InputStream ;
5757import java .util .Set ;
5858
59+
5960/**
6061 * Handles loading the Optimizely data file
6162 */
@@ -817,7 +818,12 @@ public OptimizelyManager build(Context context) {
817818 }
818819
819820 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+
821827 }
822828
823829 if (projectId == null && sdkKey == null ) {
Original file line number Diff line number Diff line change 5353 build_tools_version = " 28.0.3"
5454 min_sdk_version = 14
5555 target_sdk_version = 28
56- java_core_ver = " 3.3.1 "
56+ java_core_ver = " 3.3.2 "
5757 android_logger_ver = " 1.3.6"
5858 jacksonversion= " 2.9.9.1"
5959 support_annotations_ver = " 24.2.1"
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public void onCreate() {
7373 // must match the project id of the compiled in Optimizely data file in rest/raw/data_file.json.
7474
7575 OptimizelyManager .Builder builder = OptimizelyManager .builder ();
76- optimizelyManager = builder .withEventDispatchInterval (60L * 10L )
77- .withDatafileDownloadInterval (30L )
76+ optimizelyManager = builder .withEventDispatchInterval (60L * 1000L )
77+ .withDatafileDownloadInterval (0 )
7878 .withSDKKey ("FCnSegiEkRry9rhVMroit4" )
7979 .build (getApplicationContext ());
8080 }
You can’t perform that action at this time.
0 commit comments