| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // 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:7.0.0'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- google()
- mavenCentral()
- maven { url "https://jitpack.io" }
- }
- gradle.projectsEvaluated {
- tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
- }
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
- ext {
- android = [
- buildTime : getBuildTime(),
- //buildTime : "\""+20241221145454+"\"",
- validDays : "30",
- ]
- }
- String getBuildTime() {
- Date date = new Date();
- String dateStr = "\""+date.format("yyyyMMddHHmmss")+"\"";
- System.out.println("build time:"+dateStr);
- return dateStr;
- }
|