Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LifeLogger
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
LifeLogger
Commits
df453a19
Unverified
Commit
df453a19
authored
Feb 17, 2019
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Use gradle variables
parent
37a573e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
build.gradle
app/build.gradle
+14
-8
build.gradle
build.gradle
+2
-2
No files found.
app/build.gradle
View file @
df453a19
...
...
@@ -39,10 +39,15 @@ android {
}
}
ext
{
roomVersion
=
'1.1.1'
archLifecycleVersion
=
'1.1.1'
}
dependencies
{
// region Kotlin
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin
_v
ersion"
kapt
"android.arch.lifecycle:compiler:
1.1.1
"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin
V
ersion"
kapt
"android.arch.lifecycle:compiler:
$archLifecycleVersion
"
// endregion
// region Support Library
...
...
@@ -52,17 +57,18 @@ dependencies {
// endregion
// region ViewModel and LiveData
implementation
"android.arch.lifecycle:extensions:1.1.1"
implementation
"android.arch.lifecycle:extensions:$archLifecycleVersion"
kapt
"android.arch.lifecycle:compiler:$archLifecycleVersion"
// alternatively, just ViewModel
//implementation "android.arch.lifecycle:viewmodel:
1.1.0
"
//implementation "android.arch.lifecycle:viewmodel:
$archLifecycleVersion
"
// alternatively, just LiveData
//implementation "android.arch.lifecycle:livedata:
1.1.0
"
//implementation "android.arch.lifecycle:livedata:
$archLifecycleVersion
"
// endregion
// region Jetpack / Developer Experience
// Room
implementation
"android.arch.persistence.room:runtime:
1.1.1
"
kapt
"android.arch.persistence.room:compiler:
1.1.1
"
implementation
"android.arch.persistence.room:runtime:
$roomVersion
"
kapt
"android.arch.persistence.room:compiler:
$roomVersion
"
// Paging
implementation
"android.arch.paging:runtime:1.0.1"
...
...
@@ -79,6 +85,6 @@ dependencies {
testImplementation
"android.arch.core:core-testing:1.1.1"
// Test helpers for Room
testImplementation
"android.arch.persistence.room:testing:
1.1.1
"
testImplementation
"android.arch.persistence.room:testing:
$roomVersion
"
// endregion
}
build.gradle
View file @
df453a19
...
...
@@ -18,14 +18,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
{
ext
.
kotlin
_v
ersion
=
'1.3.0'
ext
.
kotlin
V
ersion
=
'1.3.0'
repositories
{
google
()
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.3.1'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin
_v
ersion"
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin
V
ersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment