Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
addons: Prayer Times, today's prayer times with a countdown to the next one
majniouic921c9c4b957
diff --git a/addons/README.md b/addons/README.mdindex 9d4953652..20f220eeb 100644--- a/addons/README.md+++ b/addons/README.md@@ -12,6 +12,7 @@ the core bigger or change how it behaves. You install an add-on only if you want| [Frigate Glance](frigate-glance/) | Frigate camera pop-ups over whatever is playing | NickLD | TCL 65Q650G | overlay, accessibility (card keys), network, foreground service || [Capacity Stats](capacity-stats/) | Available/total and used/total RAM; available/total storage | [lionlev21](https://github.com/lionlev21) | Android TV 12 (model private) | None || [Weather](weather/) | The weather for one city: now, US air quality and the next three days, from Open-Meteo (no key) | [@Sumyabazar1](https://github.com/Sumyabazar1) | Hisense SmartTV 4K FFM (lushan), Google TV 12 | `INTERNET` |+| [Prayer Times](prayer-times/) | Today's prayer times for one city from Aladhan (no key), the next prayer with a countdown, Gregorian and Hijri dates | [@majnioui](https://github.com/majnioui) | Xiaomi TV (MiTV-MOOR2), Google TV 11 | `INTERNET` |A widget, an info tile, a storage or smart-home card: if it can live as its own small app, it can livehere. See the rules below.diff --git a/addons/prayer-times/.gitignore b/addons/prayer-times/.gitignorenew file mode 100644index 000000000..a7e04a21b--- /dev/null+++ b/addons/prayer-times/.gitignore@@ -0,0 +1,4 @@+.gradle/+build/+app/build/+local.propertiesdiff --git a/addons/prayer-times/FONT-LICENSE-OFL.txt b/addons/prayer-times/FONT-LICENSE-OFL.txtnew file mode 100644index 000000000..723cd447e--- /dev/null+++ b/addons/prayer-times/FONT-LICENSE-OFL.txt@@ -0,0 +1,93 @@+Copyright 2021 The Outfit Project Authors (https://github.com/Outfitio/Outfit-Fonts)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://scripts.sil.org/OFL+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/addons/prayer-times/README.md b/addons/prayer-times/README.mdnew file mode 100644index 000000000..563b51af0--- /dev/null+++ b/addons/prayer-times/README.md@@ -0,0 +1,56 @@+# Prayer Times++Today's five prayer times and sunrise for one city, full screen on the TV, with the next prayer highlighted and a+countdown to it, plus today's Gregorian and Hijri dates. Each prayer has its Arabic and English name. For the+[Clean Your TV](../../README.md) launcher it declares a [module card](../../docs/modules.md), so once you answer+**Show card** its tile reads "Prayer Times" with a green glow; on any other Android TV home it is an ordinary app.++++- **Data** comes from [Aladhan](https://aladhan.com/), which needs no account or key.+- **The city and the calculation method** are set before you build, in `app/src/main/res/values/config.xml`:+ `latitude`, `longitude`, `place` (the name shown) and `method`, Aladhan's+ [method number](https://aladhan.com/calculation-methods) (2 ISNA, 3 Muslim World League, 4 Umm al-Qura,+ 5 Egyptian, 13 Turkey, 21 Morocco...). The default is Casablanca with the Morocco method.+- It reads Aladhan when the page opens and again after midnight. The countdown updates every minute.+ Offline, the last times stay on screen.+- 24-hour times, English words.++## Permissions++| Permission | Why |+|---|---|+| `INTERNET` | Aladhan: today's times for the configured coordinates. |++That is all. What is sent: today's date, the latitude and longitude from `config.xml`, and the method number. No+account, no telemetry, no ads, no background service, no location permission. Backups are off.++## Build and install++JDK 17 and Android SDK platform 34 with build-tools 34.0.0, as for the launcher:++```bash+cd addons/prayer-times && ./gradlew assembleRelease+TV_HOST=<tv ip> ../../tools/venv/bin/python -I ../../tools/tv.py --push app/build/outputs/apk/release/app-release.apk /data/local/tmp/addon.apk+TV_HOST=<tv ip> ../../tools/venv/bin/python -I ../../tools/tv.py 'pm install -r /data/local/tmp/addon.apk; rm -f /data/local/tmp/addon.apk'+```++Press Home: the launcher asks once whether to show the card. Change the answer later by holding OK on+Settings, then Module cards.++The release build is signed with the debug key so it installs over ADB like the launcher. Sign your own builds+with your own key if you hand them out; the launcher pins its Show answer to the signing key.++## Credits++Prayer icons: [Lucide](https://lucide.dev) (ISC) and [Feather](https://feathericons.com) (MIT). Font: Outfit+(SIL Open Font License, `FONT-LICENSE-OFL.txt`).++## Tested on++Xiaomi TV (MiTV-MOOR2), Google TV 11, RTM5.220609.003: the page, the countdown, the card prompt and the card+shown in the launcher's dock.++## Maintainer++[@majnioui](https://github.com/majnioui)diff --git a/addons/prayer-times/app/build.gradle b/addons/prayer-times/app/build.gradlenew file mode 100644index 000000000..b30f81349--- /dev/null+++ b/addons/prayer-times/app/build.gradle@@ -0,0 +1,31 @@+plugins {+ id 'com.android.application'+}++android {+ namespace 'com.majnioui.tv.prayer'+ compileSdk 34++ defaultConfig {+ applicationId 'com.majnioui.tv.prayer'+ minSdk 26+ targetSdk 34+ versionCode 1+ versionName '1.0'+ }++ buildTypes {+ release {+ minifyEnabled true+ shrinkResources true+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')+ // Sideloaded over ADB like the launcher: signed with the debug key.+ signingConfig signingConfigs.debug+ }+ }++ compileOptions {+ sourceCompatibility JavaVersion.VERSION_17+ targetCompatibility JavaVersion.VERSION_17+ }+}diff --git a/addons/prayer-times/app/src/main/AndroidManifest.xml b/addons/prayer-times/app/src/main/AndroidManifest.xmlnew file mode 100644index 000000000..3ab74648c--- /dev/null+++ b/addons/prayer-times/app/src/main/AndroidManifest.xml@@ -0,0 +1,30 @@+<?xml version="1.0" encoding="utf-8"?>+<manifest xmlns:android="http://schemas.android.com/apk/res/android">++ <uses-feature android:name="android.software.leanback" android:required="false" />+ <uses-feature android:name="android.hardware.touchscreen" android:required="false" />++ <uses-permission android:name="android.permission.INTERNET" />++ <application+ android:label="Prayer Times"+ android:icon="@drawable/icon"+ android:banner="@drawable/banner"+ android:theme="@android:style/Theme.Material.NoActionBar.Fullscreen"+ android:allowBackup="false">++ <activity android:name=".MainActivity" android:exported="true" android:screenOrientation="landscape">+ <intent-filter>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="android.intent.category.LAUNCHER" />+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />+ </intent-filter>+ <!-- Module card for the Clean Your TV launcher (docs/modules.md). -->+ <intent-filter>+ <action android:name="android.intent.action.MAIN" />+ <category android:name="com.gathin.tvhome.category.DOCK_CARD" />+ </intent-filter>+ <meta-data android:name="com.gathin.tvhome.card" android:resource="@xml/module_card" />+ </activity>+ </application>+</manifest>diff --git a/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/MainActivity.java b/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/MainActivity.javanew file mode 100644index 000000000..658fe11a2--- /dev/null+++ b/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/MainActivity.java@@ -0,0 +1,269 @@+package com.majnioui.tv.prayer;++import android.app.Activity;+import android.graphics.Typeface;+import android.graphics.drawable.GradientDrawable;+import android.os.Build;+import android.os.Bundle;+import android.os.Handler;+import android.os.Looper;+import android.content.res.ColorStateList;+import android.util.Log;+import android.util.TypedValue;+import android.view.Gravity;+import android.widget.FrameLayout;+import android.widget.ImageView;+import android.widget.LinearLayout;+import android.widget.TextView;++import org.json.JSONObject;++import java.io.ByteArrayOutputStream;+import java.io.InputStream;+import java.net.HttpURLConnection;+import java.net.URL;+import java.text.SimpleDateFormat;+import java.util.Calendar;+import java.util.Date;+import java.util.Locale;++/**+ * Today's prayer times for one city from Aladhan (free, no account or key; only the coordinates and+ * the date are sent), with the calculation method in res/values/config.xml. The next prayer is highlighted+ * with a countdown.+ */+public class MainActivity extends Activity {+ private static final String TAG = "PrayerTimes";+ private static final String[] NAMES = {"Fajr", "Sunrise", "Dhuhr", "Asr", "Maghrib", "Isha"};+ private static final String[] ARABIC = {"الفجر", "الشروق", "الظهر", "العصر", "المغرب", "العشاء"};+ private static final int[] ICONS = {R.drawable.ic_fajr, R.drawable.ic_sunrise, R.drawable.ic_dhuhr,+ R.drawable.ic_asr, R.drawable.ic_maghrib, R.drawable.ic_isha};+ private static final long MINUTE_MS = 60_000L;++ private final Handler main = new Handler(Looper.getMainLooper());+ private Typeface font;+ private int accent;+ private TextView dates, next, status;+ private LinearLayout rows;+ /** Today's times as minutes after midnight, in NAMES order; null until loaded. */+ private int[] minutes;+ private String[] times;+ /** The calculation method's name as Aladhan gives it, for the status line. */+ private String methodName = "";+ /** The day the times are for (yyyy-MM-dd), to reload after midnight. */+ private String loadedFor;+ private boolean loading;++ private final Runnable tick = new Runnable() {+ @Override+ public void run() {+ if (!today().equals(loadedFor)) load();+ else render();+ main.postDelayed(this, MINUTE_MS);+ }+ };++ @Override+ protected void onCreate(Bundle state) {+ super.onCreate(state);+ font = getResources().getFont(R.font.outfit);+ accent = getColor(R.color.accent);++ FrameLayout root = new FrameLayout(this);+ root.setBackground(new GradientDrawable(GradientDrawable.Orientation.TL_BR,+ new int[] {(accent & 0x00FFFFFF) | 0x55000000, 0xFF050607, 0xFF050607}));++ LinearLayout col = new LinearLayout(this);+ col.setOrientation(LinearLayout.VERTICAL);+ col.setPadding(dp(80), dp(48), dp(80), dp(40));+ root.addView(col, new FrameLayout.LayoutParams(-1, -1));++ TextView place = text(18, 400, 0xB3FFFFFF);+ place.setLetterSpacing(0.25f);+ place.setText(getString(R.string.place).toUpperCase(Locale.ROOT));+ col.addView(place);++ next = text(52, 300, 0xFFFFFFFF);+ next.setPadding(0, dp(10), 0, dp(4));+ col.addView(next);+ dates = text(20, 400, 0xB3FFFFFF);+ col.addView(dates);++ rows = new LinearLayout(this);+ rows.setOrientation(LinearLayout.HORIZONTAL);+ LinearLayout.LayoutParams rlp = new LinearLayout.LayoutParams(-1, 0, 1f);+ rlp.setMargins(0, dp(36), 0, 0);+ col.addView(rows, rlp);++ status = text(16, 400, 0x80FFFFFF);+ status.setPadding(0, dp(18), 0, 0);+ status.setText("Loading…");+ col.addView(status);++ setContentView(root);+ }++ @Override+ protected void onResume() {+ super.onResume();+ load();+ main.postDelayed(tick, MINUTE_MS);+ }++ @Override+ protected void onPause() {+ super.onPause();+ main.removeCallbacks(tick);+ }++ private static String today() {+ return new SimpleDateFormat("yyyy-MM-dd", Locale.ROOT).format(new Date());+ }++ private void load() {+ if (loading) return;+ loading = true;+ final String day = today();+ String url = "https://api.aladhan.com/v1/timings/"+ + new SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).format(new Date())+ + "?latitude=" + getString(R.string.latitude) + "&longitude=" + getString(R.string.longitude)+ + "&method=" + getString(R.string.method);+ new Thread(() -> {+ JSONObject json = null;+ try {+ json = new JSONObject(fetch(url));+ } catch (Exception e) {+ Log.w(TAG, "fetch: " + e);+ }+ final JSONObject result = json;+ main.post(() -> {+ loading = false;+ if (result == null) {+ status.setText("Can't reach Aladhan. Showing the last times, if any.");+ return;+ }+ try {+ parse(result.getJSONObject("data"));+ loadedFor = day;+ render();+ } catch (Exception e) {+ Log.w(TAG, "parse: " + e);+ status.setText("Unexpected answer from Aladhan.");+ }+ });+ }).start();+ }++ private void parse(JSONObject data) throws Exception {+ JSONObject t = data.getJSONObject("timings");+ int[] m = new int[NAMES.length];+ String[] s = new String[NAMES.length];+ for (int i = 0; i < NAMES.length; i++) {+ String v = t.getString(NAMES[i]).trim();+ int sp = v.indexOf(' ');+ if (sp > 0) v = v.substring(0, sp); // "05:12 (+01)" style suffixes+ s[i] = v;+ m[i] = Integer.parseInt(v.substring(0, 2)) * 60 + Integer.parseInt(v.substring(3, 5));+ }+ minutes = m;+ times = s;+ JSONObject meta = data.optJSONObject("meta");+ JSONObject method = meta != null ? meta.optJSONObject("method") : null;+ methodName = method != null ? method.optString("name", "") : "";+ JSONObject date = data.getJSONObject("date");+ JSONObject hijri = date.getJSONObject("hijri");+ dates.setText(new SimpleDateFormat("EEEE d MMMM", Locale.ENGLISH).format(new Date()) + " · "+ + hijri.getString("day") + " " + hijri.getJSONObject("month").getString("en") + " "+ + hijri.getString("year") + " AH");+ }++ private void render() {+ if (minutes == null) return;+ Calendar c = Calendar.getInstance();+ int now = c.get(Calendar.HOUR_OF_DAY) * 60 + c.get(Calendar.MINUTE);+ int nextIdx = -1;+ for (int i = 0; i < NAMES.length; i++) {+ if (i == 1) continue; // sunrise is shown but is not a prayer+ if (minutes[i] > now) { nextIdx = i; break; }+ }+ if (nextIdx >= 0) {+ int left = minutes[nextIdx] - now;+ next.setText(NAMES[nextIdx] + " in " + (left >= 60 ? left / 60 + " h " : "") + left % 60 + " min");+ } else {+ next.setText("Fajr tomorrow");+ }++ rows.removeAllViews();+ for (int i = 0; i < NAMES.length; i++) {+ boolean hl = i == nextIdx;+ LinearLayout card = new LinearLayout(this);+ card.setOrientation(LinearLayout.VERTICAL);+ card.setGravity(Gravity.CENTER);+ card.setPadding(dp(6), dp(20), dp(6), dp(20));+ GradientDrawable bg = new GradientDrawable();+ bg.setCornerRadius(dp(22));+ bg.setColor(hl ? accent : 0x14FFFFFF);+ card.setBackground(bg);+ int dim = i == 1 ? 0x80FFFFFF : 0xFFFFFFFF;+ int fg = hl ? 0xFFFFFFFF : dim;+ ImageView icon = new ImageView(this);+ icon.setImageResource(ICONS[i]);+ icon.setImageTintList(ColorStateList.valueOf(hl ? 0xFFFFFFFF : (i == 1 ? 0x80FFFFFF : accent)));+ LinearLayout.LayoutParams ilp = new LinearLayout.LayoutParams(dp(44), dp(44));+ ilp.bottomMargin = dp(22);+ card.addView(icon, ilp);+ TextView ar = centered(text(26, 400, fg));+ ar.setText(ARABIC[i]);+ card.addView(ar);+ TextView name = centered(text(20, 500, hl ? 0xE6FFFFFF : (i == 1 ? 0x80FFFFFF : 0xB3FFFFFF)));+ name.setText(NAMES[i]);+ name.setPadding(0, dp(8), 0, dp(20));+ card.addView(name);+ TextView time = centered(text(42, hl ? 500 : 300, fg));+ time.setText(times[i]);+ // Shrink rather than cut "05:10" when the card is narrow.+ time.setMaxLines(1);+ time.setAutoSizeTextTypeUniformWithConfiguration(20, 42, 1, TypedValue.COMPLEX_UNIT_SP);+ card.addView(time, new LinearLayout.LayoutParams(-1, dp(52)));+ LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(0, -1, 1f);+ lp.setMargins(i == 0 ? 0 : dp(8), 0, i == NAMES.length - 1 ? 0 : dp(8), 0);+ rows.addView(card, lp);+ }+ status.setText("Aladhan" + (methodName.isEmpty() ? "" : " · " + methodName) + " · updated "+ + new SimpleDateFormat("HH:mm", Locale.ROOT).format(new Date()));+ }++ private static String fetch(String url) throws Exception {+ HttpURLConnection c = (HttpURLConnection) new URL(url).openConnection();+ c.setConnectTimeout(8000);+ c.setReadTimeout(8000);+ try (InputStream in = c.getInputStream()) {+ ByteArrayOutputStream out = new ByteArrayOutputStream();+ byte[] buf = new byte[4096];+ for (int n; (n = in.read(buf)) > 0; ) out.write(buf, 0, n);+ return out.toString("UTF-8");+ } finally {+ c.disconnect();+ }+ }++ /** Centred on its own line, whatever the script direction. */+ private static TextView centered(TextView t) {+ t.setGravity(Gravity.CENTER);+ t.setTextAlignment(TextView.TEXT_ALIGNMENT_CENTER);+ return t;+ }++ private TextView text(float sp, int weight, int color) {+ TextView t = new TextView(this);+ t.setTextSize(TypedValue.COMPLEX_UNIT_SP, sp);+ t.setTextColor(color);+ t.setIncludeFontPadding(false);+ t.setTypeface(Build.VERSION.SDK_INT >= 28 ? Typeface.create(font, weight, false) : font);+ return t;+ }++ private int dp(int v) {+ return Math.round(v * getResources().getDisplayMetrics().density);+ }+}diff --git a/addons/prayer-times/app/src/main/res/drawable-xhdpi/banner.png b/addons/prayer-times/app/src/main/res/drawable-xhdpi/banner.pngnew file mode 100644index 000000000..0b59e566cBinary files /dev/null and b/addons/prayer-times/app/src/main/res/drawable-xhdpi/banner.png differdiff --git a/addons/prayer-times/app/src/main/res/drawable/ic_asr.xml b/addons/prayer-times/app/src/main/res/drawable/ic_asr.xmlnew file mode 100644index 000000000..be07e7ced--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_asr.xml@@ -0,0 +1,9 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M12,2v2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M4.93,4.93l1.41,1.41" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M20,12h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M19.07,4.93l-1.41,1.41" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M15.947,12.65a4,4 0 0,0 -5.925,-4.128" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M13,22H7a5,5 0 1,1 4.9,-6H13a3,3 0 0,1 0,6z" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/ic_dhuhr.xml b/addons/prayer-times/app/src/main/res/drawable/ic_dhuhr.xmlnew file mode 100644index 000000000..84dd05cf4--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_dhuhr.xml@@ -0,0 +1,12 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M12,7a5,5 0 1,0 0.01,0z" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M12,1v2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M12,21v2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M4.22,4.22l1.42,1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M18.36,18.36l1.42,1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M1,12h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M21,12h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M4.22,19.78l1.42,-1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M18.36,5.64l1.42,-1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/ic_fajr.xml b/addons/prayer-times/app/src/main/res/drawable/ic_fajr.xmlnew file mode 100644index 000000000..b70028e0e--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_fajr.xml@@ -0,0 +1,6 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M12,3a6,6 0 0,0 9,9a9,9 0 1,1 -9,-9z" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M20,3v4" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M22,5h-4" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/ic_isha.xml b/addons/prayer-times/app/src/main/res/drawable/ic_isha.xmlnew file mode 100644index 000000000..b6036fba6--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_isha.xml@@ -0,0 +1,4 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M21,12.79A9,9 0 1,1 11.21,3a7,7 0 0,0 9.79,9.79z" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/ic_maghrib.xml b/addons/prayer-times/app/src/main/res/drawable/ic_maghrib.xmlnew file mode 100644index 000000000..61ef610cd--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_maghrib.xml@@ -0,0 +1,11 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M17,18a5,5 0 0,0 -10,0" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M12,9V2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M4.22,10.22l1.42,1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M1,18h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M21,18h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M18.36,11.64l1.42,-1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M23,22H1" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M16,5l-4,4l-4,-4" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/ic_sunrise.xml b/addons/prayer-times/app/src/main/res/drawable/ic_sunrise.xmlnew file mode 100644index 000000000..4f64208ae--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/ic_sunrise.xml@@ -0,0 +1,11 @@+<!-- Feather (MIT) / Lucide (ISC) icon shapes, 24x24 strokes. -->+<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">+ <path android:pathData="M17,18a5,5 0 0,0 -10,0" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M12,2v7" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M4.22,10.22l1.42,1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M1,18h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M21,18h2" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M18.36,11.64l1.42,-1.42" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M23,22H1" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+ <path android:pathData="M8,6l4,-4l4,4" android:strokeColor="#FFFFFFFF" android:strokeWidth="1.8" android:strokeLineCap="round" android:strokeLineJoin="round" android:fillColor="#00000000" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/drawable/icon.xml b/addons/prayer-times/app/src/main/res/drawable/icon.xmlnew file mode 100644index 000000000..80cf54fd8--- /dev/null+++ b/addons/prayer-times/app/src/main/res/drawable/icon.xml@@ -0,0 +1,6 @@+<vector xmlns:android="http://schemas.android.com/apk/res/android"+ android:width="108dp" android:height="108dp" android:viewportWidth="108" android:viewportHeight="108">+ <path android:fillColor="#06231A" android:pathData="M0,0h108v108h-108z" />+ <path android:fillColor="#FFFFFF" android:pathData="M58,14a40,40 0,1 0,36 56a31,31 0,1 1,-36 -56z" />+ <path android:fillColor="#7CF0B4" android:pathData="M76,30l4.4,9.6l10.4,1.2l-7.7,7.1l2.1,10.3l-9.2,-5.2l-9.2,5.2l2.1,-10.3l-7.7,-7.1l10.4,-1.2z" />+</vector>diff --git a/addons/prayer-times/app/src/main/res/font/outfit.ttf b/addons/prayer-times/app/src/main/res/font/outfit.ttfnew file mode 100644index 000000000..cc3f533a1Binary files /dev/null and b/addons/prayer-times/app/src/main/res/font/outfit.ttf differdiff --git a/addons/prayer-times/app/src/main/res/values/config.xml b/addons/prayer-times/app/src/main/res/values/config.xmlnew file mode 100644index 000000000..f8d1ecbd1--- /dev/null+++ b/addons/prayer-times/app/src/main/res/values/config.xml@@ -0,0 +1,11 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <!-- The city shown. Coordinates in decimal degrees. -->+ <string name="latitude" translatable="false">33.5731</string>+ <string name="longitude" translatable="false">-7.5898</string>+ <string name="place" translatable="false">Casablanca</string>+ <!-- Aladhan's calculation method (https://aladhan.com/calculation-methods), e.g. 2 ISNA, 3 Muslim World+ League, 4 Umm al-Qura, 5 Egyptian, 13 Turkey, 21 Morocco. -->+ <string name="method" translatable="false">21</string>+ <color name="accent">#2BB673</color>+</resources>diff --git a/addons/prayer-times/app/src/main/res/xml/module_card.xml b/addons/prayer-times/app/src/main/res/xml/module_card.xmlnew file mode 100644index 000000000..11d54d082--- /dev/null+++ b/addons/prayer-times/app/src/main/res/xml/module_card.xml@@ -0,0 +1,2 @@+<?xml version="1.0" encoding="utf-8"?>+<card spec="1" label="Prayer Times" caption="Next prayer" accent="#2BB673" />diff --git a/addons/prayer-times/build.gradle b/addons/prayer-times/build.gradlenew file mode 100644index 000000000..48978475f--- /dev/null+++ b/addons/prayer-times/build.gradle@@ -0,0 +1,3 @@+plugins {+ id 'com.android.application' version '8.5.2' apply false+}diff --git a/addons/prayer-times/gradle.properties b/addons/prayer-times/gradle.propertiesnew file mode 100644index 000000000..1edaf2baa--- /dev/null+++ b/addons/prayer-times/gradle.properties@@ -0,0 +1 @@+org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8diff --git a/addons/prayer-times/gradle/wrapper/gradle-wrapper.jar b/addons/prayer-times/gradle/wrapper/gradle-wrapper.jarnew file mode 100644index 000000000..2c3521197Binary files /dev/null and b/addons/prayer-times/gradle/wrapper/gradle-wrapper.jar differdiff --git a/addons/prayer-times/gradle/wrapper/gradle-wrapper.properties b/addons/prayer-times/gradle/wrapper/gradle-wrapper.propertiesnew file mode 100644index 000000000..77f5d0ba6--- /dev/null+++ b/addons/prayer-times/gradle/wrapper/gradle-wrapper.properties@@ -0,0 +1,8 @@+distributionBase=GRADLE_USER_HOME+distributionPath=wrapper/dists+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip+distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab+networkTimeout=10000+validateDistributionUrl=true+zipStoreBase=GRADLE_USER_HOME+zipStorePath=wrapper/distsdiff --git a/addons/prayer-times/gradlew b/addons/prayer-times/gradlewnew file mode 100755index 000000000..f5feea6d6--- /dev/null+++ b/addons/prayer-times/gradlew@@ -0,0 +1,252 @@+#!/bin/sh++#+# 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.+# You may obtain a copy of the License at+#+# https://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#+# SPDX-License-Identifier: Apache-2.0+#++##############################################################################+#+# 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/platforms/jvm/plugins-application/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+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++# 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 -P "${APP_HOME:-./}" > /dev/null && printf '%s+' "$PWD" ) || exit++# Use the maximum available, or set MAX_FD != -1 to use that value.+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 ;;+esac++CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar+++# Determine the Java command to use to start the JVM.+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+ else+ JAVACMD=$JAVA_HOME/bin/java+ fi+ if [ ! -x "$JAVACMD" ] ; then+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME++Please set the JAVA_HOME variable in your environment to match the+location of your Java installation."+ fi+else+ 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" && ! "$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++# 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.++# 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" "$@"diff --git a/addons/prayer-times/gradlew.bat b/addons/prayer-times/gradlew.batnew file mode 100644index 000000000..9d21a2183--- /dev/null+++ b/addons/prayer-times/gradlew.bat@@ -0,0 +1,94 @@+@rem+@rem Copyright 2015 the original author or authors.+@rem+@rem Licensed under the Apache License, Version 2.0 (the "License");+@rem you may not use this file except in compliance with the License.+@rem You may obtain a copy of the License at+@rem+@rem https://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing, software+@rem distributed under the License is distributed on an "AS IS" BASIS,+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+@rem See the License for the specific language governing permissions and+@rem limitations under the License.+@rem+@rem SPDX-License-Identifier: Apache-2.0+@rem++@if "%DEBUG%"=="" @echo off+@rem ##########################################################################+@rem+@rem Gradle startup script for Windows+@rem+@rem ##########################################################################++@rem Set local scope for the variables with windows NT shell+if "%OS%"=="Windows_NT" setlocal++set DIRNAME=%~dp0+if "%DIRNAME%"=="" set DIRNAME=.+@rem This is normally unused+set APP_BASE_NAME=%~n0+set APP_HOME=%DIRNAME%++@rem Resolve any "." and ".." in APP_HOME to make it shorter.+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi++@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"++@rem Find java.exe+if defined JAVA_HOME goto findJavaFromJavaHome++set JAVA_EXE=java.exe+%JAVA_EXE% -version >NUL 2>&1+if %ERRORLEVEL% equ 0 goto execute++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++:findJavaFromJavaHome+set JAVA_HOME=%JAVA_HOME:"=%+set JAVA_EXE=%JAVA_HOME%/bin/java.exe++if exist "%JAVA_EXE%" goto execute++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++:execute+@rem Setup the command line++set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar+++@rem Execute Gradle+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*++:end+@rem End local scope for the variables with windows NT shell+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!+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++:omegadiff --git a/addons/prayer-times/settings.gradle b/addons/prayer-times/settings.gradlenew file mode 100644index 000000000..4a41b324d--- /dev/null+++ b/addons/prayer-times/settings.gradle@@ -0,0 +1,16 @@+pluginManagement {+ repositories {+ google()+ mavenCentral()+ gradlePluginPortal()+ }+}+dependencyResolutionManagement {+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)+ repositories {+ google()+ mavenCentral()+ }+}+rootProject.name = "prayer-times"+include ':app'