Loading app/src/main/java/foundation/e/apps/data/Constants.kt +0 −1 Original line number Diff line number Diff line Loading @@ -34,5 +34,4 @@ object Constants { "${BuildConfig.PACKAGE_NAME_PARENTAL_CONTROL}.action.APP_LOUNGE_LOGIN" const val REQUEST_GPLAY_LOGIN = "request_gplay_login" const val ACTION_LOGIN = "foundation.e.apps.action.LOGIN" } app/src/main/java/foundation/e/apps/feature/main/MainActivity.kt +2 −1 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import foundation.e.apps.feature.auth.login.LoginUiEvent import foundation.e.apps.feature.auth.login.LoginViewModel import foundation.e.apps.feature.auth.session.SessionRateLimitNotifier import foundation.e.apps.feature.auth.session.SessionViewModel import foundation.e.apps.installapp.Constants.ACTION_LOGIN import foundation.e.apps.ui.application.ApplicationFragmentArgs import foundation.e.apps.ui.application.subFrags.ApplicationDialogFragment import foundation.e.apps.ui.error.AppUnavailableDialogDirections Loading Loading @@ -232,7 +233,7 @@ class MainActivity : AppCompatActivity() { } private fun checkGPlayLoginRequest(intent: Intent?) { val isLoginAction = intent?.action == Constants.ACTION_LOGIN val isLoginAction = intent?.action == ACTION_LOGIN viewModel.setGPlayLoginRequested( isLoginAction || (intent?.getBooleanExtra(Constants.REQUEST_GPLAY_LOGIN, false) ?: false), ) Loading install-app-lib/src/main/kotlin/foundation/e/apps/installapp/AppInstaller.kt +1 −2 Original line number Diff line number Diff line Loading @@ -109,8 +109,7 @@ class AppInstaller(private val context: Context) { } val intent = Intent().apply { component = ComponentName.unflattenFromString("foundation.e.apps/.services.InstallAppService") component = ComponentName(Constants.APP_LOUNGE_PACKAGE, Constants.INSTALL_SERVICE) } continuation.invokeOnCancellation { if (cancelCurrentWorkOnCancellation) { Loading install-app-lib/src/main/kotlin/foundation/e/apps/installapp/Constants.kt 0 → 100644 +26 −0 Original line number Diff line number Diff line /* * Copyright (C) 2026 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 * 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.installapp object Constants { const val APP_LOUNGE_PACKAGE = "foundation.e.apps" const val LOGIN_ACTIVITY = "$APP_LOUNGE_PACKAGE.feature.main.MainActivity" const val ACTION_LOGIN = "$APP_LOUNGE_PACKAGE.action.LOGIN" const val INSTALL_SERVICE = "$APP_LOUNGE_PACKAGE.services.InstallAppService" const val BIND_PERMISSION = "$APP_LOUNGE_PACKAGE.permission.BIND_INSTALL_SERVICE" } Loading
app/src/main/java/foundation/e/apps/data/Constants.kt +0 −1 Original line number Diff line number Diff line Loading @@ -34,5 +34,4 @@ object Constants { "${BuildConfig.PACKAGE_NAME_PARENTAL_CONTROL}.action.APP_LOUNGE_LOGIN" const val REQUEST_GPLAY_LOGIN = "request_gplay_login" const val ACTION_LOGIN = "foundation.e.apps.action.LOGIN" }
app/src/main/java/foundation/e/apps/feature/main/MainActivity.kt +2 −1 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ import foundation.e.apps.feature.auth.login.LoginUiEvent import foundation.e.apps.feature.auth.login.LoginViewModel import foundation.e.apps.feature.auth.session.SessionRateLimitNotifier import foundation.e.apps.feature.auth.session.SessionViewModel import foundation.e.apps.installapp.Constants.ACTION_LOGIN import foundation.e.apps.ui.application.ApplicationFragmentArgs import foundation.e.apps.ui.application.subFrags.ApplicationDialogFragment import foundation.e.apps.ui.error.AppUnavailableDialogDirections Loading Loading @@ -232,7 +233,7 @@ class MainActivity : AppCompatActivity() { } private fun checkGPlayLoginRequest(intent: Intent?) { val isLoginAction = intent?.action == Constants.ACTION_LOGIN val isLoginAction = intent?.action == ACTION_LOGIN viewModel.setGPlayLoginRequested( isLoginAction || (intent?.getBooleanExtra(Constants.REQUEST_GPLAY_LOGIN, false) ?: false), ) Loading
install-app-lib/src/main/kotlin/foundation/e/apps/installapp/AppInstaller.kt +1 −2 Original line number Diff line number Diff line Loading @@ -109,8 +109,7 @@ class AppInstaller(private val context: Context) { } val intent = Intent().apply { component = ComponentName.unflattenFromString("foundation.e.apps/.services.InstallAppService") component = ComponentName(Constants.APP_LOUNGE_PACKAGE, Constants.INSTALL_SERVICE) } continuation.invokeOnCancellation { if (cancelCurrentWorkOnCancellation) { Loading
install-app-lib/src/main/kotlin/foundation/e/apps/installapp/Constants.kt 0 → 100644 +26 −0 Original line number Diff line number Diff line /* * Copyright (C) 2026 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 * 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.installapp object Constants { const val APP_LOUNGE_PACKAGE = "foundation.e.apps" const val LOGIN_ACTIVITY = "$APP_LOUNGE_PACKAGE.feature.main.MainActivity" const val ACTION_LOGIN = "$APP_LOUNGE_PACKAGE.action.LOGIN" const val INSTALL_SERVICE = "$APP_LOUNGE_PACKAGE.services.InstallAppService" const val BIND_PERMISSION = "$APP_LOUNGE_PACKAGE.permission.BIND_INSTALL_SERVICE" }