diff --git a/README.md b/README.md index 27fd6d9..4da0bd4 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,18 @@ A Flutter player for the [Vidya Intarweb Playlist](https://www.vipvgm.net/) (aka Licensed under AGPLv3-or-later. -## Screenshots - +[Get it on F-Droid](https://f-droid.org/packages/com.mateusrodcosta.apps.vidyamusic/) +[Get it on Google Play](https://play.google.com/store/apps/details?id=com.mateusrodcosta.apps.vidyamusic) - - - - +Or download the latest APK from the [Releases Section](https://github.com/MateusRodCosta/vidya_music/releases/latest). -# Download +## Screenshots -Get it on Google Play + + + + diff --git a/android/app/build.gradle b/android/app/build.gradle index 47d0a1e..6a49914 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,6 +1,7 @@ plugins { - alias libs.plugins.android.application - alias libs.plugins.kotlin.android + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" } def localProperties = new Properties() @@ -11,22 +12,16 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' } + def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - def keystorePropertiesFile = rootProject.file("key.properties") def keystoreProperties = new Properties() keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) @@ -37,12 +32,12 @@ kotlin { android { namespace "com.mateusrodcosta.apps.vidyamusic" - compileSdk 34 + defaultConfig { applicationId "com.mateusrodcosta.apps.vidyamusic" minSdkVersion 26 - targetSdkVersion 33 + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -53,6 +48,10 @@ android { keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] + + // Always enable v2 and v3 signing schemes, which will be used on modern Android OSes + enableV2Signing true + enableV3Signing true } } @@ -97,6 +96,14 @@ android { } } +flutter { + source '../..' +} + +dependencies { + implementation 'androidx.core:core-splashscreen:1.0.1' +} + ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, x86_64: 4] android.applicationVariants.configureEach { variant -> @@ -119,9 +126,3 @@ android.applicationVariants.configureEach { variant -> } } -flutter { - source '../..' -} - -dependencies { -} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 7ed0ece..e6bfdd0 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,15 +1,17 @@ - + + + android:enableOnBackInvokedCallback="true" + tools:targetApi="34"> - - - - - - - diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml index 06952be..56ac2fc 100644 --- a/android/app/src/main/res/values-night/styles.xml +++ b/android/app/src/main/res/values-night/styles.xml @@ -1,11 +1,5 @@ - - - -