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