Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77d590d

Browse files
committed
Add kotlin to app gradle file
1 parent db443b9 commit 77d590d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

magic/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'kotlin-android'
23
apply plugin: "maven-publish"
34
apply plugin: 'com.jfrog.bintray'
45
apply plugin: 'com.github.dcendents.android-maven'
@@ -23,6 +24,9 @@ android {
2324
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2425
}
2526
}
27+
sourceSets {
28+
main.java.srcDirs += 'src/main/kotlin'
29+
}
2630
}
2731

2832
install {
@@ -105,4 +109,8 @@ dependencies {
105109
compile fileTree(dir: 'libs', include: ['*.jar'])
106110
testCompile 'junit:junit:4.12'
107111
compile 'com.android.support:appcompat-v7:23.1.1'
112+
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
113+
}
114+
repositories {
115+
mavenCentral()
108116
}

0 commit comments

Comments
 (0)