Update AGP (#1941)

This commit is contained in:
LoveSy 2022-05-15 14:08:08 +08:00 committed by GitHub
parent b392f331c8
commit e3b96ebb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 33 deletions

View File

@ -90,6 +90,7 @@ android {
} }
} }
} }
namespace = "org.lsposed.manager"
} }
autoResConfig { autoResConfig {

View File

@ -20,8 +20,7 @@
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools">
package="org.lsposed.manager">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />

View File

@ -82,6 +82,7 @@ android {
} }
} }
} }
namespace = "org.lsposed.daemon"
} }
fun afterEval() = android.applicationVariants.forEach { variant -> fun afterEval() = android.applicationVariants.forEach { variant ->

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest package="org.lsposed.daemon" /> <manifest />

View File

@ -18,5 +18,5 @@ android.nonTransitiveRClass=true
android.enableR8.fullMode=true android.enableR8.fullMode=true
android.useAndroidX=true android.useAndroidX=true
agpVersion=7.1.3 agpVersion=7.2.0
navVersion=2.5.0-alpha04 navVersion=2.5.0-alpha04

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ This file is part of LSPosed.
~
~ LSPosed is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ LSPosed is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2021 LSPosed Contributors
-->
<manifest package="org.lsposed.lspd.hiddenapistubs" />

View File

@ -108,6 +108,7 @@ android {
} }
} }
} }
namespace = "org.lsposed.lspd"
} }
dependencies { dependencies {
@ -123,9 +124,6 @@ val zipAll = task("zipAll") {
} }
val apkDir: String
get() = if (rootProject.extra.properties["android.injected.invoked.from.ide"] == "true") "intermediates" else "outputs"
fun afterEval() = android.applicationVariants.forEach { variant -> fun afterEval() = android.applicationVariants.forEach { variant ->
val variantCapped = variant.name.capitalize(Locale.ROOT) val variantCapped = variant.name.capitalize(Locale.ROOT)
val variantLowered = variant.name.toLowerCase(Locale.ROOT) val variantLowered = variant.name.toLowerCase(Locale.ROOT)
@ -269,7 +267,7 @@ val killLspd = task<Exec>("killLspd") {
} }
val pushDaemon = task<Exec>("pushDaemon") { val pushDaemon = task<Exec>("pushDaemon") {
dependsOn(":daemon:assembleDebug") dependsOn(":daemon:assembleDebug")
workingDir("${project(":daemon").buildDir}/$apkDir/apk/debug") workingDir("${project(":daemon").buildDir}/outputs/apk/debug")
commandLine(adb, "push", "daemon-debug.apk", "/data/local/tmp/daemon.apk") commandLine(adb, "push", "daemon-debug.apk", "/data/local/tmp/daemon.apk")
} }
val pushDaemonNative = task<Exec>("pushDaemonNative") { val pushDaemonNative = task<Exec>("pushDaemonNative") {
@ -302,7 +300,7 @@ val reRunDaemon = task<Exec>("reRunDaemon") {
val tmpApk = "/data/local/tmp/lsp.apk" val tmpApk = "/data/local/tmp/lsp.apk"
val pushApk = task<Exec>("pushApk") { val pushApk = task<Exec>("pushApk") {
dependsOn(":app:assembleDebug") dependsOn(":app:assembleDebug")
workingDir("${project(":app").buildDir}/$apkDir/apk/debug") workingDir("${project(":app").buildDir}/outputs/apk/debug")
commandLine(adb, "push", "app-debug.apk", tmpApk) commandLine(adb, "push", "app-debug.apk", tmpApk)
} }
val openApp = task<Exec>("openApp") { val openApp = task<Exec>("openApp") {

View File

@ -17,4 +17,4 @@
~ Copyright (C) 2022 LSPosed Contributors ~ Copyright (C) 2022 LSPosed Contributors
--> -->
<manifest package="org.lsposed.lspd" /> <manifest />

View File

@ -34,6 +34,7 @@ android {
aidlPackagedList += "org/lsposed/lspd/models/Module.aidl" aidlPackagedList += "org/lsposed/lspd/models/Module.aidl"
aidlPackagedList += "org/lsposed/lspd/models/PreloadedApk.aidl" aidlPackagedList += "org/lsposed/lspd/models/PreloadedApk.aidl"
namespace = "org.lsposed.lspd.daemonservice"
} }
dependencies { dependencies {

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest package="org.lsposed.lspd.daemonservice" /> <manifest />

View File

@ -31,6 +31,7 @@ android {
isMinifyEnabled = false isMinifyEnabled = false
} }
} }
namespace = "org.lsposed.lspd.managerservice"
} }
dependencies { dependencies {

View File

@ -18,4 +18,4 @@
~ Copyright (C) 2021 LSPosed Contributors ~ Copyright (C) 2021 LSPosed Contributors
--> -->
<manifest package="org.lsposed.lspd.managerservice" /> <manifest />