Compare commits

..

104 Commits
3.1 ... master

Author SHA1 Message Date
47c6743d9d Merge pull request 'chore(deps): update dependency gradle to v8.8' (#61) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m9s
Reviewed-on: #61
2024-06-01 21:39:38 +00:00
Renovate Bot
a3f57eedd2 chore(deps): update dependency gradle to v8.8
All checks were successful
apk / build (push) Successful in 6m57s
2024-06-01 06:48:12 +00:00
67f81edac1 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.4.1' (#60) from renovate/com.android.tools.build-gradle-8.x into master
All checks were successful
apk / build (push) Successful in 59s
Reviewed-on: #60
2024-05-21 07:07:34 +00:00
Renovate Bot
acfa7b7219 chore(deps): update dependency com.android.tools.build:gradle to v8.4.1
All checks were successful
apk / build (push) Successful in 6m54s
2024-05-21 06:50:42 +00:00
5f5295ca29 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.4.0' (#59) from renovate/com.android.tools.build-gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m16s
Reviewed-on: #59
2024-05-01 18:20:24 +00:00
Renovate Bot
86bfa491f6 chore(deps): update dependency com.android.tools.build:gradle to v8.4.0
All checks were successful
apk / build (push) Successful in 7m18s
2024-05-01 06:40:06 +00:00
e61970d590 Merge pull request 'chore(deps): update dependency com.android.tools.build:gradle to v8.3.2' (#58) from renovate/com.android.tools.build-gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m17s
Reviewed-on: #58
2024-04-10 11:37:38 +00:00
Renovate Bot
508511ea5e chore(deps): update dependency com.android.tools.build:gradle to v8.3.2
All checks were successful
apk / build (push) Successful in 9m8s
2024-04-10 06:39:08 +00:00
c23078c3fe Merge pull request 'chore(deps): update dependency gradle to v8.7' (#57) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m32s
Reviewed-on: #57
2024-03-24 19:47:53 +00:00
Renovate Bot
0343759b00 chore(deps): update dependency gradle to v8.7
All checks were successful
apk / build (push) Successful in 8m20s
2024-03-23 06:52:16 +00:00
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
All checks were successful
apk / build (push) Successful in 1m28s
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
All checks were successful
apk / build (push) Successful in 9m58s
2024-03-19 06:32:16 +00:00
6fe19aea3d ci: 💚 fix ci with akkuman
All checks were successful
apk / build (push) Successful in 1m23s
2024-03-01 21:42:35 +01:00
70454c7dd8 feat: 📈 add policy to please Google
Some checks failed
apk / build (push) Has been cancelled
2024-03-01 21:22:49 +01:00
7a064c9759 fix: 🦺 update to sdk 34
All checks were successful
apk / build (push) Successful in 11m23s
2024-03-01 18:31:49 +01:00
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
All checks were successful
apk / build (push) Successful in 1m34s
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
All checks were successful
apk / build (push) Successful in 12m28s
2024-03-01 06:55:45 +00:00
d810e9ec84 Merge pull request 'Update dependency gradle to v8.6' (#54) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 3m22s
Reviewed-on: #54
2024-02-03 08:26:49 +00:00
Renovate Bot
028032dc25 Update dependency gradle to v8.6
All checks were successful
apk / build (push) Successful in 29m1s
2024-02-03 06:50:56 +00:00
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
All checks were successful
apk / build (push) Successful in 2m15s
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
All checks were successful
apk / build (push) Successful in 11m22s
2024-01-24 06:50:03 +00:00
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
All checks were successful
apk / build (push) Successful in 2m38s
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
All checks were successful
apk / build (push) Successful in 13m24s
2024-01-04 06:46:08 +00:00
3ac8107aa0 Merge pull request 'Update actions/setup-go action to v5' (#51) from renovate/actions-setup-go-5.x into master
All checks were successful
apk / build (push) Successful in 1m57s
Reviewed-on: #51
2023-12-09 13:16:41 +00:00
Renovate Bot
6b408f4e22 Update actions/setup-go action to v5
All checks were successful
apk / build (push) Successful in 12m33s
2023-12-07 06:43:05 +00:00
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
All checks were successful
apk / build (push) Successful in 1m55s
Reviewed-on: #50
2023-12-01 14:39:01 +00:00
1596b21435 Merge pull request 'Update dependency gradle to v8.5' (#49) from renovate/gradle-8.x into master
Some checks are pending
apk / build (push) Waiting to run
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
All checks were successful
apk / build (push) Successful in 2m22s
2023-12-01 06:31:25 +00:00
Renovate Bot
2db66942e6 Update dependency gradle to v8.5
All checks were successful
apk / build (push) Successful in 11m47s
2023-11-30 06:34:17 +00:00
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
All checks were successful
apk / build (push) Successful in 3m7s
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
All checks were successful
apk / build (push) Successful in 12m38s
2023-11-17 06:29:38 +00:00
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
All checks were successful
apk / build (push) Successful in 2m4s
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
All checks were successful
apk / build (push) Successful in 11m51s
2023-11-08 06:38:51 +00:00
bd7f81d445 Merge pull request 'Update dependency gradle to v8.4' (#46) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m38s
Reviewed-on: #46
2023-10-05 07:22:37 +00:00
Renovate Bot
de9918f36f Update dependency gradle to v8.4
All checks were successful
apk / build (push) Successful in 8m14s
2023-10-05 06:59:28 +00:00
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
All checks were successful
apk / build (push) Successful in 1m49s
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
All checks were successful
apk / build (push) Successful in 8m20s
2023-09-29 06:43:09 +00:00
b5ec2fb38a Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/SetAsWallpaper
All checks were successful
apk / build (push) Successful in 1m51s
2023-09-29 00:23:07 +02:00
a39cbf0710 Update actions 2023-09-29 00:22:19 +02:00
6d3870ed47 Merge pull request 'Update actions/setup-go action to v4' (#44) from renovate/actions-setup-go-4.x into master
All checks were successful
apk / build (push) Successful in 1m36s
Reviewed-on: #44
2023-09-11 07:17:29 +00:00
Renovate Bot
5fc47c6e1e Update actions/setup-go action to v4
All checks were successful
apk / build (push) Successful in 1m39s
2023-09-11 06:53:05 +00:00
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
All checks were successful
apk / build (push) Successful in 1m26s
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
All checks were successful
apk / build (push) Successful in 1m30s
2023-08-22 06:41:14 +00:00
7d2d0d56bf Merge pull request 'Update dependency gradle to v8.3' (#41) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m27s
Reviewed-on: #41
2023-08-18 07:03:40 +00:00
Renovate Bot
81f11e49d0 Update dependency gradle to v8.3
All checks were successful
apk / build (push) Successful in 1m31s
2023-08-18 06:55:08 +00:00
3431519c1a Small typos
All checks were successful
apk / build (push) Successful in 1m26s
2023-07-31 23:04:22 +02:00
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
All checks were successful
apk / build (push) Successful in 1m21s
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
All checks were successful
apk / build (push) Successful in 2m3s
2023-07-26 06:33:18 +00:00
8879e5095e Use gitea release main version
All checks were successful
apk / build (push) Successful in 1m38s
2023-07-25 14:47:14 +00:00
894449650b Merge pull request 'Update dependency gradle to v8.2.1' (#39) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m21s
Reviewed-on: #39
2023-07-11 06:39:44 +00:00
Renovate Bot
c31ebe3efd Update dependency gradle to v8.2.1
All checks were successful
apk / build (push) Successful in 8m8s
2023-07-11 06:37:42 +00:00
2b5cbb4aaa Merge pull request 'Update dependency gradle to v8.2' (#38) from renovate/gradle-8.x into master
All checks were successful
apk / build (push) Successful in 1m28s
Reviewed-on: #38
2023-07-01 15:12:14 +00:00
Renovate Bot
465256f9fc Update dependency gradle to v8.2
All checks were successful
apk / build (push) Successful in 7m12s
2023-07-01 06:47:03 +00:00
09eda47d80 Fix CI
All checks were successful
apk / build (push) Successful in 1m28s
2023-06-30 14:26:41 +00:00
54bd7058f7 SigningConfig must be before
Some checks failed
apk / build (push) Failing after 5m43s
2023-06-27 13:05:06 +02:00
a1c54a9735 Use boilerplate instead of Android Studio generation
Some checks failed
apk / build (push) Failing after 1m16s
2023-06-27 12:59:31 +02:00
4e8dc03312 Fix yml
All checks were successful
apk / build (push) Successful in 1m31s
2023-06-26 18:17:54 +02:00
436a35998c Fix yml
Some checks failed
apk / build (push) Failing after 5m48s
2023-06-26 18:11:10 +02:00
60d4de410a Switch to Gitea Actions 2023-06-26 18:09:56 +02:00
4b6c6b87a0 Merge pull request 'Update plugin com.android.application to v8.0.2' (#36) from renovate/com.android.application-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #36
2023-05-26 12:19:56 +00:00
79902971a2 Update plugin com.android.application to v8.0.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 10:24:11 +00:00
4e9f56c151 Merge pull request 'Update plugin com.android.library to v8.0.2' (#37) from renovate/com.android.library-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #37
2023-05-26 10:14:42 +00:00
e8494ecec8 Update plugin com.android.library to v8.0.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-25 00:30:15 +00:00
e3e01a4e4b Merge pull request 'Update plugin com.android.application to v8.0.1' (#34) from renovate/com.android.application-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #34
2023-05-02 07:32:42 +00:00
991943c93d Update plugin com.android.application to v8.0.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-02 05:21:14 +00:00
07253daeaa Merge pull request 'Update plugin com.android.library to v8.0.1' (#35) from renovate/com.android.library-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #35
2023-05-02 05:16:00 +00:00
4050c684d8 Update plugin com.android.library to v8.0.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-02 00:04:25 +00:00
7c88cba0a8 Merge pull request 'Update dependency gradle to v8.1.1' (#33) from renovate/gradle-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #33
2023-04-22 15:22:28 +00:00
eb4b25c46f Update dependency gradle to v8.1.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-22 00:11:09 +00:00
6cf1267797 Merge pull request 'Update plugin com.android.application to v8' (#31) from renovate/com.android.application-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #31
2023-04-14 07:42:45 +00:00
3fff390a54 Update plugin com.android.application to v8
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 07:25:00 +00:00
a002532036 Merge pull request 'Update plugin com.android.library to v8' (#32) from renovate/com.android.library-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #32
2023-04-14 07:10:39 +00:00
6bd04af856 Update plugin com.android.library to v8
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 00:12:23 +00:00
4ad151ebea Merge pull request 'Update dependency gradle to v8.1' (#30) from renovate/gradle-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #30
2023-04-13 07:55:12 +00:00
00d5543f12 Update dependency gradle to v8.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-13 00:11:42 +00:00
a1260ae536 Use SDK 33
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-03-22 11:13:10 +01:00
0e71b36361 Merge pull request 'Update dependency gradle to v8.0.2' (#29) from renovate/gradle-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #29
2023-03-05 14:50:21 +00:00
43fd5f426f Update dependency gradle to v8.0.2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-03-04 00:36:43 +00:00
ff02fa2235 Merge pull request 'Update plugin com.android.library to v7.4.2' (#28) from renovate/com.android.library-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #28
2023-02-28 10:43:42 +00:00
b725d7880b Update plugin com.android.library to v7.4.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-28 10:05:46 +00:00
9c9ec48160 Merge pull request 'Update plugin com.android.application to v7.4.2' (#27) from renovate/com.android.application-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #27
2023-02-28 09:54:41 +00:00
6756374c5d Update plugin com.android.application to v7.4.2
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-28 00:36:12 +00:00
40c19fe9e0 Merge pull request 'Update dependency gradle to v8.0.1' (#26) from renovate/gradle-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #26
2023-02-21 08:45:29 +00:00
fe88333f95 Update dependency gradle to v8.0.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-18 00:24:38 +00:00
39d4eedd9c Merge pull request 'Update dependency gradle to v8' (#25) from renovate/gradle-8.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #25
2023-02-14 09:53:44 +00:00
9e83fa1793 Update dependency gradle to v8
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-14 00:24:59 +00:00
7ca78b6843 Merge pull request 'Update plugin com.android.application to v7.4.1' (#23) from renovate/com.android.application-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #23
2023-02-03 13:12:43 +00:00
1dceed7ea6 Update plugin com.android.application to v7.4.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-03 00:23:04 +00:00
0a948977be Merge pull request 'Update plugin com.android.library to v7.4.1' (#24) from renovate/com.android.library-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #24
2023-02-02 08:14:16 +00:00
3004af9c8b Update plugin com.android.library to v7.4.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 00:34:30 +00:00
dac8c199f6 Merge pull request 'Update plugin com.android.application to v7.4.0' (#21) from renovate/com.android.application-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2023-01-13 09:03:50 +00:00
3f506a78e2 Update plugin com.android.application to v7.4.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 08:54:23 +00:00
811962796b Merge pull request 'Update plugin com.android.library to v7.4.0' (#22) from renovate/com.android.library-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #22
2023-01-13 08:44:13 +00:00
a064e07345 Update plugin com.android.library to v7.4.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-13 00:21:09 +00:00
ac664c62c2 Merge pull request 'Update dependency gradle to v7.6' (#20) from renovate/gradle-7.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #20
2022-11-26 11:02:21 +00:00
15d9b8dd49 Update dependency gradle to v7.6
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-26 00:14:41 +00:00
c6bcace566 Properly handle thread
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-11-19 23:19:24 +01:00
c5d943bfdd Remove round icon
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 15:40:16 +02:00
20d9557ec0 Change to minSdk
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 15:33:26 +02:00
0372c20d48 Update project
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-26 14:28:05 +02:00
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
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Reviewed-on: #19
2022-10-14 15:44:52 +00:00
b18ef5d0c0 Update dependency com.android.tools.build:gradle to v7.3.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-14 00:16:47 +00:00
3bdb6a0e8d Merge branch 'master' of ssh://patema.crystalyx.net:2222/Xefir/SetAsWallpaper
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-21 11:58:59 +00:00
4360660532 Boost build time 2022-09-21 11:58:57 +00:00
21 changed files with 197 additions and 167 deletions

View File

@ -1,35 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: mingc/android-build-box
commands:
- curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
- sh gradlew build bundleRelease assembleRelease
environment:
USERNAME:
from_secret: nextcloud_user
PASSWORD:
from_secret: nextcloud_password
STORE_FILE:
from_secret: android_keyfile
STORE_PASSWORD:
from_secret: android_keypass
KEY_ALIAS:
from_secret: android_keyalias
KEY_PASSWORD:
from_secret: android_keypass
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.crystalyx.net
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
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 }}

12
.gitignore vendored
View File

@ -1,11 +1,5 @@
*.iml .gradle/
.gradle
/local.properties
/.idea
.DS_Store .DS_Store
/build build/
/captures
.externalNativeBuild
.cxx
local.properties local.properties
*.jks .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

@ -2,14 +2,8 @@
<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> <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>
[![Build Status](https://ci.crystalyx.net/api/badges/Xefir/SetAsWallpaper/status.svg)](https://ci.crystalyx.net/Xefir/SetAsWallpaper)
Provide a useful shortcut to set an image to your Android's wallpaper launcher and lock screen through the "Share" functionality. Provide a useful shortcut to set an image to your Android's wallpaper launcher and lock screen through the "Share" functionality.
## Download ## Download
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). 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).
## Build
`./gradlew zipApksForDebug`

1
app/.gitignore vendored
View File

@ -1 +0,0 @@
/build

View File

@ -1,21 +1,15 @@
plugins { apply plugin: 'com.android.application'
id 'com.android.application'
}
android { android {
compileSdkVersion 32 namespace 'net.crystalyx.setaswallpaper'
buildToolsVersion "30.0.3" compileSdk 34
namespace "net.crystalyx.setaswallpaper"
defaultConfig { defaultConfig {
applicationId "net.crystalyx.setaswallpaper" applicationId "net.crystalyx.setaswallpaper"
minSdkVersion 5 minSdkVersion 5
//noinspection OldTargetApi targetSdkVersion 34
targetSdkVersion 32 versionCode 11
versionCode 8 versionName "3.4"
versionName "3.1"
} }
signingConfigs { signingConfigs {
release { release {
if (System.env.STORE_FILE) { if (System.env.STORE_FILE) {
@ -26,19 +20,13 @@ android {
} }
} }
} }
buildTypes { buildTypes {
release { release {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (System.env.STORE_FILE) { if (System.env.STORE_FILE) {
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
} }
} }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
} }

View File

@ -1,21 +1,10 @@
# Add project specific ProGuard rules here. # Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the # By default, the flags in this file are appended to flags specified
# proguardFiles setting in build.gradle. # 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 # For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html # http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following # Add any project specific keep options here:
# 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

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
@ -7,7 +6,6 @@
<application <application
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="Set as wallpaper" android:label="Set as wallpaper"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@android:style/Theme.NoDisplay"> android:theme="@android:style/Theme.NoDisplay">
<activity <activity
android:name=".SetWallpaperActivity" android:name=".SetWallpaperActivity"

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

@ -6,15 +6,13 @@ import android.content.Intent;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.graphics.BitmapFactory; import android.graphics.BitmapFactory;
import android.net.Uri; import android.net.Uri;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.widget.Toast; import android.widget.Toast;
import java.io.*; import java.io.*;
import java.net.MalformedURLException; import java.net.URI;
import java.net.URL; import java.net.URL;
import java.net.URLConnection;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class SetWallpaperActivity extends Activity { public class SetWallpaperActivity extends Activity {
@ -29,47 +27,61 @@ public class SetWallpaperActivity extends Activity {
if ("text/plain".equals(type)) { if ("text/plain".equals(type)) {
handleUrl(intent.getStringExtra(Intent.EXTRA_TEXT)); handleUrl(intent.getStringExtra(Intent.EXTRA_TEXT));
} else if (type.startsWith("image/")) { } else if (type.startsWith("image/")) {
handleStream(intent.getParcelableExtra(Intent.EXTRA_STREAM)); handleStream(getParcelableExtraStream(intent));
} }
} }
} }
@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 intent.getParcelableExtra(Intent.EXTRA_STREAM);
}
private void handleUrl(String textUrl) { private void handleUrl(String textUrl) {
URL url; URL url;
try { try {
url = new URL(textUrl); url = new URI(textUrl).toURL();
} catch (MalformedURLException e) { } catch (Exception e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
return; return;
} }
ExecutorService executor = Executors.newSingleThreadExecutor(); HttpThreadHandler handler = new HttpThreadHandler(url);
Thread job = new Thread(handler);
executor.execute(() -> { job.start();
try { try {
URLConnection connection = url.openConnection(); job.join();
connection.connect(); } catch (InterruptedException e) {
InputStream inputStream = connection.getInputStream(); Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
launchWallpaperActivity(inputStream); }
} catch (IOException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); 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 handleStream(Uri uri) { private void handleStream(Uri uri) {
try { try {
InputStream inputStream = getContentResolver().openInputStream(uri); InputStream inputStream = getContentResolver().openInputStream(uri);
launchWallpaperActivity(inputStream); Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
launchWallpaperActivity(bitmap);
} catch (IOException e) { } catch (IOException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
} }
} }
private void launchWallpaperActivity(InputStream stream) { private void launchWallpaperActivity(Bitmap bitmap) {
WallpaperManager manager = WallpaperManager.getInstance(getApplicationContext()); WallpaperManager manager = WallpaperManager.getInstance(getApplicationContext());
Bitmap bitmap = BitmapFactory.decodeStream(stream);
try { try {
manager.setBitmap(bitmap); manager.setBitmap(bitmap);

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <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"/> <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon> </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,28 +1,25 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.3.0' classpath('com.android.tools.build:gradle:8.4.1')
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
} }
allprojects { allprojects {
repositories { repositories {
mavenLocal()
google() google()
mavenCentral() mavenCentral()
} }
tasks.withType(JavaCompile) {
options.deprecation = true
}
} }
task clean(type: Delete) { tasks.register('clean', Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }
tasks.withType(JavaCompile).configureEach {
options.deprecation = true
}

View File

@ -1,13 +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

Binary file not shown.

View File

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

35
gradlew vendored
View File

@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
@ -80,13 +80,11 @@ do
esac esac
done done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # This is normally unused
# shellcheck disable=SC2034
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum
@ -133,22 +131,29 @@ location of your Java installation."
fi fi
else else
JAVACMD=java 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. 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 Please set the JAVA_HOME variable in your environment to match the
location of your Java installation." location of your Java installation."
fi
fi fi
# Increase the maximum file descriptors if we can. # Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #( case $MAX_FD in #(
max*) 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 ) || MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit" warn "Could not query maximum file descriptor limit"
esac esac
case $MAX_FD in #( case $MAX_FD in #(
'' | soft) :;; #( '' | 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" || ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD" warn "Could not set maximum file descriptor limit to $MAX_FD"
esac esac
@ -193,11 +198,15 @@ if "$cygwin" || "$msys" ; then
done done
fi fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
# shell script including quotes and variable substitutions, so put them in DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded. # 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 -- \ set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \ "-Dorg.gradle.appname=$APP_BASE_NAME" \

21
gradlew.bat vendored
View File

@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=. if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@ -42,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute if %ERRORLEVEL% equ 0 goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail
@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute if exist "%JAVA_EXE%" goto execute
echo. echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. echo location of your Java installation. 1>&2
goto fail goto fail

View File

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