chore: downgrade Kotlin to 2.1.0, add KSP support, and migrate Room to KSP
This commit is contained in:
@@ -4,19 +4,21 @@ import android.app.Application
|
||||
import com.example.esp32aldldashboard.bluetooth.BluetoothService
|
||||
import com.example.esp32aldldashboard.repository.SettingsRepository
|
||||
import com.example.esp32aldldashboard.repository.TelemetryRepository
|
||||
import com.example.esp32aldldashboard.logging.CsvLogger
|
||||
import com.example.esp32aldldashboard.data.database.TelemetryDatabase
|
||||
|
||||
class AldlApplication : Application() {
|
||||
lateinit var bluetoothService: BluetoothService
|
||||
lateinit var telemetryRepository: TelemetryRepository
|
||||
lateinit var settingsRepository: SettingsRepository
|
||||
|
||||
lateinit var csvLogger: com.example.esp32aldldashboard.logging.CsvLogger
|
||||
lateinit var csvLogger: CsvLogger
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
val database = com.example.esp32aldldashboard.data.database.TelemetryDatabase.getDatabase(this)
|
||||
val database = TelemetryDatabase.getDatabase(this)
|
||||
settingsRepository = SettingsRepository(this)
|
||||
csvLogger = com.example.esp32aldldashboard.logging.CsvLogger(this)
|
||||
csvLogger = CsvLogger(this)
|
||||
bluetoothService = BluetoothService(this)
|
||||
telemetryRepository = TelemetryRepository(
|
||||
bluetoothService,
|
||||
|
||||
Reference in New Issue
Block a user