forked from tckmn/semitone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (79 loc) · 2.09 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.0'
}
}
apply plugin: 'com.android.application'
repositories {
mavenCentral()
maven {
url "https://maven.google.com"
}
}
dependencies {
implementation 'androidx.preference:preference:1.2.1'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'com.google.android.material:material:1.0.0-rc01'
}
android {
namespace = 'mn.tck.semitone'
compileSdkVersion 34
ndkVersion '22.0.7026061'
lintOptions {
disable "GoogleAppIndexingWarning"
}
defaultConfig {
applicationId "mn.tck.semitone"
minSdkVersion 16
targetSdkVersion 34
versionCode 6
versionName "1.3.2"
externalNativeBuild {
cmake {
arguments "-DANDROID_PLATFORM=android-16"
}
}
}
signingConfigs {
config {
if (keystorePropertiesFile.exists()) {
keyAlias keystoreProperties["keyAlias"]
keyPassword keystoreProperties["keyPassword"]
storeFile file(keystoreProperties["storeFile"])
storePassword keystoreProperties["storePassword"]
}
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
// sourceSets {
// main {
// jniLibs.srcDirs = ["shared"]
// }
// }
buildTypes {
release {
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.config
}
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}