mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 13:34:25 +02:00
105 lines
2.9 KiB
Plaintext
105 lines
2.9 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
|
id("dev.flutter.flutter-gradle-plugin")
|
|
}
|
|
|
|
android {
|
|
namespace = "app.revanced.manager.flutter"
|
|
compileSdk = 35
|
|
|
|
compileOptions {
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "app.revanced.manager.flutter"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
|
|
resValue("string", "app_name", "ReVanced Manager")
|
|
}
|
|
|
|
applicationVariants.all {
|
|
outputs.all {
|
|
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl
|
|
|
|
outputFileName = "revanced-manager-$versionName.apk"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
configureEach {
|
|
isShrinkResources = false
|
|
isMinifyEnabled = false
|
|
|
|
signingConfig = signingConfigs["debug"]
|
|
|
|
ndk.abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86_64")
|
|
}
|
|
|
|
release {
|
|
isShrinkResources = true
|
|
isMinifyEnabled = true
|
|
|
|
val keystoreFile = file("keystore.jks")
|
|
if (keystoreFile.exists()) {
|
|
signingConfig = signingConfigs.create("release") {
|
|
storeFile = keystoreFile
|
|
storePassword = System.getenv("KEYSTORE_PASSWORD")
|
|
keyAlias = System.getenv("KEYSTORE_ENTRY_ALIAS")
|
|
keyPassword = System.getenv("KEYSTORE_ENTRY_PASSWORD")
|
|
}
|
|
|
|
resValue("string", "app_name", "ReVanced Manager")
|
|
} else {
|
|
applicationIdSuffix = ".development"
|
|
resValue("string", "app_name", "ReVanced Manager (Development)")
|
|
signingConfig = signingConfigs["debug"]
|
|
}
|
|
}
|
|
|
|
debug {
|
|
applicationIdSuffix = ".debug"
|
|
resValue("string", "app_name", "ReVanced Manager (Debug)")
|
|
}
|
|
|
|
named("profile") {
|
|
initWith(getByName("debug"))
|
|
applicationIdSuffix = ".profile"
|
|
resValue("string", "app_name", "ReVanced Manager (Profile)")
|
|
}
|
|
}
|
|
|
|
packaging {
|
|
jniLibs {
|
|
useLegacyPackaging = true
|
|
excludes.add("/prebuilt/**")
|
|
}
|
|
|
|
resources {
|
|
excludes.add("/prebuilt/**")
|
|
}
|
|
}
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|
|
|
|
dependencies {
|
|
coreLibraryDesugaring(libs.desugar.jdk.libs) // https://pub.dev/packages/flutter_local_notifications#gradle-setup
|
|
implementation(libs.revanced.patcher)
|
|
implementation(libs.revanced.library)
|
|
}
|