Fix compile error

This commit is contained in:
solohsu 2019-04-20 14:31:47 +08:00
parent 55ad3f5d7a
commit a48229960f
5 changed files with 6 additions and 13 deletions

View File

@ -20,7 +20,7 @@ android {
} }
dependencies { dependencies {
compileOnly files("${hiddenApiStubJarFilePath}") compileOnly project(':hiddenapi-stubs')
implementation project(':xposed-bridge') implementation project(':xposed-bridge')
compileOnly project(':dexmaker') compileOnly project(':dexmaker')
} }

View File

@ -1,2 +1 @@
/build /build
/libs

View File

@ -4,12 +4,6 @@ apply plugin: 'com.android.library'
android { android {
compileSdkVersion 28 compileSdkVersion 28
// Only build the release variant
variantFilter { variant ->
if (variant.buildType.name != BuilderConstants.RELEASE) {
variant.ignore = true
}
}
} }
task makeStubJar(type: Jar){ task makeStubJar(type: Jar){
@ -21,8 +15,8 @@ task makeStubJar(type: Jar){
exclude{ it.name.startsWith('R$')} exclude{ it.name.startsWith('R$')}
} }
makeStubJar.dependsOn(build)
afterEvaluate { afterEvaluate {
makeStubJar tasks.withType(JavaCompile) {
it.finalizedBy(makeStubJar)
}
} }

Binary file not shown.

View File

@ -39,7 +39,7 @@ preBuild.doLast {
} }
dependencies { dependencies {
compileOnly files("${hiddenApiStubJarFilePath}") compileOnly project(':hiddenapi-stubs')
compileOnly project(':dexmaker') compileOnly project(':dexmaker')
} }