Commit Graph

39221 Commits

Author SHA1 Message Date
Goooler bdbfbdbe2f Update kotlinx-serialization-json 1.5.0-RC (#3316)
* Remove extra proguard rules for kotlinx.serialization

* Bump kotlinx-serialization-json to 1.5.0-RC

https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.5.0-RC
2023-02-08 15:18:16 +08:00
renovate[bot] 1b6ebbb2af Update dependency gradle to v8.0-rc-3 (#3314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-06 10:52:01 +00:00
Lawnchair Bot 22ffbe5ad1 New Crowdin translations by Github Action (#3313)
* New Crowdin translations by Github Action

* Add --auto flag

* Use --squash flag

* Merge build_debug_apk.yml into crowdin_auto_merge.yml

* Remove `github.event.pull_request.type == 'opened'`

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-02-05 06:41:36 +03:30
renovate[bot] f8cfa1bea3 Update dev.rikka.tools.refine to v4.1.0 (#3312)
https://github.com/RikkaApps/HiddenApiRefinePlugin/releases/tag/v4.1.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-04 18:13:33 +00:00
Goooler 5efc84434b Let Renovate group dev.rikka.tools.refine 2023-02-05 02:05:03 +08:00
Goooler 10ecea0cb5 Bump Gradle to 8.0 RC2 (#3306)
https://github.com/gradle/gradle/releases/tag/v8.0.0-RC2
2023-02-03 15:07:11 +00:00
renovate[bot] 9eab801154 Update plugin dev.rikka.tools.refine to v4 (#3305)
After this update, we might be able to migrate to Gradle 8!

https://github.com/RikkaApps/HiddenApiRefinePlugin/releases/tag/v4.0.0
2023-02-03 22:40:04 +08:00
Goooler 2aa4feb913 Let Renovate group Kotlin & AGP 2023-02-03 11:54:40 +08:00
renovate[bot] c45d66bdc2 Bump AGP to 7.4.1 (#3293)
* Update plugin com.android.application to v7.4.1

* Update plugin com.android.library to v7.4.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-02-02 02:09:44 +00:00
renovate[bot] c46f4f1e69 Update plugin com.gradle.enterprise to v3.12.3 (#3290)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-31 06:53:02 +08:00
renovate[bot] 987900602e Update dependency androidx.compose.material3:material3 to v1.1.0-alpha05 (#3286)
* Update dependency androidx.compose.material3:material3 to v1.1.0-alpha05

* Use setViewTreeLifecycleOwner extension

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2023-01-29 21:48:53 +08:00
Crowdin Bot 688df4eff0 New Crowdin translations by Github Action 2023-01-29 03:50:30 +03:30
Goooler cce28ae83d KSP 1.8.0-1.0.9
https://github.com/google/ksp/releases/tag/1.8.0-1.0.9
2023-01-26 17:35:28 +08:00
Goooler 1b0fba0c58 Use crowdin/github-action major version v1 (#3283) 2023-01-26 17:26:30 +08:00
renovate[bot] a06750344e Update dependency com.google.android.material:material to v1.8.0 (#3281)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-25 21:05:24 +08:00
Goooler 43b263ce89 Remove unused res under lawn dir (#3279)
Before:
```shell
warn: removing resource app.lawnchair:string/action_upload without required default value.
warn: removing resource app.lawnchair:string/adaptive_icons without required default value.
warn: removing resource app.lawnchair:string/allow_empty_pages_label without required default value.
warn: removing resource app.lawnchair:string/app_title_label without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_cancelled_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_cancelled_right_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_complete without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_complete_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_swipe_too_far_from_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_swipe_too_far_from_right_edge without required default value.
warn: removing resource app.lawnchair:string/clear_all_as_action_label without required default value.
warn: removing resource app.lawnchair:string/done without required default value.
warn: removing resource app.lawnchair:string/gesture_tutorial_action_button_label_done without required default value.
warn: removing resource app.lawnchair:string/gesture_tutorial_action_button_label_next without required default value.
warn: removing resource app.lawnchair:string/home_gesture_feedback_complete without required default value.
warn: removing resource app.lawnchair:string/home_screen_columns without required default value.
warn: removing resource app.lawnchair:string/home_screen_rows without required default value.
warn: removing resource app.lawnchair:string/hotseat_qsb_label without required default value.
warn: removing resource app.lawnchair:string/kshitij_description without required default value.
warn: removing resource app.lawnchair:string/overview_gesture_feedback_complete without required default value.
warn: removing resource app.lawnchair:string/patryk_description without required default value.
warn: removing resource app.lawnchair:string/smart_space_enable without required default value.
warn: removing resource app.lawnchair:string/workspace_dt2s without required default value.
```

After:
```shell
warn: removing resource app.lawnchair:string/back_gesture_feedback_cancelled_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_cancelled_right_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_complete without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_complete_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_swipe_too_far_from_left_edge without required default value.
warn: removing resource app.lawnchair:string/back_gesture_feedback_swipe_too_far_from_right_edge without required default value.
warn: removing resource app.lawnchair:string/gesture_tutorial_action_button_label_done without required default value.
warn: removing resource app.lawnchair:string/gesture_tutorial_action_button_label_next without required default value.
warn: removing resource app.lawnchair:string/home_gesture_feedback_complete without required default value.
warn: removing resource app.lawnchair:string/overview_gesture_feedback_complete without required default value.
```
2023-01-23 14:06:39 +08:00
Goooler 9898be55c4 Monir Kotlin cleanups (#3278)
* PreferenceManager2 private constructor

* More data objects
https://kotlinlang.org/docs/object-declarations.html#data-objects

* Remove assertion

* Suppress LeakingThis

* CustomTextView extends AppCompatTextView

* More private fields

* Suppress LiftReturnOrAssignment

* Revert "More data objects"
The feature "data objects" is only available since language version 1.9

* Revert private previewMode
2023-01-22 13:06:22 +08:00
Crowdin Bot fd7b733437 New Crowdin translations by Github Action 2023-01-22 03:49:43 +03:30
Goooler 5567c8b1c0 Cleanup BuildConfig field refs
* Remove redundant COMMIT_HASH field
* Remove Versioning
2023-01-21 19:54:35 +08:00
Goooler 8645aea709 Defer generateProtoTasks configuration
https://github.com/google/protobuf-gradle-plugin/commit/3f6e8a8ec88c422bbd43c19f80b27472b6b80e9e
2023-01-21 19:27:13 +08:00
Goooler 8581566081 Release apk with uploading mapping file (#3275)
We can easily retrace obfuscated stack traces with the mapping file.
2023-01-21 18:34:10 +08:00
Goooler 8a69921aa6 Prevent continuation twice resuming in BlankActivity (#3276) 2023-01-21 18:33:26 +08:00
Goooler 70fece5991 Rename QsbLayout to LawnQsbLayout (#3274) 2023-01-21 15:56:23 +08:00
Goooler e4dcb17c27 Always enable GoogleQsbContainerView if it is the current search widget (#3273) 2023-01-21 15:55:54 +08:00
Goooler 44d957df51 Catch exceptions for requestQuietModeEnabled in WorkProfileManager (#3270)
https://source.android.com/docs/devices/admin/managed-profiles
https://developer.android.com/reference/android/os/UserManager#requestQuietModeEnabled(boolean,%20android.os.UserHandle)
2023-01-20 23:09:24 +08:00
Goooler 0c137fc90b Remove n_percent string translations (#3267) 2023-01-20 18:03:25 +08:00
Goooler 6c073ae8b0 Check contentViewParent nullable in Workspace (#3271) 2023-01-20 17:04:56 +08:00
Goooler d34768864d Depends on kotlinx-coroutines-android 1.6.4
https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.6.4
2023-01-20 14:11:16 +08:00
Goooler 500f1acd05 Convert LawnchairDeviceSearchAlgorithm to Kotlin (#3128)
* Convert LawnchairDeviceSearchAlgorithm to Kotlin

* Convert SearchActionCompat to Kotlin

* Convert SearchTargetCompat to Kotlin

* Cleanup LawnchairDeviceSearchAlgorithm

* Cleanup SearchActionCompat

* Cleanup SearchTargetCompat

* Rename members

* Mark PreferenceChangeListener functional

* Rearrange

* Imports
2023-01-20 11:02:47 +08:00
Goooler d74fe34178 Be easier to trigger fast scroller in app drawer (#3253) 2023-01-20 10:17:09 +08:00
Goooler 08cfd742a0 Distinct OSS lib models by their names (#3266)
* Mark ossLibraries non-null

* Distinct oss lib models

* Cleanup
2023-01-20 10:16:31 +08:00
Goooler 6803d8b2a0 Unify all data class fields to values (#3252)
Make sure all fields in data classes are values instead of variables, just use `.copy()` to change the contents.
2023-01-19 21:25:41 +08:00
Naveen e6cce8b3bf Dynamic clock support for third party icon packs (#3228)
* Squashed commit of the following:

commit 578de6dddad5a9e831240f4ff31bde218c4fa58f
Merge: a0ef4288fd 798e93ee17
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Tue Dec 27 05:04:50 2022 +0530

    Merge remote-tracking branch 'upstream/12.1-dev' into FixIconPack

commit a0ef4288fd13674b183a8d6ec27964c1cc0ff7e4
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:56:20 2022 +0530

    code cleanup

commit 3e6e49c957f8670e4540d4c6d1f87aa6b370ef74
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:28:58 2022 +0530

    recreate icons for adaptive and tranparant background when icons are from iconpack

commit a77c8e7bcb44f3e7a4286a345acdf64010552dc1
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:23:20 2022 +0530

    Add icon change event for iconpack as well

commit 4b36b447e823eb42e3204e7ce3c1094893c48757
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 20:06:09 2022 +0530

    cleanup

commit 3bf0a8e38f408ef9f3b3c5cb00f69d2e1045870c
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 19:55:06 2022 +0530

    limit monochrome to SDK 33

commit 7e52a6d8736aa9b917294c79b23405a0df5b4a0e
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:10:50 2022 +0530

    move string to xml

commit 3f340a68f82b0f06007df0c8c41c8e0157961612
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:08:05 2022 +0530

    Enhancement on applying Themed Icon

    Apply themed icons for system icons if they support (android 13+ [not sure about android 12] )
    Select Icon pack and Themed Icon separately for home and app drawer (This help to apply Themed icons (home) + delta icons (app drawer) together) - Ref : 815
    Support Transparant background on adaptive icons

commit 88ddd5b3f654a580fcc17fbd1d39741913a8baf3
Merge: df0eaf8160 6ad549c79b
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:07:42 2022 +0530

    Merge remote-tracking branch 'upstream/12.1-dev' into FixIconPack

commit df0eaf816015df83563003092a3764a438d20ce3
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:07:28 2022 +0530

    Revert "Revert "Bump AGP to 7.4.0-rc01 (#3178)""

    This reverts commit 0013d4094803c788e84c82d0c00b7630b01e9a57.

commit 0013d4094803c788e84c82d0c00b7630b01e9a57
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Sun Dec 18 04:25:33 2022 +0530

    Revert "Bump AGP to 7.4.0-rc01 (#3178)"

    This reverts commit 4b789cd5d3.

* updated suggestions

* Dynamic clock from icon pack

* Add transparent background

* removed unused imports

* Remove unused imports

* revert reload icons

* Update lawnchair/res/values/strings.xml

Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>

* Changed themed icon order

Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
2023-01-19 21:11:55 +08:00
renovate[bot] e296034313 Update dependency io.github.fornewid:material-motion-compose-core to v0.10.4 (#3265)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-19 19:39:19 +08:00
Goooler f3639f1072 Tidy up plugin/task configurations (#3263)
Follow up dd3e087c8f & 0803a890aa.

* Apply the latest AppCompat lib for all android modules

* Migrate KotlinCompile to KotlinCompilationTask

* Defer more configurations

* Migrate flavorDimensions

* Configure Java toolchains

* Just configure KotlinBasePlugin

* Bump kotlin.jvmToolchain to 11

* Replace `kotlin-android` with `org.jetbrains.kotlin.android`

* Rearrange project refs

* Reuse FRAMEWORK_PREBUILTS_DIR

* Remove ext.replaceFrameworkJar

* Merge ext.getFrameworkJar

* Set classpath for KotlinCompile

* Tweak ext.addFrameworkJar

* Bump level to 9

* Revert "Bump level to 9"
This reverts commit 94e1b807a0a648942aac1e72ab72bafdd216f9cb.

* Back to 8

* Comment

* Cleanups

* Remove imports
2023-01-19 13:34:09 +08:00
Goooler 8e5f81b1c8 Tweak Renovate
* Remove dependabot.yml
* Let Renovate ignore Kotlin & KSP
2023-01-19 01:27:27 +08:00
Goooler 9d623f04ff Distinguish between release and debug via applicationIdSuffix & label (#3255)
* Add applicationIdSuffix for debug mode

* Generate derived_app_name res for debug & release
2023-01-18 14:21:05 +08:00
Goooler 0803a890aa Kotlin 1.8 and Compose compiler 1.4.0 (#3257)
* Bump Kotlin to 1.8.0

https://github.com/JetBrains/kotlin/releases/tag/v1.8.0
https://github.com/google/ksp/releases/tag/1.8.0-1.0.8

* Bump Compose compiler to 1.4.0

https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.4.0
2023-01-18 11:36:17 +08:00
Naveen 1f9439b2a0 Enhancement on applying themed icon (#3169)
* Squashed commit of the following:

commit 578de6dddad5a9e831240f4ff31bde218c4fa58f
Merge: a0ef4288fd 798e93ee17
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Tue Dec 27 05:04:50 2022 +0530

    Merge remote-tracking branch 'upstream/12.1-dev' into FixIconPack

commit a0ef4288fd13674b183a8d6ec27964c1cc0ff7e4
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:56:20 2022 +0530

    code cleanup

commit 3e6e49c957f8670e4540d4c6d1f87aa6b370ef74
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:28:58 2022 +0530

    recreate icons for adaptive and tranparant background when icons are from iconpack

commit a77c8e7bcb44f3e7a4286a345acdf64010552dc1
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Thu Dec 22 02:23:20 2022 +0530

    Add icon change event for iconpack as well

commit 4b36b447e823eb42e3204e7ce3c1094893c48757
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 20:06:09 2022 +0530

    cleanup

commit 3bf0a8e38f408ef9f3b3c5cb00f69d2e1045870c
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 19:55:06 2022 +0530

    limit monochrome to SDK 33

commit 7e52a6d8736aa9b917294c79b23405a0df5b4a0e
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:10:50 2022 +0530

    move string to xml

commit 3f340a68f82b0f06007df0c8c41c8e0157961612
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:08:05 2022 +0530

    Enhancement on applying Themed Icon

    Apply themed icons for system icons if they support (android 13+ [not sure about android 12] )
    Select Icon pack and Themed Icon separately for home and app drawer (This help to apply Themed icons (home) + delta icons (app drawer) together) - Ref : 815
    Support Transparant background on adaptive icons

commit 88ddd5b3f654a580fcc17fbd1d39741913a8baf3
Merge: df0eaf8160 6ad549c79b
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:07:42 2022 +0530

    Merge remote-tracking branch 'upstream/12.1-dev' into FixIconPack

commit df0eaf816015df83563003092a3764a438d20ce3
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Wed Dec 21 03:07:28 2022 +0530

    Revert "Revert "Bump AGP to 7.4.0-rc01 (#3178)""

    This reverts commit 0013d4094803c788e84c82d0c00b7630b01e9a57.

commit 0013d4094803c788e84c82d0c00b7630b01e9a57
Author: Naveen <naveen.ccmsd@gmail.com>
Date:   Sun Dec 18 04:25:33 2022 +0530

    Revert "Bump AGP to 7.4.0-rc01 (#3178)"

    This reverts commit 4b789cd5d3.

* updated suggestions

* Remove unused imports

* revert reload icons

* Update lawnchair/res/values/strings.xml

Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>

* Changed themed icon order

Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
2023-01-18 11:18:40 +08:00
Goooler 2ce1bccb1e Long press versionName text to browse build commit on GitHub (#3256) 2023-01-18 10:39:05 +08:00
Goooler 93e1ca4ba2 Revert "Apply Gradle Cache Fix plugin for all android modules (#3246)"
This reverts commit 23ca7c9f40.
2023-01-18 10:25:16 +08:00
dependabot[bot] 25c6bf73f8 Bump crowdin/github-action from 1.5.2 to 1.5.3 (#3254)
Bumps [crowdin/github-action](https://github.com/crowdin/github-action) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/crowdin/github-action/releases)
- [Commits](https://github.com/crowdin/github-action/compare/1.5.2...1.5.3)

---
updated-dependencies:
- dependency-name: crowdin/github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-17 22:29:00 +08:00
Goooler f3a007de37 Annotate BugReport with @Parcelize 2023-01-17 00:50:52 +08:00
Goooler 42a4958e26 Add an option to override max search result count in settings (#3244)
Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
2023-01-16 18:36:21 +08:00
Goooler e8fde0d444 Rename all modules to start with a lowercase (#3245) 2023-01-16 10:24:03 +08:00
Goooler e6afbda7b6 Cleanup usages of Bundle and Intent (#3251)
* Use `bundleOf`

* Use intent builder
2023-01-16 08:42:50 +08:00
Goooler 23ca7c9f40 Apply Gradle Cache Fix plugin for all android modules (#3246)
https://github.com/gradle/android-cache-fix-gradle-plugin/releases/tag/v2.6.2
2023-01-16 02:54:05 +08:00
Goooler 6e9a6c498b Revert androidx.compose.material3 to 1.1.0-alpha03 (#3248) 2023-01-15 09:54:03 +08:00
Crowdin Bot 8f7d38a4fb New Crowdin translations by Github Action 2023-01-15 03:48:48 +03:30
Goooler 6aff6bb1c7 Remove test deps
Avoid renovate or dependabot bumping these versions, we don't run unit tests now.
2023-01-14 21:20:15 +08:00