Skip to content

Commit

Permalink
Release 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 4, 2023
2 parents 65bb452 + 01722e9 commit b92237f
Show file tree
Hide file tree
Showing 138 changed files with 5,334 additions and 1,638 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Build debug APK
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- 'README.md'
- 'fastlane/**'
- 'assets/**'
- '.github/**/*.md'
- '.github/FUNDING.yml'
- '.github/ISSUE_TEMPLATE/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Decode google-services.json
run: echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d >> app/google-services.json

- name: Decode Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: 'Key/music-debug.jks'
encodedString: ${{ secrets.KEYSTORE }}
run: echo ${{ secrets.KEYSTORE }} | base64 -d >> app/music-debug.jks

- name: set up JDK 11
uses: actions/setup-java@v3
Expand All @@ -27,13 +34,12 @@ jobs:
- name: Build debug APK and run jvm tests
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
env:
MUSIC_DEBUG_KEYSTORE_FILE: 'Key/music-debug.jks'
MUSIC_DEBUG_KEYSTORE_FILE: 'music-debug.jks'
MUSIC_DEBUG_SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
MUSIC_DEBUG_SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
MUSIC_DEBUG_SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}

- name: Upload APK
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/debug/*.apk
path: app/build/outputs/apk/debug/*.apk
6 changes: 4 additions & 2 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:

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

- name: Upload APK
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/debug/*.apk
path: app/build/outputs/apk/debug/*.apk
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ captures/
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json
google-services.json

# Freeline
freeline.py
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ A Material 3 YouTube Music client for Android
- Play songs from YT/YT Music without ads
- Background playback
- Search songs, videos, albums, and playlists from YouTube Music
- Login support
- Library management
- Cache and download songs for offline playback
- Synchronized lyrics
- Skip silence
- Audio normalization
- Adjust tempo/pitch
- Dynamic theme
- Localization
- Android Auto support
Expand Down Expand Up @@ -66,7 +68,8 @@ before you create a pull request.

## Donate

If you like InnerTune, you're welcome to send a donation.
If you like InnerTune, you're welcome to send a donation. Donations will support the development,
including bug fixes and new features.

<a href="https://liberapay.com/zionhuang"><img src="https://raw.githubusercontent.com/z-huang/InnerTune/dev/assets/liberapay.png" alt="Liberapay" height="60" ></a>
<a href="https://www.buymeacoffee.com/zionhuang"><img src="https://raw.githubusercontent.com/z-huang/InnerTune/dev/assets/buymeacoffee.png" alt="Liberapay" height="60" ></a>
Expand Down
22 changes: 15 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {
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")
}
}

android {
Expand All @@ -16,8 +21,8 @@ android {
applicationId = "com.zionhuang.music"
minSdk = 24
targetSdk = 33
versionCode = 16
versionName = "0.5.0"
versionCode = 17
versionName = "0.5.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -35,12 +40,9 @@ android {
signingConfigs {
getByName("debug") {
if (System.getenv("MUSIC_DEBUG_SIGNING_STORE_PASSWORD") != null) {
val tmpFilePath = System.getProperty("user.home") + "/work/_temp/Key/"
val allFilesFromDir = File(tmpFilePath).listFiles()
val keystoreFile = allFilesFromDir?.first()
storeFile = keystoreFile ?: file(System.getenv("MUSIC_DEBUG_KEYSTORE_FILE"))
storeFile = file(System.getenv("MUSIC_DEBUG_KEYSTORE_FILE"))
storePassword = System.getenv("MUSIC_DEBUG_SIGNING_STORE_PASSWORD")
keyAlias = System.getenv("MUSIC_DEBUG_SIGNING_KEY_ALIAS")
keyAlias = "debug"
keyPassword = System.getenv("MUSIC_DEBUG_SIGNING_KEY_PASSWORD")
}
}
Expand Down Expand Up @@ -124,5 +126,11 @@ 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)

implementation(libs.timber)
}
Loading

0 comments on commit b92237f

Please sign in to comment.