minSdk is bumped to 26 because the app literally crashes on lower versions otherwise: RequiresApi is wrapped around onCreate, because NotificationChannel requires a minimum sdk version of 26 or above. If we try to run the app on lower Android versions, the app will attempt to run and fail at this step, because NotificationChannel doesn't exist.
Removed jcenter, because the app still builds without it. This removes a warning about it being deprecated.
Cleaned up a few unused imports in MainActivity. After all other PRs are merged, it should be safe to optimize imports further (to prevent any merge conflicts).
This PR simply cleans up the codebase a bit:
RequiresApi
is wrapped aroundonCreate
, becauseNotificationChannel
requires a minimum sdk version of 26 or above. If we try to run the app on lower Android versions, the app will attempt to run and fail at this step, becauseNotificationChannel
doesn't exist.jcenter
, because the app still builds without it. This removes a warning about it being deprecated.