forked from RikkaApps/Shizuku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (62 loc) · 1.82 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
buildscript {
apply from: 'api/manifest.gradle'
ext.kotlinVersion = '1.8.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.jvm' version '1.8.0' apply false
id 'dev.rikka.tools.autoresconfig' version '1.2.1' apply false
id 'dev.rikka.tools.materialthemebuilder' version '1.3.3' apply false
alias libs.plugins.refine apply false
}
apply plugin: 'idea'
idea.module {
excludeDirs += file('out')
}
allprojects {
tasks.withType(Javadoc).tap {
configureEach {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
subprojects {
plugins.withId("com.android.base") {
plugins.apply('dev.rikka.tools.refine')
android {
compileSdk = 33
defaultConfig {
minSdk = 23
targetSdk = 33
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
buildFeatures {
aidl true
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
def gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def baseVersionName = "${api_version_major}.5.4"
ext {
minSdkVersion = 23
targetSdkVersion = 33
versionCode = gitCommitCount
versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
}