Updated 1.7.0

This commit is contained in:
Pranshul committed 2024-10-21 19:34:13 +05:30
1 parent 07db7e8863
commit 2f6f616a7a
25 files changed
+35 -17

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
<a href="https://apt.izzysoft.de/fdroid/index/apk/com.example.weathermaster"><img alt="GitHub" src="preview/download_Btn.png" height="80"/></a></div>
<br>
`(Last updated on 10-20-2024 at 1:45 PM UTC)`
`(Last updated on 10-21-2024 at 1:50 PM UTC)`
![app_thumbnail](preview/thumbnail.png)
+2 -2
View File
@@ -10,8 +10,8 @@ android {
applicationId "com.example.weathermaster"
minSdk 22
targetSdk 33
versionCode 61
versionName "1.6.9 (W)"
versionCode 62
versionName "1.7.0 (W)"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
+2 -2
View File
@@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 61,
"versionName": "1.6.9 (W)",
"versionCode": 62,
"versionName": "1.7.0 (W)",
"outputFile": "app-release.apk"
}
],
+5 -5
View File
@@ -959,7 +959,7 @@ function getColor(value, type) {
function UvIndex(uvIndexValue) {
const uvIndex = uvIndexValue;
const uvIndex = Math.round(uvIndexValue);
if (uvIndex >= 0 && uvIndex <= 1) {
@@ -1040,7 +1040,7 @@ function UvIndex(uvIndexValue) {
function MoreDetails(latSum, lonSum) {
fetch(`https://api.weatherapi.com/v1/forecast.json?key=KEYS&q=${latSum},${lonSum}`)
fetch(`https://api.weatherapi.com/v1/forecast.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`)
.then(response => response.json())
.then(data => {
@@ -1093,7 +1093,7 @@ function MoreDetails(latSum, lonSum) {
let weatherReport = `
<li style="padding-bottom: 5px;">${willRain}</li>
<li style="padding-bottom: 5px;">Expect a high of ${maxTemp}° ☀️. As the sun sets 🌅, temperatures will drop to a cozy ${minTemp}°. A lovely evening awaits! 🌙</li>
<li style="padding-bottom: 5px;">Expect a high of ${maxTemp}° ☀️ with a maximum UV index of ${mainData.uv}. As the sun sets 🌅, temperatures will drop to a cozy ${minTemp}°. A lovely evening awaits! 🌙</li>
<li >${precipitationMessage}</li>
@@ -1193,7 +1193,7 @@ function MoreDetails(latSum, lonSum) {
}
function astronomyData(latSum, lonSum) {
fetch(`https://api.weatherapi.com/v1/astronomy.json?key=KEYS&q=${latSum},${lonSum}`)
fetch(`https://api.weatherapi.com/v1/astronomy.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`)
.then(response => response.json())
.then(data => {
@@ -1262,7 +1262,7 @@ function astronomyData(latSum, lonSum) {
function FetchAlert(lat, lon){
fetch(`https://api.weatherapi.com/v1/alerts.json?key=KEYS&q=${lat},${lon}`)
fetch(`https://api.weatherapi.com/v1/alerts.json?key=10baabdf43ea48d191075955241810&q=${lat},${lon}`)
.then(response => response.json())
.then(data => {
+1 -1
View File
@@ -708,7 +708,7 @@
<span data-translate="Check your internet connection and try again.">Check your internet connection and try again.</span>
<span>OR</span>
<span data-translate="There might be an API error.">There might be an API error.</span>
<span id="error_text_content">There might be an API error.</span>
</div>
<div class="retry_btn_error">
+3 -3
View File
@@ -766,9 +766,9 @@ const SnowFrog = [
]
const ThunderStormFrog = [
"https://gitlab.com/bignutty/google-weather-icons/-/blob/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-home-inside.png?ref_type=heads",
"https://gitlab.com/bignutty/google-weather-icons/-/blob/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-cafe-looking-outside.png?ref_type=heads",
"https://gitlab.com/bignutty/google-weather-icons/-/blob/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-busstop-newspaper.png?ref_type=heads",
"https://gitlab.com/bignutty/google-weather-icons/-/raw/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-home-inside.png?ref_type=heads",
"https://gitlab.com/bignutty/google-weather-icons/-/raw/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-cafe-looking-outside.png?ref_type=heads",
"https://gitlab.com/bignutty/google-weather-icons/-/raw/main/froggie/v2/mobile/22-iso-thunderstorms/22-iso-thunderstorms-busstop-newspaper.png?ref_type=heads",
]
+2 -2
View File
@@ -161,7 +161,7 @@
<div class="app_label_about_name" style="position: relative;">
<p>WeatherMaster</p>
<span>1.6.9 (W)</span>
<span>1.7.0 (W)</span>
<img src="../froggie/50d.png" alt="" style="width: 100%; position: absolute; opacity: 0.4; bottom:30px;" >
<md-elevated-button trailing-icon style="margin-top: 15px;" id="checkUpdatesBtn" ><span data-translate="latest_version">Latest version</span> <md-icon icon-outlined slot="icon" style="font-size: 20px;">refresh</md-icon></md-elevated-button>
@@ -280,7 +280,7 @@ AndroidInterface.updateStatusBarColor(theme);
document.getElementById('checkUpdatesBtn').addEventListener('click', async function() {
const currentVersion = 'v1.6.9';
const currentVersion = 'v1.7.0';
const githubRepo = 'PranshulGG/WeatherMaster';
const releasesUrl = `https://api.github.com/repos/${githubRepo}/releases/latest`;
+1 -1
View File
@@ -1457,7 +1457,7 @@ height: 100%;
position: relative;
flex-direction: column;
padding: 10px;
margin-top: 5px;
margin-top: 0;
gap: 10px;
border-radius: 10px 10px 0 0;
margin-bottom: 0;
@@ -57,6 +57,7 @@ public class AboutPage extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.AboutBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/AboutPage.html");
@@ -58,6 +58,8 @@ public class AlertPage extends AppCompatActivity {
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
setTheme(R.style.blue_caret);
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/alertPage.html");
}
@@ -57,6 +57,7 @@ public class ForecastPage extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.forecastPageBg));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/forecastPage.html");
@@ -58,6 +58,7 @@ public class LanguagePage extends AppCompatActivity {
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
webview.loadUrl("file:///android_asset/pages/LanguagesPage.html");
webSettings.setTextZoom(100);
}
@@ -57,6 +57,7 @@ public class LiveRadar extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.RadarPage));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/radar.html");
@@ -91,6 +91,7 @@ public class MainActivity extends AppCompatActivity {
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.addJavascriptInterface(new ShowToastInterface(this), "ToastAndroidShow");
webview.setBackgroundColor(getResources().getColor(R.color.diffDefault));
webSettings.setTextZoom(100);
@@ -58,6 +58,7 @@ public class MoonPhases extends AppCompatActivity {
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.MoonPhase));
webview.loadUrl("file:///android_asset/pages/MoonPhases.html");
webSettings.setTextZoom(100);
}
@@ -57,6 +57,7 @@ public class PrivacyPolicy extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/aboutPages/PrivacyPolicy.html");
@@ -58,6 +58,7 @@ public class SettingsActivity extends AppCompatActivity {
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
webview.loadUrl("file:///android_asset/pages/settings.html");
webSettings.setTextZoom(100);
}
@@ -57,6 +57,7 @@ public class Terms_Conditions extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/aboutPages/TermsConditions.html");
@@ -57,6 +57,7 @@ public class ThirdParty extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.mainBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/aboutPages/licenses.html");
@@ -57,6 +57,7 @@ public class UVIndexCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/uvIndex_forecast.html");
@@ -57,6 +57,7 @@ public class WindCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/wind_forecast.html");
@@ -57,6 +57,7 @@ public class humidityCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/humidity_forecast.html");
@@ -57,6 +57,7 @@ public class pressureCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/pressure_forecast.html");
@@ -57,6 +57,7 @@ public class sunCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/sunset_rise_forecast.html");
@@ -57,6 +57,7 @@ public class visibilityCondition extends AppCompatActivity {
AndroidInterface androidInterface = new AndroidInterface(this);
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
webview.setBackgroundColor(getResources().getColor(R.color.conditionBG));
webSettings.setTextZoom(100);
webview.loadUrl("file:///android_asset/pages/conditions_pages/visibility_forecast.html");