Compare commits

...

69 Commits
3.3 ... master

Author SHA1 Message Date
Michel Roux 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
apk / build (push) Successful in 1m17s Details
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
apk / build (push) Successful in 9m8s Details
2024-04-10 06:39:08 +00:00
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
18 changed files with 141 additions and 154 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 --no-daemon
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 }}

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

@ -2,8 +2,6 @@
<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.
## Download

1
app/.gitignore vendored
View File

@ -1 +0,0 @@
/build

View File

@ -1,19 +1,15 @@
plugins {
id 'com.android.application'
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 33
namespace "net.crystalyx.setaswallpaper"
namespace 'net.crystalyx.setaswallpaper'
compileSdk 34
defaultConfig {
applicationId "net.crystalyx.setaswallpaper"
minSdk 5
targetSdkVersion 33
versionCode 10
versionName "3.3"
minSdkVersion 5
targetSdkVersion 34
versionCode 11
versionName "3.4"
}
signingConfigs {
release {
if (System.env.STORE_FILE) {
@ -24,23 +20,13 @@ android {
}
}
}
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
}
}
tasks.withType(JavaCompile) {
options.deprecation = true
}

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,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />

View File

@ -20,20 +20,20 @@ public class HttpThreadHandler implements Runnable {
@Override
public void run() {
try {
URLConnection connection = this.url.openConnection();
URLConnection connection = url.openConnection();
connection.connect();
InputStream inputStream = connection.getInputStream();
this.bitmap = BitmapFactory.decodeStream(inputStream);
bitmap = BitmapFactory.decodeStream(inputStream);
} catch (IOException e) {
errorMessage = e.getMessage();
}
}
public Bitmap gitBitmap() {
return this.bitmap;
return bitmap;
}
public String getErrorMessage() {
return this.errorMessage;
return errorMessage;
}
}

View File

@ -11,7 +11,7 @@ import android.os.Bundle;
import android.widget.Toast;
import java.io.*;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
public class SetWallpaperActivity extends Activity {
@ -45,8 +45,8 @@ public class SetWallpaperActivity extends Activity {
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;
}

View File

@ -1,5 +1,25 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:8.3.2')
}
}
allprojects {
repositories {
mavenLocal()
google()
mavenCentral()
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
tasks.withType(JavaCompile).configureEach {
options.deprecation = true
}

View File

@ -1,21 +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
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true

Binary file not shown.

View File

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

29
gradlew vendored
View File

@ -83,10 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# 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"'
# 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
@ -133,10 +131,13 @@ 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.
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.
@ -144,7 +145,7 @@ 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=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
@ -152,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@ -197,11 +198,15 @@ if "$cygwin" || "$msys" ; then
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# 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" \

20
gradlew.bat vendored
View File

@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
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
@ -57,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

View File

@ -1,16 +1,3 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
// Boilerplate from https://transang.me/create-a-minimal-android-boilerplate-from-scratch/
rootProject.name = "SetAsWallpaper"
include ':app'