<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) Kuba Szczodrzyński 2020-4-3.
  -->

<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="HardcodedText">

    <data>

        <variable
            name="app"
            type="pl.szczodrzynski.edziennik.App" />
    </data>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="8dp"
            android:layout_marginVertical="8dp"
            android:orientation="vertical">

            <!--<com.google.android.material.tabs.TabLayout
                android:id="@+id/tabLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/colorSurface_6dp"
                app:tabIndicatorColor="?colorPrimary"
                app:tabMode="auto"
                app:tabSelectedTextColor="?colorPrimary"
                app:tabTextColor="?android:textColorPrimary" />-->

            <!--<pl.szczodrzynski.edziennik.ui.base.lazypager.LazyViewPager
                android:id="@+id/viewPager"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                app:layout_behavior="@string/appbar_scrolling_view_behavior" />-->

            <com.google.android.material.checkbox.MaterialCheckBox
                android:id="@+id/chucker"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Chucker" />

            <Button
                android:id="@+id/openChucker"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Open Chucker"
                android:textAllCaps="false"
                android:visibility="gone"
                tools:visibility="visible" />

            <Button
                android:id="@+id/last10unseen"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Set last 10 as unseen"
                android:textAllCaps="false" />

            <Button
                android:id="@+id/fullSync"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="24dp"
                android:text="Full sync and empty profile"
                android:textAllCaps="false" />

            <Button
                android:id="@+id/clearProfile"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Clear all profile data"
                android:textAllCaps="false" />

            <Button
                android:id="@+id/clearEndpointTimers"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="24dp"
                android:text="Clear endpoint timers (force full sync)"
                android:textAllCaps="false" />

            <Button
                android:id="@+id/rodo"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Duh rodo button"
                android:textAllCaps="false" />

            <Button
                android:id="@+id/removeHomework"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Remove all homework body (null)"
                android:textAllCaps="false" />

            <TextView
                android:id="@+id/cookies"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fontFamily="monospace"
                tools:text="Cookies:\n\nsynergia.librus.pl\n    DZIENNIKSID=L01~1234567890abcdef" />

            <Button
                android:id="@+id/unarchive"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="24dp"
                android:text="Unarchive this profile"
                android:textAllCaps="false" />

            <pl.szczodrzynski.edziennik.utils.TextInputDropDown
                android:id="@+id/profile"
                style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />

            <com.google.android.material.checkbox.MaterialCheckBox
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:checked="@={app.config.archiverEnabled}"
                android:text="Archiver enabled" />

            <com.google.android.material.checkbox.MaterialCheckBox
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:checked="@={app.config.apiAvailabilityCheck}"
                android:text="Availability check enabled" />

            <Button
                android:id="@+id/resetCert"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Reset API signature"
                android:textAllCaps="false" />

            <com.google.android.material.textfield.TextInputLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="8dp">

                <pl.szczodrzynski.edziennik.utils.TextInputKeyboardEdit
                    android:id="@+id/apiKey"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="API Key" />
            </com.google.android.material.textfield.TextInputLayout>

            <Button
                android:id="@+id/disableDebug"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="24dp"
                android:text="Disable Dev Mode"
                android:textAllCaps="false"
                app:backgroundTint="@color/windowBackgroundRed" />

            <Button
                android:id="@+id/rebuildConfig"
                style="@style/Widget.MaterialComponents.Button.OutlinedButton"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:text="Rebuild App.config"
                android:textAllCaps="false" />
        </LinearLayout>
    </ScrollView>
</layout>
