Fix gradle errors

This commit is contained in:
kotori0 2020-12-11 14:27:47 +08:00
parent 35bdae390b
commit de1dd6cdcf
7 changed files with 16 additions and 18 deletions

View File

@ -4,8 +4,8 @@ android {
compileSdkVersion androidCompileSdkVersion.toInteger() compileSdkVersion androidCompileSdkVersion.toInteger()
defaultConfig { defaultConfig {
minSdkVersion minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
} }

View File

@ -60,8 +60,8 @@ dependencies {
android { android {
compileSdkVersion androidCompileSdkVersion.toInteger() compileSdkVersion androidCompileSdkVersion.toInteger()
defaultConfig { defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
buildFeatures { buildFeatures {
prefab true prefab true

View File

@ -8,8 +8,8 @@ android {
defaultConfig { defaultConfig {
applicationId "com.elderdrivers.riru.edxp.sandhook" applicationId "com.elderdrivers.riru.edxp.sandhook"
minSdkVersion minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
multiDexEnabled false multiDexEnabled false

View File

@ -8,8 +8,8 @@ android {
defaultConfig { defaultConfig {
applicationId "com.elderdrivers.riru.edxp.yahfa" applicationId "com.elderdrivers.riru.edxp.yahfa"
minSdkVersion minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
multiDexEnabled false multiDexEnabled false

View File

@ -8,8 +8,8 @@ android {
defaultConfig { defaultConfig {
applicationId "com.elderdrivers.riru.edxp.yahfa" applicationId "com.elderdrivers.riru.edxp.yahfa"
minSdkVersion minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
multiDexEnabled false multiDexEnabled false

View File

@ -1,6 +1,6 @@
androidCompileSdkVersion=30 androidCompileSdkVersion=30
androidMinSdkVersion=26
androidTargetSdkVersion=30
androidCompileNdkVersion=22.0.6917172 androidCompileNdkVersion=22.0.6917172
android.prefabVersion=1.1.2 android.prefabVersion=1.1.2
apiCode=93 apiCode=93
minSdkVersion=26
targetSdkVersion=30

View File

@ -1,11 +1,11 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
android { android {
compileSdkVersion targetSdkVersion compileSdkVersion androidCompileSdkVersion.toInteger()
defaultConfig { defaultConfig {
minSdkVersion minSdkVersion minSdkVersion androidMinSdkVersion.toInteger()
targetSdkVersion targetSdkVersion targetSdkVersion androidTargetSdkVersion.toInteger()
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
@ -47,14 +47,12 @@ afterEvaluate {
task("copySandHook${variantNameCapped}LibraryToMagiskTemplate") { task("copySandHook${variantNameCapped}LibraryToMagiskTemplate") {
def libPathRelease = "${buildDir}/intermediates/cmake/${variantNameLowered}/obj" def libPathRelease = "${buildDir}/intermediates/cmake/${variantNameLowered}/obj"
doLast { doLast {
project.logger.lifecycle(libPathRelease)
copy { copy {
include "libsandhook.edxp.so" include "libsandhook.edxp.so"
from "${libPathRelease}/armeabi-v7a" from "${libPathRelease}/armeabi-v7a"
into "${zipPathMagiskReleasePath}/system/lib" into "${zipPathMagiskReleasePath}/system/lib"
} }
copy { copy {
project.logger.lifecycle(zipPathMagiskReleasePath)
include "libsandhook.edxp.so" include "libsandhook.edxp.so"
from "${libPathRelease}/arm64-v8a" from "${libPathRelease}/arm64-v8a"
into "${zipPathMagiskReleasePath}/system/lib64" into "${zipPathMagiskReleasePath}/system/lib64"