forked from BearWare/TeamTalk5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
128 lines (110 loc) · 3.27 KB
/
build.gradle
File metadata and controls
128 lines (110 loc) · 3.27 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
plugins {
alias(libs.plugins.android.application)
}
def ksFile = rootProject.file('keystore.properties')
def ks = new Properties()
if (ksFile.exists()) {
ksFile.withInputStream { ks.load(it) }
}
android {
enableKotlin = false
namespace = 'dk.bearware.gui'
compileSdk {
version = release(37)
}
buildToolsVersion = '37.0.0'
ndkVersion = '29.0.14206865'
defaultConfig {
applicationId = 'dk.bearware.gui'
minSdk = 23
targetSdk = 37
versionCode = 150
versionName = '5.22'
testInstrumentationRunner = 'androidx.test.runner.AndroidJUnitRunner'
}
if (ksFile.exists()) {
signingConfigs {
release {
storeFile = rootProject.file(ks['storeFile'])
storePassword = ks['storePassword']
keyAlias = ks['keyAlias']
keyPassword = ks['keyPassword']
}
}
}
buildTypes {
release {
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
if (ksFile.exists()) {
signingConfig = signingConfigs.release
}
}
debug {
if (ks['signDebug']?.toBoolean()) {
signingConfig = signingConfigs.release
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
coreLibraryDesugaringEnabled = true
}
buildFeatures {
buildConfig = true
viewBinding = true
}
androidResources {
generateLocaleConfig = true
}
splits {
abi {
enable = true
reset()
include 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
universalApk = true
}
}
sourceSets {
main {
jniLibs.srcDirs = [layout.buildDirectory.dir('jniLibs-staging')]
}
}
packaging {
jniLibs {
excludes += ['**/libTeamTalk5Pro-jni.so']
}
}
lint {
disable 'MissingTranslation'
}
}
tasks.register('syncJniLibs', Sync) {
from('../../Library/TeamTalkJNI/libs') {
include 'arm64-v8a/**', 'armeabi-v7a/**', 'x86/**', 'x86_64/**'
}
into layout.buildDirectory.dir('jniLibs-staging')
}
afterEvaluate {
tasks.named('preBuild').configure { dependsOn 'syncJniLibs' }
}
dependencies {
coreLibraryDesugaring libs.desugar.jdk.libs
implementation libs.gson
implementation libs.androidx.annotation
implementation libs.androidx.appcompat
implementation libs.androidx.core
implementation libs.androidx.fragment
implementation libs.androidx.media
implementation libs.androidx.preference
implementation libs.androidx.viewpager
implementation libs.material
implementation files('../../Library/TeamTalkJNI/libs/TeamTalk5.jar')
testImplementation libs.junit
testImplementation files('../../Library/TeamTalkJNI/libs/TeamTalk5Test.jar')
androidTestImplementation libs.androidx.test.core
androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.test.rules
androidTestImplementation files('../../Library/TeamTalkJNI/libs/TeamTalk5Test.jar')
}