[Dependency Updates] Update androidxFragmentVersion to 1.5.5#17696
[Dependency Updates] Update androidxFragmentVersion to 1.5.5#17696ParaskP7 merged 68 commits intodeps/main-batch-androidx-corefrom
androidxFragmentVersion to 1.5.5#17696Conversation
It is generally recommended that transitively used dependencies should be declared directly.
It is generally recommended that transitively used dependencies should be declared directly.
Release Notes: https://developer.android.com/jetpack/androidx/releases/ fragment#1.5.5 ------------------------------------------------------------------------ Note that this update adds the following 'Options Menu' specific warnings that need to be resolved in order for this project to compile again due to the 'allWarningsAsErrors' flag. Per module, the number of warnings and their corresponding classes are: - 'image-editor' module (7): - CropFragment (4) - PreviewImageFragment (3) - 'WordPress' module (24): - UnifiedCommentsEditFragment (2) - ScanHistoryFragment (2) - MediaPickerFragment (2) - PageParentFragment (3) - ReaderFragment (2) - ReaderPostDetailFragment (4) - SiteCreationBaseFormFragment (1) - StatsFragment (1) - StatsListFragment (3) - InsightsDetailFragment (1) - StatsDetailFragment (1) - InsightsManagementFragment (2) As such, all the above listed modules, classes and their warnings need to be migrated to the new 'Options Menu' APIs. All that is going to be done in subsequent commits. ------------------------------------------------------------------------ PS: In the meanwhile, the 'allWarningsAsErrors' flag is going to be disabled in order to make it possible for the project to compile so that each screen migration could be tested in isolation.
This is done in order to make it possible for the project to compile so that each screen 'Options Menu' migration could be tested in isolation.
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. ------------------------------------------------------------------------
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" - "'onOptionsItemSelected(MenuItem): Boolean' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater) - androidx.fragment.onOptionsItemSelected (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onOptionsItemSelected(android.view.MenuItem)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" - "'onOptionsItemSelected(MenuItem): Boolean' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater) - androidx.fragment.onOptionsItemSelected (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onOptionsItemSelected(android.view.MenuItem)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" - "'onOptionsItemSelected(MenuItem): Boolean' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater) - androidx.fragment.onOptionsItemSelected (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onOptionsItemSelected(android.view.MenuItem)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onOptionsItemSelected(MenuItem): Boolean' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onOptionsItemSelected' with the 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. Also, the empty 'MenuProvider.onCreateMenu(...)' interface implementation was added since this isn't optional. There is no default implementation for this interface function. As such, one would need to implement this interface when 'MenuProvider' is utilized. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onOptionsItemSelected (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onOptionsItemSelected(android.view.MenuItem)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" - "'onOptionsItemSelected(MenuItem): Boolean' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater) - androidx.fragment.onOptionsItemSelected (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onOptionsItemSelected(android.view.MenuItem)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. Deprecated in Java" - "'onCreateOptionsMenu(Menu, MenuInflater): Unit' is deprecated. Deprecated in Java" ------------------------------------------------------------------------ Adding 'requireActivity().addMenuProvider(this, viewLifecycleOwner)' and replacing the 'onCreateOptionsMenu' and 'onOptionsItemSelected' with the 'onCreateMenu' and 'onMenuItemSelected' equivalent 'MenuProvider' related interface signatures is now the recommended way forward. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean) - androidx.fragment.onCreateOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #onCreateOptionsMenu(android.view.Menu,android.view.MenuInflater)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. ------------------------------------------------------------------------ The 'Option Menu' configuration on 'InsightsDetailFragment' is unnecessary and as such 'setHasOptionsMenu(...)' is completely removed without being migrated to the new 'Options Menu' APIs. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean)
Warning Messages: - "'setHasOptionsMenu(Boolean): Unit' is deprecated. ------------------------------------------------------------------------ The 'Option Menu' configuration on 'StatsDetailFragment' is unnecessary and as such 'setHasOptionsMenu(...)' is completely removed without being migrated to the new 'Options Menu' APIs. ------------------------------------------------------------------------ For more info see: - androidx.fragment.setHasOptionsMenu (Documentation): https://developer.android.com/reference/androidx/fragment/app/Fragment #setHasOptionsMenu(boolean)
Now that the 'Option Menu' migration is done and all new warnings are resolved/suppressed this flag can be re-enabled.
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | WordPress | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 190301a | |
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | Jetpack | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 190301a | |
…mobile/WordPress-Android into deps/update-androidx-fragment-to-1.5.5 � Conflicts: � WordPress/src/main/java/org/wordpress/android/ui/comments/unified/UnifiedCommentsEditFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/history/ScanHistoryFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/mediapicker/MediaPickerFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/pages/PageParentFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostDetailFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/sitecreation/SiteCreationBaseFormFragment.kt � WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/insights/management/InsightsManagementFragment.kt
|
Found 1 violations: The PR caused the following dependency changes: +--- project :libs:analytics
| \--- androidx.preference:preference:1.1.0
| +--- androidx.appcompat:appcompat:1.1.0 -> 1.3.1
-| | +--- androidx.activity:activity:1.2.4 -> 1.3.1
-| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | | +--- androidx.core:core:1.1.0 -> 1.8.0 (*)
-| | | +--- androidx.lifecycle:lifecycle-runtime:2.3.1 -> 2.5.1 (*)
-| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 -> 2.5.1
-| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (c)
-| | | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0
-| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
-| | | | +--- androidx.lifecycle:lifecycle-common:2.4.0 -> 2.5.1 (*)
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.6.21 (*)
-| | | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 -> 2.5.1
-| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
-| | | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0
-| | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | | | | +--- androidx.core:core:1.8.0 (*)
-| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1
-| | | | | +--- androidx.arch.core:core-common:2.1.0 (*)
-| | | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
-| | | | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
-| | | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
-| | | | +--- androidx.savedstate:savedstate:1.2.0 (*)
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4
-| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4
-| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4
-| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4
-| | | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (c)
-| | | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4 (c)
-| | | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (c)
-| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 (*)
-| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21
-| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4 (*)
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 (*)
-| | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
-| | | \--- androidx.tracing:tracing:1.0.0 (*)
+| | +--- androidx.activity:activity:1.2.4 -> 1.5.1
+| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
+| | | +--- androidx.core:core:1.8.0 (*)
+| | | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
+| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1
+| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (c)
+| | | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1
+| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
+| | | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0
+| | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | | | | +--- androidx.core:core:1.8.0 (*)
+| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1
+| | | | | +--- androidx.arch.core:core-common:2.1.0 (*)
+| | | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
+| | | | | \--- androidx.lifecycle:lifecycle-common:2.5.1 (*)
+| | | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
+| | | | +--- androidx.savedstate:savedstate:1.2.0
+| | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | | | | +--- androidx.arch.core:core-common:2.1.0 (*)
+| | | | | +--- androidx.lifecycle:lifecycle-common:2.4.0 -> 2.5.1 (*)
+| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.6.21 (*)
+| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4
+| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4
+| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4
+| | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4
+| | | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (c)
+| | | | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4 (c)
+| | | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (c)
+| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 (*)
+| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21
+| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4 (*)
+| | | | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 (*)
+| | | +--- androidx.savedstate:savedstate:1.2.0 (*)
+| | | +--- androidx.tracing:tracing:1.0.0 (*)
+| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | \--- androidx.fragment:fragment:1.3.6 -> 1.4.1
-| | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
-| | +--- androidx.collection:collection:1.1.0 (*)
-| | +--- androidx.viewpager:viewpager:1.0.0
-| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
-| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
-| | | \--- androidx.customview:customview:1.0.0 -> 1.1.0
-| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
-| | | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
-| | | \--- androidx.collection:collection:1.1.0 (*)
-| | +--- androidx.loader:loader:1.0.0
-| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
-| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
-| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.5.1
-| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
-| | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
-| | | | \--- androidx.lifecycle:lifecycle-livedata-core:2.5.1 (*)
-| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.5.1 (*)
-| | +--- androidx.activity:activity:1.2.4 -> 1.3.1 (*)
-| | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 -> 2.5.1 (*)
-| | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 -> 2.5.1 (*)
-| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 -> 2.5.1 (*)
-| | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
-| | +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
-| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 -> 1.6.21 (*)
+| | \--- androidx.fragment:fragment:1.3.6 -> 1.5.5
+| | +--- androidx.activity:activity:1.5.1 (*)
+| | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0
+| | +--- androidx.collection:collection:1.1.0 (*)
+| | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
+| | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1 (*)
+| | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
+| | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1 (*)
+| | +--- androidx.loader:loader:1.0.0
+| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
+| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
+| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.5.1
+| | | | +--- androidx.arch.core:core-common:2.1.0 (*)
+| | | | +--- androidx.arch.core:core-runtime:2.1.0 (*)
+| | | | \--- androidx.lifecycle:lifecycle-livedata-core:2.5.1 (*)
+| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.5.1 (*)
+| | +--- androidx.savedstate:savedstate:1.2.0 (*)
+| | +--- androidx.viewpager:viewpager:1.0.0
+| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
+| | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*)
+| | | \--- androidx.customview:customview:1.0.0 -> 1.1.0
+| | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0
+| | | +--- androidx.core:core:1.3.0 -> 1.8.0 (*)
+| | | \--- androidx.collection:collection:1.1.0 (*)
+| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| \--- androidx.fragment:fragment:1.1.0 -> 1.4.1 (*)
+| \--- androidx.fragment:fragment:1.1.0 -> 1.5.5 (*)
+--- project :libs:image-editor
+| +--- androidx.activity:activity:1.5.1 (*)
+| +--- androidx.activity:activity-ktx:1.5.1
+| | +--- androidx.activity:activity:1.5.1 (*)
+| | +--- androidx.core:core-ktx:1.1.0 -> 1.8.0 (*)
+| | +--- androidx.lifecycle:lifecycle-runtime-ktx:2.5.1
+| | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
+| | | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4 (*)
+| | +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1
+| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4 (*)
+| | +--- androidx.savedstate:savedstate-ktx:1.2.0
+| | | +--- androidx.savedstate:savedstate:1.2.0 (*)
+| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.6.21 (*)
+| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| +--- androidx.fragment:fragment:1.5.5 (*)
| +--- androidx.viewpager2:viewpager2:1.0.0
-| | \--- androidx.fragment:fragment:1.1.0 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.1.0 -> 1.5.5 (*)
| +--- com.google.android.material:material:1.2.1 -> 1.6.0-alpha01
-| | \--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
| +--- androidx.navigation:navigation-fragment:2.4.2
-| | +--- androidx.fragment:fragment-ktx:1.4.1
-| | | +--- androidx.fragment:fragment:1.4.1 (*)
-| | | +--- androidx.activity:activity-ktx:1.2.3 -> 1.3.1
-| | | | +--- androidx.activity:activity:1.3.1 (*)
-| | | | +--- androidx.core:core-ktx:1.1.0 -> 1.8.0 (*)
-| | | | +--- androidx.lifecycle:lifecycle-runtime-ktx:2.3.1 -> 2.5.1
-| | | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0
-| | | | | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 (*)
-| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4 (*)
-| | | | +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1 -> 2.5.1
-| | | | | +--- androidx.lifecycle:lifecycle-viewmodel:2.5.1 (*)
-| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1 -> 1.6.4 (*)
-| | | | +--- androidx.savedstate:savedstate-ktx:1.1.0
-| | | | | +--- androidx.savedstate:savedstate:1.1.0 -> 1.2.0 (*)
-| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.20 -> 1.6.21 (*)
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.21 -> 1.6.21 (*)
-| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
-| | | +--- androidx.collection:collection-ktx:1.1.0
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.20 -> 1.6.21 (*)
-| | | | \--- androidx.collection:collection:1.1.0 (*)
-| | | +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1 -> 2.5.1
-| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1 (*)
-| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
-| | | +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1 -> 2.5.1 (*)
-| | | +--- androidx.savedstate:savedstate-ktx:1.1.0 (*)
-| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 -> 1.6.21 (*)
+| | +--- androidx.fragment:fragment-ktx:1.4.1 -> 1.5.5
+| | | +--- androidx.activity:activity-ktx:1.5.1 (*)
+| | | +--- androidx.collection:collection-ktx:1.1.0
+| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.20 -> 1.6.21 (*)
+| | | | \--- androidx.collection:collection:1.1.0 (*)
+| | | +--- androidx.core:core-ktx:1.2.0 -> 1.8.0 (*)
+| | | +--- androidx.fragment:fragment:1.5.5 (*)
+| | | +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.5.1
+| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.5.1 (*)
+| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
+| | | +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1 (*)
+| | | +--- androidx.savedstate:savedstate-ktx:1.2.0 (*)
+| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 (*)
| | \--- androidx.navigation:navigation-runtime:2.4.2
-| | \--- androidx.activity:activity-ktx:1.2.3 -> 1.3.1 (*)
+| | \--- androidx.activity:activity-ktx:1.2.3 -> 1.5.1 (*)
+--- project :libs:editor
| +--- org.wordpress:aztec:{strictly v1.6.2} -> v1.6.2
| | \--- androidx.legacy:legacy-support-v4:1.0.0
-| | \--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
| \--- org.wordpress-mobile.gutenberg-mobile:react-native-gutenberg-bridge:v1.87.0
| +--- org.wordpress-mobile.react-native-libraries.v1:react-native-screens:2.9.0
-| | \--- androidx.fragment:fragment:1.2.1 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.2.1 -> 1.5.5 (*)
| \--- org.wordpress-mobile.react-native-libraries.v1:react-native-fast-image:8.5.11
| \--- com.github.bumptech.glide:glide:4.12.0
-| \--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| \--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
+| \--- androidx.fragment:fragment:1.5.5 (*)
+--- org.wordpress:login:1.0.0
| +--- com.google.android.gms:play-services-auth:18.1.0 -> 20.3.0
-| | +--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| | +--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
| | \--- com.google.android.gms:play-services-auth-api-phone:18.0.1
| | \--- com.google.android.gms:play-services-base:18.0.1
-| | +--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| | +--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
| | \--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0
-| | \--- androidx.fragment:fragment:1.0.0 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.0.0 -> 1.5.5 (*)
| \--- com.google.dagger:dagger-android-support:2.42
-| +--- androidx.activity:activity:1.3.1 (*)
+| +--- androidx.activity:activity:1.3.1 -> 1.5.1 (*)
-| \--- androidx.fragment:fragment:1.3.6 -> 1.4.1 (*)
+| \--- androidx.fragment:fragment:1.3.6 -> 1.5.5 (*)
+--- com.automattic:about:1.0.0
| \--- androidx.compose.ui:ui-tooling:1.0.5
| \--- androidx.activity:activity-compose:1.3.1
-| \--- androidx.activity:activity-ktx:1.3.1 (*)
+| \--- androidx.activity:activity-ktx:1.3.1 -> 1.5.1 (*)
++--- androidx.activity:activity:1.5.1 (*)
++--- androidx.activity:activity-ktx:1.5.1 (*)
-+--- androidx.fragment:fragment:1.4.1 (*)
++--- androidx.fragment:fragment:1.5.5 (*)
-+--- androidx.fragment:fragment-ktx:1.4.1 (*)
++--- androidx.fragment:fragment-ktx:1.5.5 (*)
+--- com.google.android.gms:play-services-code-scanner:16.0.0-beta1
-| \--- androidx.activity:activity:1.3.1 (*)
+| \--- androidx.activity:activity:1.3.1 -> 1.5.1 (*)
+--- com.zendesk:support:5.0.2
| \--- com.zendesk:guide:1.0.1
| \--- com.zendesk:messaging:5.1.0
| \--- com.zendesk:common-ui:4.0.1
| \--- com.zendesk.belvedere2:belvedere:3.0.0-RC
| +--- com.zendesk.belvedere2:belvedere-core:3.0.0-RC
-| | \--- androidx.fragment:fragment:1.2.5 -> 1.4.1 (*)
+| | \--- androidx.fragment:fragment:1.2.5 -> 1.5.5 (*)
-| \--- androidx.fragment:fragment:1.2.5 -> 1.4.1 (*)
+| \--- androidx.fragment:fragment:1.2.5 -> 1.5.5 (*)
+--- com.google.dagger:hilt-android:2.42
-| +--- androidx.activity:activity:1.3.1 (*)
+| +--- androidx.activity:activity:1.3.1 -> 1.5.1 (*)
-| \--- androidx.fragment:fragment:1.3.6 -> 1.4.1 (*)
+| \--- androidx.fragment:fragment:1.3.6 -> 1.5.5 (*)
Please review and act accordingly
|
AjeshRPai
left a comment
There was a problem hiding this comment.
Hey @petros, Everything works as expected. Thanks for working on this PR. You are awesome.
I am approving but not merging the PR so you can look at my comments. To make it convenient, I am sharing it in a nutshell.
- I couldnt find a way to test the
PreviewImageFragment StatsDetailFragmentis launched when you want to look at the stats of a Post
[Image Editor]
-
- CropFragment.kt 🟢
-
- PreviewImageFragment.kt - I couldnt figure out a way to click at the crop menu, it seems to be displayed for a few seconds and then its replaced with the done tick. I tried to make the crop menu item visible by hardcoding, but it seems like the
PreviewImageFragmentredirects to Crop fragment as soon as the file is loaded. As you said, the crop menu option seems to be dead code that could never trigger.
- PreviewImageFragment.kt - I couldnt figure out a way to click at the crop menu, it seems to be displayed for a few seconds and then its replaced with the done tick. I tried to make the crop menu item visible by hardcoding, but it seems like the
[WordPress]
-
- UnifiedCommentsEditFragment.kt 🟢
-
- ScanHistoryFragment.kt 🟢
-
- MediaPickerFragment.kt Works as Described 🟢
-
- PageParentFragment.kt 🟢
-
- ReaderFragment.kt 🟢
-
- ReaderPostDetailFragment.kt 🟢
-
- SiteCreationBaseFormFragment.kt
-
- UnifiedCommentsEditFragment.kt + 9. StatsListFragment.kt + 10. InsightsManagementFragment.kt :🟢
-
- InsightsDetailFragment.kt (Jetpack App) 🟢
-
- StatsDetailFragment.kt 🟢
- Go to
posts - Click on more button(three dot button)
- Click at
stats - Make sure that the stats are shown correctly
- Click on
backbutton
|
You are the best of the best of the best @AjeshRPai , truly! 💯 Thank you so much for testing, for all your notes and for helping me figure out how to test both
Yeap, at least we are on the same page, that's enough for now, thank you! 🥇
Thank you so much for this tip, I testing it myself as well and everything is indeed working as expected! 🥇 |
Generated by 🚫 dangerJS |


Parent #17561
Batch Branch: deps/main-batch-androidx-core
This PR updates
androidxFragmentVersionto 1.5.5.Also, this PR adds the
androidxActivityVersionof 1.5.1 (9aa97e3). This is NOT the latest version of androidx.activity.Also, as part of this update the below transitive dependencies were added:
Image Editormodule (0cf7c0b):androidx.fragment:fragmentEditormodule (0914722):androidx.fragment:fragmentNote that the latest 1.6.1 update of
androidxActivityVersionrequires 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
compileSdkVersionof this project gets updated to33, updating to1.6.1isn't possible.More details
In addition to the dependency update commits, a couple of additional analysis related commits were added to migrate the
Options MenuAPI update on theandroidx.fragmentlibrary itself, expand per screen and see commit breakdown below:Code Review Instructions:
[
Image Editor]1. CropFragment.kt
2. PreviewImageFramgnet.kt
[
WordPress]1. UnifiedCommentsEditFragment.kt
2. ScanHistoryFragment.kt
3. MediaPickerFragment.kt
4. PageParentFragment.kt
5. ReaderFragment.kt
6. ReaderPostDetailFragment.kt
7. SiteCreationBaseFormFragment.kt
8. StatsFragment.kt
9. StatsListFragment.kt
PS: Maybe you as a reviewer can think of how to migrate the
Options Menuon this screen. I tried a couple of things for a few minutes but couldn't figure it out. 🤔10. InsightsManagementFragment.kt
11. InsightsDetailFragment.kt
12. StatsDetailFragment.kt
PS: @AjeshRPai I added you as the main reviewer, that is, in addition to the @wordpress-mobile/apps-infrastructure team itself, but randomly, since I just wanted someone from the WordPress team to be aware of and sign-off on that change for WPAndroid.
To test:
[
Image Editor]1. CropFragment.kt
blogpost.imageblock.imageblock.media optionsof this image (top right) and then clickedit.donemenu option is shown (top right).donemenu option (top right).2. PreviewImageFragment.kt
blogpost.imageblock.imageblock.media optionsof this image (top right) and then clickedit.cropmenu option is shown (top right), but just for a moment. Afterwards, thedonemenu option will show.cropmenu option (top right).cropmenu option seems to be dead code that could never trigger.[
WordPress]1. UnifiedCommentsEditFragment.kt
commentsscreen.moreand thenedit.donemenu option is shown (top right).donemenu option (top right).2. ScanHistoryFragment.kt
scanscreen.historymenu option (top right).backnavigation arrow is shown (top left).backnavigation arrow (top left).scanscreen.3. MediaPickerFragment.kt
mescreen.avatarto change photo (top middle).system pickermenu option is shown (top right).system pickerto select an image from system and navigate back.choose photoscreen.4. PageParentFragment.kt
pagesscreen.menu optionsand selectset parent.searchmenu option is shown (top right).search, search for pages, select a page and clicksavemenu option (top right).pagesscreen and a parent has been set for that page.5. ReaderFragment.kt
readerscreen (middle tab).searchmenu option is shown (to right).search, search by keyword and click `search (bottom right).readerscreen.6. ReaderPostDetailFragment.kt
readerscreen (middle tab).postto get to itspost detailsscreen.moremenu option is shown (top right).more(bottom right), then click onvisit sitefrom the available options.post detailsscreen.7. SiteCreationBaseFormFragment.kt
choose sitescreen (down arrow).+navigation option (top right).create .com site.topic(ie. food).theme(ie. best for food).choosebutton (bottom) to navigate to thechoose domainscreen.helpmenu option is shown (top right).help(top right) and make sure you get navigated to thehelp and supportscreen.choose domainscreen.8. UnifiedCommentsEditFragment.kt + 9. StatsListFragment.kt + 10. InsightsManagementFragment.kt
statsscreen.statsscreen is shown and working as expected.add new stats cardmenu options is only shown on theinsightstab (to right).add new stats card(top right) and make sure you get navigated to theadd new cardsettings screen.savemenu option (top right).statsscreen and the enabled/disabled cards are shown accordingly.11. InsightsDetailFragment.kt (Jetpack App)
statsscreen.view moreon theviews & visitorscard.views & visitorsscreen is shown and working as expected.views & visitorsscreen.12. StatsDetailFragment.kt
Merge instructions
deps/main-batch-androidx-corebranch with latesttrunk.deps/main-batch-androidx-core.[PR] Not Ready For Merge]label.Options Menurelated).deps/main-batch-androidx-core.Regression Notes
Potential unintended areas of impact
androidx.fragmentis a library that is being added as a transitive dependency across lots ofandroidxandcom.googleandotherlibraries.What I did to test those areas of impact (or what existing automated tests I relied on)
To testsection above.What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txtif necessary.