Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
06147a4
Fix Toast (#461)
JasonKhew96 Mar 4, 2022
a820453
Skip dex helper by default
yujincheng08 Mar 4, 2022
279f971
Log non-xposed error as debug message and more error Toast (#462)
JasonKhew96 Mar 4, 2022
1f407bf
Use mcdn as backup
yujincheng08 Mar 5, 2022
cca9f11
Fix play version obfuscated ToastHelper methods (#463)
JasonKhew96 Mar 5, 2022
a8f8142
Fix mcdn playurl infinite loop (#466)
JasonKhew96 Mar 5, 2022
7d60797
Fix auto like & music notification
yujincheng08 Mar 5, 2022
4922481
Fix music hook on 6.63
yujincheng08 Mar 5, 2022
7c3f207
Try to support mcdn with extra params
yujincheng08 Mar 5, 2022
757f3df
Fix NPE when no notification
yujincheng08 Mar 5, 2022
d9b01a7
Add more hint
yujincheng08 Mar 5, 2022
ff6131a
[skip ci] Bump version
yujincheng08 Mar 5, 2022
1e3fad2
Better check th bangumi season
yujincheng08 Mar 5, 2022
633f205
Filter more
yujincheng08 Mar 5, 2022
c019e2e
save old log (#470)
duzhaokun123 Mar 6, 2022
16c096b
Force UPOS to use https
yujincheng08 Mar 6, 2022
697db8c
For non-cn users, mcdn is hardcoded to akamai
yujincheng08 Mar 6, 2022
338a09b
Fix season switch loading error (#471)
JasonKhew96 Mar 6, 2022
4fe7ee6
Fix season swap loading error
JasonKhew96 Mar 6, 2022
3aec6e0
Reformat code
JasonKhew96 Mar 6, 2022
12114df
Update BiliRoamingApi.kt
yujincheng08 Mar 6, 2022
1d6dbaf
Revert "Reformat code"
yujincheng08 Mar 6, 2022
ca90cc4
Fix bangumi unblock on 6.64
yujincheng08 Mar 11, 2022
ccb6c1d
Fix season class on 6.64
yujincheng08 Mar 11, 2022
cf0c199
Fix music notification on 6.64
yujincheng08 Mar 11, 2022
15b0164
Fix autolike on 6.64
yujincheng08 Mar 11, 2022
b7ac6aa
Add description for cancel “移动我的页面到侧边栏” (#476)
david082321 Mar 12, 2022
a44e511
force "no log file" toast (#483)
duzhaokun123 Mar 21, 2022
994bc69
fix: clear exception before FindClass (#484)
cinit Mar 22, 2022
f970321
open custom URI scheme link (#486)
david082321 Mar 25, 2022
7830358
Fix unblocked bangumi can only watch 6min
yujincheng08 Mar 25, 2022
665d183
Refactor `BilibiliPackage`
yujincheng08 Mar 26, 2022
1848aeb
fix: customize area search for version 6.64 and up (#490)
JasonKhew96 Mar 26, 2022
541a7df
Fix missing codes after refactor
yujincheng08 Mar 26, 2022
809a067
Fix playercoreservice initialization
yujincheng08 Mar 26, 2022
40e9c14
Fix unblocked bangumi long title
yujincheng08 Mar 26, 2022
894226b
Fix search result only show one page (#491)
zjns Mar 27, 2022
8deff56
optimize share log request (#492)
duzhaokun123 Mar 27, 2022
440bbe8
Enable dexhelper and use it to find bangumi season
yujincheng08 Mar 27, 2022
40a94b4
Enable ccache and use ndk24
yujincheng08 Mar 27, 2022
8f98e71
Enable lto
yujincheng08 Mar 27, 2022
8d892e0
close dexhelper and use it to find bangumi params
yujincheng08 Mar 27, 2022
6707b22
Use dexhelper to find kanban
yujincheng08 Mar 27, 2022
d74d910
Remove dexhelper switch
yujincheng08 Mar 27, 2022
f9f1cd1
Use dexhelper to find okhttp response
yujincheng08 Mar 27, 2022
0c7d9d3
Use dexhelper to find pegasus feed
yujincheng08 Mar 27, 2022
f0243eb
Use dexhelper to find settings route
yujincheng08 Mar 27, 2022
02fb0e9
Use dexhelper to find comment long click
yujincheng08 Mar 27, 2022
b0a76d7
Use dexhelper to find musicNotification
yujincheng08 Mar 27, 2022
d476a64
Use dexhelper to find playerCoreService
yujincheng08 Mar 27, 2022
2894b95
Use dexHelper to find HomeUserFragment
yujincheng08 Mar 27, 2022
1a2f737
Use dexhelper to find partySection
yujincheng08 Mar 27, 2022
36a7c80
Refine codes
yujincheng08 Mar 27, 2022
b3920da
Use dexHelper to find gson
yujincheng08 Mar 27, 2022
04bb44c
Use other string to find HomeUserCenter
yujincheng08 Mar 27, 2022
d79b475
Use dexHelper to find okhttp
yujincheng08 Mar 27, 2022
7726877
Use dexHelper to find fastjson
yujincheng08 Mar 27, 2022
64cb8f5
Use dexHelper to get accesskey
yujincheng08 Mar 27, 2022
b191870
Use dexHelper to find okioBuffer
yujincheng08 Mar 27, 2022
aff6fb5
Use dexhelper to find okio
yujincheng08 Mar 27, 2022
38287eb
Rename CommentHook -> CopyHook
yujincheng08 Mar 27, 2022
6895e19
Use dexHelper to find descCopy
yujincheng08 Mar 27, 2022
a261d89
Refine proto print
yujincheng08 Mar 27, 2022
e152a48
Replace if to when
yujincheng08 Mar 27, 2022
41e89e4
Use dexHelper to find shareWrapper
yujincheng08 Mar 27, 2022
189f7b2
Disable some functions for 6.63+
yujincheng08 Mar 27, 2022
300ffee
Better way to find notification builder
yujincheng08 Mar 27, 2022
957b59a
Compare also version codes
yujincheng08 Mar 27, 2022
1d81147
Support 6.66
yujincheng08 Mar 27, 2022
f02d486
Fix comaptibility to HD version
yujincheng08 Mar 27, 2022
92057a5
Use dexHelper to find toastHelper
yujincheng08 Mar 27, 2022
cb98523
[skip ci] bump 1.6.0
yujincheng08 Mar 27, 2022
a02b572
fix #486 in HD version (#495)
david082321 Mar 28, 2022
3e2c3f6
uncompress dex instead of using compact dex
yujincheng08 Mar 28, 2022
8171859
Drop unordered map of string
yujincheng08 Mar 28, 2022
0911d58
Fix the exact shareTo
yujincheng08 Mar 28, 2022
237cbc6
lazy accessKey
yujincheng08 Mar 28, 2022
12b09ca
Fix comment copy on 6.66
yujincheng08 Mar 28, 2022
15a4b60
New way to find notification builder
yujincheng08 Mar 28, 2022
b42f2c1
Fix getString
yujincheng08 Mar 28, 2022
7eda10d
Update lastSeasonInfo from url if possible
yujincheng08 Mar 28, 2022
9608578
Custom theme actually supports 6.66.0 (#494)
david082321 Mar 28, 2022
15c4626
Also check module version name for hookinfo
yujincheng08 Mar 28, 2022
fcffec7
Use oat file to determine whether to decompress
yujincheng08 Mar 29, 2022
312707b
Update dexbuilder
yujincheng08 Mar 29, 2022
2a031e0
Fix bvid to season (#510)
david082321 Mar 30, 2022
73ded09
fix: share url/link for hidden season (#511)
JasonKhew96 Mar 30, 2022
e4f944c
fix: 自定义我的页面 (#514)
david082321 Mar 31, 2022
ea72dec
Make proto optional
yujincheng08 Mar 31, 2022
b653289
Refine code
yujincheng08 Mar 31, 2022
38c57d5
Refine codes
yujincheng08 Mar 31, 2022
af9f52c
[skip ci] Bump version to 1.6.1
yujincheng08 Mar 31, 2022
976fdf8
Fix missing bv2av
yujincheng08 Mar 31, 2022
dbc5d63
Force save preference
yujincheng08 Apr 8, 2022
7102528
Show error msg even preview is avaliable
yujincheng08 Apr 9, 2022
c28f059
Ensure getAccessKey is avaliable
yujincheng08 Apr 9, 2022
c839ff2
Match exactly
yujincheng08 Apr 9, 2022
817443a
[skip ci] Bump 1.6.1
yujincheng08 Apr 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,47 @@ jobs:
- name: Retrieve version
run: |
echo VERSION=$(echo ${{ github.event.head_commit.id }} | head -c 10) >> $GITHUB_ENV
- uses: actions/cache@v2
- name: Cache gradle dep
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/caches/build-cache-*
key: gradle-deps-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: gradle-deps
- uses: actions/cache@v2
- name: Install dep
run: |
sudo apt-get install -y ccache ninja-build
ccache -o max_size=1G
ccache -o hash_dir=false
ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion'
ccache -zp
- name: Cache gradle build
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/build-cache-*
key: gradle-builds-${{ github.sha }}
restore-keys: gradle-builds
- name: Cache native build
uses: actions/cache@v2
with:
path: |
~/.ccache
key: native-cache-${{ github.sha }}
restore-keys: native-cache-
- name: Build with Gradle
run: |
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
echo 'android.native.buildOutput=verbose' >> gradle.properties
ln -s $(which ninja) $(dirname $(which cmake)) # https://issuetracker.google.com/issues/206099937
echo "cmake.dir=$(dirname $(dirname $(which cmake)))" >> local.properties
./gradlew -PappVerName=${{ env.VERSION }} assembleRelease assembleDebug
ccache -s
- name: Upload built apk
if: success()
uses: actions/upload-artifact@v2
Expand Down
23 changes: 19 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import com.android.build.api.artifact.SingleArtifact
import com.android.build.api.variant.BuiltArtifact
import com.google.protobuf.gradle.*
import java.nio.file.Paths
import org.gradle.internal.os.OperatingSystem

// https://github.com/google/protobuf-gradle-plugin/issues/540#issuecomment-1001053066
fun com.android.build.api.dsl.AndroidSourceSet.proto(action: SourceDirectorySet.() -> Unit) {
Expand All @@ -13,6 +14,15 @@ fun com.android.build.api.dsl.AndroidSourceSet.proto(action: SourceDirectorySet.
?.apply(action)
}

fun findInPath(executable: String): String? {
val pathEnv = System.getenv("PATH")
return pathEnv.split(File.pathSeparator).map { folder ->
Paths.get("${folder}${File.separator}${executable}${if (OperatingSystem.current().isWindows) ".exe" else ""}")
.toFile()
}.firstOrNull { path ->
path.exists()
}?.absolutePath
}

plugins {
id("com.android.application")
Expand All @@ -31,7 +41,7 @@ val appVerName: String by rootProject
android {
compileSdk = 32
buildToolsVersion = "32.0.0"
ndkVersion = "23.1.7779620"
ndkVersion = "24.0.8215888"

defaultConfig {
applicationId = "me.iacn.biliroaming"
Expand All @@ -43,7 +53,7 @@ android {
externalNativeBuild {
cmake {
targets("biliroaming")
abiFilters("arm64-v8a", "x86")
abiFilters("armeabi-v7a", "arm64-v8a", "x86")
arguments("-DANDROID_STL=none")
val flags = arrayOf(
"-Wall",
Expand All @@ -66,6 +76,10 @@ android {
)
cppFlags("-std=c++20", *flags)
cFlags("-std=c18", *flags)
findInPath("ccache")?.let {
println("Using ccache $it")
arguments += "-DANDROID_CCACHE=$it"
}
}
}
}
Expand Down Expand Up @@ -102,6 +116,7 @@ android {
proguardFiles("proguard-rules.pro")
externalNativeBuild {
cmake {
cppFlags += "-flto"
val configFlags = arrayOf(
"-Oz",
"-DNDEBUG"
Expand Down Expand Up @@ -232,8 +247,8 @@ dependencies {
implementation("com.google.protobuf:protobuf-kotlin-lite:3.19.4")
compileOnly("com.google.protobuf:protoc:3.19.4")
implementation("org.jetbrains.kotlin:kotlin-stdlib:${rootProject.extra["kotlinVersion"]}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.1")
implementation("androidx.documentfile:documentfile:1.0.1")
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
}
Expand Down
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<fields>;
}

-keepclasseswithmembernames class me.iacn.biliroaming.utils.DexHelper {
-keepclasseswithmembers class me.iacn.biliroaming.utils.DexHelper {
native <methods>;
long token;
java.lang.ClassLoader classLoader;
Expand Down
Loading