Skip to content

Commit ba2d3b7

Browse files
committed
clean up
1 parent c68eae3 commit ba2d3b7

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ allprojects {
6666
}
6767

6868
repositories {
69-
mavenLocal()
7069
google()
7170
mavenCentral()
7271
// SNAPSHOT support
@@ -96,7 +95,7 @@ ext {
9695
build_tools_version = "35.0.0"
9796
min_sdk_version = 21
9897
target_sdk_version = 35
99-
java_core_ver = "3.1.0-SNAPSHOT"
98+
java_core_ver = "4.2.2"
10099
android_logger_ver = "1.3.6"
101100
jacksonversion= "2.11.2"
102101
annotations_ver = "1.2.0"

test-app/src/main/java/com/optimizely/ab/android/test_app/SplashScreenActivity.kt

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,23 @@ class SplashScreenActivity : AppCompatActivity() {
4545
override fun onStart() {
4646
super.onStart()
4747

48-
APISamplesInJava.samplesForCmab(this)
49-
APISamplesInJava.samplesForCmabConfig(this)
50-
APISamplesInJava.samplesForCmabConfig2(this)
51-
52-
//
53-
// val INITIALIZE_ASYNCHRONOUSLY = true
54-
//
55-
// // with the new Android O differences, you need to register the service for the intent filter you desire in code instead of
56-
// // in the manifest.
57-
// val eventRescheduler = EventRescheduler()
58-
// applicationContext.registerReceiver(eventRescheduler, IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION))
59-
//
60-
// if (INITIALIZE_ASYNCHRONOUSLY) {
61-
// optimizelyManager!!.initialize(this, R.raw.datafile) { _ ->
62-
// addNotificationListeners()
63-
// startVariation()
64-
// }
65-
// } else {
66-
// optimizelyManager!!.initialize(this, R.raw.datafile)
67-
// addNotificationListeners()
68-
// startVariation()
69-
// }
48+
val INITIALIZE_ASYNCHRONOUSLY = true
49+
50+
// with the new Android O differences, you need to register the service for the intent filter you desire in code instead of
51+
// in the manifest.
52+
val eventRescheduler = EventRescheduler()
53+
applicationContext.registerReceiver(eventRescheduler, IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION))
54+
55+
if (INITIALIZE_ASYNCHRONOUSLY) {
56+
optimizelyManager!!.initialize(this, R.raw.datafile) { _ ->
57+
addNotificationListeners()
58+
startVariation()
59+
}
60+
} else {
61+
optimizelyManager!!.initialize(this, R.raw.datafile)
62+
addNotificationListeners()
63+
startVariation()
64+
}
7065

7166
}
7267

0 commit comments

Comments
 (0)