Adapt app to new client version
This commit is contained in:
@@ -89,11 +89,14 @@ dependencies {
|
||||
|
||||
implementation "org.tinylog:tinylog-api-kotlin:$tinylog_version"
|
||||
implementation "org.tinylog:tinylog-impl:$tinylog_version"
|
||||
|
||||
implementation 'com.google.code.gson:gson:2.11.0'
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.11.0'
|
||||
implementation 'org.threeten:threetenbp:1.7.0'
|
||||
}
|
||||
|
||||
configurations {
|
||||
configureEach {
|
||||
exclude group: 'org.json', module: 'json'
|
||||
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.github.gotify.client.ApiClient
|
||||
import com.github.gotify.client.api.ClientApi
|
||||
import com.github.gotify.client.api.UserApi
|
||||
import com.github.gotify.client.model.Client
|
||||
import com.github.gotify.client.model.ClientParams
|
||||
import com.github.gotify.client.model.VersionInfo
|
||||
import com.github.gotify.databinding.ActivityLoginBinding
|
||||
import com.github.gotify.databinding.ClientNameDialogBinding
|
||||
@@ -291,7 +292,7 @@ internal class LoginActivity : AppCompatActivity() {
|
||||
nameProvider: TextInputEditText
|
||||
): DialogInterface.OnClickListener {
|
||||
return DialogInterface.OnClickListener { _, _ ->
|
||||
val newClient = Client().name(nameProvider.text.toString())
|
||||
val newClient = ClientParams().name(nameProvider.text.toString())
|
||||
client.createService(ClientApi::class.java)
|
||||
.createClient(newClient)
|
||||
.enqueue(
|
||||
|
||||
Reference in New Issue
Block a user