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/target/android/app/build.gradle

43 lines
1.1 KiB
Groovy
Raw Normal View History

2019-12-05 20:52:38 +08:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "pub.doric.example"
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'
}
}
sourceSets {
main {
2019-12-23 17:59:19 +08:00
assets.srcDirs = [project.getRootDir().getParent() + "/js/bundle"]
2019-12-05 20:52:38 +08:00
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "pub.doric:core:0.2.0"
debugImplementation "pub.doric:core:0.2.0"
2019-12-05 20:52:38 +08:00
}
2019-12-06 10:15:55 +08:00
}
afterEvaluate {
buildJSBundle.exec()
}
task buildJSBundle(type: Exec) {
workingDir project.rootDir.getParent() + "/js"
commandLine 'doric', 'build'
2019-12-05 20:52:38 +08:00
}