mirror of
https://github.com/FossifyOrg/Launcher.git
synced 2025-12-30 19:19:47 -05:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0608d59b00 | ||
|
|
f2c4c99255 | ||
|
|
8d7458688e | ||
|
|
41233ba439 | ||
|
|
47dfcc7c6a | ||
|
|
f3f2eb8500 | ||
|
|
598da18f7d | ||
|
|
a09315cb60 | ||
|
|
6905d13a65 | ||
|
|
afc7d0fea3 | ||
|
|
80160e72d1 | ||
|
|
66c5bb89ef | ||
|
|
c0cfab1a19 | ||
|
|
aa96344a2f | ||
|
|
aca9945ad8 | ||
|
|
07924360ab | ||
|
|
94fa10982a | ||
|
|
6359da6d6c | ||
|
|
61148a880d | ||
|
|
de83a3e3ac | ||
|
|
f19d289909 | ||
|
|
de14db9cd5 | ||
|
|
cd6a3ec5c9 | ||
|
|
5a56ac9e3b | ||
|
|
018dd2dd69 | ||
|
|
7aeff1fd73 | ||
|
|
b4553b7abe | ||
|
|
c37b911cf6 | ||
|
|
5b57af9a2e | ||
|
|
1314f56042 | ||
|
|
c31798faf9 | ||
|
|
1c02710bff |
2
.fossify/release-marker.txt
Normal file
2
.fossify/release-marker.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Auto-generated file. DO NOT EDIT.
|
||||
1.1.3
|
||||
28
.github/PULL_REQUEST_TEMPLATE.md
vendored
28
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,28 +0,0 @@
|
||||
<!-- Hey there. Thank you so much for improving Fossify. Please consider filling out the details :)-->
|
||||
|
||||
#### What is it?
|
||||
- [ ] Bugfix
|
||||
- [ ] Feature
|
||||
- [ ] Codebase improvement
|
||||
|
||||
#### Description of the changes in your PR
|
||||
<!-- Bullet points are preferred. The following is an example -->
|
||||
- Updated colors
|
||||
- Update strings
|
||||
- Added documentation
|
||||
|
||||
#### Before/After Screenshots/Screen Record
|
||||
<!-- If your PR changes the app's UI in any way, consider including screenshots or a video showing exactly what changed, so that developers and users can pinpoint it easily. Delete this if it doesn't apply to your PR.-->
|
||||
- Before:
|
||||
- After:
|
||||
|
||||
#### Fixes the following issue(s)
|
||||
<!-- Prefix issues with "Fixes" so that GitHub closes them when the PR is merged (note that each "Fixes #" should be in its own item). Also add any other relevant links. -->
|
||||
- Fixes #
|
||||
|
||||
#### Relies on the following changes
|
||||
<!-- Delete this if it doesn't apply to your PR. -->
|
||||
-
|
||||
|
||||
#### Acknowledgement
|
||||
- [ ] I read the [contribution guidelines](https://github.com/FossifyOrg/Launcher/blob/main/CONTRIBUTING.md).
|
||||
24
.github/dependabot.yml
vendored
24
.github/dependabot.yml
vendored
@@ -1,4 +1,18 @@
|
||||
version: 2
|
||||
|
||||
registries:
|
||||
maven-google:
|
||||
type: maven-repository
|
||||
url: "https://dl.google.com/dl/android/maven2/"
|
||||
|
||||
maven-central:
|
||||
type: maven-repository
|
||||
url: "https://repo.maven.apache.org/maven2"
|
||||
|
||||
jitpack:
|
||||
type: maven-repository
|
||||
url: "https://jitpack.io"
|
||||
|
||||
updates:
|
||||
- package-ecosystem: "bundler"
|
||||
directory: "/"
|
||||
@@ -8,19 +22,19 @@ updates:
|
||||
prefix: "chore"
|
||||
prefix-development: "chore"
|
||||
include: "scope"
|
||||
assignees:
|
||||
- "naveensingh"
|
||||
|
||||
- package-ecosystem: "gradle"
|
||||
directory: "/"
|
||||
registries:
|
||||
- maven-central
|
||||
- maven-google
|
||||
- jitpack
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "chore"
|
||||
prefix-development: "chore"
|
||||
include: "scope"
|
||||
assignees:
|
||||
- "naveensingh"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
@@ -30,5 +44,3 @@ updates:
|
||||
prefix: "chore"
|
||||
prefix-development: "chore"
|
||||
include: "scope"
|
||||
assignees:
|
||||
- "naveensingh"
|
||||
|
||||
25
.github/workflows/foss-release.yml
vendored
25
.github/workflows/foss-release.yml
vendored
@@ -1,25 +0,0 @@
|
||||
name: Github Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*.*.*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
call-release-workflow:
|
||||
uses: FossifyOrg/.github/.github/workflows/release.yml@main
|
||||
with:
|
||||
tag: ${{ github.ref_name }}
|
||||
flavor: "foss"
|
||||
package_name: "org.fossify.home"
|
||||
|
||||
secrets:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||
SERVICE_ACCOUNT_JSON_KEY_BASE64: ""
|
||||
FOSSIFYBOT_TOKEN: ${{ secrets.FOSSIFYBOT_TOKEN }}
|
||||
46
.github/workflows/gplay-release.yml
vendored
46
.github/workflows/gplay-release.yml
vendored
@@ -1,46 +0,0 @@
|
||||
name: Google Play Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
track:
|
||||
description: "Google Play Store release track"
|
||||
required: false
|
||||
type: choice
|
||||
default: "beta"
|
||||
options:
|
||||
- internal
|
||||
- alpha
|
||||
- beta
|
||||
- production
|
||||
rollout:
|
||||
description: "Rollout fraction (0.0-1.0)"
|
||||
required: false
|
||||
type: string
|
||||
default: "0.05"
|
||||
validate_only:
|
||||
description: "Fastlane dry-run?"
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
call-release-workflow:
|
||||
uses: FossifyOrg/.github/.github/workflows/release.yml@main
|
||||
with:
|
||||
flavor: "gplay"
|
||||
package_name: "org.fossify.home"
|
||||
track: ${{ github.event.inputs.track }}
|
||||
rollout: ${{ github.event.inputs.rollout }}
|
||||
validate_only: ${{ github.event.inputs.validate_only == 'true' }}
|
||||
|
||||
secrets:
|
||||
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
|
||||
SERVICE_ACCOUNT_JSON_KEY_BASE64: ${{ secrets.SERVICE_ACCOUNT_JSON_KEY_BASE64 }}
|
||||
FOSSIFYBOT_TOKEN: ""
|
||||
3
.github/workflows/image-minimizer.yml
vendored
3
.github/workflows/image-minimizer.yml
vendored
@@ -11,5 +11,4 @@ on:
|
||||
jobs:
|
||||
call-image-minimizer-workflow:
|
||||
uses: FossifyOrg/.github/.github/workflows/image-minimizer.yml@main
|
||||
secrets:
|
||||
FOSSIFYBOT_TOKEN: ${{ secrets.FOSSIFYBOT_TOKEN }}
|
||||
secrets: inherit
|
||||
|
||||
5
.github/workflows/no-response.yml
vendored
5
.github/workflows/no-response.yml
vendored
@@ -2,11 +2,10 @@ name: No Response
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 12 * * *' # Runs daily at noon
|
||||
- cron: "0 12 * * *" # Runs daily at noon
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
call-no-response-workflow:
|
||||
uses: FossifyOrg/.github/.github/workflows/no-response.yml@main
|
||||
secrets:
|
||||
FOSSIFYBOT_TOKEN: ${{ secrets.FOSSIFYBOT_TOKEN }}
|
||||
secrets: inherit
|
||||
|
||||
7
.github/workflows/pr-labeler.yml
vendored
7
.github/workflows/pr-labeler.yml
vendored
@@ -4,12 +4,7 @@ on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
# write permission is not required as FOSSIFYBOT_TOKEN is used
|
||||
|
||||
jobs:
|
||||
call-pr-labeler-workflow:
|
||||
uses: FossifyOrg/.github/.github/workflows/pr-labeler.yml@main
|
||||
secrets:
|
||||
FOSSIFYBOT_TOKEN: ${{ secrets.FOSSIFYBOT_TOKEN }}
|
||||
secrets: inherit
|
||||
|
||||
15
.github/workflows/prepare-release-pr.yml
vendored
Normal file
15
.github/workflows/prepare-release-pr.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Prepare Release PR
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [prepare-release]
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "CHANGELOG.md"
|
||||
|
||||
jobs:
|
||||
call-release-pr:
|
||||
uses: FossifyOrg/.github/.github/workflows/prepare-release-pr.yml@main
|
||||
secrets: inherit
|
||||
17
.github/workflows/release-commenter.yml
vendored
17
.github/workflows/release-commenter.yml
vendored
@@ -1,17 +0,0 @@
|
||||
name: Release Commenter
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: read
|
||||
pull-requests: read
|
||||
# write permission is not required as FOSSIFYBOT_TOKEN is used
|
||||
|
||||
jobs:
|
||||
call-release-commenter:
|
||||
uses: FossifyOrg/.github/.github/workflows/release-commenter.yml@main
|
||||
secrets:
|
||||
FOSSIFYBOT_TOKEN: ${{ secrets.FOSSIFYBOT_TOKEN }}
|
||||
17
.github/workflows/release.yml
vendored
Normal file
17
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- ".fossify/release-marker.txt"
|
||||
|
||||
jobs:
|
||||
call-release-workflow:
|
||||
name: Release
|
||||
uses: FossifyOrg/.github/.github/workflows/release.yml@main
|
||||
with:
|
||||
track: ${{ vars.GPLAY_TRACK || 'beta' }}
|
||||
rollout: ${{ vars.GPLAY_ROLLOUT || '0.05' }}
|
||||
validate_only: ${{ vars.GPLAY_DRY_RUN == 'true' }}
|
||||
secrets: inherit
|
||||
15
.github/workflows/validate-fastlane-metadata.yml
vendored
Normal file
15
.github/workflows/validate-fastlane-metadata.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Fastlane metadata validation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "fastlane/**"
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "fastlane/**"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
uses: FossifyOrg/.github/.github/workflows/validate-fastlane-metadata.yml@main
|
||||
28
CHANGELOG.md
28
CHANGELOG.md
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.1.3] - 2025-06-19
|
||||
|
||||
### Changed
|
||||
|
||||
- Updated translations
|
||||
|
||||
### Fixed
|
||||
|
||||
- Addressed frequently occurring crashes ([#6])
|
||||
|
||||
## [1.1.2] - 2025-06-06
|
||||
|
||||
### Changed
|
||||
|
||||
- Updated translations
|
||||
|
||||
### Fixed
|
||||
|
||||
- Clicking home screen app labels now works as expected ([#115])
|
||||
|
||||
## [1.1.1] - 2025-05-14
|
||||
|
||||
### Changed
|
||||
@@ -45,15 +65,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Initial release
|
||||
|
||||
[Unreleased]: https://github.com/FossifyOrg/Launcher/compare/1.1.1...HEAD
|
||||
[Unreleased]: https://github.com/FossifyOrg/Launcher/compare/1.1.3...HEAD
|
||||
[1.1.3]: https://github.com/FossifyOrg/Launcher/compare/1.1.2...1.1.3
|
||||
[1.1.2]: https://github.com/FossifyOrg/Launcher/compare/1.1.1...1.1.2
|
||||
[1.1.1]: https://github.com/FossifyOrg/Launcher/compare/1.1.0...1.1.1
|
||||
[1.1.0]: https://github.com/FossifyOrg/Launcher/compare/1.0.1...1.1.0
|
||||
[1.0.1]: https://github.com/FossifyOrg/Launcher/compare/1.0.0...1.0.1
|
||||
[1.0.0]: https://github.com/FossifyOrg/Launcher/releases/tag/1.0.0
|
||||
|
||||
[#5]: https://github.com/FossifyOrg/Launcher/issues/5
|
||||
[#6]: https://github.com/FossifyOrg/Launcher/issues/6
|
||||
[#44]: https://github.com/FossifyOrg/Launcher/issues/44
|
||||
[#51]: https://github.com/FossifyOrg/Launcher/issues/51
|
||||
[#63]: https://github.com/FossifyOrg/Launcher/issues/63
|
||||
[#65]: https://github.com/FossifyOrg/Launcher/issues/65
|
||||
[#74]: https://github.com/FossifyOrg/Launcher/issues/74
|
||||
[#74]: https://github.com/FossifyOrg/Launcher/issues/74
|
||||
[#115]: https://github.com/FossifyOrg/Launcher/issues/115
|
||||
|
||||
1
CODEOWNERS
Normal file
1
CODEOWNERS
Normal file
@@ -0,0 +1 @@
|
||||
* @naveensingh
|
||||
26
Gemfile.lock
26
Gemfile.lock
@@ -10,26 +10,26 @@ GEM
|
||||
public_suffix (>= 2.0.2, < 7.0)
|
||||
artifactory (3.0.17)
|
||||
atomos (0.1.3)
|
||||
aws-eventstream (1.3.2)
|
||||
aws-partitions (1.1097.0)
|
||||
aws-sdk-core (3.223.0)
|
||||
aws-eventstream (1.4.0)
|
||||
aws-partitions (1.1116.0)
|
||||
aws-sdk-core (3.225.2)
|
||||
aws-eventstream (~> 1, >= 1.3.0)
|
||||
aws-partitions (~> 1, >= 1.992.0)
|
||||
aws-sigv4 (~> 1.9)
|
||||
base64
|
||||
jmespath (~> 1, >= 1.6.1)
|
||||
logger
|
||||
aws-sdk-kms (1.100.0)
|
||||
aws-sdk-core (~> 3, >= 3.216.0)
|
||||
aws-sdk-kms (1.105.0)
|
||||
aws-sdk-core (~> 3, >= 3.225.0)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sdk-s3 (1.185.0)
|
||||
aws-sdk-core (~> 3, >= 3.216.0)
|
||||
aws-sdk-s3 (1.189.1)
|
||||
aws-sdk-core (~> 3, >= 3.225.0)
|
||||
aws-sdk-kms (~> 1)
|
||||
aws-sigv4 (~> 1.5)
|
||||
aws-sigv4 (1.11.0)
|
||||
aws-sigv4 (1.12.1)
|
||||
aws-eventstream (~> 1, >= 1.0.2)
|
||||
babosa (1.0.4)
|
||||
base64 (0.2.0)
|
||||
base64 (0.3.0)
|
||||
claide (1.1.0)
|
||||
colored (1.2)
|
||||
colored2 (3.1.2)
|
||||
@@ -71,7 +71,7 @@ GEM
|
||||
faraday_middleware (1.2.1)
|
||||
faraday (~> 1.0)
|
||||
fastimage (2.4.0)
|
||||
fastlane (2.227.2)
|
||||
fastlane (2.228.0)
|
||||
CFPropertyList (>= 2.3, < 4.0.0)
|
||||
addressable (>= 2.8, < 3.0.0)
|
||||
artifactory (~> 3.0)
|
||||
@@ -160,7 +160,7 @@ GEM
|
||||
httpclient (2.9.0)
|
||||
mutex_m
|
||||
jmespath (1.6.2)
|
||||
json (2.11.3)
|
||||
json (2.12.2)
|
||||
jwt (2.10.1)
|
||||
base64
|
||||
logger (1.7.0)
|
||||
@@ -170,13 +170,13 @@ GEM
|
||||
multipart-post (2.4.1)
|
||||
mutex_m (0.3.0)
|
||||
nanaimo (0.4.0)
|
||||
naturally (2.2.1)
|
||||
naturally (2.3.0)
|
||||
nkf (0.2.0)
|
||||
optparse (0.6.0)
|
||||
os (1.1.4)
|
||||
plist (3.7.2)
|
||||
public_suffix (6.0.2)
|
||||
rake (13.2.1)
|
||||
rake (13.3.0)
|
||||
representable (3.2.0)
|
||||
declarative (< 0.1.0)
|
||||
trailblazer-option (>= 0.1.1, < 0.2.0)
|
||||
|
||||
@@ -26,11 +26,11 @@ android {
|
||||
compileSdk = project.libs.versions.app.build.compileSDKVersion.get().toInt()
|
||||
|
||||
defaultConfig {
|
||||
applicationId = libs.versions.app.version.appId.get()
|
||||
applicationId = project.property("APP_ID").toString()
|
||||
minSdk = project.libs.versions.app.build.minimumSDK.get().toInt()
|
||||
targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
|
||||
versionName = project.libs.versions.app.version.versionName.get()
|
||||
versionCode = project.libs.versions.app.version.versionCode.get().toInt()
|
||||
versionName = project.property("VERSION_NAME").toString()
|
||||
versionCode = project.property("VERSION_CODE").toString().toInt()
|
||||
setProperty("archivesBaseName", "launcher-$versionCode")
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
@@ -104,7 +104,7 @@ android {
|
||||
kotlinOptions.jvmTarget = project.libs.versions.app.build.kotlinJVMTarget.get()
|
||||
}
|
||||
|
||||
namespace = libs.versions.app.version.appId.get()
|
||||
namespace = project.property("APP_ID").toString()
|
||||
|
||||
lint {
|
||||
checkReleaseBuilds = false
|
||||
|
||||
@@ -2,7 +2,6 @@ package org.fossify.home.activities
|
||||
|
||||
import android.animation.ObjectAnimator
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.Activity
|
||||
import android.app.admin.DevicePolicyManager
|
||||
import android.app.role.RoleManager
|
||||
import android.appwidget.AppWidgetHost
|
||||
@@ -10,7 +9,6 @@ import android.appwidget.AppWidgetManager
|
||||
import android.appwidget.AppWidgetProviderInfo
|
||||
import android.content.ActivityNotFoundException
|
||||
import android.content.ComponentName
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.content.pm.LauncherApps
|
||||
@@ -20,7 +18,6 @@ import android.graphics.Bitmap
|
||||
import android.graphics.Color
|
||||
import android.graphics.Rect
|
||||
import android.graphics.drawable.Drawable
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
@@ -97,6 +94,7 @@ import org.fossify.home.receivers.LockDeviceAdminReceiver
|
||||
import kotlin.math.abs
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
import androidx.core.net.toUri
|
||||
|
||||
class MainActivity : SimpleActivity(), FlingListener {
|
||||
private var mTouchDownX = -1
|
||||
@@ -222,7 +220,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
if (!showIcon) {
|
||||
try {
|
||||
launchersDB.deleteById(it.id!!)
|
||||
} catch (ignored: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
showIcon
|
||||
@@ -248,7 +246,11 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
binding.homeScreenGrid.root.appWidgetHost.stopListening()
|
||||
try {
|
||||
binding.homeScreenGrid.root.appWidgetHost.stopListening()
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
wasJustPaused = false
|
||||
}
|
||||
|
||||
@@ -283,19 +285,20 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
}
|
||||
}
|
||||
|
||||
REQUEST_ALLOW_BINDING_WIDGET -> mActionOnCanBindWidget?.invoke(resultCode == Activity.RESULT_OK)
|
||||
REQUEST_CONFIGURE_WIDGET -> mActionOnWidgetConfiguredWidget?.invoke(resultCode == Activity.RESULT_OK)
|
||||
REQUEST_ALLOW_BINDING_WIDGET -> mActionOnCanBindWidget?.invoke(resultCode == RESULT_OK)
|
||||
REQUEST_CONFIGURE_WIDGET -> mActionOnWidgetConfiguredWidget?.invoke(resultCode == RESULT_OK)
|
||||
REQUEST_CREATE_SHORTCUT -> {
|
||||
if (resultCode == Activity.RESULT_OK && resultData != null) {
|
||||
if (resultCode == RESULT_OK && resultData != null) {
|
||||
val launcherApps =
|
||||
applicationContext.getSystemService(Context.LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
applicationContext.getSystemService(LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
if (launcherApps.hasShortcutHostPermission()) {
|
||||
val item = launcherApps.getPinItemRequest(resultData)
|
||||
val shortcutInfo = item?.shortcutInfo ?: return
|
||||
if (item.accept()) {
|
||||
val shortcutId = item.shortcutInfo?.id!!
|
||||
val label = item.shortcutInfo.getLabel()
|
||||
val shortcutId = shortcutInfo.id
|
||||
val label = shortcutInfo.getLabel()
|
||||
val icon = launcherApps.getShortcutBadgedIconDrawable(
|
||||
item.shortcutInfo!!,
|
||||
shortcutInfo,
|
||||
resources.displayMetrics.densityDpi
|
||||
)
|
||||
mActionOnAddShortcut?.invoke(shortcutId, label, icon)
|
||||
@@ -324,7 +327,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
|
||||
try {
|
||||
mDetector.onTouchEvent(event)
|
||||
} catch (ignored: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
when (event.actionMasked) {
|
||||
@@ -436,17 +439,15 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
private fun handleIntentAction(intent: Intent) {
|
||||
if (intent.action == LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT) {
|
||||
val launcherApps =
|
||||
applicationContext.getSystemService(Context.LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
applicationContext.getSystemService(LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
val item = launcherApps.getPinItemRequest(intent)
|
||||
if (item.shortcutInfo == null) {
|
||||
return
|
||||
}
|
||||
val shortcutInfo = item?.shortcutInfo ?: return
|
||||
|
||||
ensureBackgroundThread {
|
||||
val shortcutId = item.shortcutInfo?.id!!
|
||||
val label = item.shortcutInfo.getLabel()
|
||||
val shortcutId = shortcutInfo.id
|
||||
val label = shortcutInfo.getLabel()
|
||||
val icon = launcherApps.getShortcutBadgedIconDrawable(
|
||||
item.shortcutInfo!!,
|
||||
shortcutInfo,
|
||||
resources.displayMetrics.densityDpi
|
||||
)
|
||||
val (page, rect) = findFirstEmptyCell()
|
||||
@@ -457,7 +458,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
right = rect.right,
|
||||
bottom = rect.bottom,
|
||||
page = page,
|
||||
packageName = item.shortcutInfo!!.`package`,
|
||||
packageName = shortcutInfo.`package`,
|
||||
activityName = "",
|
||||
title = label,
|
||||
type = ITEM_TYPE_SHORTCUT,
|
||||
@@ -479,7 +480,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
try {
|
||||
item.accept()
|
||||
binding.homeScreenGrid.root.storeAndShowGridItem(gridItem)
|
||||
} catch (ignored: IllegalStateException) {
|
||||
} catch (_: IllegalStateException) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -573,6 +574,8 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
window.navigationBarColor = resources.getColor(R.color.semitransparent_navigation)
|
||||
binding.homeScreenGrid.root.fragmentExpanded()
|
||||
binding.homeScreenGrid.root.hideResizeLines()
|
||||
|
||||
@SuppressLint("AccessibilityFocus")
|
||||
fragment.root.performAccessibilityAction(
|
||||
AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS,
|
||||
null
|
||||
@@ -641,7 +644,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
}
|
||||
|
||||
val devicePolicyManager =
|
||||
getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
|
||||
getSystemService(DEVICE_POLICY_SERVICE) as DevicePolicyManager
|
||||
val isLockDeviceAdminActive = devicePolicyManager.isAdminActive(
|
||||
ComponentName(this, LockDeviceAdminReceiver::class.java)
|
||||
)
|
||||
@@ -694,7 +697,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
val userHandle = android.os.Process.myUserHandle()
|
||||
val shortcutBounds = binding.homeScreenGrid.root.getClickableRect(clickedGridItem)
|
||||
val launcherApps =
|
||||
applicationContext.getSystemService(Context.LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
applicationContext.getSystemService(LAUNCHER_APPS_SERVICE) as LauncherApps
|
||||
launcherApps.startShortcut(packageName, id, shortcutBounds, null, userHandle)
|
||||
}
|
||||
}
|
||||
@@ -718,7 +721,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
x: Float,
|
||||
y: Float,
|
||||
gridItem: HomeScreenGridItem,
|
||||
isOnAllAppsFragment: Boolean
|
||||
isOnAllAppsFragment: Boolean,
|
||||
) {
|
||||
binding.homeScreenGrid.root.hideResizeLines()
|
||||
mLongPressedIcon = gridItem
|
||||
@@ -813,7 +816,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
Intent(Intent.ACTION_SET_WALLPAPER).apply {
|
||||
startActivity(this)
|
||||
}
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
} catch (_: ActivityNotFoundException) {
|
||||
toast(org.fossify.commons.R.string.no_app_found)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
@@ -883,7 +886,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
}
|
||||
|
||||
private class MyGestureListener(
|
||||
private val flingListener: FlingListener
|
||||
private val flingListener: FlingListener,
|
||||
) : GestureDetector.SimpleOnGestureListener() {
|
||||
override fun onSingleTapUp(event: MotionEvent): Boolean {
|
||||
(flingListener as MainActivity).homeScreenClicked(event.x, event.y)
|
||||
@@ -899,7 +902,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
event1: MotionEvent?,
|
||||
event2: MotionEvent,
|
||||
velocityX: Float,
|
||||
velocityY: Float
|
||||
velocityY: Float,
|
||||
): Boolean {
|
||||
// ignore fling events just after releasing an icon from dragging
|
||||
if (System.currentTimeMillis() - mLastUpEvent < 500L) {
|
||||
@@ -955,7 +958,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
Class.forName("android.app.StatusBarManager")
|
||||
.getMethod("expandNotificationsPanel")
|
||||
.invoke(getSystemService("statusbar"))
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1004,9 +1007,16 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
}
|
||||
|
||||
val label = info.loadLabel(packageManager).toString()
|
||||
val drawable =
|
||||
info.loadIcon(packageManager) ?: getDrawableForPackageName(packageName) ?: continue
|
||||
val placeholderColor = calculateAverageColor(drawable.toBitmap())
|
||||
val drawable = info.loadIcon(packageManager)
|
||||
?: getDrawableForPackageName(packageName)
|
||||
?: continue
|
||||
|
||||
val bitmap = drawable.toBitmap(
|
||||
width = max(drawable.intrinsicWidth, 1),
|
||||
height = max(drawable.intrinsicHeight, 1),
|
||||
config = Bitmap.Config.ARGB_8888
|
||||
)
|
||||
val placeholderColor = calculateAverageColor(bitmap)
|
||||
allApps.add(
|
||||
AppLauncher(
|
||||
id = null,
|
||||
@@ -1015,7 +1025,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
activityName = activityName,
|
||||
order = 0,
|
||||
thumbnailColor = placeholderColor,
|
||||
drawable = drawable.toBitmap().toDrawable(resources)
|
||||
drawable = bitmap.toDrawable(resources)
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -1028,7 +1038,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
val homeScreenGridItems = ArrayList<HomeScreenGridItem>()
|
||||
try {
|
||||
val defaultDialerPackage =
|
||||
(getSystemService(Context.TELECOM_SERVICE) as TelecomManager).defaultDialerPackage
|
||||
(getSystemService(TELECOM_SERVICE) as TelecomManager).defaultDialerPackage
|
||||
appLaunchers.firstOrNull { it.packageName == defaultDialerPackage }?.apply {
|
||||
val dialerIcon =
|
||||
HomeScreenGridItem(
|
||||
@@ -1051,7 +1061,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
)
|
||||
homeScreenGridItems.add(dialerIcon)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -1078,11 +1088,11 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
)
|
||||
homeScreenGridItems.add(messengerIcon)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
try {
|
||||
val browserIntent = Intent("android.intent.action.VIEW", Uri.parse("http://"))
|
||||
val browserIntent = Intent(Intent.ACTION_VIEW, "http://".toUri())
|
||||
val resolveInfo =
|
||||
packageManager.resolveActivity(browserIntent, PackageManager.MATCH_DEFAULT_ONLY)
|
||||
val defaultBrowserPackage = resolveInfo!!.activityInfo.packageName
|
||||
@@ -1108,7 +1118,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
)
|
||||
homeScreenGridItems.add(browserIcon)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -1141,7 +1151,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
homeScreenGridItems.add(storeIcon)
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -1171,7 +1181,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
)
|
||||
homeScreenGridItems.add(cameraIcon)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
} catch (_: Exception) {
|
||||
}
|
||||
|
||||
homeScreenGridItemsDB.insertAll(homeScreenGridItems)
|
||||
@@ -1181,7 +1191,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
appWidgetManager: AppWidgetManager,
|
||||
appWidgetId: Int,
|
||||
appWidgetInfo: AppWidgetProviderInfo,
|
||||
callback: (canBind: Boolean) -> Unit
|
||||
callback: (canBind: Boolean) -> Unit,
|
||||
) {
|
||||
mActionOnCanBindWidget = null
|
||||
val canCreateWidget =
|
||||
@@ -1201,7 +1211,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
fun handleWidgetConfigureScreen(
|
||||
appWidgetHost: AppWidgetHost,
|
||||
appWidgetId: Int,
|
||||
callback: (canBind: Boolean) -> Unit
|
||||
callback: (canBind: Boolean) -> Unit,
|
||||
) {
|
||||
mActionOnWidgetConfiguredWidget = callback
|
||||
appWidgetHost.startAppWidgetConfigureActivityForResult(
|
||||
@@ -1215,7 +1225,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
||||
|
||||
fun handleShorcutCreation(
|
||||
activityInfo: ActivityInfo,
|
||||
callback: (shortcutId: String, label: String, icon: Drawable) -> Unit
|
||||
callback: (shortcutId: String, label: String, icon: Drawable) -> Unit,
|
||||
) {
|
||||
mActionOnAddShortcut = callback
|
||||
val componentName = ComponentName(activityInfo.packageName, activityInfo.name)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,10 +2,10 @@
|
||||
<resources>
|
||||
<string name="app_launcher_name">משגר</string>
|
||||
<string name="launcher_settings">הגדרות משגר</string>
|
||||
<string name="app_info">מידע על האפליקציה</string>
|
||||
<string name="app_info">פרטי אפליקציה</string>
|
||||
<string name="touch_hold_widget">לחיצה ארוכה על הווידג\'ט וגרירה שלו במסך הראשי</string>
|
||||
<string name="uninstall">הסרה</string>
|
||||
<string name="hide_icon">החבא אייקון</string>
|
||||
<string name="hide_icon">הסתר אייקון</string>
|
||||
<string name="add_hidden_icons">הוסף אייקונים נסתרים</string>
|
||||
<string name="manage_hidden_icons">ניהול אייקונים נסתרים</string>
|
||||
<string name="hidden_icons">אייקונים נסתרים</string>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources></resources>
|
||||
<resources>
|
||||
<string name="app_launcher_name">Покренувач</string>
|
||||
</resources>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<string name="close_app_drawer_on_app_open">Fechar gaveta de aplicativos ao abrir um aplicativo</string>
|
||||
<string name="home_screen_settings">Tela inicial</string>
|
||||
<string name="widget_too_big">O widget é muito grande para o tamanho atual da tela inicial</string>
|
||||
<string name="app_launcher_name">Launcher</string>
|
||||
<string name="app_launcher_name">Iniciador</string>
|
||||
<string name="double_tap_to_lock">Toque duas vezes para bloquear a tela</string>
|
||||
<string name="lock_device_admin_hint">Para habilitar o recurso de toque duplo para bloquear a tela, você precisa conceder permissão de administrador. Observe que o aplicativo não pode ser desinstalado até que essa permissão seja removida.</string>
|
||||
<string name="lock_device_admin_warning">Desativar a permissão de administrador desabilitará o recurso de toque duplo para bloquear a tela.</string>
|
||||
|
||||
8
fastlane/metadata/android/en-US/changelogs/5.txt
Normal file
8
fastlane/metadata/android/en-US/changelogs/5.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Changed:
|
||||
|
||||
• Updated translations
|
||||
|
||||
Fixed:
|
||||
|
||||
• Clicking home screen app labels now works as expected
|
||||
|
||||
8
fastlane/metadata/android/en-US/changelogs/6.txt
Normal file
8
fastlane/metadata/android/en-US/changelogs/6.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Changed:
|
||||
|
||||
• Updated translations
|
||||
|
||||
Fixed:
|
||||
|
||||
• Addressed frequently occurring crashes
|
||||
|
||||
@@ -10,7 +10,7 @@ Gérez facilement vos applications en les masquant ou en les désinstallant en q
|
||||
<b>🔒 CONFIDENTIALITÉ ET SÉCURITÉ :</b><br>
|
||||
Votre vie privée est au cœur de Fossify Launcher. Sans accès à Internet et sans autorisations intrusives, vos données restent avec vous. Pas de suivi, pas de publicités : juste un lanceur conçu pour respecter votre vie privée.<br><br>
|
||||
<b>🌐 ASSURANCE OPEN SOURCE :</b><br>
|
||||
Fossify Launcher est construit sur une base open source, vous permettant de consulter notre code sur GitHub, favorisant la confiance et une communauté engagée en faveur de la confidentialité.<br><br>
|
||||
Fossify Launcher est construit sur une base open source, qui vous permet de consulter notre code sur GitHub, favorisant la confiance et une communauté engagée en faveur de la confidentialité.<br><br>
|
||||
Trouvez votre équilibre entre vitesse, personnalisation et confidentialité avec Fossify Launcher.<br><br>
|
||||
Découvrez d'autres applications Fossify : https://www.fossify.org<br>
|
||||
Code open source : https://www.github.com/FossifyOrg<br>
|
||||
|
||||
18
fastlane/metadata/android/iw-IL/full_description.txt
Normal file
18
fastlane/metadata/android/iw-IL/full_description.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
Fossify משגר הוא השער שלך לחווית מסך בית מהירה, מותאמת אישית ששומרת על פרטיותך. ללא פרסומות, בלי עומס – רק משגר חלק ויעיל שנועד להתאים לסגנון ולהעדפות הייחודיות שלך.<br><br>
|
||||
<b>🚀 ניווט מהיר כברק:</b><br>
|
||||
נווט במכשיר שלך במהירות ובדיוק. Fossify משגר מותאם להיות רספונסיבי וזורם, ומעניק לך גישה מיידית לאפליקציות המועדפות עליך ללא השהיה.<br><br>
|
||||
<b>🎨 התאמה אישית מלאה:</b><br>
|
||||
עצב את מסך הבית שלך עם ערכות נושא דינמיות, צבעים מותאמים אישית ופריסות. התאם אישית את המשגר שלך כדי להתאים לסגנון שלך באמצעות כלים קלים לשימוש המאפשרים לך ליצור הגדרה ייחודית באמת.<br><br>
|
||||
<b>🖼️ תמיכה מלאה בווידג'טים:</b><br>
|
||||
שלב ווידג'טים הניתנים לשינוי גודל בקלות. בין אם אתה צריך שעונים, לוחות שנה או כלים שימושיים אחרים, Fossify Launcher מבטיח שהם ישתלבו בצורה חלקה בעיצוב מסך הבית שלך.<br><br>
|
||||
<b>📱 ללא עומס מיותר:</b><br>
|
||||
נהל את האפליקציות שלך ללא מאמץ על ידי הסתרתן או הסרתן בכמה לחיצות בלבד, ושמור על מסך הבית שלך מאורגן ונקי מעומס.<br><br>
|
||||
<b>🔒 פרטיות ואבטחה:</b><br>
|
||||
הפרטיות שלך היא לב ליבו של Fossify Launcher. ללא גישה לאינטרנט וללא הרשאות חודרניות, הנתונים שלך נשארים איתך. ללא מעקב, ללא פרסומות – רק משגר שנבנה כדי לכבד את פרטיותך.<br><br>
|
||||
<b>🌐 הבטחה בקוד פתוח:</b><br>
|
||||
Fossify משגר בנוי על בסיס קוד פתוח, המאפשר לך לסקור את הקוד שלנו ב-GitHub, ומטפח אמון וקהילה המחויבת לפרטיות.<br><br>
|
||||
מצא את האיזון שלך בין מהירות, התאמה אישית ופרטיות עם Fossify Launcher.<br><br>
|
||||
חקור עוד אפליקציות Fossify: https://www.fossify.org<br>
|
||||
קוד פתוח: https://www.github.com/FossifyOrg<br>
|
||||
הצטרף לקהילה ב-Reddit: https://www.reddit.com/r/Fossify<br>
|
||||
התחבר בטלגרם: https://t.me/Fossify<br>
|
||||
1
fastlane/metadata/android/iw-IL/short_description.txt
Normal file
1
fastlane/metadata/android/iw-IL/short_description.txt
Normal file
@@ -0,0 +1 @@
|
||||
התאם אישית את מסך הבית שלך עם משגר מהיר, ללא פרסומות, ובקוד פתוח
|
||||
19
fastlane/metadata/android/ru-RU/full_description.txt
Normal file
19
fastlane/metadata/android/ru-RU/full_description.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
Лаунчер Fossify — это ваш способ быстрого, персонализированного и приватному домашнему экрану. Без рекламы, никаких излишеств — просто плавный, эффективный лаунчер, разработанный с учётом вашего уникального стиля и предпочтений.<br><br>
|
||||
|
||||
<b>🚀 LIGHTNING-FAST NAVIGATION:</b><br>
|
||||
Navigate your device with speed and precision. Fossify Launcher is optimized to be responsive and fluid, giving you instant access to your favorite apps without lag.<br><br>
|
||||
<b>🎨 FULL CUSTOMIZATION:</b><br>
|
||||
Tailor your home screen with dynamic themes, custom colors, and layouts. Personalize your launcher to match your style with easy-to-use tools that let you create a truly unique setup.<br><br>
|
||||
<b>🖼️ COMPLETE WIDGET SUPPORT:</b><br>
|
||||
Integrate fully resizable widgets with ease. Whether you need clocks, calendars, or other handy tools, Fossify Launcher ensures they blend seamlessly into your home screen design.<br><br>
|
||||
<b>📱 NO UNWANTED CLUTTER:</b><br>
|
||||
Effortlessly manage your apps by hiding or uninstalling them in just a few taps, keeping your home screen organized and clutter-free.<br><br>
|
||||
<b>🔒 PRIVACY AND SECURITY:</b><br>
|
||||
Your privacy is at the heart of Fossify Launcher. With no internet access and no intrusive permissions, your data stays with you. No tracking, no ads – just a launcher built to respect your privacy.<br><br>
|
||||
<b>🌐 OPEN-SOURCE ASSURANCE:</b><br>
|
||||
Fossify Launcher is built on an open-source foundation, allowing you to review our code on GitHub, fostering trust and a community committed to privacy.<br><br>
|
||||
Find your balance of speed, customization, and privacy with Fossify Launcher.<br><br>
|
||||
Ознакомьтесь с другими приложениями от Fossify: https://www.fossify.org
|
||||
Исходный код: https://www.github.com/FossifyOrg
|
||||
Присоединяйтесь к сообществу на Reddit: https://www.reddit.com/r/Fossify
|
||||
Подключайтесь в Telegram: https://t.me/Fossify
|
||||
@@ -1 +1 @@
|
||||
Настройте свой домашний экран с быстрым лаунчером без рекламы с открытым исходным кодом
|
||||
Настройте домашний экран с быстрым, безрекламным и свободным лаунчером
|
||||
|
||||
@@ -3,3 +3,8 @@ android.useAndroidX=true
|
||||
android.nonTransitiveRClass=true
|
||||
|
||||
org.gradle.jvmargs=-Xmx4096M
|
||||
|
||||
# Versioning
|
||||
VERSION_NAME=1.1.3
|
||||
VERSION_CODE=6
|
||||
APP_ID=org.fossify.home
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
[versions]
|
||||
#jetbrains
|
||||
kotlin = "1.9.25"
|
||||
kotlin = "2.1.21"
|
||||
#KSP
|
||||
ksp = "1.9.25-1.0.20"
|
||||
ksp = "2.1.21-2.0.2"
|
||||
#Detekt
|
||||
detekt = "1.23.3"
|
||||
detekt = "1.23.8"
|
||||
#Room
|
||||
room = "2.6.1"
|
||||
room = "2.7.1"
|
||||
#Fossify
|
||||
commons = "2.0.0"
|
||||
commons = "3.0.5"
|
||||
#Gradle
|
||||
gradlePlugins-agp = "8.10.0"
|
||||
gradlePlugins-agp = "8.10.1"
|
||||
#build
|
||||
app-build-compileSDKVersion = "34"
|
||||
app-build-targetSDK = "34"
|
||||
app-build-minimumSDK = "26"
|
||||
app-build-javaVersion = "VERSION_17"
|
||||
app-build-kotlinJVMTarget = "17"
|
||||
#versioning
|
||||
app-version-appId = "org.fossify.home"
|
||||
app-version-versionCode = "4"
|
||||
app-version-versionName = "1.1.1"
|
||||
[libraries]
|
||||
#Room
|
||||
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
|
||||
|
||||
Reference in New Issue
Block a user