Skip to content

Commit 9aa97e3

Browse files
committed
Deps: Add androidx activity dependency (1.5.1)
This dependency is added in order to access the activity related 'addMenuProvider(...)' API, which is not available prior to the AndroidX Activity 1.4.0 release, see below: https://developer.android.com/jetpack/androidx/releases/activity #1.4.0-alpha01 Currently, and although the project is indeed using AndroidX Activity as a transitive dependency, those point to older versions of it. Below is a breakdown per module, and in parenthesis, the version it uses: - image-editor (1.2.4) - editor (1.1.0) - WordPress (1.3.1) FYI: The activity related 'addMenuProvider(...)' API is needed because otherwise the 'Options Menu' migration can't commence. ------------------------------------------------------------------------ Release Notes: https://developer.android.com/jetpack/androidx/releases/ activity#1.5.1 ------------------------------------------------------------------------ Note that the '1.6.1' update requires libraries and applications that depend on it to compile against version 33 (Android 13) or later of the Android APIs. However, this project is currently compiled against android-31 (Android 12). Thus, until the 'compileSdkVersion' of this project gets updated to '33' updating to '1.9.0' isn't possible. ------------------------------------------------------------------------
1 parent ed27a93 commit 9aa97e3

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

WordPress/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ dependencies {
376376
implementation "androidx.lifecycle:lifecycle-common:$androidxLifecycleVersion"
377377
implementation "androidx.lifecycle:lifecycle-runtime:$androidxLifecycleVersion"
378378
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$androidxLifecycleVersion"
379+
implementation "androidx.activity:activity:$androidxActivityVersion"
380+
implementation "androidx.activity:activity-ktx:$androidxActivityVersion"
379381
implementation "androidx.fragment:fragment:$androidxFragmentVersion"
380382
implementation "androidx.fragment:fragment-ktx:$androidxFragmentVersion"
381383
implementation "androidx.multidex:multidex:$androidXMultidexVersion"

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ext {
4242
androidxConstraintlayoutVersion = '1.1.3'
4343
androidxCoreVersion = '1.8.0'
4444
androidxEmojiVersion = '1.0.0'
45+
androidxActivityVersion = '1.5.1'
4546
androidxFragmentVersion = '1.5.5'
4647
androidxGridlayoutVersion = '1.0.0'
4748
androidxLifecycleVersion = '2.5.1'

libs/image-editor/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ repositories {
4141
dependencies {
4242
implementation fileTree(dir: 'libs', include: ['*.jar'])
4343

44+
implementation "androidx.activity:activity:$androidxActivityVersion"
45+
implementation "androidx.activity:activity-ktx:$androidxActivityVersion"
4446
implementation "androidx.fragment:fragment:$androidxFragmentVersion"
4547
implementation "androidx.appcompat:appcompat:$androidxAppcompatVersion"
4648
implementation "androidx.constraintlayout:constraintlayout:$androidxConstraintlayoutVersion"

0 commit comments

Comments
 (0)