Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYSTEM-2341][14.0] Adapt Lawnchair to Genymotion needs #1

Open
wants to merge 13 commits into
base: 14-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 17 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,29 @@
# Lawnchair 14
# Genymotion fork of Lawnchair 14.0
This is a fork of the `14-dev` branch of the [lawnchair](https://github.com/LawnchairLauncher/) repository.

[![Build debug APK](https://github.com/LawnchairLauncher/lawnchair/actions/workflows/ci.yml/badge.svg)](https://github.com/LawnchairLauncher/lawnchair/actions/workflows/ci.yml)
[![Build release APK](https://github.com/LawnchairLauncher/lawnchair/actions/workflows/release_update.yml/badge.svg)](https://github.com/LawnchairLauncher/lawnchair/actions/workflows/release_update.yml)
[![Crowdin](https://badges.crowdin.net/e/188ba69d884418987f0b7f1dd55e3a4e/localized.svg)](https://lawnchair.crowdin.com/lawnchair)
[![Telegram](https://img.shields.io/endpoint?url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Flccommunity)](https://t.me/lccommunity)
[![Discord](https://img.shields.io/discord/803299970169700402?label=server&logo=discord)](https://discord.gg/3x8qNWxgGZ)
Lawnchair is based on the AOSP Launcher3 launcher.

<img src="https://lawnchair.app/images/lawnchair.webp" width="100" style="border-radius: 50%">
Lawnchair is a free, open-source home app for Android. Taking Launcher3 — Android’s default home app — as a starting point, it ports Pixel Launcher features and introduces rich options for customization.

This branch houses the codebase of Lawnchair 14, currently in development and based on Launcher3 from Android 14. For Lawnchair 9 to 13, see the branches with the `9-` to `13-` prefixes, respectively.

## Contribute code

Whether you’ve fixed a bug or introduced a new feature, we welcome pull requests! (If you’d like to make a larger change and check with us first, you can do so via [Lawnchair’s Telegram group chat](https://t.me/lawnchairci).) To help translate Lawnchair 14 instead, please see “[Translate](#translate).”
We adjust it to our Genymotion products needs.
For example, we change the default home screen workspaces to add our wanted apps and widgets, like the Qwant search bar.

## Build the apk
You can use Git to clone this repository:

```
git clone --recursive https://github.com/LawnchairLauncher/lawnchair.git
git clone --recursive git@github.com:Genymobile/Lawnchair.git
```

To build the app, select the `lawnWithQuickstepDebug` build type. Should you face errors relating to the `iconloaderlib` and `searchuilib` projects, run `git submodule update --init --recursive`.

Here are a few contribution tips:

- [The `lawnchair` package](https://github.com/LawnchairLauncher/lawnchair/tree/14-dev/lawnchair) houses Lawnchair’s own code, whereas [the `src` package](https://github.com/LawnchairLauncher/lawnchair/tree/14-dev/src) includes a clone of the Launcher3 codebase with modifications. Generally, place new files in the former, keeping changes to the latter to a minimum.

- You can use either Java or, preferably, Kotlin.

- Make sure your code is logical and well formatted. If using Kotlin, see [“Coding conventions” in the Kotlin documentation](https://kotlinlang.org/docs/coding-conventions.html).

- Set `14-dev` as the base branch for pull requests.

## Translate

You can help translate Lawnchair 14 [on Crowdin](https://lawnchair.crowdin.com/lawnchair). Here are a few tips:

- When using quotation marks, insert the symbols specific to the target language, as listed in [this table](https://en.wikipedia.org/wiki/Quotation_mark#Summary_table).

- Lawnchair uses title case for some English UI text. Title case isn’t used in other languages; opt for sentence case instead.
To build the app, select the `lawnWithQuickstepDebug` build type.

- Some English terminology may have no commonly used equivalents in other languages. In such cases, use short descriptive phrases—for example, the equivalent of _bottom row_ for _dock_.
Should you face errors relating to the `iconloaderlib` and `searchuilib` projects, run `git submodule update --init --recursive`.

## Quick links
## Integrate the apk in the AOSP build
At the moment, we embark the Lawnchair release apk directly as a prebuilt in our AOSP builds. We put it in this private internal repository: https://github.com/Genymobile/genymotion_private_vendor_genymotion_prebuilts_apps

- [News](https://t.me/lawnchairci)
- [Lawnchair on Twitter](https://twitter.com/lawnchairapp)
- [Website](https://lawnchair.app)
- [_XDA_ thread](https://forum.xda-developers.com/t/lawnchair-customizable-pixel-launcher.3627137/)
To update this prebuilt:
- build the `lawnWithQuickstepMarketRelease` build variant via Gradle;
- copy the obtained apk in `vendor/genymotion/prebuilts/Lawnchair/`;
- rename it `lawnchair-<android-version>-<sha-1>.apk`
- update the apk name in the `vendor/genymotion/prebuilts/Lawnchair/Android.bp`.

You can view all our links [in the Lawnchair Wiki](https://github.com/LawnchairLauncher/lawnchair/wiki).
Ideally, we should update the initial Launcher3 Android.bp of this repository to make it properly build the Lawnchair app. This would allow us to directly embark the source code of this repository in our AOSP environments and ease versioning.
1 change: 1 addition & 0 deletions lawnchair/res/values-af-rZA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Soek vir meer toepassings</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No app store or browser installed.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-am-rET/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Search for More Apps</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No app store or browser installed.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@
<string name="search_pref_result_settings_entry_title">مدخل الإعدادات</string>
<string name="all_apps_search_market_message">البحث عن مزيد من التطبيقات</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">لا يوجد متجر تطبيقات أو متصفح مثبت.</string>
<string name="all_apps_search_result_suggestions">من الويب</string>
<string name="all_apps_search_result_contacts_from_device">من جهات اتصالاتك</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-b+sr+Latn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@
<string name="search_pref_result_settings_entry_title">Podešavanje</string>
<string name="all_apps_search_market_message">Pretražite više aplikacija</string>
<string name="all_apps_search_startpage_message">Pretražuj pomoću usluge <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Pretražuj pomoću usluge <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Nije instalirana prodavnica aplikacija ili pregledač.</string>
<string name="all_apps_search_result_suggestions">Veb</string>
<string name="all_apps_search_result_contacts_from_device">Kontakti</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-bn-rBD/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">আরো অ্যাপ খোঁজ করুন</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">কোনো অ্যাপ স্টোর বা ব্রাউজার খুঁজে পাওয়া যায় নি.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-ca-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Entrades de Configuració</string>
<string name="all_apps_search_market_message">Cerca més aplicacions</string>
<string name="all_apps_search_startpage_message">Buscar en <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Buscar en <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No hi ha una botiga d\'aplicacions O navegador web instal·lat.</string>
<string name="all_apps_search_result_suggestions">Desde la web</string>
<string name="all_apps_search_result_contacts_from_device">Des dels teus contactes</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Vyhledat další aplikace</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Není nainstalovaný obchod ani prohlížeč.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-da-rDK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Search for More Apps</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No app store or browser installed.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ workspace_increase_max_grid_size_label</string>
<string name="search_pref_result_settings_entry_title">Einstellungs-Eintrag</string>
<string name="all_apps_search_market_message">Weitere Apps suchen</string>
<string name="all_apps_search_startpage_message">Suche bei <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Suche bei <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Kein Appstore oder Browser installiert.</string>
<string name="all_apps_search_result_suggestions">Aus dem Internet</string>
<string name="all_apps_search_result_contacts_from_device">Aus Deinen Kontakten</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Ρυθμίσεις Εισαγωγής</string>
<string name="all_apps_search_market_message">Αναζήτηση για περισσότερες εφαρμογές</string>
<string name="all_apps_search_startpage_message">Αναζήτηση σε <xliff:g id="Σελίδα έναρξης">Σελίδα έναρξης</xliff:g></string>
<string name="all_apps_search_qwant_message">Αναζήτηση σε <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Δεν υπάρχει εγκατεστημένο κατάστημα εφαρμογών ή πρόγραμμα περιήγησης.</string>
<string name="all_apps_search_result_suggestions">Από το διαδίκτυο</string>
<string name="all_apps_search_result_contacts_from_device">Από τις επαφές σας</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-en-rCA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Search for More Apps</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No app store or browser installed.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Configuración</string>
<string name="all_apps_search_market_message">Buscar más Aplicaciones</string>
<string name="all_apps_search_startpage_message">Buscar en <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Buscar en <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No hay tienda de aplicaciones ni navegador instalado.</string>
<string name="all_apps_search_result_suggestions">De internet</string>
<string name="all_apps_search_result_contacts_from_device">De tus contactos</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-fa-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">جست‌و‌جو برنامه‌های بیشتر</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">هیچ فروشگاه برنامه یا مرورگری نصب نیست.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-fi-rFI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Etsi lisää sovelluksia</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Sovelluskauppaa tai selainta ei ole asennettu.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-fil-rPH/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Maghanap ng Higit pang Mga App</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Walang naka-install na app store o browser.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Entrée des paramètres</string>
<string name="all_apps_search_market_message">Rechercher plus d\'applications</string>
<string name="all_apps_search_startpage_message">Rechercher sur <xliff:g id="startpage">Page de démarrage</xliff:g></string>
<string name="all_apps_search_qwant_message">Rechercher sur <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Aucun app store ou navigateur installé.</string>
<string name="all_apps_search_result_suggestions">Depuis le web</string>
<string name="all_apps_search_result_contacts_from_device">Depuis vos contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-gl-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Search for More Apps</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">No app store or browser installed.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-hi-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">और ऐप खोजें</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">कोई ऐप स्टोर या ब्राउज़र उपस्थित नहीं है|</string>
<string name="all_apps_search_result_suggestions">वेब से</string>
<string name="all_apps_search_result_contacts_from_device">आपके संपर्कों से</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">További alkalmazások keresése</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Nincs alkalmazásbolt vagy böngésző telepítve.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-in-rID/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@
<string name="search_pref_result_settings_entry_title">Entri Pengaturan</string>
<string name="all_apps_search_market_message">Cari Lebih Banyak Aplikasi</string>
<string name="all_apps_search_startpage_message">Cari di <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Cari di <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Tidak ada toko aplikasi atau browser yang terinstal.</string>
<string name="all_apps_search_result_suggestions">Dari web</string>
<string name="all_apps_search_result_contacts_from_device">Dari kontak Anda</string>
Expand Down
1 change: 1 addition & 0 deletions lawnchair/res/values-it-rIT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@
<string name="search_pref_result_settings_entry_title">Settings Entry</string>
<string name="all_apps_search_market_message">Cerca altre app</string>
<string name="all_apps_search_startpage_message">Search on <xliff:g id="startpage">Startpage</xliff:g></string>
<string name="all_apps_search_qwant_message">Search on <xliff:g id="qwant">Qwant</xliff:g></string>
<string name="error_no_market_or_browser_installed">Nessun app store o browser internet installato.</string>
<string name="all_apps_search_result_suggestions">From the web</string>
<string name="all_apps_search_result_contacts_from_device">From your contacts</string>
Expand Down
Loading