@@ -6,7 +6,7 @@ buildscript {
66
77 repositories repos
88 dependencies {
9- classpath ' com.android.tools.build:gradle:7.4 .1'
9+ classpath ' com.android.tools.build:gradle:8.13 .1'
1010 }
1111}
1212
@@ -18,15 +18,68 @@ ext {
1818 androidxTestUiAutomatorVersion = ' 2.2.0'
1919 androidxTestExtJunitVersion = ' 1.1.4'
2020 mockitoVersion = ' 4.9.0'
21- byteBuddyVersion = ' 1.14.5 '
21+ byteBuddyVersion = ' 1.18.1 '
2222
2323}
2424
25- allprojects {
26- repositories {
27- google()
28- jcenter()
25+ def buildProjects () {
26+ subprojects. findAll { new File (it. projectDir, ' build.gradle' ). file }
27+ }
28+
29+ def androidApplicationProjects () {
30+ subprojects. findAll { it. name. endsWith(" app" )}
31+ }
32+
33+ def androidLibraryProjects () {
34+ buildProjects(). findAll { ! androidApplicationProjects(). contains(it)}
35+ }
36+
37+ configure(androidLibraryProjects()) {
38+ apply plugin : ' com.android.library'
39+ }
40+
41+ configure(androidApplicationProjects()) {
42+ apply plugin : ' com.android.application'
43+ }
44+
45+
46+ configure(buildProjects()) {
47+ repositories repos
48+
49+ android {
50+
51+ compileSdkVersion 33
52+
53+ defaultConfig {
54+ minSdkVersion 19
55+ targetSdkVersion 33
56+ }
57+
58+ testOptions {
59+ unitTests {
60+ returnDefaultValues = true
61+ }
62+ }
63+
64+ buildTypes {
65+ release {
66+ minifyEnabled false
67+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
68+ }
69+ }
70+
71+
72+ compileOptions {
73+ sourceCompatibility JavaVersion . VERSION_11
74+ targetCompatibility JavaVersion . VERSION_11
75+ }
76+
77+ lintOptions {
78+ abortOnError false
79+ }
2980 }
81+
82+
3083}
3184
3285task clean (type : Delete ) {
0 commit comments