update commandline tool

This commit is contained in:
pengfei.zhou
2020-04-11 15:05:27 +08:00
committed by osborn
parent 34ff0ea7d9
commit ee864620c1
4 changed files with 21 additions and 6 deletions

View File

@@ -1,5 +1,12 @@
import groovy.json.JsonSlurper
apply plugin: 'com.android.application'
def model = new JsonSlurper().parse(new File(project.rootDir.getParent() + File.separator + "package.json"))
def doricSDKVersion = model.dependencies.doric.replace("^", "")
println("Doric Version:" + doricSDKVersion)
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
@@ -28,8 +35,8 @@ android {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "pub.doric:core:__$Version__"
debugImplementation "pub.doric:devkit:__$Version__"
implementation "pub.doric:core:$doricSDKVersion"
debugImplementation "pub.doric:devkit:$doricSDKVersion"
}
}