101 lines
2.9 KiB
Groovy
101 lines
2.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
namespace 'me.weishu.kernelsu'
|
|
compileSdk 33
|
|
|
|
signingConfigs {
|
|
sign
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "me.weishu.kernelsu"
|
|
minSdk 26
|
|
targetSdk 32
|
|
versionCode 10013
|
|
versionName "0.1.3"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags ''
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.sign
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.1.1'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path file('src/main/cpp/CMakeLists.txt')
|
|
version '3.18.1'
|
|
}
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
def versionName = variant.versionName
|
|
def buildType = variant.buildType.name
|
|
outputFileName = "KernelSU_${versionName}-${buildType}.apk"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
|
|
implementation 'androidx.activity:activity-compose:1.6.1'
|
|
implementation "androidx.compose.ui:ui:$compose_ui_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
|
|
|
|
implementation "androidx.compose.material3:material3:1.0.1"
|
|
implementation "androidx.compose.material3:material3-window-size-class:1.0.1"
|
|
|
|
def nav_version = "2.5.3"
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|
|
|
implementation "com.google.accompanist:accompanist-drawablepainter:0.28.0"
|
|
implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1"
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
|
|
}
|
|
|
|
apply from: rootProject.file('sign.gradle') |