Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 17 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ name: Deploy to Maven Central
on:
workflow_dispatch:
inputs:
confirm:
description: 'Type "yes" to confirm deployment to Maven Central'
required: true
default: ''
deploy_interface:
description: 'Deploy interface module'
type: boolean
default: true
deploy_service:
description: 'Deploy service module'
type: boolean
default: true
Comment thread
Dr-TSNG marked this conversation as resolved.

permissions:
contents: read

jobs:
deploy:
if: github.event.inputs.confirm == 'yes'
if: github.event.inputs.deploy_interface == 'true' || github.event.inputs.deploy_service == 'true'
runs-on: ubuntu-latest

steps:
Expand All @@ -35,7 +39,14 @@ jobs:
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
./gradlew publishInterfacePublicationToOssrhRepository publishServicePublicationToOssrhRepository
TASKS=""
if [[ "${{ github.event.inputs.deploy_interface }}" == "true" ]]; then
TASKS="$TASKS publishInterfacePublicationToOssrhRepository"
fi
if [[ "${{ github.event.inputs.deploy_service }}" == "true" ]]; then
TASKS="$TASKS publishServicePublicationToOssrhRepository"
fi
./gradlew $TASKS
./gradlew --stop
curl -X POST -H "Authorization: Bearer $(echo -n ${ORG_GRADLE_PROJECT_ossrhUsername}:${ORG_GRADLE_PROJECT_ossrhPassword} | base64)" https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.github.libxposed
env:
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Publish Sonatype Snapshot

on:
workflow_dispatch:
inputs:
deploy_interface:
description: 'Deploy interface module'
type: boolean
default: true
deploy_service:
description: 'Deploy service module'
type: boolean
default: true
Comment thread
Dr-TSNG marked this conversation as resolved.
dependency_snapshot:
description: 'Use snapshot annotation and lint dependencies'
type: boolean
default: false

permissions:
contents: read

jobs:
publish:
if: github.event.inputs.deploy_interface == 'true' || github.event.inputs.deploy_service == 'true'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0

- name: set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle

- name: Publish snapshot to Sonatype
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 'publishSnapshot=true' >> gradle.properties
echo 'dependencySnapshot=${{ github.event.inputs.dependency_snapshot }}' >> gradle.properties
TASKS=""
if [[ "${{ github.event.inputs.deploy_interface }}" == "true" ]]; then
TASKS="$TASKS publishInterfacePublicationToSnapshotsRepository"
fi
if [[ "${{ github.event.inputs.deploy_service }}" == "true" ]]; then
TASKS="$TASKS publishServicePublicationToSnapshotsRepository"
fi
./gradlew $TASKS
./gradlew --stop
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }}
ORG_GRADLE_PROJECT_snapshotsUsername: ${{ secrets.OSSRHUSERNAME }}
ORG_GRADLE_PROJECT_snapshotsPassword: ${{ secrets.OSSRHPASSWORD }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# libxposed Service

[![API](https://img.shields.io/badge/API-101-brightgreen)](https://github.com/libxposed/api)
[![API](https://img.shields.io/badge/API-102-brightgreen)](https://github.com/libxposed/api)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.libxposed/service?color=blue)](https://central.sonatype.com/artifact/io.github.libxposed/service)
[![Android Min SDK](https://img.shields.io/badge/minSdk-26-orange)](https://developer.android.com/about/versions/oreo)
[![License](https://img.shields.io/github/license/libxposed/service)](LICENSE)
Expand All @@ -13,15 +13,15 @@ Modern Xposed Service — communication interface between Xposed framework and m

```kotlin
dependencies {
implementation("io.github.libxposed:service:101.0.0")
implementation("io.github.libxposed:service:102.0.0")
}
```

### For Framework Developers

```kotlin
dependencies {
implementation("io.github.libxposed:interface:101.0.0")
implementation("io.github.libxposed:interface:102.0.0")
}
```

Expand Down
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
val dependencySnapshot = providers.gradleProperty("dependencySnapshot").orNull == "true"

allprojects {
configurations.configureEach {
if (dependencySnapshot) {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}

}
}

tasks.register("Delete", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
9 changes: 5 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[versions]
annotation = "1.9.1"
agp = "9.1.0"
dokka = "2.1.0"
agp = "9.2.1"
dokka = "2.2.0"
libxposed-annotation = "1.0.0"
libxposed-lint = "1.0.0"

[plugins]
agp-lib = { id = "com.android.library", version.ref = "agp" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
dokka-javadoc = { id = "org.jetbrains.dokka-javadoc", version.ref = "dokka" }

[libraries]
annotation = { module = "androidx.annotation:annotation", version.ref = "annotation" }
androidx-annotation = { module = "androidx.annotation:annotation", version = "1.10.0" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
15 changes: 7 additions & 8 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading