Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cloud wallpaper support #2507

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/src/black/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
]]>
</string>

<string name="wallpaper_json">https://wallpapers.arcticons.com/config-black.json</string>

</resources>
2 changes: 2 additions & 0 deletions app/src/dayNight/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
]]>
</string>

<string name="wallpaper_json">https://wallpapers.arcticons.com/config-daynight.json</string>

</resources>
2 changes: 0 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">

<uses-permission android:name="android.permission.INTERNET" tools:node="remove" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" tools:node="remove"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" tools:node="remove" />
<uses-permission android:name="android.permission.SET_WALLPAPER" tools:node="remove" />
<uses-permission android:name="android.permission.WAKE_LOCK" tools:node="remove" />
<uses-permission android:name="${applicationId}.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" tools:node="remove" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" tools:node="remove" />
Expand Down
21 changes: 3 additions & 18 deletions app/src/main/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,38 +156,23 @@
<string name="regular_request_email_subject"></string>
<string name="premium_request_email_subject"></string>

<!--
CONFIG: WALLPAPERS
-->
<!-- Wallpaper JSON link
If your icon pack doesn't contain any wallpaper, just leave this empty
<string name="wallpaper_json"></string>

If you want to separate wallpaper app from icon pack and keep wallpapers section shown in navigation drawer,
just put your wallpaper app's package name here
ex: com.dm.wallpaper.board.demo
<string name="wallpaper_json">com.dm.wallpaper.board.demo</string>
Now when "Wallpaper" section is selected in your icon pack app's navigation drawer,
your wallpaper app will be launched if it's installed. If it's not installed, then the Play Store page
will be opened to install your wallpaper app. -->
<string name="wallpaper_json"></string>

<!-- Enable wallpaper downloading
If disabled, your users will only be able to apply wallpapers from the dashboard.
They will not be able to to download wallpapers. -->
<bool name="enable_wallpaper_download">false</bool>
<bool name="enable_wallpaper_download">true</bool>

<!-- Show name and author below wallpapers
If you don't want to show name and author below wallpapers, just disable it (set it to `false`) -->
<bool name="wallpaper_show_name_author">false</bool>
<bool name="wallpaper_show_name_author">true</bool>

<!-- Wallpapers grid preview style
Available choices:
- square
- landscape
- portrait
-->
<string name="wallpaper_grid_preview_style">square</string>
<string name="wallpaper_grid_preview_style">portrait</string>


<!--
Expand Down
2 changes: 2 additions & 0 deletions app/src/normal/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
]]>
</string>

<string name="wallpaper_json">https://wallpapers.arcticons.com/config-normal.json</string>

</resources>
2 changes: 2 additions & 0 deletions app/src/you/res/values/dashboard_configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@
]]>
</string>

<string name="wallpaper_json">https://wallpapers.arcticons.com/config-you.json</string>

</resources>