Update core to 1.8.6 (#168)
With - update AGP to 7.4.0 - update Android Build Tools to 33.0.1
This commit is contained in:
parent
e62da55614
commit
0964a8eece
|
|
@ -3,6 +3,7 @@ import com.android.build.api.variant.ApplicationAndroidComponentsExtension
|
|||
import com.android.build.gradle.BaseExtension
|
||||
import org.eclipse.jgit.api.Git
|
||||
import org.eclipse.jgit.internal.storage.file.FileRepository
|
||||
import org.eclipse.jgit.storage.file.FileRepositoryBuilder
|
||||
|
||||
plugins {
|
||||
id("com.android.application") apply false
|
||||
|
|
@ -26,28 +27,33 @@ val commitCount = run {
|
|||
Git(repo).log().add(refId).call().count()
|
||||
}
|
||||
|
||||
val coreCommitCount = run {
|
||||
val repo = FileRepository(rootProject.file(".git/modules/core"))
|
||||
val refId = repo.refDatabase.exactRef("HEAD").objectId!!
|
||||
Git(repo).log().add(refId).call().count()
|
||||
}
|
||||
val (coreCommitCount, coreLatestTag) = FileRepositoryBuilder().setGitDir(rootProject.file(".git/modules/core"))
|
||||
.runCatching {
|
||||
build().use { repo ->
|
||||
val git = Git(repo)
|
||||
val coreCommitCount =
|
||||
git.log()
|
||||
.add(repo.refDatabase.exactRef("refs/remotes/origin/master").objectId)
|
||||
.call().count() + 4200
|
||||
val ver = git.describe()
|
||||
.setTags(true)
|
||||
.setAbbrev(0).call().removePrefix("v")
|
||||
coreCommitCount to ver
|
||||
}
|
||||
}.getOrNull() ?: (1 to "1.0")
|
||||
|
||||
// sync from https://github.com/LSPosed/LSPosed/blob/master/build.gradle.kts
|
||||
val defaultManagerPackageName by extra("org.lsposed.lspatch")
|
||||
val apiCode by extra(93)
|
||||
val verCode by extra(commitCount)
|
||||
val verName by extra("0.5.1")
|
||||
val coreVerCode by extra(coreCommitCount + 4200)
|
||||
val coreVerName by extra(
|
||||
file("$rootDir/core/build.gradle.kts").readLines()
|
||||
.find { it.startsWith("val verName by extra") }!!
|
||||
.split('"')[1]
|
||||
)
|
||||
val coreVerCode by extra(coreCommitCount)
|
||||
val coreVerName by extra(coreLatestTag)
|
||||
val androidMinSdkVersion by extra(28)
|
||||
val androidTargetSdkVersion by extra(33)
|
||||
val androidCompileSdkVersion by extra(33)
|
||||
val androidCompileNdkVersion by extra("25.1.8937393")
|
||||
val androidBuildToolsVersion by extra("32.0.0")
|
||||
val androidBuildToolsVersion by extra("33.0.1")
|
||||
val androidSourceCompatibility by extra(JavaVersion.VERSION_11)
|
||||
val androidTargetCompatibility by extra(JavaVersion.VERSION_11)
|
||||
|
||||
|
|
|
|||
2
core
2
core
|
|
@ -1 +1 @@
|
|||
Subproject commit 8f3684a9cb1874f961ec7729ffd2f81d62fb16c7
|
||||
Subproject commit 5666dca1e3b83e9b664bfcd096370b1a7da6eff1
|
||||
|
|
@ -5,4 +5,4 @@ android.nonTransitiveRClass=true
|
|||
android.enableR8.fullMode=true
|
||||
android.useAndroidX=true
|
||||
|
||||
agpVersion=7.3.1
|
||||
agpVersion=7.4.0
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ android {
|
|||
}
|
||||
|
||||
sourceSets["main"].assets.srcDirs(rootProject.projectDir.resolve("out/assets"))
|
||||
namespace = "org.lsposed.lspatch"
|
||||
|
||||
applicationVariants.all {
|
||||
kotlin.sourceSets {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="org.lsposed.lspatch">
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission
|
||||
android:name="android.permission.QUERY_ALL_PACKAGES"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ android {
|
|||
proguardFiles("proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
namespace = "org.lsposed.lspatch.metaloader"
|
||||
}
|
||||
|
||||
androidComponents.onVariants { variant ->
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="org.lsposed.lspatch.metaloader" />
|
||||
<manifest />
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ android {
|
|||
path("src/main/jni/CMakeLists.txt")
|
||||
}
|
||||
}
|
||||
namespace = "org.lsposed.lspatch.loader"
|
||||
}
|
||||
|
||||
androidComponents.onVariants { variant ->
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="org.lsposed.lspatch.loader" />
|
||||
<manifest />
|
||||
|
|
|
|||
Loading…
Reference in New Issue