Skip to content

Commit bd136d8

Browse files
authored
Merge branch 'LSPosed:master' into master
2 parents d614166 + 6e89dad commit bd136d8

File tree

26 files changed

+163
-143
lines changed

26 files changed

+163
-143
lines changed

.github/workflows/crowdin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches: [ master ]
77
paths:
8-
- manager/src/main/res/values/strings.xml
8+
- manager/src/main/res/values/strings.xml
99

1010
jobs:
1111
synchronize-with-crowdin:

.github/workflows/main.yml

Lines changed: 38 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ jobs:
1010
build:
1111
name: Build on ${{ matrix.os }}
1212
runs-on: ${{ matrix.os }}
13-
if: ${{ !startsWith(github.event.head_commit.message, '[skip ci]') }}
1413
strategy:
15-
fail-fast: false
1614
matrix:
1715
os: [ ubuntu-latest ]
16+
env:
17+
CCACHE_COMPILERCHECK: '%compiler% -dumpmachine; %compiler% -dumpversion'
18+
CCACHE_NOHASHDIR: 'true'
19+
CCACHE_HARDLINK: 'true'
20+
CCACHE_BASEDIR: '${{ github.workspace }}'
1821

1922
steps:
2023
- name: Checkout
@@ -34,62 +37,54 @@ jobs:
3437
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
3538
fi
3639
37-
- name: Set up JDK 11
40+
- name: Checkout libxposed/api
41+
uses: actions/checkout@v3
42+
with:
43+
repository: libxposed/api
44+
path: libxposed/api
45+
46+
- name: Checkout libxposed/service
47+
uses: actions/checkout@v3
48+
with:
49+
repository: libxposed/service
50+
path: libxposed/service
51+
52+
- name: Setup Java
3853
uses: actions/setup-java@v3
3954
with:
40-
java-version: '11'
55+
java-version: '17'
4156
distribution: 'temurin'
42-
cache: 'gradle'
4357

44-
- name: Cache gradle dependencies
45-
uses: actions/cache@v3
58+
- name: Setup Gradle
59+
uses: gradle/gradle-build-action@v2
4660
with:
47-
path: |
48-
~/.gradle/caches
49-
~/.gradle/wrapper
50-
!~/.gradle/caches/build-cache-*
51-
key: gradle-deps-core-${{ hashFiles('**/build.gradle.kts') }}
52-
restore-keys: |
53-
gradle-deps
54-
55-
- name: Cache gradle build
56-
uses: actions/cache@v3
57-
with:
58-
path: |
59-
~/.gradle/caches/build-cache-*
60-
~/.gradle/buildOutputCleanup/cache.properties
61-
key: gradle-builds-core-${{ github.sha }}
62-
restore-keys: |
63-
gradle-builds
64-
65-
- name: Cache native build
66-
uses: actions/cache@v3
61+
gradle-home-cache-cleanup: true
62+
63+
- name: Set up ccache
64+
uses: hendrikmuhs/[email protected]
6765
with:
68-
path: |
69-
~/.ccache
70-
patch-loader/build/.lto-cache
71-
key: native-cache-${{ github.sha }}
72-
restore-keys: native-cache-
66+
max-size: 2G
67+
key: ${{ runner.os }}
68+
restore-keys: ${{ runner.os }}
69+
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
7370

74-
- name: Install dep
71+
- name: Build dependencies
72+
working-directory: libxposed
7573
run: |
76-
sudo apt-get install -y ccache
77-
ccache -o max_size=1G
78-
ccache -o hash_dir=false
79-
ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion'
80-
ccache -zp
74+
cd api
75+
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
76+
./gradlew :api:publishApiPublicationToMavenLocal
77+
cd ..
78+
cd service
79+
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
80+
./gradlew :interface:publishInterfacePublicationToMavenLocal
8181
8282
- name: Build with Gradle
8383
run: |
84-
[ $(du -s ~/.gradle/wrapper | awk '{ print $1 }') -gt 250000 ] && rm -rf ~/.gradle/wrapper/* || true
85-
find ~/.gradle/caches -exec touch -d "2 days ago" {} + || true
86-
echo 'org.gradle.caching=true' >> gradle.properties
8784
echo 'org.gradle.parallel=true' >> gradle.properties
88-
echo 'org.gradle.vfs.watch=true' >> gradle.properties
8985
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
9086
echo 'android.native.buildOutput=verbose' >> gradle.properties
9187
./gradlew buildAll
92-
ccache -s
9388
9489
- name: Upload Debug artifact
9590
uses: actions/upload-artifact@v3

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[submodule "core"]
66
path = core
77
url = https://github.com/LSPosed/LSPosed.git
8-
branch = lspatch
8+
branch = master
99
[submodule "patch/libs/manifest-editor"]
1010
path = patch/libs/manifest-editor
1111
url = https://github.com/WindySha/ManifestEditor.git

apkzlib/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies {
1414
implementation("com.google.code.findbugs:jsr305:3.0.2")
1515
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
1616
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
17-
api("com.google.guava:guava:31.0.1-jre")
18-
api("com.android.tools.build:apksig:7.1.2")
19-
compileOnlyApi("com.google.auto.value:auto-value-annotations:1.9")
20-
annotationProcessor("com.google.auto.value:auto-value:1.9")
17+
api("com.google.guava:guava:32.0.1-jre")
18+
api("com.android.tools.build:apksig:8.0.2")
19+
compileOnlyApi("com.google.auto.value:auto-value-annotations:1.10.1")
20+
annotationProcessor("com.google.auto.value:auto-value:1.10.1")
2121
}

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import org.eclipse.jgit.internal.storage.file.FileRepository
66
import org.eclipse.jgit.storage.file.FileRepositoryBuilder
77

88
plugins {
9-
id("com.android.application") apply false
10-
id("com.android.library") apply false
9+
alias(libs.plugins.agp.lib) apply false
10+
alias(libs.plugins.agp.app) apply false
1111
}
1212

1313
buildscript {
@@ -17,7 +17,7 @@ buildscript {
1717
}
1818
dependencies {
1919
classpath("org.eclipse.jgit:org.eclipse.jgit:6.3.0.202209071007-r")
20-
classpath(kotlin("gradle-plugin", version = "1.7.20"))
20+
classpath(kotlin("gradle-plugin", version = "1.8.21"))
2121
}
2222
}
2323

@@ -54,8 +54,8 @@ val androidTargetSdkVersion by extra(33)
5454
val androidCompileSdkVersion by extra(33)
5555
val androidCompileNdkVersion by extra("25.1.8937393")
5656
val androidBuildToolsVersion by extra("33.0.1")
57-
val androidSourceCompatibility by extra(JavaVersion.VERSION_11)
58-
val androidTargetCompatibility by extra(JavaVersion.VERSION_11)
57+
val androidSourceCompatibility by extra(JavaVersion.VERSION_17)
58+
val androidTargetCompatibility by extra(JavaVersion.VERSION_17)
5959

6060
tasks.register<Delete>("clean") {
6161
delete(rootProject.buildDir)

core

Submodule core updated 210 files

gradle.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
android.experimental.enableNewResourceShrinker=true
21
android.experimental.enableNewResourceShrinker.preciseShrinking=true
32
android.enableAppCompileTimeRClass=true
4-
android.nonTransitiveRClass=true
5-
android.enableR8.fullMode=true
63
android.useAndroidX=true
7-
8-
agpVersion=7.4.0

gradle/wrapper/gradle-wrapper.jar

1.29 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
9087

9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
@@ -143,12 +140,16 @@ fi
143140
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144141
case $MAX_FD in #(
145142
max*)
143+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
144+
# shellcheck disable=SC3045
146145
MAX_FD=$( ulimit -H -n ) ||
147146
warn "Could not query maximum file descriptor limit"
148147
esac
149148
case $MAX_FD in #(
150149
'' | soft) :;; #(
151150
*)
151+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
152+
# shellcheck disable=SC3045
152153
ulimit -n "$MAX_FD" ||
153154
warn "Could not set maximum file descriptor limit to $MAX_FD"
154155
esac
@@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then
193194
done
194195
fi
195196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
196201
# Collect all arguments for the java command;
197202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198203
# shell script including quotes and variable substitutions, so put them in

0 commit comments

Comments
 (0)