GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: add kotlin dependencies · ridermoth/RxJava-Android-Samples@743f24c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app
    • build.gradle
  • build.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/build.gradle‎

Copy file name to clipboardExpand all lines: app/build.gradle
+12-8Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ buildscript {
88
// can be removed with android-gradle plugin is upgraded to 2.2
99
// https://twitter.com/JakeWharton/status/760836175586267136
1010
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
11+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
1112
}
1213

1314
// Exclude the lombok version that the android plugin depends on.
@@ -16,13 +17,7 @@ buildscript {
1617

1718
apply plugin: 'com.android.application'
1819
apply plugin: 'me.tatarka.retrolambda'
19-
20-
ext {
21-
okhttpVersion = "3.0.1"
22-
retrofitVersion = "2.0.0"
23-
sdkVersion = 24
24-
supportLibVersion = "24.2.1"
25-
}
20+
apply plugin: 'kotlin-android'
2621

2722
dependencies {
2823
compile "com.android.support:support-v13:${supportLibVersion}"
@@ -38,6 +33,9 @@ dependencies {
3833
compile "com.squareup.okhttp3:okhttp-urlconnection:${okhttpVersion}"
3934
compile 'com.mcxiaoke.volley:library:1.0.19'
4035

36+
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
37+
compile "com.nhaarman:mockito-kotlin:${mockitoKotlinVersion}"
38+
4139
// ----------------------------------
4240
// Rx dependencies
4341

@@ -63,7 +61,7 @@ dependencies {
6361

6462
android {
6563
compileSdkVersion sdkVersion
66-
buildToolsVersion '25.0.0'
64+
buildToolsVersion buildToolsVrs
6765

6866
defaultConfig {
6967
applicationId "com.morihacky.android.rxjava"
@@ -72,12 +70,18 @@ android {
7270
versionCode 2
7371
versionName "1.2"
7472
}
73+
7574
buildTypes {
7675
release {
7776
minifyEnabled true
7877
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7978
}
8079
}
80+
81+
sourceSets {
82+
main.java.srcDirs += 'src/main/kotlin'
83+
}
84+
8185
compileOptions {
8286
sourceCompatibility JavaVersion.VERSION_1_8
8387
targetCompatibility JavaVersion.VERSION_1_8
Collapse file

‎build.gradle‎

Copy file name to clipboardExpand all lines: build.gradle
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ allprojects {
2020
url "https://jitpack.io"
2121
}
2222
}
23+
24+
ext {
25+
okhttpVersion = "3.0.1"
26+
retrofitVersion = "2.0.0"
27+
sdkVersion = 24
28+
buildToolsVrs = "25.0.0"
29+
supportLibVersion = "25.3.1"
30+
kotlinVersion = "1.1.2-4"
31+
mockitoKotlinVersion = "1.4.0"
32+
}
2333
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.