diff --git a/.gitignore b/.gitignore index 4314849..f76f15e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ migrate_working_dir/ *.ipr *.iws .idea/ +.cxx/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line @@ -41,4 +42,4 @@ app.*.map.json # Android Studio will place build artifacts here /android/app/debug /android/app/profile -/android/app/release \ No newline at end of file +/android/app/release diff --git a/.metadata b/.metadata index 262ceed..2d1be89 100644 --- a/.metadata +++ b/.metadata @@ -1,11 +1,11 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled. +# This file should be version controlled and should not be manually edited. version: - revision: 135454af32477f815a7525073027a3ff9eff1bfd - channel: stable + revision: "2663184aa79047d0a33a14a3b607954f8fdd8730" + channel: "stable" project_type: app @@ -13,26 +13,26 @@ project_type: app migration: platforms: - platform: root - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: android - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: ios - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: linux - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: macos - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: web - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - platform: windows - create_revision: 135454af32477f815a7525073027a3ff9eff1bfd - base_revision: 135454af32477f815a7525073027a3ff9eff1bfd + create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 # User provided section diff --git a/README.md b/README.md index faf32d4..14e161c 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@
- -

🌦️ Rain

+ +

🌦️ Rain

-

- Stars - Forks - GitHub release - License -

+

+ Stars + Forks + GitHub release + License +

Tired of unpredictable weather? Rain's got you covered! Get ready for any forecast. 🌦️

@@ -40,7 +40,7 @@ We fetch weather data from [Open-Meteo](https://open-meteo.com/en/docs) and use ### 📸 Screenshots - + ### 💰 Support Us @@ -52,7 +52,6 @@ If you find Rain valuable and worthy for future innovation, consider supporting ### 📥 Get Rain Now [![Play Store](https://img.shields.io/badge/Google_Play-414141?style=for-the-badge&logo=google-play&logoColor=white)](https://play.google.com/store/apps/details?id=com.yoshi.rain) -[![RuStore](https://img.shields.io/badge/RuStore-blue?style=for-the-badge&logo=vk&logoColor=white)](https://apps.rustore.ru/app/com.yoshi.rain) Or get the latest APK from the [Releases Section](https://github.com/DarkMooNight/Rain/releases/latest). You can also find the app on IzzyOnDroid via a F-Droid client [here](https://apt.izzysoft.de/fdroid/index/apk/com.yoshi.rain). @@ -63,5 +62,5 @@ This project is licensed under the [MIT License](./LICENSE). ### 👨‍💻 Our Contributors - + diff --git a/android/app/build.gradle b/android/app/build.gradle index bc8448f..6a479c4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -4,24 +4,6 @@ plugins { id "dev.flutter.flutter-gradle-plugin" } -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { @@ -29,62 +11,73 @@ if (keystorePropertiesFile.exists()) { } android { - namespace 'com.yoshi.rain' - compileSdkVersion 34 - ndkVersion flutter.ndkVersion + namespace = 'com.yoshi.rain' + compileSdk = 35 + ndkVersion = '29.0.13113456' compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + coreLibraryDesugaringEnabled = true } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = JavaVersion.VERSION_17 } sourceSets { main.java.srcDirs += 'src/main/kotlin' } + dependenciesInfo { + // Disables dependency metadata when building APKs. + includeInApk = false + // Disables dependency metadata when building Android App Bundles. + includeInBundle = false + } + defaultConfig { - applicationId "com.yoshi.rain" - minSdkVersion 23 - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + applicationId = 'com.yoshi.rain' + minSdk = 23 + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName } signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null - storePassword keystoreProperties['storePassword'] + release { + keyAlias = keystoreProperties['keyAlias'] + keyPassword = keystoreProperties['keyPassword'] + storeFile = keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword = keystoreProperties['storePassword'] } } buildTypes { release { - signingConfig signingConfigs.release + signingConfig = signingConfigs.release } debug { - signingConfig signingConfigs.debug - minifyEnabled true + signingConfig = signingConfigs.debug + minifyEnabled = true } } buildFeatures { - viewBinding true + viewBinding = true } } flutter { - source '../..' + source = "../.." } dependencies { - implementation "androidx.core:core-remoteviews:1.0.0" + implementation("androidx.core:core-remoteviews:1.1.0") + implementation("com.google.android.material:material:1.12.0") + implementation('androidx.work:work-runtime-ktx:2.10.0') + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5") } // Remove this for FLOSS version diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 1cd4187..d02b0cf 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -11,16 +11,6 @@ android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:extractNativeLibs="true"> - - - - - - + + + + + + + + + + + + + + + + + + @@ -52,4 +68,4 @@ - \ No newline at end of file + diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png index 417e420..07af2f0 100644 Binary files a/android/app/src/main/res/drawable-hdpi/splash.png and b/android/app/src/main/res/drawable-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png index e59ff2b..a8261e2 100644 Binary files a/android/app/src/main/res/drawable-mdpi/splash.png and b/android/app/src/main/res/drawable-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png index 87f38b3..fd4fbdf 100644 Binary files a/android/app/src/main/res/drawable-xhdpi/splash.png and b/android/app/src/main/res/drawable-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png index 3d3e41f..1b38ebd 100644 Binary files a/android/app/src/main/res/drawable-xxhdpi/splash.png and b/android/app/src/main/res/drawable-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/layout/oreo_widget_big.xml b/android/app/src/main/res/layout/oreo_widget_big.xml index 42ddbae..1463e19 100644 --- a/android/app/src/main/res/layout/oreo_widget_big.xml +++ b/android/app/src/main/res/layout/oreo_widget_big.xml @@ -3,6 +3,7 @@ style="@style/Widget.Android.AppWidget.Container" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSecondaryContainer" android:theme="@style/Theme.Android.AppWidgetContainer" android:id="@+id/widget_day_oreo"> @@ -27,7 +28,7 @@ android:shadowRadius="1" android:textSize="@dimen/widget_large_title_text_size" tools:ignore="ObsoleteLayoutParam" - tools:text="Saturday, September 30 │ " /> + tools:text="Saturday, September 30 " /> @@ -27,7 +28,7 @@ android:shadowRadius="1" android:textSize="@dimen/widget_large_title_text_size" tools:ignore="ObsoleteLayoutParam" - tools:text="Saturday, September 30 │ " /> + tools:text="Saturday, September 30 " /> @@ -32,8 +33,8 @@ android:shadowRadius="1" android:textAppearance="@android:style/TextAppearance.Material.Large" android:textSize="@dimen/widget_title_text_size" - tools:text="21°" - tools:ignore="ObsoleteLayoutParam" /> + tools:ignore="ObsoleteLayoutParam" + tools:text="21°" /> diff --git a/android/app/src/main/res/layout/oreo_widget_small.xml b/android/app/src/main/res/layout/oreo_widget_small.xml index b24c57c..a0b163c 100644 --- a/android/app/src/main/res/layout/oreo_widget_small.xml +++ b/android/app/src/main/res/layout/oreo_widget_small.xml @@ -3,6 +3,7 @@ style="@style/Widget.Android.AppWidget.Container" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/colorSecondaryContainer" android:theme="@style/Theme.Android.AppWidgetContainer" android:id="@+id/widget_day_oreo"> diff --git a/android/app/src/main/res/values-night-v31/styles.xml b/android/app/src/main/res/values-night-v31/styles.xml index b062802..7cadc77 100644 --- a/android/app/src/main/res/values-night-v31/styles.xml +++ b/android/app/src/main/res/values-night-v31/styles.xml @@ -1,7 +1,7 @@ - diff --git a/android/app/src/main/res/values-night-v31/themes.xml b/android/app/src/main/res/values-night-v31/themes.xml index f253c9d..acc3f89 100644 --- a/android/app/src/main/res/values-night-v31/themes.xml +++ b/android/app/src/main/res/values-night-v31/themes.xml @@ -3,7 +3,7 @@ - diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml index dbc9ea9..805a597 100644 --- a/android/app/src/main/res/values-night/styles.xml +++ b/android/app/src/main/res/values-night/styles.xml @@ -1,14 +1,14 @@ - + - - diff --git a/android/app/src/main/res/values-v31/styles.xml b/android/app/src/main/res/values-v31/styles.xml index e206829..c491979 100644 --- a/android/app/src/main/res/values-v31/styles.xml +++ b/android/app/src/main/res/values-v31/styles.xml @@ -1,7 +1,7 @@ - - - diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 93bed36..2c37611 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ - Oreo Widget + Rain Widget EEE, d MMM │ EEEE, d MMM │ \ No newline at end of file diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index b8334a9..e50dbb0 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -2,14 +2,14 @@ - - - - - - \ No newline at end of file + diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml index 4704876..1fb58d5 100644 --- a/android/app/src/main/res/values/themes.xml +++ b/android/app/src/main/res/values/themes.xml @@ -1,5 +1,5 @@ -