Skip to content

Commit b163fd7

Browse files
committed
Remove TODO
1 parent 15bbd27 commit b163fd7

File tree

5 files changed

+8
-35
lines changed

5 files changed

+8
-35
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ project(':model').projectDir = new File('../preshoes-model/model')
3535

3636
## 업데이트 기록
3737

38+
### 2020.6.8 V0.1.0
39+
40+
- Realm DB 스레드 문제 해결.
41+
- 베타테스트 종료.
42+
3843
### 2020.6.6 v0.1.0-beta05
3944

4045
- 저수준 데이터 분석기 출력 보완.

app/src/main/java/org/wbpbp/preshoes/injection/modules.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ val myModules = module {
179179
single {
180180
SensorDeviceServiceImpl(
181181
deviceStateRepo = get(),
182-
bluetoothHelper = get(),
183-
config = get()
182+
bluetoothHelper = get()
184183
) as SensorDeviceService
185184
}
186185

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
buildscript {
2121
/** THE VERSION NAME! */
22-
ext.version_name = '0.1.0-beta05'
22+
ext.version_name = '0.1.0'
2323

2424
ext.kotlin_version = '1.3.72'
2525
ext.gradle_version = '4.0.0'

data/src/main/java/org/wbpbp/preshoes/service/SensorDeviceServiceImpl.kt

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import org.wbpbp.preshoes.bluetooth.PbpPacket
2626
import org.wbpbp.preshoes.bluetooth.SamplesPacket
2727
import org.wbpbp.preshoes.data.R
2828
import org.wbpbp.preshoes.entity.Sample
29-
import org.wbpbp.preshoes.preference.Config
3029
import org.wbpbp.preshoes.repository.SensorDeviceStateRepository
3130
import org.wbpbp.preshoes.repository.SensorDeviceStateRepository.Companion.STATE_CONNECTED
3231
import org.wbpbp.preshoes.repository.SensorDeviceStateRepository.Companion.STATE_CONNECTING
@@ -36,36 +35,9 @@ import timber.log.Timber
3635

3736
class SensorDeviceServiceImpl(
3837
private val deviceStateRepo: SensorDeviceStateRepository,
39-
private val bluetoothHelper: BluetoothHelper,
40-
private val config: Config
38+
private val bluetoothHelper: BluetoothHelper
4139
) : SensorDeviceService {
4240

43-
// TODO remove these all after test
44-
private var base: Int = 0
45-
46-
// TODO remove these all after test
47-
override fun enterRandomState() {
48-
with(deviceStateRepo) {
49-
rightDeviceConnectionState.postValue(STATE_CONNECTED)
50-
leftDeviceConnectionState.postValue(/*base % 200 > 100*/STATE_CONNECTED)
51-
52-
leftDeviceBatteryLevel.postValue(45)
53-
rightDeviceBatteryLevel.postValue(67)
54-
55-
isLeftDeviceCharging.postValue(false)
56-
isRightDeviceCharging.postValue(true)
57-
58-
leftDeviceSensorValue.postValue(getRandomFootPressureValue())
59-
rightDeviceSensorValue.postValue(getRandomFootPressureValue())
60-
}
61-
}
62-
63-
private fun getRandomFootPressureValue(): Sample {
64-
return Sample(List(12) {base%16}).also {
65-
base++
66-
}
67-
}
68-
6941
override fun connectLeftSensorDevice(deviceName: String) =
7042
connectSensorDevice(
7143
deviceName,

domain/src/main/java/org/wbpbp/preshoes/service/SensorDeviceService.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
package org.wbpbp.preshoes.service
2121

2222
interface SensorDeviceService {
23-
// TODO
24-
fun enterRandomState()
25-
2623
fun connectLeftSensorDevice(deviceName: String): Boolean
2724
fun connectRightSensorDevice(deviceName: String): Boolean
2825
}

0 commit comments

Comments
 (0)