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"
|
|
|
|
minSdkVersion 16
|
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'
|
|
|
|
}
|
|
|
|
}
|
2019-12-23 15:29:38 +08:00
|
|
|
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 {
|
|
|
|
buildJSBundle.exec()
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
2019-12-04 18:58:28 +08:00
|
|
|
implementation "pub.doric:core:${rootProject.ext.Version}"
|
|
|
|
implementation "pub.doric:devkit:${rootProject.ext.Version}"
|
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
|
|
|
|
2020-08-03 12:02:36 +08:00
|
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
|
2019-12-04 14:11:47 +08:00
|
|
|
}
|