Revert "Use source dependencies instead of mavenLocal (#2445)" (#2586)

This reverts commit 03d2cea093
This commit is contained in:
LoveSy 2023-06-28 12:24:46 +08:00 committed by GitHub
parent 594733bc25
commit 4b75c8af79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 19 deletions

View File

@ -40,6 +40,18 @@ jobs:
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
fi
- name: Checkout libxposed/api
uses: actions/checkout@v3
with:
repository: libxposed/api
path: libxposed/api
- name: Checkout libxposed/service
uses: actions/checkout@v3
with:
repository: libxposed/service
path: libxposed/service
- name: Setup Java
uses: actions/setup-java@v3
with:
@ -59,6 +71,17 @@ 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

@ -20,7 +20,6 @@
import com.android.build.api.dsl.ApplicationExtension
import com.android.ide.common.signing.KeystoreHelper
import java.io.PrintStream
import java.util.*
plugins {
alias(libs.plugins.agp.app)

View File

@ -63,3 +63,6 @@ gson = { module = "com.google.code.gson:gson", version = "2.10.1" }
hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", version = "4.3" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version = "1.7.1" }
libxposed-api = { group = "io.github.libxposed", name = "api", version.ref = "libxposed" }
libxposed-interface = { group = "io.github.libxposed", name = "interface", version.ref = "libxposed" }

View File

@ -1,5 +1,3 @@
import java.net.URI
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
@ -15,25 +13,14 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
versionCatalogs {
create("libs") {
library("libxposed-api", "io.github.libxposed", "api").version {
branch = "master"
}
library("libxposed-interface", "io.github.libxposed", "interface").version {
branch = "master"
mavenLocal {
content {
includeGroup("io.github.libxposed")
}
}
}
}
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")
versionCatalogs {
create("libs")
}
}