-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathbuild.gradle
More file actions
434 lines (411 loc) · 16 KB
/
build.gradle
File metadata and controls
434 lines (411 loc) · 16 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
/**
* [TRIfA], Gradle part of Tox Reference Implementation for Android
* Copyright (C) 2017 - 2022 Zoff <zoff@zoff.cc>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
plugins {
id 'com.android.application'
id 'kotlin-android'
// id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
}
// apply plugin: 'kotlin-android-extensions'
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--verify', '--short=8', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
compileOptions.encoding = 'UTF-8'
// generatedDensities = []
aaptOptions {
additionalParameters "--no-version-vectors"
cruncherEnabled = false
noCompress "tflite"
}
android {
ndkVersion "20.1.5948944"
}
sourceSets {
main {
jni.srcDirs = []
jniLibs.srcDirs = ['nativelibs']
java {
exclude 'com/zoffcc/applications/trifa/VideoFrameAnalyser.java'
}
}
androidTest {
java {
exclude 'com/zoffcc/applications/trifa/VideoFrameAnalyser.java'
}
}
}
packagingOptions {
exclude 'LICENSE.txt'
//
doNotStrip "*/armeabi-v7a/*.so"
doNotStrip "*/arm64-v8a/*.so"
//
pickFirst 'lib/arm64-v8a/libjni-c-toxcore.so'
//
pickFirst 'lib/armeabi-v7a/libsqlcipher.so'
pickFirst 'lib/arm64-v8a/libsqlcipher.so'
pickFirst 'lib/x86/libsqlcipher.so'
pickFirst 'lib/x86_64/libsqlcipher.so'
//
exclude 'META-INF/LICENSE.txt'
exclude 'LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/*version'
exclude 'META-INF/proguard/okhttp3.pro'
exclude 'DebugProbesKt.bin'
exclude 'androidsupportmultidexversion.txt'
exclude 'common.properties'
exclude 'image.properties'
exclude 'mediapipe-internal.properties'
exclude 'segmentation-selfie.properties'
exclude 'vision-common.properties'
exclude 'firebase-annotations.properties'
exclude 'firebase-components.properties'
exclude 'firebase-encoders-json.properties'
exclude 'firebase-encoders.properties'
exclude 'play-services-base.properties'
exclude 'play-services-basement.properties'
exclude 'play-services-clearcut.properties'
exclude 'play-services-phenotype.properties'
exclude 'play-services-tasks.properties'
exclude 'transport-api.properties'
exclude 'transport-backend-cct.properties'
exclude 'transport-runtime.properties'
exclude 'kotlin-tooling-metadata.json'
//
exclude 'kotlin/**'
exclude 'kotlin/*'
exclude 'kotlin'
exclude 'META-INF/kotlin*'
exclude 'META-INF/*.kotlin_module'
exclude 'META-INF/annotation-experimental_release.kotlin_module'
exclude 'META-INF/app_release.kotlin_module'
exclude 'META-INF/app_debug.kotlin_module'
exclude 'META-INF/com.yariksoffice*'
exclude 'META-INF/core-ktx_release.kotlin_module'
exclude 'META-INF/fragment_release.kotlin_module'
exclude 'META-INF/okhttp.kotlin_module'
exclude 'META-INF/okio.kotlin_module'
exclude 'META-INF/activity-ktx_release.kotlin_module'
exclude 'META-INF/collection-ktx.kotlin_module'
exclude 'META-INF/fragment-ktx_release.kotlin_module'
exclude 'META-INF/lifecycle-livedata-core-ktx_release.kotlin_module'
exclude 'META-INF/lifecycle-runtime-ktx_release.kotlin_module'
exclude 'META-INF/lifecycle-viewmodel-ktx_release.kotlin_module'
exclude 'META-INF/preference_release.kotlin_module'
exclude 'META-INF/savedstate-ktx_release.kotlin_module'
exclude 'META-INF/services/kotlinx.coroutines.CoroutineExceptionHandler'
exclude 'META-INF/services/kotlinx.coroutines.internal.MainDispatcherFactory'
exclude 'META-INF/slidingpanelayout_release.kotlin_module'
exclude 'META-INF/window_release.kotlin_module'
exclude 'META-INF/fastscroll_release.kotlin_module'
//
exclude 'lib/armeabi/libRSSupport.so'
exclude 'lib/armeabi/librsjni.so'
exclude 'lib/armeabi/libsqlcipher.so'
exclude 'lib/armeabi/libiocipher.so'
exclude 'lib/armeabi/libiocipher2.so'
exclude 'lib/armeabi/libspeex.so'
exclude 'lib/armeabi/libblasV8.so'
exclude 'lib/armeabi/librsjni_androidx.so'
exclude 'lib/armeabi/libnative-audio-jni.so'
exclude 'lib/armeabi'
//
// exclude 'lib/arm64-v8a/libRSSupport.so'
// exclude 'lib/arm64-v8a/librsjni.so'
// exclude 'lib/arm64-v8a/libsqlcipher.so'
// exclude 'lib/arm64-v8a/libiocipher.so'
// exclude 'lib/arm64-v8a/libiocipher2.so'
// exclude 'lib/arm64-v8a/libspeex.so'
// exclude 'lib/arm64-v8a/libblasV8.so'
// exclude 'lib/arm64-v8a/librsjni_androidx.so'
// exclude 'lib/arm64-v8a/libnative-audio-jni.so'
// exclude 'lib/arm64-v8a/libjni-c-toxcore.so'
// exclude 'lib/arm64-v8a'
//
exclude 'lib/mips64/libRSSupport.so'
exclude 'lib/mips64/librsjni.so'
exclude 'lib/mips64/libsqlcipher.so'
exclude 'lib/mips64/libiocipher.so'
exclude 'lib/mips64/libiocipher2.so'
exclude 'lib/mips64/libspeex.so'
exclude 'lib/mips64/libblasV8.so'
exclude 'lib/mips64/librsjni_androidx.so'
exclude 'lib/mips64/libnative-audio-jni.so'
exclude 'lib/mips64'
//
exclude 'lib/mips/libRSSupport.so'
exclude 'lib/mips/librsjni.so'
exclude 'lib/mips/libsqlcipher.so'
exclude 'lib/mips/libiocipher.so'
exclude 'lib/mips/libiocipher2.so'
exclude 'lib/mips/libspeex.so'
exclude 'lib/mips/libblasV8.so'
exclude 'lib/mips/librsjni_androidx.so'
exclude 'lib/mips/libnative-audio-jni.so'
exclude 'lib/mips'
//
// exclude 'lib/x86/libRSSupport.so'
// exclude 'lib/x86/librsjni.so'
// exclude 'lib/x86/libsqlcipher.so'
// exclude 'lib/x86/libiocipher.so'
// exclude 'lib/x86/libiocipher2.so'
// exclude 'lib/x86/libspeex.so'
// exclude 'lib/x86/libblasV8.so'
// exclude 'lib/x86/libnative-audio-jni.so'
// exclude 'lib/x86/librsjni_androidx.so'
// exclude 'lib/x86'
//
// exclude 'lib/x86_64/libRSSupport.so'
// exclude 'lib/x86_64/librsjni.so'
// exclude 'lib/x86_64/libsqlcipher.so'
// exclude 'lib/x86_64/libiocipher.so'
// exclude 'lib/x86_64/libiocipher2.so'
// exclude 'lib/x86_64/libspeex.so'
// exclude 'lib/x86_64/libblasV8.so'
// exclude 'lib/x86_64/librsjni_androidx.so'
// exclude 'lib/x86_64/libnative-audio-jni.so'
// exclude 'lib/x86_64'
//
}
lintOptions {
checkReleaseBuilds false
abortOnError false
absolutePaths false
// lintConfig file("lint.xml")
showAll true
textReport true
xmlReport true
htmlReport true
textOutput file("lint-report.txt")
htmlOutput file("lint-report.html")
xmlOutput file("lint-report.xml")
}
compileOptions {
encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dependenciesInfo {
// Disables dependency metadata when building APKs.
includeInApk = false
// Disables dependency metadata when building Android App Bundles.
includeInBundle = false
}
testOptions {
unitTests {
}
}
defaultConfig {
applicationId "com.zoffcc.applications.trifa"
minSdkVersion 21
//noinspection OldTargetApi
targetSdkVersion 33
versionCode 10240
versionName "1.0.240"
renderscriptTargetApi 18
renderscriptSupportModeEnabled true
// renderscriptSupportModeBlasEnabled true
// Enabling multidex support
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
buildConfigField "String", "GitHash", "\"${getGitHash()}\""
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments useTestStorageService: 'true'
}
buildTypes {
debug {
crunchPngs false
ext.enableCrashlytics = false
minifyEnabled false
shrinkResources false
// proguardFile ('proguard-disable.pro')
}
release {
crunchPngs false
ext.enableCrashlytics = false
minifyEnabled false
shrinkResources false
// proguardFile ('proguard-disable.pro')
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':native-audio-jni')
implementation project(path: ':loggingstdout')
annotationProcessor project(':orma_processor')
//
//
// HINT: can't update to latest version: just too many useless changes and also kotlin again :-(
//noinspection GradleDependency
implementation('com.mikepenz:materialdrawer:6.0.9@aar') {
transitive = true
exclude group: 'com.android.support'
exclude group: 'com.github.bumptech.glide'
}
//
implementation('com.mikepenz:google-material-typeface:3.0.1.3.original@aar') {
exclude group: 'com.android.support'
}
implementation('com.mikepenz:fontawesome-typeface:5.3.1.1@aar') {
exclude group: 'com.android.support'
}
implementation('com.mikepenz:material-design-iconic-typeface:2.2.0.5@aar') {
exclude group: 'com.android.support'
}
implementation('com.google.zxing:core:3.5.3') {
exclude group: 'com.android.support'
}
//
implementation 'com.github.piasy:rxandroidaudio:1.7.0'
//
implementation("com.daimajia.swipelayout:library:1.2.0@aar")
//
implementation('net.zetetic:android-database-sqlcipher:4.5.4@aar') {
transitive = true
}
//noinspection KtxExtensionAvailable
implementation('androidx.sqlite:sqlite:2.4.0') {
transitive = true
}
implementation('com.github.zoff99:pkgs_guardianprojectIOCipher:1.0.4') {
transitive = true
}
//
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation('com.github.zoff99:pkgs_maskaradeOrma-annotations:6.0.2') {
}
implementation('com.github.zoff99:pkgs_maskaradeOrma-core:6.0.2') {
transitive = true
exclude group: 'io.reactivex'
exclude group: 'com.android.support'
}
implementation('com.github.zoff99:pkgs_maskaradeOrma-migration:6.0.2') {
transitive = true
exclude group: 'io.reactivex'
exclude group: 'com.android.support'
}
implementation('com.github.zoff99:pkgs_maskaradeOrma:6.0.2') {
transitive = true
exclude group: 'io.reactivex'
exclude group: 'com.android.support'
}
implementation('com.github.zoff99:pkgs_maskaradeOrma-encryption:6.0.2') {
transitive = true
exclude group: 'io.reactivex'
exclude group: 'com.android.support'
}
//
implementation('com.github.zoff99:pkgs_hotchemiPermissionsdispatcher:3.2.0') {
exclude group: 'com.android.support'
}
//
implementation('com.github.angads25:filepicker:1.1.1') {
exclude group: 'com.android.support'
}
implementation('io.github.l4digital:fastscroll:3.0.0-beta.3') {
exclude group: 'com.android.support'
}
// HINT: can't update to latest version: kotlin shitshow only :-(
//noinspection GradleDependency
implementation('com.vanniktech:emoji-google:0.9.0') {
exclude group: 'com.android.support'
}
//
implementation('com.github.bumptech.glide:glide:5.0.0-rc01') {
exclude group: 'com.android.support'
}
annotationProcessor 'com.github.bumptech.glide:compiler:5.0.0-rc01'
//
//
//
implementation 'com.github.zoff99:pkgs_ToxAndroidRefImpl:1.0.153'
//
//
//
//noinspection KtxExtensionAvailable
implementation 'androidx.collection:collection:1.4.5'
//noinspection KtxExtensionAvailable
implementation 'androidx.core:core:1.15.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
//noinspection KtxExtensionAvailable
implementation 'androidx.fragment:fragment:1.7.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.multidex:multidex:2.0.1'
//noinspection KtxExtensionAvailable
implementation 'androidx.preference:preference:1.2.1'
androidTestImplementation 'androidx.multidex:multidex:2.0.1'
androidTestImplementation 'androidx.multidex:multidex-instrumentation:2.0.0'
implementation 'info.guardianproject.netcipher:netcipher:2.1.0'
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.github.medyo:android-about-page:1.2.4'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'me.zhanghai.android.patternlock:library:2.1.2'
implementation 'com.github.zoff99:pkgs_armchaAutoLinkTextView:0.3.0'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.daimajia.numberprogressbar:library:1.4@aar'
implementation 'com.github.lawloretienne:discreteslider:0.0.9'
implementation "com.github.YarikSOffice:lingver:1.3.0"
//noinspection GradleDependency
implementation 'id.zelory:compressor:2.1.1'
annotationProcessor 'com.github.zoff99:pkgs_hotchemiPermissionsdispatcher-processor:3.2.0'
// ---------------------
// ---------------------
// Testing-only dependencies
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test:rules:1.5.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// ---------------------
testImplementation 'androidx.test:core:1.5.0'
testImplementation 'androidx.test.ext:junit:1.1.5'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.12.2'
testImplementation 'androidx.test.espresso:espresso-core:3.5.1'
testImplementation 'androidx.test.espresso:espresso-intents:3.5.1'
testImplementation 'androidx.test.ext:truth:1.5.0'
androidTestUtil "androidx.test.services:test-services:1.5.0"
// ---------------------
// --------- background blur ------------
// ---------------------
// CameraX dependencies
implementation "androidx.camera:camera-lifecycle:1.3.4"
implementation 'androidx.camera:camera-camera2:1.3.4'
implementation 'androidx.camera:camera-view:1.3.4'
implementation 'androidx.camera:camera-extensions:1.3.4'
//
implementation 'com.github.zoff99:pkgs_TensorflowLiteAndroidMediapipeCPU:2.6.0'
implementation 'com.github.zoff99:pkgs_TensorflowLiteAndroidMediapipeGPU:2.6.0'
}
apply from: 'gradle_witness_ng.gradle'