-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
103 lines (89 loc) · 2.47 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
}
}
plugins {
id 'org.gradle.crypto.checksum' version '1.4.0'
}
//import org.gradle.crypto.checksum.Checksum
apply plugin: 'com.android.application'
repositories {
google()
mavenCentral()
}
dependencies {
//testImplementation 'junit:junit:4.12'
//androidTestImplementation 'org.hamcrest:hamcrest-all:1.3'
}
/*
tasks.register('checkData') {
doFirst {
assert file("../espeak-ng-data/en_dict").exists()
assert file("../espeak-ng-data/intonations").exists()
assert file("../espeak-ng-data/phondata").exists()
assert file("../espeak-ng-data/phondata-manifest").exists()
assert file("../espeak-ng-data/phonindex").exists()
assert file("../espeak-ng-data/phontab").exists()
}
}
tasks.register('createDataArchive', Zip) {
dependsOn tasks.checkData
preserveFileTimestamps = false
reproducibleFileOrder = true
archiveFileName = "espeakdata.zip"
destinationDirectory = file("res/raw")
from("../espeak-ng-data/") {
into "espeak-ng-data"
}
}
tasks.register('createDataHash', Checksum) {
dependsOn tasks.createDataArchive
checksumAlgorithm.set(Checksum.Algorithm.SHA256)
inputFiles.setFrom(file("./res/raw/espeakdata.zip"))
outputDirectory.set(layout.buildDirectory.dir('intermediates/datahash'))
}
tasks.register('createDataVersion', Copy) {
dependsOn tasks.createDataHash
from layout.buildDirectory.file('intermediates/datahash/espeakdata.zip.sha256')
rename { return 'espeakdata_version' }
into file("./res/raw")
}
preBuild.dependsOn createDataVersion
*/
android {
namespace "net.eguidedog.ekho"
compileSdk 35
defaultConfig {
applicationId "cameronhuang150.ekho"
minSdkVersion 21
//noinspection EditedTargetSdkVersion
targetSdk 35
versionCode 42
versionName "4.2"
ndk { abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64' }
}
externalNativeBuild {
ndkBuild {
path "jni/Android.mk"
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
androidTest.setRoot('EkhoTests')
androidTest {
java.srcDirs = ['EkhoTests/src']
}
}
lint {
abortOnError false
}
}