File tree 13 files changed +29
-20
lines changed
src/main/java/com/snappymob/kotlincomponents/db
src/main/java/com/snappymob/kotlincomponents/db
src/main/java/com/snappymob/kotlincomponents/db
src/main/java/com/snappymob/kotlincomponents
13 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ apply plugin: 'kotlin-android'
4
4
5
5
apply plugin : ' kotlin-android-extensions'
6
6
7
+ apply plugin : ' kotlin-kapt'
8
+
7
9
ext. support_version = " 27.1.0"
8
10
ext. arch_version = " 1.1.1"
9
11
ext. room_version = " 1.0.0"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ abstract class RepoDao {
21
21
abstract fun insertRepos (repositories : List <Repo >)
22
22
23
23
@Query(" SELECT * FROM Repo "
24
- + " WHERE lower(owner_login) = lower(:arg0 )"
24
+ + " WHERE lower(owner_login) = lower(:owner )"
25
25
+ " ORDER BY stars DESC" )
26
26
abstract fun loadRepositories (owner : String ): LiveData <List <Repo >>
27
27
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.1.3-2 '
4
+ ext. kotlin_version = ' 1.2.31 '
5
5
repositories {
6
6
google()
7
7
jcenter()
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ apply plugin: 'kotlin-android'
4
4
5
5
apply plugin : ' kotlin-android-extensions'
6
6
7
+ apply plugin : ' kotlin-kapt'
8
+
7
9
ext. dagger_version = " 2.11"
8
10
ext. support_version = " 27.1.0"
9
11
ext. arch_version = " 1.1.1"
@@ -50,16 +52,16 @@ dependencies {
50
52
// Room
51
53
implementation " android.arch.persistence.room:runtime:$room_version "
52
54
kapt " android.arch.persistence.room:compiler:$room_version "
53
- compile " android.arch.persistence.room:rxjava2:$room_version "
55
+ implementation " android.arch.persistence.room:rxjava2:$room_version "
54
56
55
57
// Lifecycle
56
58
implementation " android.arch.lifecycle:runtime:$arch_version "
57
59
implementation " android.arch.lifecycle:extensions:$arch_version "
58
60
kapt " android.arch.lifecycle:compiler:$arch_version "
59
61
60
62
// Rx
61
- compile ' io.reactivex.rxjava2:rxandroid:2.0.2'
62
- compile ' io.reactivex.rxjava2:rxkotlin:2.2.0'
63
+ implementation ' io.reactivex.rxjava2:rxandroid:2.0.2'
64
+ implementation ' io.reactivex.rxjava2:rxkotlin:2.2.0'
63
65
64
66
}
65
67
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ abstract class RepoDao {
21
21
abstract fun insertRepos (repositories : List <Repo >)
22
22
23
23
@Query(" SELECT * FROM Repo "
24
- + " WHERE lower(owner_login) = lower(:arg0 )"
24
+ + " WHERE lower(owner_login) = lower(:owner )"
25
25
+ " ORDER BY stars DESC" )
26
26
abstract fun loadRepositories (owner : String ): Flowable <List <Repo >>
27
27
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.1.51 '
4
+ ext. kotlin_version = ' 1.2.31 '
5
5
repositories {
6
6
google()
7
7
jcenter()
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ apply plugin: 'kotlin-android'
4
4
5
5
apply plugin : ' kotlin-android-extensions'
6
6
7
+ apply plugin : ' kotlin-kapt'
8
+
7
9
ext. dagger_version = " 2.15"
8
10
ext. support_version = " 27.1.0"
9
11
ext. arch_version = " 1.1.1"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ abstract class RepoDao {
21
21
abstract fun insertRepos (repositories : List <Repo >)
22
22
23
23
@Query(" SELECT * FROM Repo "
24
- + " WHERE lower(owner_login) = lower(:arg0 )"
24
+ + " WHERE lower(owner_login) = lower(:owner )"
25
25
+ " ORDER BY stars DESC" )
26
26
abstract fun loadRepositories (owner : String ): LiveData <List <Repo >>
27
27
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.1.51 '
4
+ ext. kotlin_version = ' 1.2.31 '
5
5
repositories {
6
6
google()
7
7
jcenter()
Original file line number Diff line number Diff line change @@ -6,17 +6,20 @@ apply plugin: 'kotlin-android-extensions'
6
6
7
7
apply plugin : ' realm-android'
8
8
9
- ext. arch_version = " 1.0.0-beta2"
9
+ apply plugin : ' kotlin-kapt'
10
+
11
+ ext. support_version = " 27.1.0"
12
+ ext. arch_version = " 1.1.1"
10
13
ext. retrofit_version = " 2.3.0"
11
14
12
15
android {
13
- compileSdkVersion 26
14
- buildToolsVersion ' 26 .0.2 '
16
+ compileSdkVersion 27
17
+ buildToolsVersion ' 27 .0.3 '
15
18
defaultConfig {
16
19
// TODO: Update applicationId
17
20
applicationId " com.snappymob.kotlincomponents.realm"
18
21
minSdkVersion 16
19
- targetSdkVersion 26
22
+ targetSdkVersion 27
20
23
versionCode 1
21
24
versionName " 1.0"
22
25
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -32,8 +35,8 @@ android {
32
35
33
36
dependencies {
34
37
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
35
- implementation ' com.android.support:appcompat-v7:26.1.0 '
36
- implementation ' com.android.support:recyclerview-v7:26.1.0 '
38
+ implementation " com.android.support:appcompat-v7:$s upport_version "
39
+ implementation " com.android.support:recyclerview-v7:$s upport_version "
37
40
implementation ' com.android.support.constraint:constraint-layout:1.0.2'
38
41
testImplementation ' junit:junit:4.12'
39
42
androidTestImplementation(' com.android.support.test.espresso:espresso-core:3.0.1' , {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class MainActivity : AppCompatActivity() {
104
104
notifyDataSetChanged()
105
105
}
106
106
107
- override fun onCreateViewHolder (p0 : ViewGroup ? , p1 : Int ): RepoItemViewHolder {
107
+ override fun onCreateViewHolder (p0 : ViewGroup , p1 : Int ): RepoItemViewHolder {
108
108
val textView = TextView (context)
109
109
110
110
return RepoItemViewHolder (textView)
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.1.51 '
4
+ ext. kotlin_version = ' 1.2.31 '
5
5
repositories {
6
6
google()
7
7
jcenter()
8
8
}
9
9
dependencies {
10
- classpath ' com.android.tools.build:gradle:3.0.0-rc1 '
10
+ classpath ' com.android.tools.build:gradle:3.1.0 '
11
11
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
12
12
classpath " io.realm:realm-gradle-plugin:3.7.2"
13
13
// NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 1
- # Sat Sep 09 10:33:57 MYT 2017
1
+ # Sat Mar 31 13:31:25 MYT 2018
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.1 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.4 -all.zip
You can’t perform that action at this time.
0 commit comments