Skip to content

Commit 1d9f28c

Browse files
authored
HMA-6361: update dependencies (#91)
* Update gradle plugin * Update target/compile sdks, add compose bom * Update compiler * Update component dependencies * Update compose * Update changelog * downgrade karumi shot * Remove compose ui-test-junit4 * implement compose bom * brackets * Lint fixes * downgrade karumi shot * Update screenshots * Update screenshot
1 parent 175113a commit 1d9f28c

File tree

34 files changed

+138
-117
lines changed

34 files changed

+138
-117
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,31 @@ Allowed headings:
2020

2121
* `DonutChartView` now supports three segments.
2222

23+
### Changed
24+
25+
The following libraries were updated:
26+
27+
* `com.android.tools.build:gradle:`: `7.0.3` -> `7.3.1`
28+
* `org.jetbrains.kotlin:kotlin-gradle-plugin:`: `1.5.31` -> `1.7.20`
29+
* `targetSdk`: `30` -> `33`
30+
* `compileSdk`: `30` -> `33`
31+
* `buildTools`: `30.0.3` -> `33.0.1`
32+
33+
* `androidx.annotation:annotation:`: `1.2.0` -> `1.5.0`
34+
* `androidx.appcompat:appcompat:`: `1.2.0` -> `1.5.1`
35+
* `androidx.recyclerview:recyclerview:`: `1.2.0` -> `1.2.1`
36+
* `androidx.constraintlayout:constraintlayout:`: `2.0.4` -> `2.1.4`
37+
* `androidx.lifecycle:lifecycle-common-java8:2.3.1`: removed
38+
* `androidx.lifecycle:lifecycle-compiler:2.5.1`: added
39+
* `androidx.core:core-ktx:`: `1.3.0` -> `1.9.0`
40+
* `androidx.test:core-ktx:`: `1.3.0` -> `1.5.0`
41+
* `androidx.test.ext:junit-ktx:`: `1.1.2` -> `1.1.5`
42+
* `androidx.test.espresso:espresso-core:`: `3.3.0` -> `3.5.1`
43+
* `androidx.test.espresso:espresso-contrib:`: `3.3.0` -> `3.5.1`
44+
* `androidx.test:runner:`: `1.3.0` -> `1.5.2`
45+
* `com.google.android.material:material:`: `1.3.0` -> `1.7.0`
46+
* `junit:junit:`: `4.13` -> `4.13.2`
47+
2348
## [4.3.2] - 2023-01-09
2449

2550
### Changed

build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext {
4-
kotlin_version = '1.5.31'
5-
}
63

74
repositories {
85
google()
@@ -19,8 +16,8 @@ buildscript {
1916
}
2017

2118
dependencies {
22-
classpath 'com.android.tools.build:gradle:7.0.3'
23-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
19+
classpath 'com.android.tools.build:gradle:7.3.1'
20+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
2421
classpath "uk.gov.hmrc.gradle:spotless:1.1.1"
2522
classpath 'com.karumi:shot:5.7.0'
2623

buildSrc/src/main/java/uk/gov/hmrc/components/buildsrc/ComposeDependencies.kt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ package uk.gov.hmrc.components.buildsrc
1818
class ComposeDependencies {
1919
object Versions {
2020
const val minSdk = 23
21-
const val targetSdk = 31
22-
const val compileSdk = 31
23-
const val compose = "1.0.5"
24-
const val kotlinComposeCompiler = "1.5.21"
21+
const val targetSdk = 33
22+
const val compileSdk = 33
23+
const val kotlinCompilerExtensionVersion = "1.3.2"
2524
}
2625

2726
object Libs {
28-
const val material = "com.google.android.material:material:1.4.0"
27+
const val compose_bom = "androidx.compose:compose-bom:2022.12.00"
28+
const val compose_foundation = "androidx.compose.foundation:foundation"
29+
const val compose_material = "androidx.compose.material:material"
30+
const val compose_tooling = "androidx.compose.ui:ui-tooling"
31+
const val compose_ui = "androidx.compose.ui:ui"
32+
const val compose_uiTest = "androidx.compose.ui:ui-test-junit4"
2933

30-
const val androidX_coreKtx = "androidx.core:core-ktx:1.7.0"
31-
const val androidX_activity_activityCompose = "androidx.activity:activity-compose:1.4.0"
32-
const val androidX_appCompat = "androidx.appcompat:appcompat:1.4.0"
34+
const val material = "com.google.android.material:material:1.7.0"
3335

34-
const val androidX_compose_foundation = "androidx.compose.foundation:foundation:${Versions.compose}"
35-
const val androidX_compose_material = "androidx.compose.material:material:${Versions.compose}"
36-
const val androidX_compose_tooling = "androidx.compose.ui:ui-tooling:${Versions.compose}"
37-
const val androidX_compose_ui = "androidx.compose.ui:ui:${Versions.compose}"
38-
const val androidX_compose_uiTest = "androidx.compose.ui:ui-test-junit4:${Versions.compose}"
36+
const val androidX_activity_activityCompose = "androidx.activity:activity-compose:1.6.1"
37+
const val androidX_appCompat = "androidx.appcompat:appcompat:1.5.1"
38+
const val androidX_coreKtx = "androidx.core:core-ktx:1.9.0"
39+
const val androidX_lifecycle_runtimeKtx = "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
40+
const val androidX_navigation_navigationCompose = "androidx.navigation:navigation-compose:2.5.3"
3941

40-
const val androidX_lifecycle_runtimeKtx = "androidx.lifecycle:lifecycle-runtime-ktx:2.4.0"
41-
const val androidX_navigation_navigationCompose = "androidx.navigation:navigation-compose:2.4.0-beta02"
42-
const val androidX_test_ext_junit = "androidx.test.ext:junit-ktx:1.1.3"
43-
const val androidX_test_espressoCore = "androidx.test.espresso:espresso-core:3.4.0"
42+
const val androidX_test_ext_junit = "androidx.test.ext:junit-ktx:1.1.5"
43+
const val androidX_test_espressoCore = "androidx.test.espresso:espresso-core:3.5.1"
4444

4545
const val junit = "junit:junit:4.13.2"
4646
}

buildSrc/src/main/java/uk/gov/hmrc/components/buildsrc/Dependencies.kt

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,27 @@ package uk.gov.hmrc.components.buildsrc
1818
class Dependencies {
1919
object Versions {
2020
const val minSdk = 23
21-
const val targetSdk = 30
22-
const val compileSdk = 30
23-
const val buildTools = "30.0.3"
24-
const val kotlin = "1.5.31"
21+
const val targetSdk = 33
22+
const val compileSdk = 33
23+
const val buildTools = "33.0.1"
2524
}
2625

2726
object Libs {
28-
const val kotlin_stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.kotlin}"
29-
30-
const val androidX_annotation = "androidx.annotation:annotation:1.2.0"
31-
const val androidX_appcompat = "androidx.appcompat:appcompat:1.2.0"
32-
const val androidX_recyclerview = "androidx.recyclerview:recyclerview:1.2.0"
33-
const val androidX_constraintlayout = "androidx.constraintlayout:constraintlayout:2.0.4"
34-
const val androidX_lifecycle = "androidx.lifecycle:lifecycle-common-java8:2.3.1"
35-
const val androidX_core_ktx = "androidx.core:core-ktx:1.3.0"
36-
const val androidX_test_core_ktx = "androidx.test:core-ktx:1.3.0"
37-
const val androidX_test_ext_junit = "androidx.test.ext:junit-ktx:1.1.2"
38-
const val androidX_test_espressoCore = "androidx.test.espresso:espresso-core:3.3.0"
39-
const val androidX_test_espressoContrib = "androidx.test.espresso:espresso-contrib:3.3.0"
40-
const val androidX_test_runner = "androidx.test:runner:1.3.0"
27+
const val androidX_annotation = "androidx.annotation:annotation:1.5.0"
28+
const val androidX_appcompat = "androidx.appcompat:appcompat:1.5.1"
29+
const val androidX_recyclerview = "androidx.recyclerview:recyclerview:1.2.1"
30+
const val androidX_constraintlayout = "androidx.constraintlayout:constraintlayout:2.1.4"
31+
const val androidX_lifecycle = "androidx.lifecycle:lifecycle-compiler:2.5.1"
32+
const val androidX_core_ktx = "androidx.core:core-ktx:1.9.0"
33+
const val androidX_test_core_ktx = "androidx.test:core-ktx:1.5.0"
34+
const val androidX_test_ext_junit = "androidx.test.ext:junit-ktx:1.1.5"
35+
const val androidX_test_espressoCore = "androidx.test.espresso:espresso-core:3.5.1"
36+
const val androidX_test_espressoContrib = "androidx.test.espresso:espresso-contrib:3.5.1"
37+
const val androidX_test_runner = "androidx.test:runner:1.5.2"
4138
const val androidX_test_uiautomator = "androidx.test.uiautomator:uiautomator:2.2.0"
4239

43-
const val material = "com.google.android.material:material:1.3.0"
40+
const val material = "com.google.android.material:material:1.7.0"
4441

45-
const val junit = "junit:junit:4.13"
42+
const val junit = "junit:junit:4.13.2"
4643
}
4744
}

components-compose/build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ plugins {
77

88
apply plugin: 'com.android.library'
99
apply plugin: 'kotlin-android'
10-
apply plugin: 'kotlin-android-extensions'
1110
apply plugin: 'uk.gov.hmrc.spotless'
1211
apply plugin: 'io.gitlab.arturbosch.detekt'
1312

@@ -22,8 +21,6 @@ android {
2221
defaultConfig {
2322
minSdk Versions.minSdk
2423
targetSdk Versions.targetSdk
25-
versionCode 1
26-
versionName "1.0"
2724

2825
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2926
consumerProguardFiles "consumer-rules.pro"
@@ -48,21 +45,25 @@ android {
4845
}
4946

5047
composeOptions {
51-
kotlinCompilerExtensionVersion Versions.compose
48+
kotlinCompilerExtensionVersion Versions.kotlinCompilerExtensionVersion
5249
}
50+
namespace 'uk.gov.hmrc.components.compose'
5351
}
5452

5553
dependencies {
54+
implementation platform(Libs.compose_bom)
55+
androidTestImplementation platform(Libs.compose_bom)
56+
5657
implementation Libs.androidX_coreKtx
57-
implementation Libs.androidX_compose_ui
58-
implementation Libs.androidX_compose_tooling
59-
implementation Libs.androidX_compose_foundation
60-
implementation Libs.androidX_compose_material
58+
implementation Libs.compose_ui
59+
implementation Libs.compose_tooling
60+
implementation Libs.compose_foundation
61+
implementation Libs.compose_material
6162

6263
testImplementation Libs.junit
6364

6465
// UI Tests
65-
androidTestImplementation Libs.androidX_compose_uiTest
66+
androidTestImplementation Libs.compose_uiTest
6667
androidTestImplementation Libs.androidX_test_ext_junit
6768
androidTestImplementation Libs.androidX_test_espressoCore
6869
}

components-compose/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18-
package="uk.gov.hmrc.components.compose">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
</manifest>

components-test/build.gradle

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66
}
77
apply plugin: 'com.android.library'
88
apply plugin: 'kotlin-android'
9-
apply plugin: 'kotlin-android-extensions'
109
apply plugin: 'uk.gov.hmrc.spotless'
1110
apply plugin: 'io.gitlab.arturbosch.detekt'
1211

@@ -27,8 +26,6 @@ android {
2726
defaultConfig {
2827
minSdkVersion Versions.minSdk
2928
targetSdkVersion Versions.targetSdk
30-
versionCode 1
31-
versionName version
3229

3330
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3431
consumerProguardFiles 'consumer-rules.pro'
@@ -40,21 +37,21 @@ android {
4037
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
4138
}
4239
}
43-
44-
lintOptions {
40+
lint {
41+
abortOnError true
42+
baseline file('lint/baseline.xml')
4543
lintConfig file('lint/config.xml')
46-
baseline file("lint/baseline.xml")
4744
warningsAsErrors true
48-
abortOnError true
4945
}
46+
namespace 'uk.gov.hmrc.components.test'
47+
5048

5149
}
5250

5351
dependencies {
5452
implementation fileTree(dir: 'libs', include: ['*.jar'])
5553
implementation project(':components')
5654

57-
implementation Libs.kotlin_stdlib
5855
implementation Libs.material
5956
implementation Libs.androidX_appcompat
6057
implementation Libs.androidX_core_ktx
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="uk.gov.hmrc.components.test" />
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />

components/build.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ plugins {
88

99
apply plugin: 'com.android.library'
1010
apply plugin: 'kotlin-android'
11-
apply plugin: 'kotlin-android-extensions'
1211
apply plugin: 'uk.gov.hmrc.spotless'
1312
apply plugin: 'io.gitlab.arturbosch.detekt'
1413

@@ -28,8 +27,6 @@ android {
2827
defaultConfig {
2928
minSdkVersion Versions.minSdk
3029
targetSdkVersion Versions.targetSdk
31-
versionCode 1
32-
versionName version
3330
consumerProguardFiles 'consumer-proguard-rules.pro'
3431
}
3532

@@ -40,16 +37,17 @@ android {
4037
}
4138
}
4239

43-
lintOptions {
44-
lintConfig file('lint/config.xml')
45-
baseline file("lint/baseline.xml")
46-
warningsAsErrors true
47-
abortOnError true
48-
}
4940
compileOptions {
5041
sourceCompatibility JavaVersion.VERSION_11
5142
targetCompatibility JavaVersion.VERSION_11
5243
}
44+
lint {
45+
abortOnError true
46+
baseline file('lint/baseline.xml')
47+
lintConfig file('lint/config.xml')
48+
warningsAsErrors true
49+
}
50+
namespace 'uk.gov.hmrc.components'
5351
}
5452

5553

@@ -58,7 +56,6 @@ dependencies {
5856
implementation Libs.androidX_annotation
5957
implementation Libs.androidX_constraintlayout
6058
implementation Libs.androidX_core_ktx
61-
implementation Libs.kotlin_stdlib
6259

6360
testImplementation Libs.junit
6461
}

components/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<manifest package="uk.gov.hmrc.components"
18-
xmlns:android="http://schemas.android.com/apk/res/android">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918
<application
2019
android:supportsRtl="true" />
2120
</manifest>

0 commit comments

Comments
 (0)