Merge branch 'Frontend_UI' into Frontend
This commit is contained in:
commit
ef8eb6b431
@ -1,9 +1,9 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
kotlinAndroid
|
||||||
id("org.jetbrains.kotlin.android")
|
androidApplication
|
||||||
id("org.jetbrains.kotlin.plugin.serialization") version Version.Kotlin.language
|
jetbrainsKotlinSerialization version Version.Kotlin.language
|
||||||
id("kotlin-kapt")
|
kotlinAnnotationProcessor
|
||||||
id("com.google.dagger.hilt.android") version "2.51.1"
|
id("com.google.dagger.hilt.android").version("2.51.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
val packageName = "ru.myitschool.work"
|
val packageName = "ru.myitschool.work"
|
||||||
@ -24,6 +24,8 @@ android {
|
|||||||
|
|
||||||
buildFeatures.viewBinding = true
|
buildFeatures.viewBinding = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = Version.Kotlin.javaSource
|
sourceCompatibility = Version.Kotlin.javaSource
|
||||||
targetCompatibility = Version.Kotlin.javaSource
|
targetCompatibility = Version.Kotlin.javaSource
|
||||||
@ -35,15 +37,11 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
implementation ("com.squareup.retrofit2:retrofit:2.9.0")
|
||||||
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
implementation ("com.squareup.retrofit2:converter-gson:2.9.0")
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.9.0")
|
implementation ("com.squareup.okhttp3:okhttp:4.9.0")
|
||||||
implementation("com.github.bumptech.glide:glide:4.15.1")
|
implementation ("com.github.bumptech.glide:glide:4.15.1")
|
||||||
implementation("androidx.appcompat:appcompat:1.6.1")
|
kapt ("com.github.bumptech.glide:compiler:4.15.1")
|
||||||
implementation("com.google.android.material:material:1.10.0")
|
|
||||||
implementation("androidx.activity:activity:1.10.0")
|
|
||||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
||||||
kapt("com.github.bumptech.glide:compiler:4.15.1")
|
|
||||||
|
|
||||||
defaultLibrary()
|
defaultLibrary()
|
||||||
|
|
||||||
@ -57,6 +55,7 @@ dependencies {
|
|||||||
implementation(Dependencies.Retrofit.library)
|
implementation(Dependencies.Retrofit.library)
|
||||||
implementation(Dependencies.Retrofit.gsonConverter)
|
implementation(Dependencies.Retrofit.gsonConverter)
|
||||||
|
|
||||||
|
|
||||||
implementation("com.squareup.picasso:picasso:2.8")
|
implementation("com.squareup.picasso:picasso:2.8")
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
|
||||||
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
||||||
@ -76,4 +75,4 @@ dependencies {
|
|||||||
|
|
||||||
kapt {
|
kapt {
|
||||||
correctErrorTypes = true
|
correctErrorTypes = true
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"> <!-- Минимальная и целевая версия SDK по тз (28 и 34) -->
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
|
<!-- Минимальная и целевая версия SDK по тз (28 и 34) -->
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="28"
|
android:minSdkVersion="28"
|
||||||
android:targetSdkVersion="34" />
|
android:targetSdkVersion="34" />
|
||||||
@ -12,20 +14,16 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".App"
|
android:name=".App"
|
||||||
android:allowBackup="false"
|
android:allowBackup="true"
|
||||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||||
android:fullBackupContent="@xml/backup_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
||||||
android:fullBackupOnly="false"
|
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:networkSecurityConfig="@xml/network_security_config"
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.Default"
|
android:theme="@style/Theme.Default"
|
||||||
tools:targetApi="34">
|
tools:targetApi="31">
|
||||||
<activity
|
|
||||||
android:name=".ui.register.RegisterActivity"
|
|
||||||
android:exported="false" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.RootActivity"
|
android:name=".ui.RootActivity"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:gravity="center"
|
android:gravity="bottom"
|
||||||
android:padding="16dp"
|
android:padding="16dp"
|
||||||
android:background="@android:color/white">
|
android:background="@android:color/white">
|
||||||
<!-- Поле для ФИО -->
|
<!-- Поле для ФИО -->
|
||||||
@ -13,6 +13,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Имя Фамилия"
|
android:text="Имя Фамилия"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Фото пользователя -->
|
<!-- Фото пользователя -->
|
||||||
@ -22,7 +23,8 @@
|
|||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@string/photo_description"
|
android:contentDescription="@string/photo_description"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="5dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Поле для должности -->
|
<!-- Поле для должности -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -30,7 +32,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Должность"
|
android:text="Должность"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="5dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Поле для даты последнего входа -->
|
<!-- Поле для даты последнего входа -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -38,32 +41,19 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="2024-02-31 08:31"
|
android:text="2024-02-31 08:31"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="75dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Кнопки -->
|
<!-- Кнопка -->
|
||||||
<Button
|
|
||||||
android:id="@+id/logout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/logout"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/refresh"
|
android:id="@+id/refresh"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:backgroundTint="@color/colorPrimary"
|
|
||||||
android:text="@string/refresh"
|
android:text="@string/refresh"
|
||||||
|
android:backgroundTint="@color/colorPrimary"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:padding="12dp"
|
android:padding="12dp"/>
|
||||||
android:layout_marginBottom="16dp"/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/scan"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/scan_qr_code"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<!-- Поле ошибки -->
|
<!-- Поле ошибки -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -72,5 +62,32 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/error_placeholder"
|
android:text="@string/error_placeholder"
|
||||||
android:textColor="@android:color/holo_red_dark"
|
android:textColor="@android:color/holo_red_dark"
|
||||||
android:visibility="gone" />
|
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<!-- Кнопки -->
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/scan"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/scan_qr_code"
|
||||||
|
android:layout_marginBottom="12dp"
|
||||||
|
android:backgroundTint="@color/colorPrimary"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:padding="12dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/logout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/logout"
|
||||||
|
android:layout_marginBottom="50dp"
|
||||||
|
android:backgroundTint="@color/colorPrimary"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:padding="12dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="close_button">Close</string>
|
<string name="close_button" translatable="false">Close</string>
|
||||||
</resources>
|
</resources>
|
Loading…
x
Reference in New Issue
Block a user