155 lines
4.9 KiB
Groovy
155 lines
4.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 32
|
|
buildToolsVersion "32.0.0"
|
|
|
|
Properties localProperties = new Properties()
|
|
if (project.rootProject.file('local.properties').exists()) {
|
|
localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
}
|
|
|
|
splits {
|
|
abi {
|
|
enable = true
|
|
reset()
|
|
include 'arm64-v8a', 'x86_64', 'armeabi-v7a', 'x86'
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
sign {
|
|
storeFile file(signStoreFile)
|
|
storePassword signStorePassword
|
|
keyAlias signkeyAlias
|
|
keyPassword signkeyPassword
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "moe.tarsin.ehviewer"
|
|
minSdkVersion 31
|
|
targetSdkVersion 32
|
|
versionCode 114526
|
|
versionName "1.7.27.6"
|
|
resConfigs 'zh', 'zh-rCN', 'zh-rHK', 'zh-rTW', 'es', 'ja', 'ko', 'fr', 'de', 'th'
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '11'
|
|
}
|
|
|
|
lint {
|
|
abortOnError true
|
|
checkReleaseBuilds false
|
|
disable 'MissingTranslation'
|
|
}
|
|
|
|
packagingOptions {
|
|
resources {
|
|
excludes += "/META-INF/**"
|
|
excludes += "/kotlin/**"
|
|
excludes += "**.txt"
|
|
excludes += "**.bin"
|
|
}
|
|
}
|
|
|
|
dependenciesInfo.includeInApk false
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles 'proguard-rules.pro'
|
|
signingConfig signingConfigs.sign
|
|
}
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs += 'src/main/java-gen'
|
|
}
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose
|
|
}
|
|
namespace 'com.hippo.ehviewer'
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
task -> task.dependsOn ":daogenerator:executeDaoGenerator"
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.activity:activity:1.4.0'
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
|
implementation 'androidx.biometric:biometric-ktx:1.2.0-alpha04'
|
|
implementation 'androidx.browser:browser:1.4.0'
|
|
implementation 'androidx.core:core:1.7.0'
|
|
implementation 'androidx.fragment:fragment:1.4.1'
|
|
implementation 'androidx.preference:preference:1.2.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01'
|
|
implementation 'androidx.webkit:webkit:1.4.0'
|
|
implementation 'com.drakeet.drawer:drawer:1.0.3'
|
|
implementation 'com.google.android.material:material:1.7.0-alpha02'
|
|
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.3'
|
|
implementation 'com.github.seven332:beerbelly:0.1.4'
|
|
implementation 'com.github.seven332:glgallery:0.1.2'
|
|
implementation 'com.github.seven332:glview:0.1.0'
|
|
implementation 'com.github.seven332:glview-image:0.1.3'
|
|
implementation 'com.github.seven332:streampipe:0.1.0'
|
|
implementation 'com.github.seven332:tuxiang:0.1.6'
|
|
implementation 'com.github.seven332:unifile:9ec57bcd8f'
|
|
implementation 'com.github.seven332:yorozuya-thread:0.1.1'
|
|
implementation 'com.github.seven332:yorozuya-collect:0.1.4'
|
|
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
|
|
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
|
|
implementation 'com.takisoft.preferencex:preferencex:1.1.0'
|
|
implementation 'dev.rikka.rikkax.appcompat:appcompat:1.4.1'
|
|
implementation 'dev.rikka.rikkax.material:material:2.4.0'
|
|
implementation 'dev.rikka.rikkax.preference:simplemenu-preference:1.0.3'
|
|
implementation 'org.ccil.cowan.tagsoup:tagsoup:1.2.1'
|
|
implementation 'org.greenrobot:greendao:3.3.0'
|
|
implementation 'org.jsoup:jsoup:1.15.1'
|
|
implementation projects.native
|
|
|
|
implementation "androidx.compose.material3:material3:1.0.0-alpha12"
|
|
|
|
implementation "androidx.compose.ui:ui:$compose"
|
|
implementation "androidx.compose.ui:ui-util:$compose"
|
|
implementation "androidx.compose.animation:animation-graphics:$compose"
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy {
|
|
force 'com.github.seven332:glgallery:25893283ca'
|
|
force 'com.github.seven332:glview:ba6aee61d7'
|
|
force 'com.github.seven332:glview-image:68d94b0fc2'
|
|
|
|
exclude group: 'com.github.seven332', module: 'okhttp'
|
|
exclude group: 'com.github.seven332', module: 'image'
|
|
exclude group: 'com.github.seven332', module: 'yorozuya'
|
|
exclude group: 'androidx.appcompat', module: 'appcompat'
|
|
}
|
|
}
|