2019-12-04 14:11:47 +08:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 29
|
|
|
|
buildToolsVersion '29.0.2'
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 29
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2019-12-23 15:29:38 +08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2020-02-17 19:59:44 +08:00
|
|
|
assets.srcDirs = [project.getProjectDir().getParentFile().getParent() + "/doric-js/bundle"]
|
2019-12-23 15:29:38 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-04 14:11:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
2020-02-27 18:38:44 +08:00
|
|
|
buildJSBundle.exec()
|
2019-12-04 14:11:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task buildJSBundle(type: Exec) {
|
2019-12-04 14:48:54 +08:00
|
|
|
commandLine 'sh', project.rootDir.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'
|
2019-12-13 14:39:06 +08:00
|
|
|
api 'com.github.penfeizhou:jsc4a:0.1.0'
|
2019-12-04 14:11:47 +08:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.2.2'
|
2020-01-09 10:53:59 +08:00
|
|
|
implementation 'com.github.penfeizhou.android.animation:glide-plugin:1.3.3'
|
2020-02-17 15:16:41 +08:00
|
|
|
implementation 'jp.wasabeef:glide-transformations:4.0.1'
|
2019-12-04 14:11:47 +08:00
|
|
|
implementation "com.google.android.material:material:1.0.0"
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2019-12-09 18:01:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
def nav_version = "2.1.0"
|
|
|
|
|
|
|
|
implementation "androidx.navigation:navigation-fragment:$nav_version"
|
|
|
|
implementation "androidx.navigation:navigation-ui:$nav_version"
|
2020-02-28 14:35:26 +08:00
|
|
|
|
|
|
|
implementation "com.qmuiteam:qmui:1.4.0"
|
2019-12-04 14:11:47 +08:00
|
|
|
}
|
2019-12-09 18:25:45 +08:00
|
|
|
|
2020-02-28 14:35:26 +08:00
|
|
|
//apply from: rootProject.file('scripts/upload.gradle')
|