Use source dependencies instead of mavenLocal (#2445)

This commit is contained in:
LoveSy 2023-03-21 11:45:26 +08:00 committed by GitHub
parent 55a488b72a
commit 03d2cea093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 26 deletions

View File

@ -51,18 +51,6 @@ jobs:
with:
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
uses: hendrikmuhs/ccache-action@v1.2
with:
@ -71,17 +59,6 @@ jobs:
restore-keys: ${{ runner.os }}
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
run: |
echo 'org.gradle.parallel=true' >> gradle.properties

View File

@ -119,7 +119,7 @@ android.applicationVariants.all {
}
dependencies {
implementation(libs.libxposed.service.`interface`)
implementation(libs.libxposed.`interface`)
implementation(libs.agp.apksig)
implementation(libs.commons.lang3)
implementation(projects.hiddenapi.bridge)

View File

@ -1,3 +1,5 @@
import java.net.URI
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
@ -42,8 +44,12 @@ dependencyResolutionManagement {
library("appcenter-crashes", "com.microsoft.appcenter", "appcenter-crashes").versionRef(appCenterVersion)
library("appcenter-analytics", "com.microsoft.appcenter", "appcenter-analytics").versionRef(appCenterVersion)
library("libxposed-api", "io.github.libxposed", "api").versionRef(libxposedVersion)
library("libxposed-service-interface", "io.github.libxposed", "service-interface").versionRef(libxposedVersion)
library("libxposed-api", "io.github.libxposed", "api").version {
branch = "master"
}
library("libxposed-interface", "io.github.libxposed", "interface").version {
branch = "master"
}
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"
include(
":app",