Compare commits

...

146 Commits
2.0 ... master

Author SHA1 Message Date
Michel Roux c23078c3fe Merge pull request 'chore(deps): update dependency gradle to v8.7' (#57) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m32s Details
Reviewed-on: #57
2024-03-24 19:47:53 +00:00
Renovate Bot 0343759b00 chore(deps): update dependency gradle to v8.7
apk / build (push) Successful in 8m20s Details
2024-03-23 06:52:16 +00:00
Michel Roux a6f0135608 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.3.1' (#56) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m28s Details
Reviewed-on: #56
2024-03-19 14:24:07 +00:00
Renovate Bot dc43efd7d4 chore(deps): update dependency com.android.tools.build:gradle to v8.3.1
apk / build (push) Successful in 9m58s Details
2024-03-19 06:32:16 +00:00
Michel Roux 6fe19aea3d ci: 💚 fix ci with akkuman
apk / build (push) Successful in 1m23s Details
2024-03-01 21:42:35 +01:00
Michel Roux 70454c7dd8 feat: 📈 add policy to please Google
apk / build (push) Has been cancelled Details
2024-03-01 21:22:49 +01:00
Michel Roux 7a064c9759 fix: 🦺 update to sdk 34
apk / build (push) Successful in 11m23s Details
2024-03-01 18:31:49 +01:00
Michel Roux a81053de21 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.3.0' (#55) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m34s Details
Reviewed-on: #55
2024-03-01 08:27:02 +00:00
Renovate Bot ea932b2380 Update dependency com.android.tools.build:gradle to v8.3.0
apk / build (push) Successful in 12m28s Details
2024-03-01 06:55:45 +00:00
Michel Roux d810e9ec84 Merge pull request 'Update dependency gradle to v8.6' (#54) from renovate/gradle-8.x into master
apk / build (push) Successful in 3m22s Details
Reviewed-on: #54
2024-02-03 08:26:49 +00:00
Renovate Bot 028032dc25 Update dependency gradle to v8.6
apk / build (push) Successful in 29m1s Details
2024-02-03 06:50:56 +00:00
Michel Roux c74e1b3bc0 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.2' (#53) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m15s Details
Reviewed-on: #53
2024-01-24 09:16:47 +00:00
Renovate Bot 9f8c706210 Update dependency com.android.tools.build:gradle to v8.2.2
apk / build (push) Successful in 11m22s Details
2024-01-24 06:50:03 +00:00
Michel Roux 34331f0cbb Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.1' (#52) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m38s Details
Reviewed-on: #52
2024-01-04 07:48:45 +00:00
Renovate Bot 6f6ff0d362 Update dependency com.android.tools.build:gradle to v8.2.1
apk / build (push) Successful in 13m24s Details
2024-01-04 06:46:08 +00:00
Michel Roux 3ac8107aa0 Merge pull request 'Update actions/setup-go action to v5' (#51) from renovate/actions-setup-go-5.x into master
apk / build (push) Successful in 1m57s Details
Reviewed-on: #51
2023-12-09 13:16:41 +00:00
Renovate Bot 6b408f4e22 Update actions/setup-go action to v5
apk / build (push) Successful in 12m33s Details
2023-12-07 06:43:05 +00:00
Michel Roux eb13df8989 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.2.0' (#50) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m55s Details
Reviewed-on: #50
2023-12-01 14:39:01 +00:00
Michel Roux 1596b21435 Merge pull request 'Update dependency gradle to v8.5' (#49) from renovate/gradle-8.x into master
apk / build (push) Waiting to run Details
Reviewed-on: #49
2023-12-01 14:38:36 +00:00
Renovate Bot 6c690bfb5c Update dependency com.android.tools.build:gradle to v8.2.0
apk / build (push) Successful in 2m22s Details
2023-12-01 06:31:25 +00:00
Renovate Bot 2db66942e6 Update dependency gradle to v8.5
apk / build (push) Successful in 11m47s Details
2023-11-30 06:34:17 +00:00
Michel Roux b258c3b6d9 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.4' (#48) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 3m7s Details
Reviewed-on: #48
2023-11-18 09:44:08 +00:00
Renovate Bot 2ea9018685 Update dependency com.android.tools.build:gradle to v8.1.4
apk / build (push) Successful in 12m38s Details
2023-11-17 06:29:38 +00:00
Michel Roux 288d3dfcd0 Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.3' (#47) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 2m4s Details
Reviewed-on: #47
2023-11-08 07:27:12 +00:00
Renovate Bot 76251ae2e1 Update dependency com.android.tools.build:gradle to v8.1.3
apk / build (push) Successful in 11m51s Details
2023-11-08 06:38:51 +00:00
Michel Roux bd7f81d445 Merge pull request 'Update dependency gradle to v8.4' (#46) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m38s Details
Reviewed-on: #46
2023-10-05 07:22:37 +00:00
Renovate Bot de9918f36f Update dependency gradle to v8.4
apk / build (push) Successful in 8m14s Details
2023-10-05 06:59:28 +00:00
Michel Roux 5a38aed3db Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.2' (#45) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m49s Details
Reviewed-on: #45
2023-09-29 19:58:29 +00:00
Renovate Bot d468fa62d5 Update dependency com.android.tools.build:gradle to v8.1.2
apk / build (push) Successful in 8m20s Details
2023-09-29 06:43:09 +00:00
Michel Roux b5ec2fb38a Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/SetAsWallpaper
apk / build (push) Successful in 1m51s Details
2023-09-29 00:23:07 +02:00
Michel Roux a39cbf0710 Update actions 2023-09-29 00:22:19 +02:00
Michel Roux 6d3870ed47 Merge pull request 'Update actions/setup-go action to v4' (#44) from renovate/actions-setup-go-4.x into master
apk / build (push) Successful in 1m36s Details
Reviewed-on: #44
2023-09-11 07:17:29 +00:00
Renovate Bot 5fc47c6e1e Update actions/setup-go action to v4
apk / build (push) Successful in 1m39s Details
2023-09-11 06:53:05 +00:00
Michel Roux 150ba5ae6d Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.1' (#42) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m26s Details
Reviewed-on: #42
2023-08-22 07:33:57 +00:00
Renovate Bot 5d734648ab Update dependency com.android.tools.build:gradle to v8.1.1
apk / build (push) Successful in 1m30s Details
2023-08-22 06:41:14 +00:00
Michel Roux 7d2d0d56bf Merge pull request 'Update dependency gradle to v8.3' (#41) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m27s Details
Reviewed-on: #41
2023-08-18 07:03:40 +00:00
Renovate Bot 81f11e49d0 Update dependency gradle to v8.3
apk / build (push) Successful in 1m31s Details
2023-08-18 06:55:08 +00:00
Michel Roux 3431519c1a Small typos
apk / build (push) Successful in 1m26s Details
2023-07-31 23:04:22 +02:00
Michel Roux 4def790dbb Merge pull request 'Update dependency com.android.tools.build:gradle to v8.1.0' (#40) from renovate/com.android.tools.build-gradle-8.x into master
apk / build (push) Successful in 1m21s Details
Reviewed-on: #40
2023-07-26 07:40:44 +00:00
Renovate Bot d553f63183 Update dependency com.android.tools.build:gradle to v8.1.0
apk / build (push) Successful in 2m3s Details
2023-07-26 06:33:18 +00:00
Michel Roux 8879e5095e Use gitea release main version
apk / build (push) Successful in 1m38s Details
2023-07-25 14:47:14 +00:00
Michel Roux 894449650b Merge pull request 'Update dependency gradle to v8.2.1' (#39) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m21s Details
Reviewed-on: #39
2023-07-11 06:39:44 +00:00
Renovate Bot c31ebe3efd Update dependency gradle to v8.2.1
apk / build (push) Successful in 8m8s Details
2023-07-11 06:37:42 +00:00
Michel Roux 2b5cbb4aaa Merge pull request 'Update dependency gradle to v8.2' (#38) from renovate/gradle-8.x into master
apk / build (push) Successful in 1m28s Details
Reviewed-on: #38
2023-07-01 15:12:14 +00:00
Renovate Bot 465256f9fc Update dependency gradle to v8.2
apk / build (push) Successful in 7m12s Details
2023-07-01 06:47:03 +00:00
Michel Roux 09eda47d80 Fix CI
apk / build (push) Successful in 1m28s Details
2023-06-30 14:26:41 +00:00
Michel Roux 54bd7058f7 SigningConfig must be before
apk / build (push) Failing after 5m43s Details
2023-06-27 13:05:06 +02:00
Michel Roux a1c54a9735 Use boilerplate instead of Android Studio generation
apk / build (push) Failing after 1m16s Details
2023-06-27 12:59:31 +02:00
Michel Roux 4e8dc03312 Fix yml
apk / build (push) Successful in 1m31s Details
2023-06-26 18:17:54 +02:00
Michel Roux 436a35998c Fix yml
apk / build (push) Failing after 5m48s Details
2023-06-26 18:11:10 +02:00
Michel Roux 60d4de410a Switch to Gitea Actions 2023-06-26 18:09:56 +02:00
Michel Roux 4b6c6b87a0 Merge pull request 'Update plugin com.android.application to v8.0.2' (#36) from renovate/com.android.application-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #36
2023-05-26 12:19:56 +00:00
Michel Roux 79902971a2 Update plugin com.android.application to v8.0.2
continuous-integration/drone/push Build is passing Details
2023-05-26 10:24:11 +00:00
Michel Roux 4e9f56c151 Merge pull request 'Update plugin com.android.library to v8.0.2' (#37) from renovate/com.android.library-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #37
2023-05-26 10:14:42 +00:00
Michel Roux e8494ecec8 Update plugin com.android.library to v8.0.2
continuous-integration/drone/push Build is passing Details
2023-05-25 00:30:15 +00:00
Michel Roux e3e01a4e4b Merge pull request 'Update plugin com.android.application to v8.0.1' (#34) from renovate/com.android.application-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #34
2023-05-02 07:32:42 +00:00
Michel Roux 991943c93d Update plugin com.android.application to v8.0.1
continuous-integration/drone/push Build is passing Details
2023-05-02 05:21:14 +00:00
Michel Roux 07253daeaa Merge pull request 'Update plugin com.android.library to v8.0.1' (#35) from renovate/com.android.library-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #35
2023-05-02 05:16:00 +00:00
Michel Roux 4050c684d8 Update plugin com.android.library to v8.0.1
continuous-integration/drone/push Build is passing Details
2023-05-02 00:04:25 +00:00
Michel Roux 7c88cba0a8 Merge pull request 'Update dependency gradle to v8.1.1' (#33) from renovate/gradle-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #33
2023-04-22 15:22:28 +00:00
Michel Roux eb4b25c46f Update dependency gradle to v8.1.1
continuous-integration/drone/push Build is passing Details
2023-04-22 00:11:09 +00:00
Michel Roux 6cf1267797 Merge pull request 'Update plugin com.android.application to v8' (#31) from renovate/com.android.application-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #31
2023-04-14 07:42:45 +00:00
Michel Roux 3fff390a54 Update plugin com.android.application to v8
continuous-integration/drone/push Build is passing Details
2023-04-14 07:25:00 +00:00
Michel Roux a002532036 Merge pull request 'Update plugin com.android.library to v8' (#32) from renovate/com.android.library-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #32
2023-04-14 07:10:39 +00:00
Michel Roux 6bd04af856 Update plugin com.android.library to v8
continuous-integration/drone/push Build is passing Details
2023-04-14 00:12:23 +00:00
Michel Roux 4ad151ebea Merge pull request 'Update dependency gradle to v8.1' (#30) from renovate/gradle-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #30
2023-04-13 07:55:12 +00:00
Michel Roux 00d5543f12 Update dependency gradle to v8.1
continuous-integration/drone/push Build is passing Details
2023-04-13 00:11:42 +00:00
Michel Roux a1260ae536 Use SDK 33
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2023-03-22 11:13:10 +01:00
Michel Roux 0e71b36361 Merge pull request 'Update dependency gradle to v8.0.2' (#29) from renovate/gradle-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #29
2023-03-05 14:50:21 +00:00
Michel Roux 43fd5f426f Update dependency gradle to v8.0.2
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-03-04 00:36:43 +00:00
Michel Roux ff02fa2235 Merge pull request 'Update plugin com.android.library to v7.4.2' (#28) from renovate/com.android.library-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #28
2023-02-28 10:43:42 +00:00
Michel Roux b725d7880b Update plugin com.android.library to v7.4.2
continuous-integration/drone/push Build is passing Details
2023-02-28 10:05:46 +00:00
Michel Roux 9c9ec48160 Merge pull request 'Update plugin com.android.application to v7.4.2' (#27) from renovate/com.android.application-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #27
2023-02-28 09:54:41 +00:00
Michel Roux 6756374c5d Update plugin com.android.application to v7.4.2
continuous-integration/drone/push Build is passing Details
2023-02-28 00:36:12 +00:00
Michel Roux 40c19fe9e0 Merge pull request 'Update dependency gradle to v8.0.1' (#26) from renovate/gradle-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #26
2023-02-21 08:45:29 +00:00
Michel Roux fe88333f95 Update dependency gradle to v8.0.1
continuous-integration/drone/push Build is passing Details
2023-02-18 00:24:38 +00:00
Michel Roux 39d4eedd9c Merge pull request 'Update dependency gradle to v8' (#25) from renovate/gradle-8.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #25
2023-02-14 09:53:44 +00:00
Michel Roux 9e83fa1793 Update dependency gradle to v8
continuous-integration/drone/push Build is passing Details
2023-02-14 00:24:59 +00:00
Michel Roux 7ca78b6843 Merge pull request 'Update plugin com.android.application to v7.4.1' (#23) from renovate/com.android.application-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #23
2023-02-03 13:12:43 +00:00
Michel Roux 1dceed7ea6 Update plugin com.android.application to v7.4.1
continuous-integration/drone/push Build is passing Details
2023-02-03 00:23:04 +00:00
Michel Roux 0a948977be Merge pull request 'Update plugin com.android.library to v7.4.1' (#24) from renovate/com.android.library-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #24
2023-02-02 08:14:16 +00:00
Michel Roux 3004af9c8b Update plugin com.android.library to v7.4.1
continuous-integration/drone/push Build is passing Details
2023-02-02 00:34:30 +00:00
Michel Roux dac8c199f6 Merge pull request 'Update plugin com.android.application to v7.4.0' (#21) from renovate/com.android.application-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #21
2023-01-13 09:03:50 +00:00
Michel Roux 3f506a78e2 Update plugin com.android.application to v7.4.0
continuous-integration/drone/push Build is passing Details
2023-01-13 08:54:23 +00:00
Michel Roux 811962796b Merge pull request 'Update plugin com.android.library to v7.4.0' (#22) from renovate/com.android.library-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #22
2023-01-13 08:44:13 +00:00
Michel Roux a064e07345 Update plugin com.android.library to v7.4.0
continuous-integration/drone/push Build is passing Details
2023-01-13 00:21:09 +00:00
Michel Roux ac664c62c2 Merge pull request 'Update dependency gradle to v7.6' (#20) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #20
2022-11-26 11:02:21 +00:00
Michel Roux 15d9b8dd49 Update dependency gradle to v7.6
continuous-integration/drone/push Build is passing Details
2022-11-26 00:14:41 +00:00
Michel Roux c6bcace566 Properly handle thread
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2022-11-19 23:19:24 +01:00
Michel Roux c5d943bfdd Remove round icon
continuous-integration/drone/push Build is passing Details
2022-10-26 15:40:16 +02:00
Michel Roux 20d9557ec0 Change to minSdk
continuous-integration/drone/push Build is passing Details
2022-10-26 15:33:26 +02:00
Michel Roux 0372c20d48 Update project
continuous-integration/drone/push Build is passing Details
2022-10-26 14:28:05 +02:00
Michel Roux caf8e90acf Merge pull request 'Update dependency com.android.tools.build:gradle to v7.3.1' (#19) from renovate/com.android.tools.build-gradle-7.x into master
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
Reviewed-on: #19
2022-10-14 15:44:52 +00:00
Michel Roux b18ef5d0c0 Update dependency com.android.tools.build:gradle to v7.3.1
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-10-14 00:16:47 +00:00
Michel Roux 3bdb6a0e8d Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/SetAsWallpaper
continuous-integration/drone/push Build is passing Details
2022-09-21 11:58:59 +00:00
Michel Roux 4360660532 Boost build time 2022-09-21 11:58:57 +00:00
Michel Roux 6fb22f722f Rollback SDK and add deprecation warning
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2022-09-19 20:01:08 +02:00
Michel Roux afd1479f84 Increase sdk and fix crash at the end
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2022-09-19 19:02:47 +02:00
Michel Roux 72e4aec44d Move namespace to gradle
continuous-integration/drone/push Build is passing Details
2022-09-16 14:46:41 +00:00
Michel Roux 86af39b772 Drone doesn't like {}
continuous-integration/drone/push Build is passing Details
2022-09-16 14:36:23 +00:00
Michel Roux 2c7417ca28 Fix jks location
continuous-integration/drone/push Build is failing Details
2022-09-16 14:34:52 +00:00
Michel Roux 7034d7f611 Add signing on gradle
continuous-integration/drone/push Build is failing Details
2022-09-16 14:29:42 +00:00
Michel Roux ebbb887e07 Merge pull request 'Update dependency com.android.tools.build:gradle to v7.3.0' (#18) from renovate/com.android.tools.build-gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #18
2022-09-16 06:30:34 +00:00
Michel Roux 1c331e5b07 Update dependency com.android.tools.build:gradle to v7.3.0
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-09-16 00:30:02 +00:00
Michel Roux 4b452bc1a0 Merge pull request 'Update dependency gradle to v7.5.1' (#17) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Reviewed-on: #17
2022-09-03 13:14:01 +00:00
Michel Roux bd8266538d Update dependency gradle to v7.5.1
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-09-03 13:10:38 +00:00
Michel Roux 68ae955953 Remove finish and use gradle to be updated with renovate
continuous-integration/drone/push Build is failing Details
2022-09-03 15:00:44 +02:00
Michel Roux 89494777dd Use Wallpaper manager
continuous-integration/drone/push Build is passing Details
2022-09-03 13:29:11 +02:00
Michel Roux af6f50da30 Merge pull request 'Update dependency gradle to v7.5.1' (#16) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #16
2022-08-07 18:50:34 +00:00
Michel Roux 664b357164 Update dependency gradle to v7.5.1
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-08-06 00:39:28 +00:00
Michel Roux 9f119f969d Merge pull request 'Update dependency gradle to v7.5' (#15) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #15
2022-07-17 19:29:52 +00:00
Michel Roux 53511e0088 Update dependency gradle to v7.5
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-07-15 00:39:41 +00:00
Michel Roux 94ce37b2b8 Merge pull request 'Update dependency androidx.core:core to v1.8.0' (#14) from renovate/androidx.core-core-1.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #14
2022-06-02 16:55:52 +00:00
Michel Roux adfbecc852 Update dependency androidx.core:core to v1.8.0
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-06-02 00:29:15 +00:00
Michel Roux 5cd96ad042 Merge pull request 'Update dependency gradle to v7.4.2' (#13) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #13
2022-04-01 10:03:45 +00:00
Michel Roux 52146de8fd Update dependency gradle to v7.4.2
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-04-01 00:31:45 +00:00
Michel Roux e39dd5042b Merge pull request 'Update dependency gradle to v7.4.1' (#12) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #12
2022-03-11 08:05:22 +00:00
Michel Roux 37bbbea2e7 Update dependency gradle to v7.4.1
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-03-10 00:36:09 +00:00
Michel Roux 68e8665903 Merge pull request 'Update dependency gradle to v7.4' (#11) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #11
2022-02-13 11:29:22 +00:00
Michel Roux f377d28df9 Update dependency gradle to v7.4
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2022-02-09 00:35:33 +00:00
Michel Roux 4c006ddcd6 Merge pull request 'Update dependency gradle to v7.3.3' (#10) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #10
2021-12-23 08:54:29 +00:00
Michel Roux a24d419abd Update dependency gradle to v7.3.3
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-12-23 00:23:11 +00:00
Michel Roux a76e180081 Merge pull request 'Update dependency gradle to v7.3.2' (#9) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #9
2021-12-16 08:22:45 +00:00
Michel Roux beb7185527 Update dependency gradle to v7.3.2
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-12-15 17:30:10 +00:00
Michel Roux 133f4a13a7 Merge pull request 'Update dependency gradle to v7.3.1' (#8) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #8
2021-12-02 10:00:58 +00:00
Michel Roux 4f62ca01f9 Update dependency gradle to v7.3.1
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-12-02 00:31:19 +00:00
Michel Roux b9093029c2 Merge pull request 'Update dependency gradle to v7.3' (#7) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #7
2021-11-10 06:47:24 +00:00
Michel Roux 7cca1c112c Update dependency gradle to v7.3
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2021-11-10 00:41:36 +00:00
Michel Roux e90716a1bd Merge pull request 'Update dependency androidx.core:core to v1.7.0' (#6) from renovate/androidx.core-core-1.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #6
2021-10-28 07:25:32 +00:00
Michel Roux e30df9f476 Wrong place haha
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-10-28 09:19:51 +02:00
Michel Roux b58effba14 Fix compliance with Android 12 exported option
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
2021-10-28 09:14:05 +02:00
Michel Roux dfc026b52b Fix SDK version
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
2021-10-28 08:57:37 +02:00
Michel Roux 89d3b19f65 Update dependency androidx.core:core to v1.7.0
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
2021-10-28 00:38:16 +00:00
Michel Roux 9492f2f91c Better handling image from another apps
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-09-09 18:16:34 +02:00
Michel Roux 69d7f9f741 Merge pull request 'Update dependency gradle to v7.2' (#5) from renovate/gradle-7.x into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #5
2021-08-18 08:24:28 +00:00
Michel Roux e9a61dde36 Update dependency gradle to v7.2
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is passing Details
2021-08-18 00:12:18 +00:00
Michel Roux a2d52cc274 Fix download on http only
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-08-17 09:19:01 +02:00
Michel Roux 16b753c0ce Fix apk-signer
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-08-12 11:42:20 +02:00
Michel Roux b8460c38ad Fix apk-signer
continuous-integration/drone/push Build is failing Details
2021-08-12 11:38:52 +02:00
Michel Roux 7fce6bd62b Sign APK and update version
continuous-integration/drone/push Build is failing Details
2021-08-12 11:31:11 +02:00
Michel Roux 8acbb96726 Fix Google badge
continuous-integration/drone/push Build is passing Details
2021-08-12 11:20:23 +02:00
Michel Roux b67e739141 Fix no closing after setting wallpaper and add Play Store badge
continuous-integration/drone/push Build is passing Details
2021-08-12 11:15:31 +02:00
Michel Roux aa71e50b74 Sign with jarsigner
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-08-09 10:47:56 +02:00
Michel Roux ca13d34fe3 Fix Drone command
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-08-09 10:29:20 +02:00
Michel Roux 383e1a1ec8 Add signing to Drone
continuous-integration/drone/push Build is failing Details
2021-08-09 10:26:21 +02:00
Michel Roux 8aa8d06fe0 Prepare for Play Store
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-08-09 08:56:39 +02:00
22 changed files with 411 additions and 319 deletions

View File

@ -1,19 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: mingc/android-build-box
commands:
- sh gradlew zipApksForDebug
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.crystalyx.net
files:
- app/build/outputs/apk-zips/debug/apks.zip
when:
event: tag

25
.gitea/workflows/apk.yml Normal file
View File

@ -0,0 +1,25 @@
name: apk
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
container: mingc/android-build-box
steps:
- uses: actions/checkout@v4
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
- run: sh gradlew lint build bundleRelease assembleRelease --no-daemon
- uses: akkuman/gitea-release-action@v1
if: gitea.ref_type == 'tag'
with:
files: |
app/build/outputs/apk/debug/app-debug.apk
app/build/outputs/apk/release/app-release.apk
app/build/outputs/bundle/release/app-release.aab
env:
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
STORE_FILE: ${{ secrets.STORE_FILE }}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

11
.gitignore vendored
View File

@ -1,10 +1,5 @@
*.iml
.gradle
/local.properties
/.idea
.gradle/
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
build/
local.properties
.idea/

39
POLICY.md Normal file
View File

@ -0,0 +1,39 @@
**Privacy Policy**
I built the Set as wallpaper app as an Open Source app. This is provided by me at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my app.
If you choose to use my app, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the app. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Set as wallpaper unless otherwise defined in this Privacy Policy.
**Information Collection and Use**
For a better experience, while using our app, I may require you to provide us with certain personally identifiable information. The information that I request will be retained on your device and is not collected by me in any way.
**Log Data**
I want to inform you that whenever you use my app, in a case of an error in the app I collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my app, the time and date of your use of the app, and other statistics.
**Security**
I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.
**Links to Other Sites**
This app may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
**Childrens Privacy**
I do not knowingly collect personally identifiable information from children. I encourage all children to never submit any personally identifiable information through the Application and/or Services. I encourage parents and legal guardians to monitor their children's Internet usage and to help enforce this Policy by instructing their children never to provide personally identifiable information through the Application and/or Services without their permission. If you have reason to believe that a child has provided personally identifiable information to us through the Application and/or Services, please contact us. You must also be at least 16 years of age to consent to the processing of your personally identifiable information in your country (in some countries we may allow your parent or guardian to do so on your behalf).
**Changes to This Privacy Policy**
I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.
This policy is effective as of 2024-02-28
**Contact Us**
If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at https://blog.crystalyx.net/contact/.

View File

@ -1,13 +1,9 @@
# Set as wallpaper
[![Build Status](https://ci.crystalyx.net/api/badges/Xefir/SetAsWallpaper/status.svg)](https://ci.crystalyx.net/Xefir/SetAsWallpaper)
<a href="https://play.google.com/store/apps/details?id=net.crystalyx.setaswallpaper"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" height="80"/></a>
Provide a useful shortcut to set an image to your Android's wallpaper launcher and lock screen through the "Share" functionality.
## Download
You can find auto generated debug apk on the [Releases](https://git.crystalyx.net/Xefir/SetAsWallpaper/releases) page.
## Build
`./gradlew zipApksForDebug`
You can find auto generated debug apk on the [Releases](https://git.crystalyx.net/Xefir/SetAsWallpaper/releases) page or on [Google Play](https://play.google.com/store/apps/details?id=net.crystalyx.setaswallpaper).

1
app/.gitignore vendored
View File

@ -1 +0,0 @@
/build

View File

@ -1,32 +1,32 @@
plugins {
id 'com.android.application'
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
namespace 'net.crystalyx.setaswallpaper'
compileSdk 34
defaultConfig {
applicationId "net.crystalyx.setaswallpaper"
minSdkVersion 14
targetSdkVersion 30
versionCode 2
versionName "2.0"
minSdkVersion 5
targetSdkVersion 34
versionCode 11
versionName "3.4"
}
signingConfigs {
release {
if (System.env.STORE_FILE) {
storeFile file(System.env.STORE_FILE)
storePassword System.env.STORE_PASSWORD
keyAlias System.env.KEY_ALIAS
keyPassword System.env.KEY_PASSWORD
}
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (System.env.STORE_FILE) {
signingConfig signingConfigs.release
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation "androidx.core:core:1.6.0"
}

View File

@ -1,21 +1,10 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# Add any project specific keep options here:

View File

@ -1,36 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.crystalyx.setaswallpaper">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<application
android:allowBackup="false"
android:label="Set as wallpaper"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
<activity android:name=".SetWallpaperActivity">
android:icon="@mipmap/ic_launcher"
android:label="Set as wallpaper"
android:theme="@android:style/Theme.NoDisplay">
<activity
android:name=".SetWallpaperActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="image/*"/>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
<provider android:authorities="net.crystalyx.setaswallpaper.provider"
android:name="androidx.core.content.FileProvider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"/>
</provider>
</application>
</manifest>

View File

@ -0,0 +1,39 @@
package net.crystalyx.setaswallpaper;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public class HttpThreadHandler implements Runnable {
private final URL url;
private Bitmap bitmap;
private String errorMessage;
public HttpThreadHandler(URL url) {
this.url = url;
}
@Override
public void run() {
try {
URLConnection connection = url.openConnection();
connection.connect();
InputStream inputStream = connection.getInputStream();
bitmap = BitmapFactory.decodeStream(inputStream);
} catch (IOException e) {
errorMessage = e.getMessage();
}
}
public Bitmap gitBitmap() {
return bitmap;
}
public String getErrorMessage() {
return errorMessage;
}
}

View File

@ -1,19 +1,18 @@
package net.crystalyx.setaswallpaper;
import android.app.Activity;
import android.app.WallpaperManager;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.widget.Toast;
import androidx.core.content.FileProvider;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class SetWallpaperActivity extends Activity {
@ -28,72 +27,71 @@ public class SetWallpaperActivity extends Activity {
if ("text/plain".equals(type)) {
handleUrl(intent.getStringExtra(Intent.EXTRA_TEXT));
} else if (type.startsWith("image/")) {
launchWallpaperActivity(intent.getParcelableExtra(Intent.EXTRA_STREAM), type);
handleStream(getParcelableExtraStream(intent));
}
}
}
private String generateRandomString() {
int leftLimit = 97; // letter 'a'
int rightLimit = 122; // letter 'z'
int targetStringLength = 3;
Random random = new Random();
StringBuilder buffer = new StringBuilder(targetStringLength);
for (int i = 0; i < targetStringLength; i++) {
int randomLimitedInt = leftLimit + (int)
(random.nextFloat() * (rightLimit - leftLimit + 1));
buffer.append((char) randomLimitedInt);
@SuppressWarnings("deprecation")
private Uri getParcelableExtraStream(Intent intent) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
return intent.getParcelableExtra(Intent.EXTRA_STREAM, Uri.class);
}
return buffer.toString();
return intent.getParcelableExtra(Intent.EXTRA_STREAM);
}
private void handleUrl(String textUrl) {
URL url;
try {
url = new URL(textUrl);
} catch (MalformedURLException e) {
url = new URI(textUrl).toURL();
} catch (Exception e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
return;
}
ExecutorService executor = Executors.newSingleThreadExecutor();
HttpThreadHandler handler = new HttpThreadHandler(url);
Thread job = new Thread(handler);
executor.execute(() -> {
try {
File outputFile = File.createTempFile(generateRandomString(), generateRandomString(), getCacheDir());
URLConnection connection = url.openConnection();
connection.connect();
job.start();
try {
job.join();
} catch (InterruptedException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
}
InputStream inputStream = connection.getInputStream();
OutputStream outputStream = new FileOutputStream(outputFile);
byte[] data = new byte[1024];
int count;
while ((count = inputStream.read(data)) != -1) {
outputStream.write(data, 0, count);
}
outputStream.flush();
outputStream.close();
inputStream.close();
Uri uri = FileProvider.getUriForFile(getApplicationContext(), getPackageName() + ".provider", outputFile);
launchWallpaperActivity(uri, connection.getContentType());
} catch (IOException e) {
e.printStackTrace();
}
});
Bitmap bitmap = handler.gitBitmap();
String errorMessage = handler.getErrorMessage();
if (bitmap != null) {
launchWallpaperActivity(bitmap);
} else if (errorMessage != null) {
Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT).show();
}
}
private void launchWallpaperActivity(Uri uri, String mimeType) {
Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setDataAndType(uri, mimeType);
intent.putExtra("mimeType", mimeType);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivity(Intent.createChooser(intent, "Set as:"));
private void handleStream(Uri uri) {
try {
InputStream inputStream = getContentResolver().openInputStream(uri);
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
launchWallpaperActivity(bitmap);
} catch (IOException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
}
}
private void launchWallpaperActivity(Bitmap bitmap) {
WallpaperManager manager = WallpaperManager.getInstance(getApplicationContext());
try {
manager.setBitmap(bitmap);
} catch (IOException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
}
Toast.makeText(this, "Wallpaper set!", Toast.LENGTH_SHORT).show();
finish();
}
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<background android:drawable="@android:color/transparent"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<paths>
<cache-path name="cache" path="." />
</paths>

View File

@ -1,24 +1,25 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath('com.android.tools.build:gradle:8.3.1')
}
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
}
}
task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
}
tasks.withType(JavaCompile).configureEach {
options.deprecation = true
}

View File

@ -1,17 +0,0 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true

Binary file not shown.

View File

@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

294
gradlew vendored
View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh
#!/bin/sh
#
# Copyright 2015 the original author or authors.
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -17,67 +17,99 @@
#
##############################################################################
##
## Gradle start up script for UN*X
##
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
MAX_FD=maximum
warn () {
echo "$*"
}
} >&2
die () {
echo
echo "$*"
echo
exit 1
}
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MSYS* | MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
@ -87,9 +119,9 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@ -98,88 +130,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

35
gradlew.bat vendored
View File

@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@ -40,13 +41,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal

View File

@ -1,2 +1,3 @@
// Boilerplate from https://transang.me/create-a-minimal-android-boilerplate-from-scratch/
rootProject.name = "SetAsWallpaper"
include ':app'