Add support for edu.lublin.eu (#571)

This commit is contained in:
Mikołaj Pich 2019-10-28 21:10:58 +01:00 committed by Rafał Borcz
parent 747696e386
commit a7c472989c
4 changed files with 8 additions and 6 deletions

View File

@ -123,7 +123,7 @@ configurations.all {
} }
dependencies { dependencies {
implementation "io.github.wulkanowy:api:0.11.0" implementation "io.github.wulkanowy:api:6873c00"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "androidx.core:core-ktx:1.2.0-beta01" implementation "androidx.core:core-ktx:1.2.0-beta01"

View File

@ -54,8 +54,8 @@ class LoginFormFragment : BaseFragment(), LoginFormView {
} }
override fun initView() { override fun initView() {
hostKeys = resources.getStringArray(R.array.endpoints_keys) hostKeys = resources.getStringArray(R.array.hosts_keys)
hostValues = resources.getStringArray(R.array.endpoints_values) hostValues = resources.getStringArray(R.array.hosts_values)
loginFormName.doOnTextChanged { _, _, _, _ -> presenter.onNameTextChanged() } loginFormName.doOnTextChanged { _, _, _, _ -> presenter.onNameTextChanged() }
loginFormPass.doOnTextChanged { _, _, _, _ -> presenter.onPassTextChanged() } loginFormPass.doOnTextChanged { _, _, _, _ -> presenter.onPassTextChanged() }

View File

@ -26,7 +26,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:entries="@array/endpoints_keys" android:entries="@array/hosts_keys"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingLeft="10dp" android:paddingLeft="10dp"
android:paddingTop="10dp" android:paddingTop="10dp"

View File

@ -1,17 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation"> <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<string-array name="endpoints_keys"> <string-array name="hosts_keys">
<item>Vulcan</item> <item>Vulcan</item>
<item>Opolska eSzkoła</item> <item>Opolska eSzkoła</item>
<item>Gdańska Platforma Edukacyjna</item> <item>Gdańska Platforma Edukacyjna</item>
<item>Lubelski Portal Oświatowy</item>
<item>EduNet Miasta Tarnowa</item> <item>EduNet Miasta Tarnowa</item>
<item>ResMan Rzeszów</item> <item>ResMan Rzeszów</item>
<item>Fakelog</item> <item>Fakelog</item>
</string-array> </string-array>
<string-array name="endpoints_values"> <string-array name="hosts_values">
<item>https://vulcan.net.pl</item> <item>https://vulcan.net.pl</item>
<item>https://eszkola.opolskie.pl</item> <item>https://eszkola.opolskie.pl</item>
<item>https://edu.gdansk.pl</item> <item>https://edu.gdansk.pl</item>
<item>https://edu.lublin.eu</item>
<item>https://umt.tarnow.pl</item> <item>https://umt.tarnow.pl</item>
<item>https://resman.pl</item> <item>https://resman.pl</item>
<item>http://fakelog.cf</item> <item>http://fakelog.cf</item>