Update Android Studio

This commit is contained in:
topjohnwu 2022-05-09 20:53:47 -07:00
parent 4eb9240806
commit 24603b3cef
10 changed files with 16 additions and 12 deletions

View File

@ -19,6 +19,8 @@ kapt {
}
android {
namespace = "com.topjohnwu.magisk"
defaultConfig {
applicationId = "com.topjohnwu.magisk"
vectorDrawables.useSupportLibrary = true
@ -123,5 +125,5 @@ dependencies {
implementation("androidx.transition:transition:1.4.1")
implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.core:core-splashscreen:1.0.0-beta02")
implementation("com.google.android.material:material:1.5.0")
implementation("com.google.android.material:material:1.6.0")
}

View File

@ -5,6 +5,7 @@ plugins {
setupCommon()
android {
namespace = "com.topjohnwu.shared"
defaultConfig {
consumerProguardFiles("proguard-rules.pro")
}

View File

@ -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="com.topjohnwu.magisk">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />

View File

@ -25,7 +25,7 @@ tasks.withType<KotlinCompile> {
dependencies {
implementation(kotlin("gradle-plugin", "1.6.21"))
implementation("com.android.tools.build:gradle:7.1.3")
implementation("com.android.tools.build:gradle:7.2.0")
implementation("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0-beta01")
implementation("io.michaelrocks:paranoid-gradle-plugin:0.3.7")
implementation("org.eclipse.jgit:org.eclipse.jgit:6.1.0.202203080745-r")

View File

@ -27,13 +27,13 @@ private val Project.android: BaseAppModuleExtension
fun Project.setupCommon() {
androidBase {
compileSdkVersion(31)
buildToolsVersion = "31.0.0"
compileSdkVersion(32)
buildToolsVersion = "32.0.0"
ndkPath = "$sdkDirectory/ndk/magisk"
defaultConfig {
minSdk = 21
targetSdk = 31
targetSdk = 32
}
compileOptions {

View File

@ -5,6 +5,8 @@ plugins {
setupCommon()
android {
namespace = "com.topjohnwu.magisk.native"
externalNativeBuild {
ndkBuild {
path("jni/Android.mk")

View File

@ -1 +1 @@
<manifest package="com.topjohnwu.magisk.binary" />
<manifest/>

View File

@ -9,6 +9,8 @@ paranoid {
}
android {
namespace = "com.topjohnwu.magisk"
val canary = !Config.version.contains(".")
val url = if (canary) null

View File

@ -1,2 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.topjohnwu.magisk" />
<manifest/>

View File

@ -1,8 +1,7 @@
<?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="com.topjohnwu.magisk">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />