mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-18 13:40:41 +08:00
41 lines
1.0 KiB
Groovy
41 lines
1.0 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:$AGP_VERSION"
|
|
// 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 'examples/android-demo/build'
|
|
}
|
|
|
|
project.afterEvaluate {
|
|
delete 'examples/android-demo/src/main/assets'
|
|
copy{
|
|
from "examples/android-demo/res"
|
|
into "examples/android-demo/src/main/assets"
|
|
}
|
|
}
|