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+ apply plugin : ' com.android.library'
3+
4+ android {
5+ compileSdkVersion 34
6+ testOptions. unitTests. includeAndroidResources = true
7+ defaultConfig {
8+ minSdkVersion 21
9+ targetSdkVersion 34
10+ versionCode 4
11+ versionName " 1.0.0"
12+ buildConfigField ' String' , ' VERSION_NAME' , " \" ${ versionName} \" "
13+ testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
14+ }
15+ buildTypes {
16+ debug {
17+ testCoverageEnabled true
18+ }
19+ }
20+
21+ lintOptions {
22+ abortOnError false
23+ warningsAsErrors false
24+ lintConfig file(" config/lint.xml" )
25+ }
26+ buildFeatures {
27+ buildConfig = true
28+ }
29+ }
30+
231
332buildscript {
433 repositories {
534 google()
6- jcenter ()
35+ mavenCentral ()
736 mavenLocal()
837
938 }
1039 dependencies {
11- classpath ' com.android.tools.build:gradle:3.3 .2'
40+ classpath ' com.android.tools.build:gradle:7.4 .2'
1241 classpath " org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7"
42+ classpath " org.jacoco:org.jacoco.core:0.8.8"
1343
1444 // NOTE: Do not place your application dependencies here; they belong
1545 // in the individual module build.gradle files
@@ -19,56 +49,60 @@ buildscript {
1949allprojects {
2050 repositories {
2151 google()
22- jcenter ()
52+ mavenCentral ()
2353 mavenLocal()
2454
2555 }
2656
27- project. version = " 1.0.0-beta14 "
57+ project. version = " 1.0.1 "
2858
2959}
3060
3161subprojects {
3262
3363 ext {
64+ versionName = ' 1.0.0'
65+ // Propagate the version value to subprojects
66+ if (project. name == ' commonui' ) {
67+ versionName = project. versionName
68+ }
3469 hyperwalletGroupId = ' com.hyperwallet.android.ui'
3570
36- compileVersion = 30
71+ compileVersion = 34
3772 minVersion = 21
38- targetVersion = 30
73+ targetVersion = 34
3974 codeVersion = 1
4075
4176 hyperwalletCoreVersion = ' 1.0.0-beta12'
4277 hyperwalletInsightVersion = ' 1.0.0-beta02'
4378 //
4479 androidMaterialVersion = ' 1.0.0'
45- appcompatVersion = ' 1.0.2 '
80+ appcompatVersion = ' 1.3.1 '
4681 constraintlayoutVersion = ' 1.1.3'
4782 legacySupportV4Version = ' 1.0.0'
48- recycleViewVersion = ' 1.0.0 '
83+ recycleViewVersion = ' 1.2.1 '
4984 lifecycleExtensionsVersion = ' 2.0.0'
50- pagingRuntimeVersion = ' 2.1.0 '
85+ pagingRuntimeVersion = ' 3.3.6 '
5186 // Testing
52- extJunitVerson = ' 1.1.1 '
87+ extJunitVerson = ' 1.1.3 '
5388 testRunnerVersion = ' 1.2.0'
5489 testRulesVersion = ' 1.2.0'
55- espressoVersion = ' 3.2 .0'
90+ espressoVersion = ' 3.4 .0'
5691 mockServerVersion = ' 3.11.0'
57- leakcanaryVersion = ' 1.6.3 '
58- mockitoVersion = ' 2.27 .0'
92+ leakcanaryVersion = ' 2.14 '
93+ mockitoVersion = ' 4.11 .0'
5994 junitParamsVersion = ' 1.1.1'
60- robolectricVersion = ' 4.1'
61- coreTest = ' 1.3.0'
62- mockWebServerVersion = ' 3.11.0'
63- coreTest = ' 1.3.0'
95+ robolectricVersion = ' 4.14.1'
96+ coreTest = ' 1.6.1'
97+ mockWebServerVersion = ' 4.12.0'
6498 //
65- jacocoVersion = " 0.8.2 "
99+ jacocoVersion = " 0.8.8 "
66100 fileFilter = [' **/BuildConfig.*' ]
67101 }
68102
69103}
70104
71- task clean (type : Delete ) {
105+ task customClean (type : Delete ) {
72106 delete rootProject. buildDir
73107}
74108
0 commit comments