mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
build: add 'dev' build type
Release-like build type, minus ProGuard
This commit is contained in:
@@ -29,6 +29,7 @@ import com.itsaky.androidide.plugins.util.SdkUtils.getAndroidJar
|
||||
import isFDroidBuild
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.artifacts.Dependency
|
||||
import org.gradle.kotlin.dsl.register
|
||||
import projectVersionCode
|
||||
|
||||
/**
|
||||
@@ -170,6 +171,16 @@ fun Project.configureAndroidModule(
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
|
||||
// development build type
|
||||
// similar to 'release', but disables proguard/r8
|
||||
// this build type can be used to gain release-like performance at runtime
|
||||
// the build are faster for this build type as compared to 'release'
|
||||
buildTypes.register("dev") {
|
||||
initWith(buildTypes.getByName("release"))
|
||||
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
|
||||
testOptions { unitTests.isIncludeAndroidResources = true }
|
||||
|
||||
buildFeatures.viewBinding = true
|
||||
|
||||
Reference in New Issue
Block a user