This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-android/app/build.gradle

60 lines
2.0 KiB
Groovy
Raw Normal View History

2019-12-04 14:11:47 +08:00
apply plugin: 'com.android.application'
android {
2020-08-03 12:02:36 +08:00
compileSdkVersion 30
buildToolsVersion '30.0.1'
2019-12-04 14:11:47 +08:00
defaultConfig {
applicationId "pub.doric.demo"
2021-11-05 17:57:17 +08:00
minSdkVersion 19
2020-08-03 12:02:36 +08:00
targetSdkVersion 30
2019-12-04 14:11:47 +08:00
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
assets.srcDirs = [project.getRootDir().getParent() + "/doric-demo/bundle"]
}
}
2019-12-04 14:11:47 +08:00
}
2021-03-01 18:33:48 +08:00
afterEvaluate {
2021-11-24 14:37:48 +08:00
//buildJSBundle.exec()
2021-03-01 18:33:48 +08:00
}
task buildJSBundle(type: Exec) {
commandLine 'sh', project.getProjectDir().getParent() + "/../bundle.sh"
}
2019-12-04 14:11:47 +08:00
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
2020-06-03 11:51:21 +08:00
implementation "com.google.android.material:material:1.1.0"
if (rootProject.ext.UseWebViewOnly) {
implementation("pub.doric:core:${rootProject.ext.Version}") {
exclude group: 'com.github.penfeizhou', module: 'jsc4a'
}
implementation("pub.doric:devkit:${rootProject.ext.Version}") {
exclude group: 'com.github.penfeizhou', module: 'jsc4a'
}
implementation "pub.doric:jse:${rootProject.ext.Version}"
} else {
implementation("pub.doric:core:${rootProject.ext.Version}")
implementation("pub.doric:devkit:${rootProject.ext.Version}")
}
implementation "com.google.android.material:material:1.1.0"
2020-09-02 18:26:22 +08:00
implementation 'com.github.penfeizhou.android.animation:glide-plugin:2.5.0'
2020-04-03 14:34:56 +08:00
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.github.bumptech.glide:annotations:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
2020-04-03 19:18:51 +08:00
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2020-04-03 14:34:56 +08:00
2021-09-07 20:10:44 +08:00
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
2019-12-04 14:11:47 +08:00
}