Skip to content

Commit

Permalink
Adding required dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Shobhith45 committed Apr 4, 2023
1 parent ba41610 commit 5a8dd14
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
24 changes: 24 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
}

android {
Expand Down Expand Up @@ -31,4 +32,27 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

//retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava3:$retrofit_version"
implementation("com.squareup.okhttp3:logging-interceptor:4.10.0")

//Glide
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"

//lifecycle
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version")
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycle_version")
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version")

//Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version")

//koin
implementation "io.insert-koin:koin-android:$coin_version"
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
android:theme="@style/Theme.ATVProductsApp"
android:banner="@mipmap/ic_launcher">
<activity
android:name=".HomeActivity"
android:name=".home.presentation.ui.HomeActivity"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.shobhith.atvproductsapp
package com.shobhith.atvproductsapp.home.presentation.ui

import android.os.Bundle
import androidx.fragment.app.FragmentActivity
import com.shobhith.atvproductsapp.R

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

</androidx.constraintlayout.widget.ConstraintLayout>
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
lifecycle_version = '2.5.1'
glide_version = '4.15.0'
lifecycle_version = '2.5.1'
coroutine_version = '1.6.4'
coin_version = '3.4.0'
retrofit_version = '2.9.0'
}
}
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
Expand Down

0 comments on commit 5a8dd14

Please sign in to comment.