-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
98 lines (84 loc) · 2.51 KB
/
build.gradle
File metadata and controls
98 lines (84 loc) · 2.51 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
88
89
90
91
92
93
94
95
96
97
98
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.9.0'
}
}
allprojects {
repositories {
google() // and here
mavenCentral()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
}
apply plugin: 'com.android.application'
// Load local.properties file for the sake of signing secrets stored there.
Properties properties = new Properties()
properties.load(project.file('local.properties').newDataInputStream())
android {
compileSdkVersion 35
namespace 'io.github.poretsky.tuningfork'
defaultConfig {
applicationId "io.github.poretsky.tuningfork"
minSdkVersion 23
targetSdkVersion 35
versionCode 103
versionName "1.0.3"
}
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
signingConfigs {
release {
// The actual data are taken from the local.properties file.
keyAlias properties.getProperty('key.alias')
keyPassword properties.getProperty('key.alias.password')
storeFile file(properties.getProperty('key.store'))
storePassword properties.getProperty('key.store.password')
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
signingConfig signingConfigs.release
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = outputFileName.replace("release", defaultConfig.versionName)
}
}
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
configurations.all {
resolutionStrategy {
eachDependency {
if ((requested.group == "org.jetbrains.kotlin") && (requested.name.startsWith("kotlin-stdlib"))) {
useVersion("1.9.0")
}
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.core:core:1.15.0'
implementation 'androidx.fragment:fragment:1.8.6'
}