Skip to content

Commit

Permalink
Added kotlin support
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil1104 committed Jun 25, 2020
1 parent e0f2bc5 commit 7db0c8c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.72'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
11 changes: 11 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ buildscript {

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 28
Expand All @@ -57,13 +58,23 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

repositories {
mavenCentral()
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.annotation:annotation:1.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.14.2'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.19.1'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.6.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package com.flipkart.okhttpstats.model

0 comments on commit 7db0c8c

Please sign in to comment.