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
|
- Added ability to play songs from queue
|
||||||
|
|
||||||
#### What's Improved
|
#### What's Improved
|
||||||
- Added motion transitions throughout the entire app
|
- Migrated to better-looking motion transitions
|
||||||
- App now exposes an (immutable) queue.
|
- App now exposes an (immutable) queue.
|
||||||
|
|
||||||
#### What's Fixed
|
#### What's Fixed
|
||||||
|
|
|
@ -6,27 +6,28 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
compileSdk 32
|
||||||
|
namespace "org.oxycblt.auxio"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.oxycblt.auxio"
|
applicationId namespace
|
||||||
versionName "2.5.0"
|
versionName "2.5.0"
|
||||||
versionCode 18
|
versionCode 18
|
||||||
|
|
||||||
minSdkVersion 21
|
|
||||||
|
|
||||||
// API 33 is still busted, waiting until the XML element issue is fixed
|
// API 33 is still busted, waiting until the XML element issue is fixed
|
||||||
// noinspection OldTargetApi
|
// noinspection OldTargetApi
|
||||||
targetSdkVersion 32
|
minSdk 21
|
||||||
|
targetSdk 32
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding true
|
viewBinding true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compileSdkVersion 32
|
|
||||||
|
|
||||||
// ExoPlayer, AndroidX, and Material Components all need Java 8 to compile.
|
// ExoPlayer, AndroidX, and Material Components all need Java 8 to compile.
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +48,11 @@ android {
|
||||||
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependenciesInfo {
|
||||||
|
includeInApk = false
|
||||||
|
includeInBundle = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
package="org.oxycblt.auxio">
|
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
|
|
|
@ -324,7 +324,7 @@ private fun String?.toMusicId(): Long {
|
||||||
* presence of particular tokens.
|
* presence of particular tokens.
|
||||||
*
|
*
|
||||||
* Please, **Do not use this for anything important related to time.** I cannot stress this enough.
|
* 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
|
* @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
|
* 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.
|
* 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
|
* Instead, we wrap it in a safe class that hopefully implements enough sanity checks to not crash
|
||||||
* or result in blatantly janky behavior. Mostly.
|
* the app or result in blatantly janky behavior. Mostly.
|
||||||
*
|
*
|
||||||
* TODO: Add smooth seeking
|
* 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
|
// 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
|
// 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:
|
// Thus, we have two options to handle album art:
|
||||||
// 1. Load the bitmap, then post the notification
|
// 1. Load the bitmap, then post the notification
|
||||||
|
|
Loading…
Reference in a new issue