Skip to content

Commit 6fbdfbd

Browse files
committed
dependency added
1 parent 97959bf commit 6fbdfbd

File tree

7 files changed

+55
-2
lines changed

7 files changed

+55
-2
lines changed

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

+40
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'kotlin-kapt'
5+
apply plugin: "androidx.navigation.safeargs"
46

57
android {
68
compileSdkVersion 30
@@ -22,9 +24,16 @@ android {
2224
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2325
}
2426
}
27+
dataBinding{
28+
enabled = true
29+
}
2530
}
2631

2732
dependencies {
33+
34+
35+
36+
2837
implementation fileTree(dir: "libs", include: ["*.jar"])
2938
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
3039
implementation 'androidx.core:core-ktx:1.3.2'
@@ -34,4 +43,35 @@ dependencies {
3443
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
3544
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3645

46+
47+
// retrofit and GSON
48+
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
49+
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
50+
51+
// Kotlin coroutines
52+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1'
53+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.1'
54+
55+
// ViewModel and LiveData
56+
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
57+
58+
59+
60+
61+
62+
// New Material Design
63+
implementation 'com.google.android.material:material:1.1.0-alpha07'
64+
65+
// Kodein Dependency Injection
66+
implementation 'org.kodein.di:kodein-di-generic-jvm:6.2.1'
67+
implementation 'org.kodein.di:kodein-di-framework-android-x:6.2.1'
68+
69+
// Android Room
70+
implementation 'androidx.room:room-runtime:2.1.0-rc01'
71+
implementation 'androidx.room:room-ktx:2.1.0-rc01'
72+
kapt 'androidx.room:room-compiler:2.1.0-rc01'
73+
74+
// Android Navigation Architecture
75+
implementation 'androidx.navigation:navigation-fragment-ktx:2.1.0-alpha05'
76+
implementation 'androidx.navigation:navigation-ui-ktx:2.1.0-alpha05'
3777
}

app/src/main/java/com/project/farmingapp/view/auth/LoginActivity.kt

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ class LoginActivity : AppCompatActivity() {
88
override fun onCreate(savedInstanceState: Bundle?) {
99
super.onCreate(savedInstanceState)
1010
setContentView(R.layout.activity_login)
11+
12+
1113
}
1214
}

build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9+
910
classpath "com.android.tools.build:gradle:4.0.1"
1011
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1112

1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files
15+
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha05"
1416
}
1517
}
1618

gradle.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ android.useAndroidX=true
1818
# Automatically convert third-party libraries to use AndroidX
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
21-
kotlin.code.style=official
21+
kotlin.code.style=official
22+
android.databinding.enableV2=true

0 commit comments

Comments
 (0)