Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![GitHub Downloads](https://img.shields.io/github/downloads/cssnr/remote-wallpaper-android/total?logo=android)](https://github.com/cssnr/remote-wallpaper-android/releases)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/remote-wallpaper-android?logo=github)](https://github.com/cssnr/remote-wallpaper-android/releases/latest)
[![APK Size](https://badges.cssnr.com/gh/release/cssnr/zipline-android/latest/asset/app-release.apk/size?label=apk&color=darkgreen)](https://github.com/cssnr/remote-wallpaper-android/releases/latest/download/app-release.apk)
[![AGP Version](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcssnr%2Fremote-wallpaper-android%2Frefs%2Fheads%2Fmaster%2Fgradle%2Flibs.versions.toml&query=%24.versions.agp&logo=gradle&label=gradle)](https://github.com/cssnr/remote-wallpaper-android/blob/master/gradle/libs.versions.toml#L2)
[![APK Size](https://badges.cssnr.com/gh/release/cssnr/zipline-android/latest/asset/app-release.apk/size?label=apk)](https://github.com/cssnr/remote-wallpaper-android/releases/latest/download/app-release.apk)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/remote-wallpaper-android/lint.yaml?logo=norton&logoColor=white&label=lint)](https://github.com/cssnr/remote-wallpaper-android/actions/workflows/lint.yaml)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/remote-wallpaper-android/release.yaml?logo=norton&logoColor=white&label=release)](https://github.com/cssnr/remote-wallpaper-android/actions/workflows/release.yaml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/remote-wallpaper-android?logo=listenhub&label=updated)](https://github.com/cssnr/remote-wallpaper-android/pulse)
Expand All @@ -16,6 +16,10 @@
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)
[![Ko-fi](https://img.shields.io/badge/Ko--fi-72a5f2?logo=kofi&label=support)](https://ko-fi.com/cssnr)

> [!CAUTION]
> :rotating_light: **Free and Open-Source Android is under threat!**
> Google will turn Android into a locked-down platform, restricting your essential freedom to install apps of your choice. Make your voice heard – [Keep Android Open](https://keepandroidopen.org/).

# Remote Wallpaper Android

<a title="Remote Wallpaper Android" href="https://cssnr.github.io/remote-wallpaper-android/" target="_blank">
Expand Down Expand Up @@ -125,17 +129,19 @@ should take you to the settings area to allow installation if not already enable

## Support

For general help or to request a feature, see:

- Q&A Discussion: https://github.com/cssnr/remote-wallpaper-android/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/remote-wallpaper-android/issues/new?template=1-feature.yaml
[![View Documentation](https://img.shields.io/badge/view_documentation-blue?style=for-the-badge&logo=quicklook)](https://cssnr.github.io/remote-wallpaper-android/support/)

If you are experiencing an issue/bug or getting unexpected results, you can:
If you run into any issues or need help getting started, please do one of the following:

- Report an Issue: https://github.com/cssnr/remote-wallpaper-android/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Report an Issue: <https://github.com/cssnr/remote-wallpaper-android/issues>
- Q&A Discussion: <https://github.com/cssnr/remote-wallpaper-android/discussions/categories/q-a>
- Request a Feature: <https://github.com/cssnr/remote-wallpaper-android/issues/new?template=1-feature.yaml>
- Chat with us on Discord: <https://discord.gg/wXy6m2X8wY>

[![View Documentation](https://img.shields.io/badge/view_documentation-blue?style=for-the-badge&logo=quicklook)](https://cssnr.github.io/remote-wallpaper-android/support/)
[![Features](https://img.shields.io/badge/features-brightgreen?style=for-the-badge&logo=rocket&logoColor=white)](https://github.com/cssnr/remote-wallpaper-android/issues/new?template=1-feature.yaml)
[![Issues](https://img.shields.io/badge/issues-red?style=for-the-badge&logo=southwestairlines&logoColor=white)](https://github.com/cssnr/remote-wallpaper-android/issues)
[![Discussions](https://img.shields.io/badge/discussions-blue?style=for-the-badge&logo=livechat&logoColor=white)](https://github.com/cssnr/remote-wallpaper-android/discussions)
[![Discord](https://img.shields.io/badge/discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/wXy6m2X8wY)

# Development

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.core.net.toUri
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout.OnRefreshListener
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -124,16 +123,14 @@ class HistoryFragment : Fragment() {

// Setup refresh listener which triggers new data loading
//binding.swiperefresh.isEnabled = false
binding.swiperefresh.setOnRefreshListener(object : OnRefreshListener {
override fun onRefresh() {
Log.d(LOG_TAG, "setOnRefreshListener: onRefresh")
lifecycleScope.launch {
withContext(Dispatchers.IO) { ctx.updateData() }
Toast.makeText(ctx, "History Reloaded", Toast.LENGTH_SHORT).show()
_binding?.swiperefresh?.isRefreshing = false
}
binding.swiperefresh.setOnRefreshListener {
Log.d(LOG_TAG, "setOnRefreshListener: onRefresh")
lifecycleScope.launch {
withContext(Dispatchers.IO) { ctx.updateData() }
Toast.makeText(ctx, "History Reloaded", Toast.LENGTH_SHORT).show()
_binding?.swiperefresh?.isRefreshing = false
}
})
}
}

private suspend fun Context.updateData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HistoryViewModel : ViewModel() {
//val stationData = MutableLiveData<List<HistoryItem>>()

val historyData: MutableLiveData<List<HistoryItem>> by lazy {
MutableLiveData<List<HistoryItem>>()
MutableLiveData()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WidgetSettingsFragment : PreferenceFragmentCompat() {
seekBar?.apply {
setOnPreferenceChangeListener { pref, newValue ->
val intValue = (newValue as Int)
var stepped = ((intValue + 2) / 5) * 5
val stepped = ((intValue + 2) / 5) * 5
Log.d("WidgetSettingsFragment", "stepped: $stepped")
value = stepped
pref.summary = "Current Value: $stepped"
Expand Down
6 changes: 5 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ icon: lucide/rocket

[![GitHub Downloads](https://img.shields.io/github/downloads/cssnr/remote-wallpaper-android/total?logo=android)](https://github.com/cssnr/remote-wallpaper-android/releases)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/remote-wallpaper-android?logo=github)](https://github.com/cssnr/remote-wallpaper-android/releases/latest)
[![APK Size](https://badges.cssnr.com/gh/release/cssnr/zipline-android/latest/asset/app-release.apk/size?label=apk&color=darkgreen)](https://github.com/cssnr/remote-wallpaper-android/releases/latest/download/app-release.apk)
[![AGP Version](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcssnr%2Fremote-wallpaper-android%2Frefs%2Fheads%2Fmaster%2Fgradle%2Flibs.versions.toml&query=%24.versions.agp&logo=gradle&label=gradle)](https://github.com/cssnr/remote-wallpaper-android/blob/master/gradle/libs.versions.toml#L2)
[![APK Size](https://badges.cssnr.com/gh/release/cssnr/zipline-android/latest/asset/app-release.apk/size?label=apk)](https://github.com/cssnr/remote-wallpaper-android/releases/latest/download/app-release.apk)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/remote-wallpaper-android/lint.yaml?logo=norton&logoColor=white&label=lint)](https://github.com/cssnr/remote-wallpaper-android/actions/workflows/lint.yaml)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/remote-wallpaper-android/release.yaml?logo=norton&logoColor=white&label=release)](https://github.com/cssnr/remote-wallpaper-android/actions/workflows/release.yaml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/remote-wallpaper-android?logo=listenhub&label=updated)](https://github.com/cssnr/remote-wallpaper-android/pulse)
Expand All @@ -34,6 +34,10 @@ Set wallpaper from remote URL's at a defined interval. Supports any link that re

To get started, [Install](#install) the app, view the [Screenshots](#screenshots) and review the [Usage](usage.md).

!!! danger ":rotating_light: **Free and Open-Source Android is under threat!**"

Google will turn Android into a locked-down platform, restricting your essential freedom to install apps of your choice. Make your voice heard – [Keep Android Open](https://keepandroidopen.org/).

## :lucide-sparkles: Features

- Add any remote that redirects to a random image.
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If you are unsure which provider to choose, [Obtainium :lucide-arrow-up-right:](
[![Get on Obtainium](https://raw.githubusercontent.com/smashedr/repo-images/refs/heads/master/badges/get-on/obtainium.png)](https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/cssnr/remote-wallpaper-android)

[![Latest Release](https://img.shields.io/github/v/release/cssnr/remote-wallpaper-android?style=for-the-badge&logo=android&color=34A853&label=Latest%20Release)](https://github.com/cssnr/remote-wallpaper-android/releases/latest)
[![Latest Pre-Release](https://img.shields.io/github/v/release/cssnr/remote-wallpaper-android?style=for-the-badge&logo=android&label=Pre-Release&include_prereleases)](https://github.com/cssnr/remote-wallpaper-android/releases)
[![Latest Pre-Release](https://img.shields.io/github/v/release/cssnr/remote-wallpaper-android?style=for-the-badge&logo=android&label=Pre-Release&include_prereleases&color=blue)](https://github.com/cssnr/remote-wallpaper-android/releases)

??? abstract "View QR Codes"

Expand Down
28 changes: 14 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
agp = "9.0.1"
agp = "9.1.0"
kotlin = "2.3.10"
ksp = "2.3.5"
coreKtx = "1.17.0"
Expand All @@ -20,17 +20,17 @@ recyclerview = "1.4.0"
room = "2.8.4"
swiperefreshlayout = "1.2.0"
workRuntimeKtx = "2.11.1"
#viewpager2 = "1.1.0"
# viewpager2 = "1.1.0"

okhttp = "5.3.2"
retrofit = "3.0.0"
moshiKotlinCodegen = "1.15.2"
photoview = "1.0.3"
#taptargetview = "1.15.0"
# taptargetview = "1.15.0"

#googleServices = "4.4.2"
#firebaseBom = "33.14.0"
#crashlyticsPlugin = "3.0.3"
# googleServices = "4.4.2"
# firebaseBom = "33.14.0"
# crashlyticsPlugin = "3.0.3"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
Expand All @@ -52,25 +52,25 @@ androidx-room-ktx = { group = "androidx.room", name = "room-ktx", version.ref =
androidx-room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
androidx-swiperefreshlayout = { group = "androidx.swiperefreshlayout", name = "swiperefreshlayout", version.ref = "swiperefreshlayout" }
androidx-work-runtime-ktx = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "workRuntimeKtx" }
#androidx-viewpager2 = { group = "androidx.viewpager2", name = "viewpager2", version.ref = "viewpager2" }
# androidx-viewpager2 = { group = "androidx.viewpager2", name = "viewpager2", version.ref = "viewpager2" }

okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
converter-moshi = { group = "com.squareup.retrofit2", name = "converter-moshi", version.ref = "retrofit" }
moshi-kotlin-codegen = { group = "com.squareup.moshi", name = "moshi-kotlin-codegen", version.ref = "moshiKotlinCodegen" }
photoview = { group = "io.getstream", name = "photoview", version.ref = "photoview" }
#taptargetview = { group = "com.getkeepsafe.taptargetview", name = "taptargetview", version.ref = "taptargetview" }
# taptargetview = { group = "com.getkeepsafe.taptargetview", name = "taptargetview", version.ref = "taptargetview" }

#firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebaseBom" }
#firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics" }
#firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics" }
#firebase-messaging = { group = "com.google.firebase", name = "firebase-messaging" }
# firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebaseBom" }
# firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics" }
# firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics" }
# firebase-messaging = { group = "com.google.firebase", name = "firebase-messaging" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
androidx-navigation-safeargs-kotlin = { id = "androidx.navigation.safeargs.kotlin", version.ref = "navigationSafeargs" }

#google-services = { id = "com.google.gms.google-services", version.ref = "googleServices" }
#firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "crashlyticsPlugin" }
# google-services = { id = "com.google.gms.google-services", version.ref = "googleServices" }
# firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "crashlyticsPlugin" }
5 changes: 4 additions & 1 deletion zensical.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ nav = [
# https://zensical.org/docs/customization/#additional-css
extra_css = ["assets/css/extra.css"]
# https://zensical.org/docs/customization/#additional-javascript
extra_javascript = ["assets/js/extra.js"]
extra_javascript = [
"assets/js/extra.js",
# "https://keepandroidopen.org/banner.js?size=mini"
]

# ----------------------------------------------------------------------------
# Section for configuring theme options
Expand Down
Loading