Loading app/src/main/java/foundation/e/apps/manager/download/DownloadManagerUtils.kt +1 −5 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * Copyright (C) 2021 E FOUNDATION * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading Loading @@ -66,10 +66,6 @@ class DownloadManagerUtils @Inject constructor( fusedManagerRepository.moveOBBFileToOBBDirectory(fusedDownload) fusedDownload.status = Status.DOWNLOADED fusedManagerRepository.updateFusedDownload(fusedDownload) // fusedManagerRepository.updateDownloadStatus( // fusedDownload, // Status.INSTALLING // ) } } } Loading app/src/main/java/foundation/e/apps/manager/fused/FusedManagerImpl.kt +18 −0 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.apps.manager.fused import android.app.DownloadManager Loading app/src/main/java/foundation/e/apps/manager/workmanager/InstallAppWorker.kt +20 −3 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.apps.manager.workmanager import android.app.DownloadManager Loading Loading @@ -28,7 +46,6 @@ import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.takeWhile import kotlinx.coroutines.sync.Mutex import java.lang.RuntimeException import java.util.concurrent.atomic.AtomicInteger import kotlin.time.Duration import kotlin.time.Duration.Companion.seconds Loading app/src/main/java/foundation/e/apps/utils/enums/Status.kt +1 −1 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * Copyright (C) 2021 E FOUNDATION * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading Loading
app/src/main/java/foundation/e/apps/manager/download/DownloadManagerUtils.kt +1 −5 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * Copyright (C) 2021 E FOUNDATION * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading Loading @@ -66,10 +66,6 @@ class DownloadManagerUtils @Inject constructor( fusedManagerRepository.moveOBBFileToOBBDirectory(fusedDownload) fusedDownload.status = Status.DOWNLOADED fusedManagerRepository.updateFusedDownload(fusedDownload) // fusedManagerRepository.updateDownloadStatus( // fusedDownload, // Status.INSTALLING // ) } } } Loading
app/src/main/java/foundation/e/apps/manager/fused/FusedManagerImpl.kt +18 −0 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.apps.manager.fused import android.app.DownloadManager Loading
app/src/main/java/foundation/e/apps/manager/workmanager/InstallAppWorker.kt +20 −3 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ package foundation.e.apps.manager.workmanager import android.app.DownloadManager Loading Loading @@ -28,7 +46,6 @@ import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.takeWhile import kotlinx.coroutines.sync.Mutex import java.lang.RuntimeException import java.util.concurrent.atomic.AtomicInteger import kotlin.time.Duration import kotlin.time.Duration.Companion.seconds Loading
app/src/main/java/foundation/e/apps/utils/enums/Status.kt +1 −1 Original line number Diff line number Diff line /* * Copyright ECORP SAS 2022 * Apps Quickly and easily install Android apps onto your device! * Copyright (C) 2021 E FOUNDATION * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by Loading