You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
legado/app/build.gradle

91 lines
2.7 KiB

6 years ago
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
6 years ago
apply plugin: 'kotlin-kapt'
6 years ago
6 years ago
androidExtensions {
experimental = true
}
6 years ago
android {
compileSdkVersion 28
defaultConfig {
6 years ago
applicationId "io.legado.app"
6 years ago
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
6 years ago
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
6 years ago
}
kotlin{
experimental{
coroutines "enable"
}
}
6 years ago
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
6 years ago
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
6 years ago
implementation 'androidx.core:core-ktx:1.0.2'
6 years ago
implementation 'androidx.appcompat:appcompat:1.0.2'
6 years ago
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
6 years ago
6 years ago
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
6 years ago
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
kapt 'androidx.lifecycle:lifecycle-compiler:2.0.0'
implementation 'androidx.room:room-runtime:2.0.0'
kapt 'androidx.room:room-compiler:2.0.0'
6 years ago
implementation 'androidx.paging:paging-runtime:2.1.0'
//anko
6 years ago
def anko_version = '0.10.8'
implementation "org.jetbrains.anko:anko-sdk27:$anko_version"
implementation "org.jetbrains.anko:anko-sdk27-listeners:$anko_version"
//协程
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
//规则相关
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.jsoup:jsoup:1.12.1'
// implementation 'org.apache.commons:commons-text:1.6'
// Default json parser for jsonpath
implementation 'net.minidev:json-smart:2.3'
// implementation 'com.jayway.jsonpath:json-path:2.4.0'
//Retrofit
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.0'//
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
6 years ago
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}