forked from DerpFest-AOSP/packages_apps_GameSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (79 loc) · 2.29 KB
/
build.gradle
File metadata and controls
87 lines (79 loc) · 2.29 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
}
android {
compileSdk 31
defaultConfig {
applicationId "io.chaldeaprjkt.gamespace"
minSdk 31
targetSdk 31
versionCode 99
versionName "0.1-beta"
}
signingConfigs {
platform {
storeFile file("platform.jks")
storePassword 'android'
keyAlias 'platform'
keyPassword 'android'
}
}
buildTypes {
debug {
debuggable true
signingConfig signingConfigs.platform
}
release {
debuggable true
signingConfig signingConfigs.platform
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
lintOptions {
disable 'ContentDescription'
disable 'QueryAllPackagesPermission'
disable 'ProtectedPermissions'
disable 'OldTargetApi'
disable 'UseCompatLoadingForDrawables'
disable 'UnsafeProtectedBroadcastReceiver'
disable 'AppCompatCustomView'
}
}
def androidPath = "${rootDir}/../../../"
def frameworkClassesJar = "${androidPath}/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar"
dependencies {
kapt 'com.google.dagger:hilt-compiler:2.40.5'
compileOnly files(frameworkClassesJar)
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.dagger:hilt-android:2.40.5'
implementation project(path: ':SettingsLibParts')
}
kapt {
correctErrorTypes true
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs.add("-Xbootclasspath/p:$frameworkClassesJar")
}
}
}