Skip to content

Commit

Permalink
Release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 21, 2023
2 parents b92237f + 4fae4e2 commit e73b961
Show file tree
Hide file tree
Showing 101 changed files with 2,932 additions and 2,090 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cache: 'gradle'

- name: Build debug APK and run jvm tests
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
run: ./gradlew assembleDebug lintFullDebug testFullDebugUnitTest --stacktrace -DskipFormatKtlint
env:
MUSIC_DEBUG_KEYSTORE_FILE: 'music-debug.jks'
MUSIC_DEBUG_SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
Expand All @@ -42,4 +42,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/debug/*.apk
path: app/build/outputs/apk/full/debug/*.apk
4 changes: 2 additions & 2 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
cache: 'gradle'

- name: Build debug APK and run jvm tests
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
run: ./gradlew assembleDebug lintFullDebug testFullDebugUnitTest --stacktrace -DskipFormatKtlint
env:
PULL_REQUEST: 'true'

- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/debug/*.apk
path: app/build/outputs/apk/full/debug/*.apk
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@

A Material 3 YouTube Music client for Android

[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/com.zionhuang.music)
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" height="80">](https://apt.izzysoft.de/fdroid/index/apk/com.zionhuang.music)

[![Latest release](https://img.shields.io/github/v/release/z-huang/InnerTune?include_prereleases)](https://github.com/z-huang/music/releases)
[![License](https://img.shields.io/github/license/z-huang/InnerTune)](https://www.gnu.org/licenses/gpl-3.0)
[![Downloads](https://img.shields.io/github/downloads/z-huang/InnerTune/total)](https://github.com/z-huang/InnerTune/releases)

[<img src="https://github.com/machiav3lli/oandbackupx/blob/034b226cea5c1b30eb4f6a6f313e4dadcbb0ece4/badge_github.png" alt="Get it on GitHub" height="80">](https://github.com/z-huang/InnerTune/releases/latest)
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/com.zionhuang.music)
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" height="80">](https://apt.izzysoft.de/fdroid/index/apk/com.zionhuang.music)

[Compare versions](https://github.com/z-huang/InnerTune/wiki/App-Versions)

## Features

- Play songs from YT/YT Music without ads
Expand All @@ -20,6 +23,7 @@ A Material 3 YouTube Music client for Android
- Library management
- Cache and download songs for offline playback
- Synchronized lyrics
- Lyrics translator (experimental)
- Skip silence
- Audio normalization
- Adjust tempo/pitch
Expand Down
43 changes: 30 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
@file:Suppress("UnstableApiUsage")

val isFullBuild: Boolean by rootProject.extra

plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
id("com.google.dagger.hilt.android")
id("com.google.devtools.ksp")
if (System.getenv("PULL_REQUEST") == null) {
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
id("com.google.firebase.firebase-perf")
}
}

if (isFullBuild && System.getenv("PULL_REQUEST") == null) {
apply(plugin = "com.google.gms.google-services")
apply(plugin = "com.google.firebase.crashlytics")
apply(plugin = "com.google.firebase.firebase-perf")
}

android {
Expand All @@ -21,8 +24,8 @@ android {
applicationId = "com.zionhuang.music"
minSdk = 24
targetSdk = 33
versionCode = 17
versionName = "0.5.1"
versionCode = 18
versionName = "0.5.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -37,6 +40,15 @@ android {
resValue("string", "app_name", "InnerTune Debug")
}
}
flavorDimensions += "version"
productFlavors {
create("full") {
dimension = "version"
}
create("foss") {
dimension = "version"
}
}
signingConfigs {
getByName("debug") {
if (System.getenv("MUSIC_DEBUG_SIGNING_STORE_PASSWORD") != null) {
Expand Down Expand Up @@ -65,11 +77,13 @@ android {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
jvmTarget = "11"
}

testOptions {
unitTests.isIncludeAndroidResources = true
unitTests.isReturnDefaultValues = true
}
lint {
disable += "MissingTranslation"
}
}

ksp {
Expand Down Expand Up @@ -126,11 +140,14 @@ dependencies {

coreLibraryDesugaring(libs.desugaring)

implementation(platform(libs.firebase.bom))
implementation(libs.firebase.analytics)
implementation(libs.firebase.crashlytics)
implementation(libs.firebase.config)
implementation(libs.firebase.perf)
"fullImplementation"(platform(libs.firebase.bom))
"fullImplementation"(libs.firebase.analytics)
"fullImplementation"(libs.firebase.crashlytics)
"fullImplementation"(libs.firebase.config)
"fullImplementation"(libs.firebase.perf)
"fullImplementation"(libs.mlkit.language.id)
"fullImplementation"(libs.mlkit.translate)
"fullImplementation"(libs.opencc4j)

implementation(libs.timber)
}
Loading

0 comments on commit e73b961

Please sign in to comment.