mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-22 08:46:09 +08:00
41 lines
1.1 KiB
Groovy
41 lines
1.1 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
configurations.all {
|
|
resolutionStrategy.cacheChangingModulesFor 1, 'seconds'
|
|
resolutionStrategy.cacheDynamicVersionsFor 1, 'seconds'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
configurations.all {
|
|
resolutionStrategy.cacheChangingModulesFor 1, 'seconds'
|
|
resolutionStrategy.cacheDynamicVersionsFor 1, 'seconds'
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
project.afterEvaluate {
|
|
delete 'framework/js/examples/android-demo/src/main/assets'
|
|
copy{
|
|
from "framework/js/examples/android-demo/res"
|
|
into "framework/js/examples/android-demo/src/main/assets"
|
|
}
|
|
}
|