/
build.gradle.in
107 lines (92 loc) · 2.75 KB
/
build.gradle.in
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
99
100
101
102
103
104
105
106
107
buildscript {
ext {
buildToolsVersion = "@ANDROID_BUILD_TOOLS_VERSION@"
minSdkVersion = @ANDROID_PLATFORM_INT@
compileSdkVersion = @ANDROID_TARGET_PLATFORM@
targetSdkVersion = @ANDROID_TARGET_PLATFORM@
ndkVersion = '@ANDROID_NDK_VERSION@'
}
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
}
apply plugin: 'com.android.application'
def outputPathName = "some.apk"
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation "androidx.fragment:fragment:1.5.4"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.android.material:material:1.1.0'
}
android {
/*******************************************************
* The following variables:
* - androidBuildToolsVersion,
* - androidCompileSdkVersion
* - qt5AndroidDir - holds the path to qt android files
* needed to build any Qt application
* on Android.
*
* are defined in gradle.properties file. This file is
* updated by QtCreator and androiddeployqt tools.
* Changing them manually might break the compilation!
*******************************************************/
ndkVersion = '@ANDROID_NDK_VERSION@'
compileSdkVersion = @ANDROID_TARGET_PLATFORM@
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
res.srcDirs = [qt5AndroidDir + '/res', 'res']
resources.srcDirs = ['src']
renderscript.srcDirs = ['src']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
}
lintOptions {
abortOnError = false
disable 'MissingTranslation'
}
defaultConfig {
minSdkVersion = @ANDROID_PLATFORM_INT@
targetSdkVersion = @ANDROID_TARGET_PLATFORM@
ndk {
abiFilters "@ANDROID_ABI@"
}
}
buildTypes {
release {
ndk {
abiFilters "@ANDROID_ABI@"
}
}
debug {
ndk {
abiFilters "@ANDROID_ABI@"
}
}
}
}
// Add Sentry's SDK as a dependency.
dependencies {
implementation 'io.sentry:sentry-android:6.34.0'
}