-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (91 loc) · 3.63 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id "com.android.application"
id 'org.jetbrains.kotlin.android'
}
android {
namespace "com.termux"
compileSdk 34
ndkVersion = "26.1.10909125"
dependencies {
implementation 'com.google.android.gms:play-services-wearable:18.1.0'
implementation("androidx.wear.compose:compose-material:1.3.0")
implementation("androidx.fragment:fragment-ktx:1.6.2")
}
defaultConfig {
externalNativeBuild {
ndkBuild {
cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections"
}
}
//
// ndk {
// abiFilters 'x86_64', 'armeabi-v7a'
// }
applicationId "com.termux"
minSdk 28
targetSdk 28
versionCode 118
versionName "0.118.0"
resourceConfigurations += ['en', 'xhdpi']
splits {
abi {
enable(true)
reset()
include 'x86_64', 'armeabi-v7a'
universalApk false
}
}
versionNameSuffix '.wear'
}
externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable false
jniDebuggable false
renderscriptDebuggable false
pseudoLocalesEnabled false
crunchPngs true
}
}
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled false
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
packagingOptions {
jniLibs {
useLegacyPackaging false
excludes += ['lib/arm64-v8a/libcardioDecider.so', 'lib/arm64-v8a/libcardioRecognizer.so', 'lib/arm64-v8a/libcardioRecognizer_tegra2.so', 'lib/arm64-v8a/libopencv_core.so', 'lib/arm64-v8a/libopencv_imgproc.so', 'lib/armeabi/libcardioDecider.so', 'lib/armeabi-v7a/libcardioDecider.so', 'lib/armeabi-v7a/libcardioRecognizer.so', 'lib/armeabi-v7a/libcardioRecognizer_tegra2.so', 'lib/armeabi-v7a/libopencv_core.so', 'lib/armeabi-v7a/libopencv_imgproc.so', 'lib/mips/libcardioDecider.so', 'lib/x86/libcardioDecider.so', 'lib/x86/libcardioRecognizer.so', 'lib/x86/libcardioRecognizer_tegra2.so', 'lib/x86/libopencv_core.so', 'lib/x86/libopencv_imgproc.so', 'lib/x86_64/libcardioDecider.so', 'lib/x86_64/libcardioRecognizer.so', 'lib/x86_64/libcardioRecognizer_tegra2.so', 'lib/x86_64/libopencv_core.so', 'lib/x86_64/libopencv_imgproc.so']
}
resources {
excludes += ['/META-INF/{AL2.0,LGPL2.1}', 'META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt', 'META-INF/ECLIPSE_.SF', 'META-INF/ECLIPSE_.RSA', 'AndroidManifest.xml']
}
}
kotlinOptions {
jvmTarget = '17'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.5.4'
}
applicationVariants.configureEach { final variant ->
variant.outputs.configureEach { final output ->
final def abi = output.getFilter("ABI")
outputFileName = new File("nyx_" + variant.buildType.name + "_" + (abi ? abi : "universal") + ".apk")
}
}
}
configurations.implementation {
exclude(group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8')
exclude(group: "androidx.compose.material", module: "material-ripple")
}