Skip to content

Conversation

@Amir-yazdanmanesh
Copy link
Contributor

Summary

  • Upgrade Gradle wrapper from 6.3 to 8.11.1
  • Upgrade Android Gradle Plugin from 3.6.3 to 8.2.2
  • Upgrade Kotlin plugin from 1.3.72 to 1.9.22
  • Migrate from Android Support Library to AndroidX
  • Update compileSdk/targetSdk to 34, minSdk to 21
  • Update all dependencies to latest compatible versions
  • Remove deprecated material-intro-screen library
  • Replace jcenter() with mavenCentral()

Changes

Build Configuration

  • build.gradle: AGP 8.2.2, Kotlin 1.9.22, modern Gradle syntax
  • app/build.gradle: AndroidX dependencies, namespace declaration, updated lint/packaging config
  • gradle.properties: AndroidX flags, updated JVM args
  • gradle-wrapper.properties: Gradle 8.11.1

Code Migration (Support Library → AndroidX)

  • All activity classes (HomeActivity, SettingsActivity, etc.)
  • All fragment classes (Settings*Fragment, HideAppsFragment)
  • All widget classes (Desktop, Dock, SearchBar, etc.)
  • Utility classes (AppManager, Tool, DialogHelper, etc.)
  • Third-party embedded libraries (opoc, colorpicker)
  • NotificationListener service

Layout Files

  • Updated XML namespaces from android.support.* to androidx.*
  • CoordinatorLayout, DrawerLayout, RecyclerView, CardView, etc.

Test Plan

  • Clean build succeeds (./gradlew clean assembleDebug)
  • App launches and home screen displays correctly
  • App drawer opens and shows installed apps
  • Settings screens load without crashes
  • Dock functionality works
  • Widget placement works
  • Search bar functions correctly

Upgrade Gradle wrapper from 6.3 to 8.11.1 and update gradle.properties
with modern JVM arguments and AndroidX enablement flags.
Upgrade Android Gradle Plugin to 8.2.2, Kotlin to 1.9.22, and update
SDK versions. Replace jcenter with mavenCentral and update test
configuration syntax for Gradle 8 compatibility.
Replace Android Support Library with AndroidX dependencies, update
library versions, and modernize build configuration for AGP 8
compatibility. Remove deprecated material-intro-screen library.
Remove material-intro-screen activity reference and update manifest
configuration for modern Android requirements.
Update layout files to use androidx.* widget classes instead of
android.support.* for CoordinatorLayout, CardView, RecyclerView,
DrawerLayout, and other components.
Add light_status_bar_color resource for proper status bar theming.
Update opoc preference and utility classes to use AndroidX imports
instead of android.support.* imports. This includes GsPreferenceFragmentCompat,
LanguagePreferenceCompat, ActivityUtils, ContextUtils, PermissionChecker,
and ShareUtil.
Update ColorPickerPreference, ColorPickerDialogBuilder, and
AbsCustomSlider to use AndroidX imports.
Update all activity classes and homeparts to use AndroidX imports.
Includes AutoFinishActivity, ColorActivity, HideAppsActivity,
HomeActivity, MinibarEditActivity, MoreInfoActivity, OnBoardActivity,
SettingsActivity, and homeparts helpers.
Update all settings fragment classes to use AndroidX imports including
HideAppsFragment and all Settings*Fragment classes.
Update all custom widget classes to use AndroidX imports including
AppDrawerGrid, AppDrawerPage, AppItemView, CellContainer,
ColorPreferenceCategory, Desktop, DesktopOptionView, Dock,
GroupPopupView, ItemOptionView, PagerIndicator, and SearchBar.
Update viewutil classes to use AndroidX imports including
AbstractPopupIconLabelItem, DialogHelper, DrawerAppItem, IconLabelItem,
PopupDynamicIconLabelItem, and PopupIconLabelItem.
Update utility classes to use AndroidX imports including AppManager,
AppSettings, LauncherAction, and Tool.
Update NotificationListener to use AndroidX LocalBroadcastManager import.
@Amir-yazdanmanesh
Copy link
Contributor Author

I fotgot to assign you @gsantner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant