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-cli/assets-lib/android/build.gradle

47 lines
896 B
Groovy
Raw Normal View History

2021-08-04 15:32:19 +08:00
import groovy.json.JsonSlurper
def model = new JsonSlurper().parse(new File(project.getProjectDir().parent + File.separator + "package.json"))
2022-07-13 16:36:54 +08:00
def doricSDKVersion = model.peerDependencies.doric.replace("^", "").replace(">=","")
2021-08-04 15:32:19 +08:00
println("Doric Version:" + doricSDKVersion)
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
2022-08-04 16:02:27 +08:00
classpath 'com.android.tools.build:gradle:4.0.2'
2021-08-04 15:32:19 +08:00
}
}
rootProject.allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 29
sourceSets {
main.assets.srcDirs += "../dist"
}
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
}
dependencies {
api "pub.doric:core:$doricSDKVersion"
}