commit 08567aee14de7baf4859cd52bbaaaf62229d3d6f Author: YarikHumster Date: Tue Jul 2 22:18:30 2024 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml new file mode 100644 index 0000000..5cc8be8 --- /dev/null +++ b/.idea/appInsightsSettings.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..57b2461 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,120 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b589d56 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000..b268ef3 --- /dev/null +++ b/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..0897082 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..44ca2d9 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,41 @@ + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..fdf8d99 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..8978d23 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle.kts b/app/build.gradle.kts new file mode 100644 index 0000000..f9adeb9 --- /dev/null +++ b/app/build.gradle.kts @@ -0,0 +1,72 @@ +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.jetbrains.kotlin.android) + alias(libs.plugins.google.gms.google.services) +} + +android { + namespace = "com.yaros.sweetshopcooking" + compileSdk = 34 + + defaultConfig { + applicationId = "com.yaros.sweetshopcooking" + minSdk = 24 + targetSdk = 34 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + vectorDrawables { + useSupportLibrary = true + } + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = "1.8" + } + buildFeatures { + compose = true + } + composeOptions { + kotlinCompilerExtensionVersion = "1.5.1" + } + packaging { + resources { + excludes += "/META-INF/{AL2.0,LGPL2.1}" + } + } +} + +dependencies { + + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.androidx.activity.compose) + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.ui) + implementation(libs.androidx.ui.graphics) + implementation(libs.androidx.ui.tooling.preview) + implementation(libs.androidx.material3) + implementation(libs.firebase.database) + implementation(libs.firebase.firestore.ktx) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) + androidTestImplementation(platform(libs.androidx.compose.bom)) + androidTestImplementation(libs.androidx.ui.test.junit4) + debugImplementation(libs.androidx.ui.tooling) + debugImplementation(libs.androidx.ui.test.manifest) +} \ No newline at end of file diff --git a/app/google-services.json b/app/google-services.json new file mode 100644 index 0000000..6480094 --- /dev/null +++ b/app/google-services.json @@ -0,0 +1,49 @@ +{ + "project_info": { + "project_number": "196968989683", + "firebase_url": "https://sweetshopviki-default-rtdb.europe-west1.firebasedatabase.app", + "project_id": "sweetshopviki", + "storage_bucket": "sweetshopviki.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:196968989683:android:4849c3d383443d7f7e0886", + "android_client_info": { + "package_name": "com.yaros.sweetshopcooking" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyBO4bIOLwDFly-tUmI9mbPtW37RDmf3FEQ" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:196968989683:android:40a8cee7ccf184d17e0886", + "android_client_info": { + "package_name": "com.yaros.sweetshopviki" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyBO4bIOLwDFly-tUmI9mbPtW37RDmf3FEQ" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/app/src/androidTest/java/com/yaros/sweetshopcooking/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/yaros/sweetshopcooking/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..8dd7cac --- /dev/null +++ b/app/src/androidTest/java/com/yaros/sweetshopcooking/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.yaros.sweetshopcooking + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.yaros.sweetshopcooking", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..272c4c1 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png new file mode 100644 index 0000000..7153df4 Binary files /dev/null and b/app/src/main/ic_launcher-playstore.png differ diff --git a/app/src/main/java/com/yaros/sweetshopcooking/MainActivity.kt b/app/src/main/java/com/yaros/sweetshopcooking/MainActivity.kt new file mode 100644 index 0000000..7219e39 --- /dev/null +++ b/app/src/main/java/com/yaros/sweetshopcooking/MainActivity.kt @@ -0,0 +1,180 @@ +package com.yaros.sweetshopcooking + +import android.os.Bundle +import android.util.Log +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.* +import androidx.compose.material3.Button +import androidx.compose.material3.Card +import androidx.compose.material3.CardDefaults +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Scaffold +import androidx.compose.material3.Text +import androidx.compose.runtime.* +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import com.google.firebase.database.* +import com.google.firebase.database.ktx.database +import com.google.firebase.firestore.FirebaseFirestore +import com.google.firebase.ktx.Firebase +import com.yaros.sweetshopcooking.ui.theme.SweetShopCookingTheme +import java.text.SimpleDateFormat +import java.util.Date +import java.util.Locale + +class MainActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + Firebase.database.setPersistenceEnabled(true) + val database = Firebase.database.reference + val orders = mutableStateListOf() + + setContent { + SweetShopCookingTheme { + Scaffold( + modifier = Modifier.fillMaxSize() + ) { padding -> + OrderList( + orders = orders, + modifier = Modifier.padding(padding) + ) + } + } + } + val databaseReference = database.child("user_baskets") + databaseReference.addValueEventListener(object : ValueEventListener { + override fun onDataChange(snapshot: DataSnapshot) { + orders.clear() + snapshot.children.forEach { userBasketSnapshot -> + val userId = userBasketSnapshot.child("userId").value as String? + val timestamp = userBasketSnapshot.child("timestamp").value as Long? + val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) + val readableDate = dateFormat.format(Date(timestamp ?: 0L)) + + val products = mutableListOf() + userBasketSnapshot.child("products").children.forEach { productSnapshot -> + val count = productSnapshot.child("count").getValue(Int::class.java) ?: 0 + val price = productSnapshot.child("price").getValue(Double::class.java) ?: 0.0 + val productName = productSnapshot.child("productName").getValue(String::class.java) ?: "" + + products.add(Product(productName, count, price)) + } + + // Получаем имя пользователя из Firestore: + if (userId != null) { + FirebaseFirestore.getInstance().collection("users").document(userId).get() + .addOnSuccessListener { document -> + val userName = document.getString("username") ?: "Unknown User" + // Создаем объект заказа с полученным именем пользователя + val order = Order(userBasketSnapshot.key, userName, readableDate, products) + order.userName = userName + orders.add(order) + } + .addOnFailureListener { e -> + Log.e("Firestore Error", "Error fetching user details: ${e.message}") + // Можно даже добавить заказ без имени пользователя: + val order = Order(userBasketSnapshot.key, userId, readableDate, products) + orders.add(order) + } + } else { + val order = Order(userBasketSnapshot.key, "Unknown", readableDate, products) + orders.add(order) + } + } + } + + override fun onCancelled(databaseError: DatabaseError) { + Log.e("Database Error", databaseError.message) + } + }) + } +} + +@Composable +fun OrderList(orders: List, modifier: Modifier = Modifier) { + Column(modifier = modifier.padding(8.dp)) { + orders.forEach { order -> + OrderCard(order = order) + } + } +} + +@Composable +fun OrderCard(order: Order) { + var expanded by remember { mutableStateOf(false) } + Card( + modifier = Modifier + .fillMaxWidth() + .padding(8.dp) + .clickable { expanded = !expanded }, + elevation = CardDefaults.cardElevation( + defaultElevation = 8.dp + ) + ) { + Column(modifier = Modifier.padding(16.dp)) { + Text(text = stringResource(id = R.string.UserID) + order.userName, style = MaterialTheme.typography.bodyMedium) + Text(text = stringResource(id = R.string.Time) + order.readableDate) + if (expanded) { + order.products.forEach { product -> + ProductDetails(product) + } + RemoveButton(order) + } + } + } +} + +@Composable +fun ProductDetails(product: Product) { + Column { + Text( + text = "Продукт: ${product.productName}", + style = MaterialTheme.typography.bodyMedium, + color = Color.Black, + textAlign = TextAlign.Left + ) + Text( + text = "Количество: ${product.count}", + style = MaterialTheme.typography.bodyMedium, + color = Color.Black, + textAlign = TextAlign.Left + ) + Text( + text = "Стоимость: ${product.price} руб.", + style = MaterialTheme.typography.bodySmall, + color = Color.Gray, + textAlign = TextAlign.Left + ) + Spacer(modifier = Modifier.height(8.dp)) + } +} + +@Composable +fun RemoveButton(order: Order) { + Button(onClick = { + order.key.let { key -> + Firebase.database.reference.child("user_baskets").child(key!!).removeValue() + } + }) { + Text(text = stringResource(id = R.string.Mark)) + } +} + +data class Order( + var key: String? = null, + var userName: String? = null, + val readableDate: String, + var products: List +) + +data class Product( + val productName: String, + val count: Int, + val price: Double +) \ No newline at end of file diff --git a/app/src/main/java/com/yaros/sweetshopcooking/SpleshScreen.kt b/app/src/main/java/com/yaros/sweetshopcooking/SpleshScreen.kt new file mode 100644 index 0000000..ed70b13 --- /dev/null +++ b/app/src/main/java/com/yaros/sweetshopcooking/SpleshScreen.kt @@ -0,0 +1,77 @@ +package com.yaros.sweetshopcooking + +import android.annotation.SuppressLint +import android.content.Intent +import android.os.Bundle +import android.os.Handler +import android.os.Looper +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.compose.foundation.Image +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.* +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.res.painterResource +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp + +@SuppressLint("CustomSplashScreen") +class SplashActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContent { CustomSplashScreen() } + + Handler(Looper.getMainLooper()).postDelayed({ + startActivity(Intent(this, MainActivity::class.java)) + finish() + }, 3000) // Задержка в 3 секунды + } +} + +@Composable +fun CustomSplashScreen() { + Box( + modifier = Modifier + .fillMaxSize() + .background(Color.hsl(335f, 0.9f, 0.88f)), + contentAlignment = Alignment.Center + ) { + Column(horizontalAlignment = Alignment.CenterHorizontally) { + Text( + text = "Для поваров", + style = MaterialTheme.typography.bodyMedium.copy( + fontSize = 24.sp, + fontWeight = FontWeight.Bold, + ) + ) + Spacer(modifier = Modifier.height(16.dp)) + Image( + painter = painterResource(id = R.mipmap.ic_launcher_foreground), + contentDescription = "App Icon", + modifier = Modifier.size(400.dp) + ) + Spacer(modifier = Modifier.height(16.dp)) + Text( + text = "Кондитерской Вики", + style = MaterialTheme.typography.bodyMedium.copy( + fontSize = 24.sp, + fontWeight = FontWeight.Bold, + ) + ) + } + } +} + +@Preview(showBackground = true) +@Composable +fun DefaultPreview() { + CustomSplashScreen() +} + diff --git a/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Color.kt b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Color.kt new file mode 100644 index 0000000..40f57b9 --- /dev/null +++ b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.yaros.sweetshopcooking.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) diff --git a/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Theme.kt b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Theme.kt new file mode 100644 index 0000000..f6df0a3 --- /dev/null +++ b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Theme.kt @@ -0,0 +1,57 @@ +package com.yaros.sweetshopcooking.ui.theme + +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun SweetShopCookingTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Type.kt b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Type.kt new file mode 100644 index 0000000..5265816 --- /dev/null +++ b/app/src/main/java/com/yaros/sweetshopcooking/ui/theme/Type.kt @@ -0,0 +1,34 @@ +package com.yaros.sweetshopcooking.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + /* Other default text styles to override + titleLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 22.sp, + lineHeight = 28.sp, + letterSpacing = 0.sp + ), + labelSmall = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Medium, + fontSize = 11.sp, + lineHeight = 16.sp, + letterSpacing = 0.5.sp + ) + */ +) \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..ca3826a --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..c4a603d --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..c4a603d --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..dff63a0 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp new file mode 100644 index 0000000..11d9ef1 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..410c2f1 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..f68c82a Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp new file mode 100644 index 0000000..5829010 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..0ef4328 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..7eea02c Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp new file mode 100644 index 0000000..9d3c819 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..790b957 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..818232a Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp new file mode 100644 index 0000000..7c354a7 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..5c0bd24 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..46a6516 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp new file mode 100644 index 0000000..be01dcf Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..a957182 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml new file mode 100644 index 0000000..a879442 --- /dev/null +++ b/app/src/main/res/values-ru/strings.xml @@ -0,0 +1,9 @@ + + + Имя: + Количество + Продукт + Цена + Сделано + Время: + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..f8c6127 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..b6b0437 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,9 @@ + + SweetShopCooking + "Name: " + "Count: " + "Product: " + "Price: " + Mark as Done + "Time: " + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..06be958 --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,5 @@ + + + +