Skip to content

Commit

Permalink
build!: bump target sdk version to 35
Browse files Browse the repository at this point in the history
  • Loading branch information
aistra0528 committed Sep 9, 2024
1 parent f236aac commit 288cfc3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
36 changes: 18 additions & 18 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ plugins {

android {
namespace = "com.aistra.hail"
buildToolsVersion = "34.0.0"
compileSdk = 34
buildToolsVersion = "35.0.0"
compileSdk = 35

defaultConfig {
applicationId = "com.aistra.hail"
minSdk = 23
targetSdk = 34
versionCode = 32
versionName = "1.8.1"
targetSdk = 35
versionCode = 33
versionName = "1.9.0"
}

// Do not compress the dex files, so the apk can be imported as a privileged app
Expand Down Expand Up @@ -50,11 +50,11 @@ android {
}
}
compileOptions {
sourceCompatibility(JavaVersion.VERSION_11)
targetCompatibility(JavaVersion.VERSION_11)
sourceCompatibility(JavaVersion.VERSION_17)
targetCompatibility(JavaVersion.VERSION_17)
}
kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}
androidResources {
generateLocaleConfig = true
Expand All @@ -70,25 +70,25 @@ android {
}

dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.appcompat:appcompat:1.7.0")
implementation("androidx.biometric:biometric-ktx:1.2.0-alpha05")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.7.0")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
implementation("androidx.navigation:navigation-ui-ktx:2.7.7")
implementation("androidx.core:core-ktx:1.13.1")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.8.5")
implementation("androidx.navigation:navigation-fragment-ktx:2.8.0")
implementation("androidx.navigation:navigation-ui-ktx:2.8.0")
implementation("androidx.preference:preference-ktx:1.2.1")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
implementation("androidx.work:work-runtime-ktx:2.9.0")
implementation("androidx.work:work-runtime-ktx:2.9.1")
implementation("com.belerweb:pinyin4j:2.5.1")
implementation("com.google.android.material:material:1.11.0")
implementation("com.google.android.material:material:1.12.0")
implementation("dev.chrisbanes.insetter:insetter:0.6.1")
implementation("dev.rikka.rikkax.preference:simplemenu-preference:1.0.3")
implementation("dev.rikka.shizuku:api:13.1.5")
implementation("dev.rikka.shizuku:provider:13.1.5")
implementation("io.github.iamr0s:Dhizuku-API:2.4")
implementation("io.github.iamr0s:Dhizuku-API:2.5.3")
implementation("me.zhanghai.android.appiconloader:appiconloader:1.5.0")
implementation("org.apache.commons:commons-text:1.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
implementation("org.apache.commons:commons-text:1.12.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import com.aistra.hail.HailApp.Companion.app
* The name of the file when exported to sd card, in the format `AppName-VersionName-VersionNumber.apk`.
* */
val PackageInfo.exportFileName
get() = "${applicationInfo.loadLabel(app.packageManager)}-$versionName-${
get() = "${applicationInfo?.loadLabel(app.packageManager) ?: packageName}-$versionName-${
PackageInfoCompat.getLongVersionCode(this)
}.apk"
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/aistra/hail/utils/HDhizuku.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ object HDhizuku {
if (HTarget.P) HiddenApiBypass.setHiddenApiExemptions("")
val mPackageName = installer::class.java.getDeclaredField("mInstallerPackageName")
mPackageName.isAccessible = true
if (mPackageName.get(installer) != DhizukuVariables.PACKAGE_NAME) {
mPackageName.set(installer, DhizukuVariables.PACKAGE_NAME)
if (mPackageName.get(installer) != DhizukuVariables.OFFICIAL_PACKAGE_NAME) {
mPackageName.set(installer, DhizukuVariables.OFFICIAL_PACKAGE_NAME)
val mInstaller = installer::class.java.getDeclaredField("mInstaller")
mInstaller.isAccessible = true
val origin = mInstaller.get(installer)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.2.0" apply false
id("com.android.application") version "8.5.2" apply false
kotlin("android") version "2.0.0" apply false
}

0 comments on commit 288cfc3

Please sign in to comment.