fix formatting
This commit is contained in:
parent
059f4c1b04
commit
27113a530f
@ -17,7 +17,6 @@ import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import java.io.IOException
|
||||
|
||||
|
||||
@RunWith(AndroidJUnit4::class)
|
||||
class BoardDaoTest {
|
||||
private lateinit var dao: BoardDao
|
||||
@ -109,7 +108,3 @@ class BoardDaoTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,11 @@
|
||||
package it.unisannio.ding.ids.wedroid.app.data.dao
|
||||
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.room.*
|
||||
import androidx.room.Dao
|
||||
import androidx.room.Delete
|
||||
import androidx.room.Insert
|
||||
import androidx.room.OnConflictStrategy
|
||||
import androidx.room.Query
|
||||
import it.unisannio.ding.ids.wedroid.app.data.entity.Board
|
||||
|
||||
@Dao
|
||||
|
@ -13,4 +13,3 @@ data class Board(
|
||||
fun it.unisannio.ding.ids.wedroid.wrapper.entity.Board.convert(): Board {
|
||||
return Board(this.id, this.title)
|
||||
}
|
||||
|
||||
|
@ -159,4 +159,3 @@ class BoardRepository(
|
||||
Log.e("RETROFIT", message)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,12 @@
|
||||
package it.unisannio.ding.ids.wedroid.app.util
|
||||
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.*
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.BoardService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.CardCommentService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.CardService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.ChecklistService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.ListService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.SwimlanesService
|
||||
import it.unisannio.ding.ids.wedroid.wrapper.api.UserService
|
||||
import okhttp3.OkHttpClient
|
||||
import retrofit2.Retrofit
|
||||
import retrofit2.converter.gson.GsonConverterFactory
|
||||
@ -75,4 +81,3 @@ class ServicesFactory private constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,6 @@ class SharedPreferenceHelper(context : Context) : PreferenceReader, PreferenceWr
|
||||
override fun setBaseUrl(baseUrl: String?) {
|
||||
val editor = sp.edit()
|
||||
editor.putString("url", baseUrl).apply()
|
||||
|
||||
}
|
||||
|
||||
override fun setUserId(userId: String?) {
|
||||
|
@ -126,4 +126,3 @@ class BoardsListsActivity : AppCompatActivity() {
|
||||
const val LOGIN_CODE = 19
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,6 @@ class LoginActivity : AppCompatActivity() {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
val userNameText = username.text.toString()
|
||||
val passwordText = password.text.toString()
|
||||
|
||||
@ -47,8 +46,6 @@ class LoginActivity : AppCompatActivity() {
|
||||
.build()
|
||||
.create(LoginService::class.java)
|
||||
|
||||
|
||||
|
||||
service.login(userNameText, passwordText).enqueue(object : Callback<UserPrototype> {
|
||||
override fun onFailure(call: Call<UserPrototype>, t: Throwable) {
|
||||
Toast.makeText(
|
||||
@ -82,7 +79,6 @@ class LoginActivity : AppCompatActivity() {
|
||||
setResult(LOGIN_OK)
|
||||
finish()
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,6 @@ import androidx.recyclerview.widget.RecyclerView
|
||||
import it.unisannio.ding.ids.wedroid.app.R
|
||||
import it.unisannio.ding.ids.wedroid.app.data.entity.Board
|
||||
|
||||
|
||||
class BoardsListAdapter internal constructor(
|
||||
context: Context
|
||||
) : RecyclerView.Adapter<BoardsListAdapter.BoardViewHolder>() {
|
||||
|
@ -10,4 +10,3 @@ fun getPrivateFun(name: String, kClass: KClass<*>): KFunction<*>? {
|
||||
.find { it.name == name }
|
||||
.also { it?.isAccessible = true }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user