Always use latest hiddenapi-stub jar built from sources
This commit is contained in:
parent
162338f69b
commit
c13ae31b4c
|
|
@ -24,6 +24,7 @@ allprojects {
|
||||||
templateLibPath = templateRootPath + "/system/lib/"
|
templateLibPath = templateRootPath + "/system/lib/"
|
||||||
templateLib64Path = templateRootPath + "/system/lib64/"
|
templateLib64Path = templateRootPath + "/system/lib64/"
|
||||||
templateEtcPath = templateRootPath + "/system/etc/"
|
templateEtcPath = templateRootPath + "/system/etc/"
|
||||||
|
hiddenApiStubJarFilePath = project(":hiddenapi-stubs").projectDir.absolutePath + "/libs/framework-stub.jar"
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("${hiddenApiStubJarFilePath}")
|
||||||
implementation project(':xposed-bridge')
|
implementation project(':xposed-bridge')
|
||||||
compileOnly project(':dexmaker')
|
compileOnly project(':dexmaker')
|
||||||
}
|
}
|
||||||
|
|
@ -43,10 +43,10 @@ preBuild.doLast {
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.add("-Xbootclasspath/p:${projectDir.absolutePath}/libs/framework-stub.jar")
|
options.compilerArgs.add("-Xbootclasspath/p:${hiddenApiStubJarFilePath}")
|
||||||
}
|
}
|
||||||
|
|
||||||
task("copyCommonroperties", type: Copy) {
|
task("copyCommonProperties", type: Copy) {
|
||||||
from file("${projectDir}/template_override/")
|
from file("${projectDir}/template_override/")
|
||||||
into file(templateRootPath)
|
into file(templateRootPath)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -21,7 +21,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("${hiddenApiStubJarFilePath}")
|
||||||
implementation project(':edxp-common')
|
implementation project(':edxp-common')
|
||||||
implementation project(':xposed-bridge')
|
implementation project(':xposed-bridge')
|
||||||
implementation 'com.swift.sandhook:hooklib:3.5.6'
|
implementation 'com.swift.sandhook:hooklib:3.5.6'
|
||||||
|
|
@ -46,7 +46,7 @@ preBuild.doLast {
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.add("-Xbootclasspath/p:${projectDir.absolutePath}/libs/framework-stub.jar")
|
options.compilerArgs.add("-Xbootclasspath/p:${hiddenApiStubJarFilePath}")
|
||||||
}
|
}
|
||||||
|
|
||||||
android.applicationVariants.all { variant ->
|
android.applicationVariants.all { variant ->
|
||||||
|
|
@ -57,7 +57,7 @@ afterEvaluate {
|
||||||
def myTemplatePath = "${projectDir}/template_override/"
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonroperties")
|
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(myTemplatePath + "system/framework/")
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -21,7 +21,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("${hiddenApiStubJarFilePath}")
|
||||||
implementation project(':edxp-common')
|
implementation project(':edxp-common')
|
||||||
implementation project(':xposed-bridge')
|
implementation project(':xposed-bridge')
|
||||||
}
|
}
|
||||||
|
|
@ -44,7 +44,7 @@ preBuild.doLast {
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.add("-Xbootclasspath/p:${projectDir.absolutePath}/libs/framework-stub.jar")
|
options.compilerArgs.add("-Xbootclasspath/p:${hiddenApiStubJarFilePath}")
|
||||||
}
|
}
|
||||||
|
|
||||||
android.applicationVariants.all { variant ->
|
android.applicationVariants.all { variant ->
|
||||||
|
|
@ -55,7 +55,7 @@ afterEvaluate {
|
||||||
def myTemplatePath = "${projectDir}/template_override/"
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonroperties")
|
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(myTemplatePath + "system/framework/")
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -21,7 +21,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("${hiddenApiStubJarFilePath}")
|
||||||
implementation project(':edxp-common')
|
implementation project(':edxp-common')
|
||||||
implementation project(':xposed-bridge')
|
implementation project(':xposed-bridge')
|
||||||
compileOnly project(':dexmaker')
|
compileOnly project(':dexmaker')
|
||||||
|
|
@ -45,7 +45,7 @@ preBuild.doLast {
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.add("-Xbootclasspath/p:${projectDir.absolutePath}/libs/framework-stub.jar")
|
options.compilerArgs.add("-Xbootclasspath/p:${hiddenApiStubJarFilePath}")
|
||||||
}
|
}
|
||||||
|
|
||||||
android.applicationVariants.all { variant ->
|
android.applicationVariants.all { variant ->
|
||||||
|
|
@ -56,7 +56,7 @@ afterEvaluate {
|
||||||
def myTemplatePath = "${projectDir}/template_override/"
|
def myTemplatePath = "${projectDir}/template_override/"
|
||||||
|
|
||||||
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
task("makeAndCopy${variantNameCapped}", type: Jar, dependsOn: "assemble${variantNameCapped}") {
|
||||||
dependsOn tasks.getByPath(":edxp-common:copyCommonroperties")
|
dependsOn tasks.getByPath(":edxp-common:copyCommonProperties")
|
||||||
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
from "${buildDir}/intermediates/dex/${variantNameLowered}/mergeDex${variantNameCapped}/out/"
|
||||||
destinationDir file(myTemplatePath + "system/framework/")
|
destinationDir file(myTemplatePath + "system/framework/")
|
||||||
baseName "edxp"
|
baseName "edxp"
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1,2 @@
|
||||||
/build
|
/build
|
||||||
|
/libs
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,15 @@ android {
|
||||||
|
|
||||||
task makeStubJar(type: Jar){
|
task makeStubJar(type: Jar){
|
||||||
baseName 'framework-stub'
|
baseName 'framework-stub'
|
||||||
from('build/intermediates/javac/release/compileReleaseJavaWithJavac/classes/')
|
from("${projectDir}/build/intermediates/javac/release/compileReleaseJavaWithJavac/classes/")
|
||||||
into('')
|
into('')
|
||||||
|
destinationDir file("${projectDir}/libs")
|
||||||
exclude('BuildConfig.class', 'R.class')
|
exclude('BuildConfig.class', 'R.class')
|
||||||
exclude{ it.name.startsWith('R$')}
|
exclude{ it.name.startsWith('R$')}
|
||||||
}
|
}
|
||||||
|
|
||||||
makeStubJar.dependsOn(build)
|
makeStubJar.dependsOn(build)
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
makeStubJar
|
||||||
|
}
|
||||||
|
|
@ -40,14 +40,14 @@ preBuild.doLast {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly files("libs/framework-stub.jar")
|
compileOnly files("${hiddenApiStubJarFilePath}")
|
||||||
compileOnly project(':dexmaker')
|
compileOnly project(':dexmaker')
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.add("-Xbootclasspath/p:${projectDir.absolutePath}/libs/framework-stub.jar")
|
options.compilerArgs.add("-Xbootclasspath/p:${hiddenApiStubJarFilePath}")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Binary file not shown.
Loading…
Reference in New Issue