mirror of
				https://github.com/SimpleMobileTools/Simple-Calendar.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	lets add Kotlin
This commit is contained in:
		| @@ -1,5 +1,7 @@ | |||||||
| apply plugin: 'com.android.application' | apply plugin: 'com.android.application' | ||||||
| apply plugin: 'android-apt' | apply plugin: 'android-apt' | ||||||
|  | apply plugin: 'kotlin-android' | ||||||
|  | apply plugin: 'kotlin-android-extensions' | ||||||
|  |  | ||||||
| android { | android { | ||||||
|     compileSdkVersion 23 |     compileSdkVersion 23 | ||||||
| @@ -24,6 +26,10 @@ android { | |||||||
|             signingConfig signingConfigs.release |             signingConfig signingConfigs.release | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     sourceSets { | ||||||
|  |         main.java.srcDirs += 'src/main/kotlin' | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
| @@ -35,10 +41,27 @@ dependencies { | |||||||
|     compile 'com.jakewharton:butterknife:8.0.1' |     compile 'com.jakewharton:butterknife:8.0.1' | ||||||
|     compile 'com.github.yukuku:ambilwarna:2.0.1' |     compile 'com.github.yukuku:ambilwarna:2.0.1' | ||||||
|     compile 'com.facebook.stetho:stetho:1.4.1' |     compile 'com.facebook.stetho:stetho:1.4.1' | ||||||
|  |     compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | ||||||
|  |  | ||||||
|     apt 'com.jakewharton:butterknife-compiler:8.0.1' |     apt 'com.jakewharton:butterknife-compiler:8.0.1' | ||||||
| } | } | ||||||
|  |  | ||||||
|  | repositories { | ||||||
|  |     mavenCentral() | ||||||
|  | } | ||||||
|  |  | ||||||
|  | buildscript { | ||||||
|  |     ext.kotlin_version = '1.0.3' | ||||||
|  |     repositories { | ||||||
|  |         mavenCentral() | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     dependencies { | ||||||
|  |         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||||||
|  |         classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
| def Properties props = new Properties() | def Properties props = new Properties() | ||||||
| def propFile = new File('signing.properties') | def propFile = new File('signing.properties') | ||||||
| if (propFile.canRead()) { | if (propFile.canRead()) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user