build: update build scripts
Update/Modernize build scripts.
This commit is contained in:
parent
f93d5f1a69
commit
62ae5e5cb2
6 changed files with 18 additions and 13 deletions
|
@ -15,7 +15,7 @@ at the cost of longer loading times
|
|||
- Added ability to play songs from queue
|
||||
|
||||
#### What's Improved
|
||||
- Added motion transitions throughout the entire app
|
||||
- Migrated to better-looking motion transitions
|
||||
- App now exposes an (immutable) queue.
|
||||
|
||||
#### What's Fixed
|
||||
|
|
|
@ -6,27 +6,28 @@ plugins {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdk 32
|
||||
namespace "org.oxycblt.auxio"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.oxycblt.auxio"
|
||||
applicationId namespace
|
||||
versionName "2.5.0"
|
||||
versionCode 18
|
||||
|
||||
minSdkVersion 21
|
||||
|
||||
// API 33 is still busted, waiting until the XML element issue is fixed
|
||||
// noinspection OldTargetApi
|
||||
targetSdkVersion 32
|
||||
minSdk 21
|
||||
targetSdk 32
|
||||
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
}
|
||||
}
|
||||
|
||||
compileSdkVersion 32
|
||||
|
||||
// ExoPlayer, AndroidX, and Material Components all need Java 8 to compile.
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
|
@ -47,6 +48,11 @@ android {
|
|||
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
||||
}
|
||||
}
|
||||
|
||||
dependenciesInfo {
|
||||
includeInApk = false
|
||||
includeInBundle = false
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.oxycblt.auxio">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
|
|
@ -324,7 +324,7 @@ private fun String?.toMusicId(): Long {
|
|||
* presence of particular tokens.
|
||||
*
|
||||
* Please, **Do not use this for anything important related to time.** I cannot stress this enough.
|
||||
* This class will blow up if you try to do that.
|
||||
* This code will blow up if you try to do that.
|
||||
*
|
||||
* @author OxygenCobalt
|
||||
*/
|
||||
|
|
|
@ -37,8 +37,8 @@ import org.oxycblt.auxio.util.textSafe
|
|||
* make sense (which happens incredibly often), it just crashes the entire app, which is insane but
|
||||
* also checks out for something more meant for configuration than seeking.
|
||||
*
|
||||
* Instead, we wrap it in a safe class that hopefully implements enough safety to not crash the app
|
||||
* or result in blatantly janky behavior. Mostly.
|
||||
* Instead, we wrap it in a safe class that hopefully implements enough sanity checks to not crash
|
||||
* the app or result in blatantly janky behavior. Mostly.
|
||||
*
|
||||
* TODO: Add smooth seeking
|
||||
*
|
||||
|
|
|
@ -161,7 +161,7 @@ class MediaSessionComponent(
|
|||
|
||||
// Cover loading is a mess. Android expects you to provide a clean, easy URI for it to
|
||||
// leverage, but Auxio cannot do that as quality-of-life features like scaling or
|
||||
// 1:1 cropping could not be used
|
||||
// 1:1 cropping could not be used.
|
||||
//
|
||||
// Thus, we have two options to handle album art:
|
||||
// 1. Load the bitmap, then post the notification
|
||||
|
|
Loading…
Reference in a new issue