Skip to content

Commit

Permalink
7.0.0 (#456)
Browse files Browse the repository at this point in the history
- 使用 Compose 重写模块界面
- 删除 歌词边缘模糊
- 添加 开启高级材质背景自动添加边距
- 优化 图标颜色跟随
- 优化 锁屏监听能力
- 修改 配置文件名
- 修复 随机动画失效
- 优化 标题获取方式
- 优化 解锁后歌词颜色跟随
- 优化 QQ音乐和小米音乐小图标
- 优化 允许魅族状态栏模式下显示椒盐音乐图标
- 优化 代码
  • Loading branch information
YuKongA authored Sep 30, 2024
1 parent c15b4c8 commit 866d467
Show file tree
Hide file tree
Showing 88 changed files with 4,982 additions and 2,585 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'microsoft'
distribution: 'zulu'
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Android_Dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "microsoft"
distribution: 'zulu'
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
Expand Down
45 changes: 18 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,59 +1,50 @@
<h1 align="center">墨-状态栏歌词</h1>
![ic_home_background.webp](ic_home_background.webp)

<div align="center">

[![Icon](/icon.png)]()
![Release Download](https://img.shields.io/github/downloads/577fkj/StatusBarLyric/total?style=flat-square)
![Release Download](https://img.shields.io/github/downloads/Xposed-Modules-Repo/statusbar.lyric/total?style=flat-square)
[![Release Version](https://img.shields.io/github/v/release/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/releases/latest)
[![GitHub license](https://img.shields.io/github/license/577fkj/StatusBarLyric?style=flat-square)](LICENSE)
[![Release Version](https://img.shields.io/github/v/release/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/releases/latest)
[![GitHub Star](https://img.shields.io/github/stars/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/stargazers)
[![GitHub Fork](https://img.shields.io/github/forks/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/network/members)
![GitHub Repo size](https://img.shields.io/github/repo-size/577fkj/StatusBarLyric?style=flat-square&color=3cb371)
[![GitHub Repo Languages](https://img.shields.io/github/languages/top/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/search?l=java)

[![GitHub license](https://img.shields.io/github/license/577fkj/StatusBarLyric?style=flat-square)](LICENSE)
[![GitHub Repo Languages](https://img.shields.io/github/languages/top/577fkj/StatusBarLyric?style=flat-square)](https://github.com/577fkj/StatusBarLyric/search?l=java)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2F577fkj%2FStatusBarLyric%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/577fkj/StatusBarLyric/goto?ref=main)
[![GitHub Star](https://img.shields.io/github/stars/577fkj/StatusBarLyric.svg?style=social)](https://github.com/577fkj/StatusBarLyric)
[![电报群](https://img.shields.io/badge/电报群-StatusBatLyric-blue.svg?style=flat-square&color=12b7f5)](https://t.me/StatusBatLyric)
</div>

### 理论支持 __所有__ 官方以及部分修改系统

### 奉献者

[奉献者](https://github.com/Block-Network/StatusBarLyric/graphs/contributors)
[![Telegram](https://img.shields.io/badge/电报群-StatusBatLyric-blue.svg?style=flat-square&color=12b7f5)](https://t.me/StatusBatLyric)

## 帮助翻译
</div>

[![Crowdin](https://badges.crowdin.net/statusbarlyric/localized.svg)](https://crowdin.com/project/statusbarlyric)
### 这是什么软件?

[点击进入Crowdin](https://crowdin.com/project/statusbarlyric)
- 这是一个Xposed模块,仅支持LSPosed框架
- 用于在状态栏显示歌词,支持各式各样的自定义样式
- 理论支持 __所有__ 官方以及部分修改系统

### 下载

- [Releases](https://github.com/577fkj/StatusBarLyric/releases)
- [Beta](https://github.com/577fkj/StatusBarLyric/actions/workflows/Android.yml)
- [Canary](https://github.com/577fkj/StatusBarLyric/actions/workflows/Android_Dev.yml)

[//]: # (### 使用教程)
---

[//]: # ([HELP]&#40;doc/HELP.md&#41;)
## 帮助翻译

### 联系我们
- [电报](https://t.me/StatusBatLyric)
- [BUG反馈(Github)](https://github.com/577fkj/StatusBarLyric/issues/new)
[![Crowdin](https://badges.crowdin.net/statusbarlyric/localized.svg)](https://crowdin.com/project/statusbarlyric)

---

## 贡献
[使用教程](https://blog.xiaowine.cc/posts/8e64/)

[想做贡献?](doc/CONTRIBUTING.md)
[想做贡献?](doc/CONTRIBUTING.md)

## EULA & License
[奉献者](https://github.com/Block-Network/StatusBarLyric/graphs/contributors)

[EULA](doc/EULA.md)

[GNU General Public License v3.0](LICENSE)

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=Block-Network/StatusBarLyric&type=Date)](https://star-history.com/#Block-Network/StatusBarLyric&Date)
[![Star History Chart](https://api.star-history.com/svg?repos=Block-Network/StatusBarLyric&type=Date)](https://star-history.com/#Block-Network/StatusBarLyric&Date)
36 changes: 23 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
import org.jetbrains.kotlin.konan.properties.Properties

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
}

val localProperties = Properties()
Expand All @@ -19,13 +20,13 @@ android {
applicationId = "statusbar.lyric"
minSdk = 26
targetSdk = 35
versionCode = 650
versionName = "6.5.0"
versionCode = 700
versionName = "7.0.0"
aaptOptions.cruncherEnabled = false
dependenciesInfo.includeInApk = false
buildConfigField("long", "BUILD_TIME", "$buildTime")
buildConfigField("int", "API_VERSION", "6")
buildConfigField("int", "CONFIG_VERSION", "10")
buildConfigField("int", "COMPOSE_CONFIG_VERSION", "1")
}
val config = localProperties.getProperty("androidStoreFile")?.let {
signingConfigs.create("config") {
Expand Down Expand Up @@ -58,15 +59,24 @@ android {
(this as BaseVariantOutputImpl).outputFileName = "StatusBarLyric-$versionName-$versionCode-$name-$buildTime.apk"
}
}
kotlin.jvmToolchain(17)
buildFeatures.buildConfig = true
kotlin.jvmToolchain(21)
}

dependencies {
compileOnly("de.robv.android.xposed:api:82")
implementation(project(":blockmiui"))
implementation("com.github.kyuubiran:EzXHelper:2.2.0")
implementation("com.github.xiaowine:Lyric-Getter-Api:6.0.0")
implementation("com.jaredrummler:ktsh:1.0.0")
implementation("com.github.xiaowine:XKT:1.0.12")
implementation("com.google.zxing:core:3.5.2")
compileOnly(libs.xposed)

implementation(libs.androidx.core.ktx)
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.compose.material3)
implementation(libs.androidx.ui)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.navigation.compose)
implementation(libs.miuix)

implementation(libs.ezXHelper)
implementation(libs.lyricGetterApi)

debugImplementation(libs.androidx.ui.tooling)
}
9 changes: 4 additions & 5 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-optimizationpasses 5
-keep class statusbar.lyric.hook.MainHook
-keep class statusbar.lyric.activity.page.*
-keep class cn.lyric.getter.api.data.*{*;}
-keep class statusbar.lyric.hook.MainHook { <init>(); }
-keep class statusbar.lyric.tools.ActivityTools{ isHook(); }
-keep class cn.lyric.getter.api.data.* { *; }
-dontskipnonpubliclibraryclassmembers
-useuniqueclassmembernames
-allowaccessmodification
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable
-repackageclasses sdwew
-repackageclasses ztlgc
-obfuscationdictionary proguard-dic-6.txt
-classobfuscationdictionary proguard-dic-6.txt
-packageobfuscationdictionary proguard-dic-6.txt
Expand Down
55 changes: 28 additions & 27 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<queries>
<package android:name="cn.lyric.getter" />
</queries>

<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:resizeableActivity="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup">
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.StatusbarLyric"
tools:ignore="AllowBackup">
<activity
android:name=".activity.SettingsActivity"
android:exported="true">
android:name=".MainActivity"
android:exported="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="miui.cn.fkj233.xposed.statusbarlyric.SettingsFragment" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
</intent-filter>
</activity>
<activity-alias
android:name=".launcher"
android:enabled="true"
android:exported="true"
android:targetActivity=".activity.SettingsActivity">
android:name=".AliasActivity"
android:exported="true"
android:targetActivity=".MainActivity"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>

<meta-data
android:name="EasyGoClient"
android:value="true" />
android:name="EasyGoClient"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="@string/xposed_tips" />
android:name="xposeddescription"
android:value="@string/xposed_tips" />
<meta-data
android:name="xposedminversion"
android:value="93" />
android:name="xposedminversion"
android:value="93" />
<meta-data
android:name="xposedsharedprefs"
android:value="true" />
android:name="xposedsharedprefs"
android:value="true" />
<meta-data
android:name="xposedscope"
android:resource="@array/need_module" />
android:name="xposedscope"
android:resource="@array/need_module" />
</application>
</manifest>
Loading

0 comments on commit 866d467

Please sign in to comment.