-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efbb0ce
commit 0d48d59
Showing
5 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.iml | ||
.gradle | ||
/.idea | ||
/build | ||
gradle.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* A holder of all the versions. | ||
*/ | ||
object Versions { | ||
|
||
// Build Config | ||
const val minSDK = 15 | ||
const val compileSDK = 26 | ||
const val targetSDK = 27 | ||
const val buildTools = "27.0.3" | ||
|
||
// App version | ||
const val versionCode = 2 | ||
const val versionName = "2.8.0" | ||
|
||
// Plugins | ||
const val androidGradlePlugin = "3.0.1" | ||
|
||
// Dependencies | ||
const val kotlin = "1.2.30" | ||
const val support = "27.1.0" | ||
const val constraintLayout = "1.0.2" | ||
const val lifecycle = "1.1.0" | ||
const val room = "1.0.0" | ||
const val retrofit = "2.3.0" | ||
const val gson = "2.8.2" | ||
const val okHttp = "3.10.0" | ||
|
||
// Testing | ||
const val junit = "4.12" | ||
const val espresso = "2.2.2" | ||
const val debugDb = "1.0.1" | ||
} | ||
|
||
/** | ||
* A holder of all the dependencies required by the app. | ||
*/ | ||
object Deps { | ||
// Kotlin | ||
const val kotlin = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.kotlin}" | ||
const val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}" | ||
|
||
// Support Library | ||
const val appCompat = "com.android.support:appcompat-v7:${Versions.support}" | ||
const val recyclerView = "com.android.support:recyclerview-v7:${Versions.support}" | ||
const val constraintLayout = "com.android.support.constraint:constraint-layout:${Versions.constraintLayout}" | ||
|
||
// Architecture Components | ||
const val lifecycle = "android.arch.lifecycle:extensions:${Versions.lifecycle}" | ||
const val lifecycleCompiler = "android.arch.lifecycle:compiler:${Versions.lifecycle}" | ||
const val coreTesting = "android.arch.core:core-testing:${Versions.lifecycle}" | ||
// Room | ||
const val room = "android.arch.persistence.room:runtime:${Versions.room}" | ||
const val roomCompiler = "android.arch.persistence.room:compiler:${Versions.room}" | ||
const val roomTesting = "android.arch.persistence.room:testing:${Versions.room}" | ||
|
||
// Retrofit | ||
const val retrofit = "com.squareup.retrofit2:retrofit:${Versions.retrofit}" | ||
const val retrofitGsonConverter = "com.squareup.retrofit2:converter-gson:${Versions.retrofit}" | ||
const val gson = "com.google.code.gson:gson:${Versions.gson}" | ||
const val mockWebServer = "com.squareup.okhttp3:mockwebserver:${Versions.okHttp}" | ||
|
||
// Testing | ||
const val junit = "junit:junit:{${Versions.junit}" | ||
const val espresso = "com.android.support.test.espresso:espresso-core:${Versions.espresso}" | ||
const val debugDb = "com.amitshekhar.android:debug-db:${Versions.debugDb}" | ||
|
||
|
||
// Android Gradle Plugin | ||
const val androidGradlePlugin = "com.android.tools.build:gradle:${Versions.androidGradlePlugin}" | ||
|
||
} |