diff --git a/.gitignore b/.gitignore index f76f15e..4314849 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ 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 @@ -42,4 +41,4 @@ app.*.map.json # Android Studio will place build artifacts here /android/app/debug /android/app/profile -/android/app/release +/android/app/release \ No newline at end of file diff --git a/.metadata b/.metadata index 2d1be89..262ceed 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 and should not be manually edited. +# This file should be version controlled. version: - revision: "2663184aa79047d0a33a14a3b607954f8fdd8730" - channel: "stable" + revision: 135454af32477f815a7525073027a3ff9eff1bfd + channel: stable project_type: app @@ -13,26 +13,26 @@ project_type: app migration: platforms: - platform: root - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: android - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: ios - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: linux - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: macos - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: web - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd - platform: windows - create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 - base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730 + create_revision: 135454af32477f815a7525073027a3ff9eff1bfd + base_revision: 135454af32477f815a7525073027a3ff9eff1bfd # User provided section diff --git a/README.md b/README.md index 14e161c..faf32d4 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,6 +52,7 @@ 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). @@ -62,5 +63,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 6a479c4..bc8448f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -4,6 +4,24 @@ 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()) { @@ -11,73 +29,62 @@ if (keystorePropertiesFile.exists()) { } android { - namespace = 'com.yoshi.rain' - compileSdk = 35 - ndkVersion = '29.0.13113456' + namespace 'com.yoshi.rain' + compileSdkVersion 34 + ndkVersion flutter.ndkVersion compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 - coreLibraryDesugaringEnabled = true + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = JavaVersion.VERSION_17 + jvmTarget = '1.8' } 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' - minSdk = 23 - targetSdk = flutter.targetSdkVersion - versionCode = flutter.versionCode - versionName = flutter.versionName + applicationId "com.yoshi.rain" + minSdkVersion 23 + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName } 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.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") + implementation "androidx.core:core-remoteviews:1.0.0" } // Remove this for FLOSS version diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d02b0cf..1cd4187 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -11,6 +11,16 @@ android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:extractNativeLibs="true"> + + + + + + - - - - - - - - - - - - - - - - - - @@ -68,4 +52,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 07af2f0..417e420 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 a8261e2..e59ff2b 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 fd4fbdf..87f38b3 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 1b38ebd..3d3e41f 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 1463e19..42ddbae 100644 --- a/android/app/src/main/res/layout/oreo_widget_big.xml +++ b/android/app/src/main/res/layout/oreo_widget_big.xml @@ -3,7 +3,6 @@ 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"> @@ -28,7 +27,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 │ " /> @@ -28,7 +27,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 │ " /> @@ -33,8 +32,8 @@ android:shadowRadius="1" android:textAppearance="@android:style/TextAppearance.Material.Large" android:textSize="@dimen/widget_title_text_size" - tools:ignore="ObsoleteLayoutParam" - tools:text="21°" /> + tools:text="21°" + tools:ignore="ObsoleteLayoutParam" /> 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 a0b163c..b24c57c 100644 --- a/android/app/src/main/res/layout/oreo_widget_small.xml +++ b/android/app/src/main/res/layout/oreo_widget_small.xml @@ -3,7 +3,6 @@ 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 7cadc77..b062802 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 acc3f89..f253c9d 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 805a597..dbc9ea9 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 c491979..e206829 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 2c37611..93bed36 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ - Rain Widget + Oreo 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 e50dbb0..b8334a9 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 1fb58d5..4704876 100644 --- a/android/app/src/main/res/values/themes.xml +++ b/android/app/src/main/res/values/themes.xml @@ -1,5 +1,5 @@ -