正在显示
2 个修改的文件
包含
51 行增加
和
52 行删除
| 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. | 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. |
| 2 | 2 | ||
| 3 | buildscript { | 3 | buildscript { |
| 4 | - ext { | ||
| 5 | - compose_version = '1.2.0' | ||
| 6 | - compose_compiler_version = '1.2.0' | ||
| 7 | - kotlin_version = '1.7.0' | ||
| 8 | - java_version = JavaVersion.VERSION_1_8 | ||
| 9 | - dokka_version = '1.5.0' | ||
| 10 | - } | 4 | + apply from: 'deps.gradle' |
| 11 | repositories { | 5 | repositories { |
| 12 | google() | 6 | google() |
| 13 | mavenCentral() | 7 | mavenCentral() |
| @@ -43,51 +37,6 @@ nexusStaging { | @@ -43,51 +37,6 @@ nexusStaging { | ||
| 43 | stagingProfileId = "16b57cbf143daa" | 37 | stagingProfileId = "16b57cbf143daa" |
| 44 | } | 38 | } |
| 45 | 39 | ||
| 46 | -ext { | ||
| 47 | - androidSdk = [ | ||
| 48 | - compileVersion: 32, | ||
| 49 | - targetVersion : 32, | ||
| 50 | - minVersion : 21, | ||
| 51 | - ] | ||
| 52 | - versions = [ | ||
| 53 | - androidx_core : "1.8.0", | ||
| 54 | - androidx_lifecycle: "2.5.1", | ||
| 55 | - autoService : '1.0.1', | ||
| 56 | - dagger : "2.43", | ||
| 57 | - groupie : "2.9.0", | ||
| 58 | - junit : "4.13.2", | ||
| 59 | - junitJupiter : "5.5.0", | ||
| 60 | - coroutines : "1.6.0", | ||
| 61 | - lint : "30.0.1", | ||
| 62 | - protobuf : "3.19.4", | ||
| 63 | - ] | ||
| 64 | - generated = [ | ||
| 65 | - protoSrc: "$projectDir/protocol", | ||
| 66 | - ] | ||
| 67 | - deps = [ | ||
| 68 | - auto : [ | ||
| 69 | - 'service' : "com.google.auto.service:auto-service:${versions.autoService}", | ||
| 70 | - 'serviceAnnotations': "com.google.auto.service:auto-service-annotations:${versions.autoService}", | ||
| 71 | - ], | ||
| 72 | - coroutines : [ | ||
| 73 | - "lib" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}", | ||
| 74 | - "test": "org.jetbrains.kotlinx:kotlinx-coroutines-test: ${versions.coroutines}", | ||
| 75 | - ], | ||
| 76 | - timber : "com.github.ajalt:timberkt:1.5.1", | ||
| 77 | - // lint | ||
| 78 | - lint : "com.android.tools.lint:lint:${versions.lint}", | ||
| 79 | - lintApi : "com.android.tools.lint:lint-api:${versions.lint}", | ||
| 80 | - lintChecks : "com.android.tools.lint:lint-checks:${versions.lint}", | ||
| 81 | - lintTests : "com.android.tools.lint:lint-tests:${versions.lint}", | ||
| 82 | - | ||
| 83 | - // tests | ||
| 84 | - junit : "junit:junit:${versions.junit}", | ||
| 85 | - junitJupiterApi : "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}", | ||
| 86 | - junitJupiterEngine: "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}", | ||
| 87 | - ] | ||
| 88 | - annotations = [ | ||
| 89 | - ] | ||
| 90 | -} | ||
| 91 | afterEvaluate { | 40 | afterEvaluate { |
| 92 | // These aren't supported for snapshots. From nexus staging plugin. | 41 | // These aren't supported for snapshots. From nexus staging plugin. |
| 93 | if (VERSION_NAME.contains("SNAPSHOT")) { | 42 | if (VERSION_NAME.contains("SNAPSHOT")) { |
deps.gradle
0 → 100644
| 1 | +ext { | ||
| 2 | + compose_version = '1.2.1' | ||
| 3 | + compose_compiler_version = '1.3.0' | ||
| 4 | + kotlin_version = '1.7.10' | ||
| 5 | + java_version = JavaVersion.VERSION_1_8 | ||
| 6 | + dokka_version = '1.5.0' | ||
| 7 | + androidSdk = [ | ||
| 8 | + compileVersion: 32, | ||
| 9 | + targetVersion : 32, | ||
| 10 | + minVersion : 21, | ||
| 11 | + ] | ||
| 12 | + versions = [ | ||
| 13 | + androidx_core : "1.8.0", | ||
| 14 | + androidx_lifecycle: "2.5.1", | ||
| 15 | + autoService : '1.0.1', | ||
| 16 | + dagger : "2.43", | ||
| 17 | + groupie : "2.9.0", | ||
| 18 | + junit : "4.13.2", | ||
| 19 | + junitJupiter : "5.5.0", | ||
| 20 | + coroutines : "1.6.0", | ||
| 21 | + lint : "30.0.1", | ||
| 22 | + protobuf : "3.19.4", | ||
| 23 | + ] | ||
| 24 | + generated = [ | ||
| 25 | + protoSrc: "$projectDir/protocol", | ||
| 26 | + ] | ||
| 27 | + deps = [ | ||
| 28 | + auto : [ | ||
| 29 | + 'service' : "com.google.auto.service:auto-service:${versions.autoService}", | ||
| 30 | + 'serviceAnnotations': "com.google.auto.service:auto-service-annotations:${versions.autoService}", | ||
| 31 | + ], | ||
| 32 | + coroutines : [ | ||
| 33 | + "lib" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}", | ||
| 34 | + "test": "org.jetbrains.kotlinx:kotlinx-coroutines-test: ${versions.coroutines}", | ||
| 35 | + ], | ||
| 36 | + timber : "com.github.ajalt:timberkt:1.5.1", | ||
| 37 | + // lint | ||
| 38 | + lint : "com.android.tools.lint:lint:${versions.lint}", | ||
| 39 | + lintApi : "com.android.tools.lint:lint-api:${versions.lint}", | ||
| 40 | + lintChecks : "com.android.tools.lint:lint-checks:${versions.lint}", | ||
| 41 | + lintTests : "com.android.tools.lint:lint-tests:${versions.lint}", | ||
| 42 | + | ||
| 43 | + // tests | ||
| 44 | + junit : "junit:junit:${versions.junit}", | ||
| 45 | + junitJupiterApi : "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}", | ||
| 46 | + junitJupiterEngine: "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}", | ||
| 47 | + ] | ||
| 48 | + annotations = [ | ||
| 49 | + ] | ||
| 50 | +} |
-
请 注册 或 登录 后发表评论