build: use binary compatibility validator

This prevents releasing breaking changes accidentally.
This commit is contained in:
oSumAtrIX 2023-08-29 03:47:01 +02:00
parent 93b29d2e83
commit 26b70554c4
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
3 changed files with 6 additions and 3 deletions

View file

@ -36,7 +36,7 @@ jobs:
- name: Build with Gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew clean --no-daemon
run: ./gradlew build clean --no-daemon
- name: Setup semantic-release
run: npm install
- name: Release

View file

@ -1,6 +1,7 @@
plugins {
kotlin("jvm") version "1.8.20"
`maven-publish`
alias(libs.plugins.binary.compatibility.validator)
}
group = "app.revanced"

View file

@ -5,10 +5,9 @@ apktool-lib = "2.8.2-6"
kotlin-test = "1.8.20-RC"
kotlinx-coroutines-core = "1.7.1"
multidexlib2 = "3.0.3.r2"
shadow = "8.1.1"
smali = "3.0.3"
xpp3 = "1.1.4c"
binary-compatibility-validator = "0.13.2"
[libraries]
android = { module = "com.google.android:android", version.ref = "android" }
@ -19,3 +18,6 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c
multidexlib2 = { module = "app.revanced:multidexlib2", version.ref = "multidexlib2" }
smali = { module = "com.android.tools.smali:smali", version.ref = "smali" }
xpp3 = { module = "xpp3:xpp3", version.ref = "xpp3" }
[plugins]
binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binary-compatibility-validator" }