Skip to content

Commit

Permalink
Adding dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dsankovsky committed Nov 12, 2022
1 parent 56c86b5 commit a0e0353
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 7 deletions.
44 changes: 38 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
//Google Secret gradle plugin for storing API key in local.properties
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}

android {
namespace 'com.dsankovsky.exchangerates'
compileSdk 32
compileSdk 33

defaultConfig {
applicationId "com.dsankovsky.exchangerates"
minSdk 26
targetSdk 32
targetSdk 33
versionCode 1
versionName "1.0"

Expand All @@ -24,20 +27,49 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
buildFeatures {
viewBinding true
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
def room_version = "2.4.3"
def dagger_version = "2.43"
def retrofit_version = "2.9.0"
def coroutines_version = "1.6.4"
def lifecycle_version = "2.5.1"

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

//Kotlin Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

//Retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"

//Room
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"

//Dagger 2
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"

//Testing
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1' apply false
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
rootProject.name = "ExchangeRates"
Expand Down

0 comments on commit a0e0353

Please sign in to comment.