Use source dependencies instead of mavenLocal (#2445)
This commit is contained in:
parent
55a488b72a
commit
03d2cea093
|
|
@ -51,18 +51,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
gradle-home-cache-cleanup: true
|
gradle-home-cache-cleanup: true
|
||||||
|
|
||||||
- name: Checkout libxposed/api
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: libxposed/api
|
|
||||||
path: libxposed/api
|
|
||||||
|
|
||||||
- name: Checkout libxposed/api
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: libxposed/service
|
|
||||||
path: libxposed/service
|
|
||||||
|
|
||||||
- name: Set up ccache
|
- name: Set up ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
|
|
@ -71,17 +59,6 @@ jobs:
|
||||||
restore-keys: ${{ runner.os }}
|
restore-keys: ${{ runner.os }}
|
||||||
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
- name: Build dependencies
|
|
||||||
working-directory: libxposed
|
|
||||||
run: |
|
|
||||||
cd api
|
|
||||||
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
|
||||||
./gradlew :api:publishApiPublicationToMavenLocal
|
|
||||||
cd ..
|
|
||||||
cd service
|
|
||||||
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
|
||||||
./gradlew :interface:publishInterfacePublicationToMavenLocal
|
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: |
|
run: |
|
||||||
echo 'org.gradle.parallel=true' >> gradle.properties
|
echo 'org.gradle.parallel=true' >> gradle.properties
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ android.applicationVariants.all {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.libxposed.service.`interface`)
|
implementation(libs.libxposed.`interface`)
|
||||||
implementation(libs.agp.apksig)
|
implementation(libs.agp.apksig)
|
||||||
implementation(libs.commons.lang3)
|
implementation(libs.commons.lang3)
|
||||||
implementation(projects.hiddenapi.bridge)
|
implementation(projects.hiddenapi.bridge)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
import java.net.URI
|
||||||
|
|
||||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||||
|
|
||||||
pluginManagement {
|
pluginManagement {
|
||||||
|
|
@ -42,8 +44,12 @@ dependencyResolutionManagement {
|
||||||
library("appcenter-crashes", "com.microsoft.appcenter", "appcenter-crashes").versionRef(appCenterVersion)
|
library("appcenter-crashes", "com.microsoft.appcenter", "appcenter-crashes").versionRef(appCenterVersion)
|
||||||
library("appcenter-analytics", "com.microsoft.appcenter", "appcenter-analytics").versionRef(appCenterVersion)
|
library("appcenter-analytics", "com.microsoft.appcenter", "appcenter-analytics").versionRef(appCenterVersion)
|
||||||
|
|
||||||
library("libxposed-api", "io.github.libxposed", "api").versionRef(libxposedVersion)
|
library("libxposed-api", "io.github.libxposed", "api").version {
|
||||||
library("libxposed-service-interface", "io.github.libxposed", "service-interface").versionRef(libxposedVersion)
|
branch = "master"
|
||||||
|
}
|
||||||
|
library("libxposed-interface", "io.github.libxposed", "interface").version {
|
||||||
|
branch = "master"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
library("rikkax-appcompat", "dev.rikka.rikkax.appcompat:appcompat:1.6.1")
|
library("rikkax-appcompat", "dev.rikka.rikkax.appcompat:appcompat:1.6.1")
|
||||||
|
|
@ -91,6 +97,15 @@ dependencyResolutionManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceControl {
|
||||||
|
gitRepository(URI.create("https://github.com/libxposed/api.git")) {
|
||||||
|
producesModule("io.github.libxposed:api")
|
||||||
|
}
|
||||||
|
gitRepository(URI.create("https://github.com/libxposed/service.git")) {
|
||||||
|
producesModule("io.github.libxposed:interface")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rootProject.name = "LSPosed"
|
rootProject.name = "LSPosed"
|
||||||
include(
|
include(
|
||||||
":app",
|
":app",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue