Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.ShoppingList">
<activity android:name=".MainActivity">
<activity android:name=".presentation.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

class AddShopItemUseCase {

fun addShopItem(shopItem: ShopItem){
TODO()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

class DeleteShopItemUseCase {

fun deleteShopItem(shopItem: ShopItem){

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

class EditShopItemUseCase {

fun editShopItem(shopItem: ShopItem){

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

class GetShopItemByIdUseCase {

fun getShopItemById(id: Int): ShopItem{
TODO()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

class GetShopListUseCase {

fun getShopList(): List<ShopItem>{
TODO()
}
}
8 changes: 8 additions & 0 deletions app/src/main/java/com/sumin/shoppinglist/domain/ShopItem.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.sumin.shoppinglist.domain

data class ShopItem(
val id: Int,
val name: String,
val count: Int,
val enabled: Boolean
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.sumin.shoppinglist
package com.sumin.shoppinglist.presentation

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.sumin.shoppinglist.R

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
tools:context=".presentation.MainActivity">

<TextView
android:layout_width="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.10"
ext.kotlin_version = '1.6.21'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed Jun 02 10:57:46 MSK 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading