Skip to content

Commit a0842ea

Browse files
Update build version and add room db
1 parent 3e2482f commit a0842ea

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
apply plugin: 'com.android.application'
2121

2222
android {
23-
compileSdkVersion 25
24-
buildToolsVersion "24.0.3"
23+
compileSdkVersion 27
24+
buildToolsVersion '25.0.3'
2525
defaultConfig {
2626
applicationId "com.sample"
2727
minSdkVersion 15
28-
targetSdkVersion 25
28+
targetSdkVersion 27
2929
versionCode 1
3030
versionName "1.0"
3131
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -47,8 +47,10 @@ dependencies {
4747
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
4848
exclude group: 'com.android.support', module: 'support-annotations'
4949
})
50-
compile 'com.android.support:appcompat-v7:25.0.0'
50+
compile 'com.android.support:appcompat-v7:27.0.0'
5151
testCompile 'junit:junit:4.12'
5252
compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
53+
compile "android.arch.persistence.room:runtime:1.0.0"
54+
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
5355
debugCompile project(':debug-db')
5456
}

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
buildscript {
2323
repositories {
2424
jcenter()
25+
google()
2526
}
2627
dependencies {
27-
classpath 'com.android.tools.build:gradle:2.2.0'
28+
classpath 'com.android.tools.build:gradle:2.3.3'
2829
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
2930
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
3031

@@ -36,6 +37,7 @@ buildscript {
3637
allprojects {
3738
repositories {
3839
jcenter()
40+
google()
3941
}
4042
}
4143

debug-db/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
apply plugin: 'com.android.library'
2121

2222
android {
23-
compileSdkVersion 25
24-
buildToolsVersion "24.0.3"
23+
compileSdkVersion 27
24+
buildToolsVersion '25.0.3'
2525

2626
defaultConfig {
27-
minSdkVersion 9
28-
targetSdkVersion 25
27+
minSdkVersion 14
28+
targetSdkVersion 27
2929
versionCode 1
3030
versionName "1.0"
3131

@@ -50,6 +50,7 @@ dependencies {
5050
testCompile 'junit:junit:4.12'
5151
compile 'com.google.code.gson:gson:2.8.0'
5252
compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
53+
compile "android.arch.persistence.room:runtime:1.0.0"
5354
}
5455

5556
//apply from: 'debug-db-upload.gradle'

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ distributionBase=GRADLE_USER_HOME
2222
distributionPath=wrapper/dists
2323
zipStoreBase=GRADLE_USER_HOME
2424
zipStorePath=wrapper/dists
25-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
25+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 commit comments

Comments
 (0)