Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55a166e3 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Merge branch '2696-update-minSDK' into 'main'

App Lounge: Change minimum sdk to target API 26

See merge request !499
parents b8fb0f03 416d1cdd
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ android {

    defaultConfig {
        applicationId "foundation.e.apps"
        minSdk 25
        minSdk 26
        targetSdk 30
        versionCode versionMajor * 1000000 + versionMinor * 1000 + versionPatch
        versionName "${versionMajor}.${versionMinor}.${versionPatch}"
+0 −1
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ class AppManagerImpl @Inject constructor(

    private val mutex = Mutex()

    @RequiresApi(Build.VERSION_CODES.O)
    override fun createNotificationChannels() {
        notificationManager.apply {
            createNotificationChannel(downloadNotificationChannel)
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ class AppManagerWrapper @Inject constructor(
    private val fdroidRepository: FdroidRepository
) {

    @RequiresApi(Build.VERSION_CODES.O)
    fun createNotificationChannels() {
        return appManager.createNotificationChannels()
    }
+0 −2
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ object NotificationManagerModule {
    @Singleton
    @Provides
    @Named("download")
    @RequiresApi(Build.VERSION_CODES.O)
    fun provideDownloadNotificationChannel(
        @ApplicationContext context: Context
    ): NotificationChannel {
@@ -63,7 +62,6 @@ object NotificationManagerModule {
    @Singleton
    @Provides
    @Named("update")
    @RequiresApi(Build.VERSION_CODES.O)
    fun provideUpdateNotificationChannel(
        @ApplicationContext context: Context
    ): NotificationChannel {
+2 −3
Original line number Diff line number Diff line
@@ -238,9 +238,8 @@ class AppLoungePackageManager @Inject constructor(
        val params = SessionParams(mode).apply {
            setAppPackageName(packageName)
            setOriginatingUid(android.os.Process.myUid())
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            setInstallReason(PackageManager.INSTALL_REASON_USER)
            }

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
                setRequireUserAction(SessionParams.USER_ACTION_NOT_REQUIRED)
            }
Loading