forked from AgoraIO/API-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvendors.gradle
More file actions
52 lines (49 loc) · 1.51 KB
/
vendors.gradle
File metadata and controls
52 lines (49 loc) · 1.51 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
apply plugin: 'de.undercouch.download'
task downloadVendorLibs {
def destFile = new File(buildDir, 'vendor_sensetime_9.3.1.zip')
download {
src 'https://fullapp.oss-cn-beijing.aliyuncs.com/thirdparty-beuaty/android/vendor_sensetime_9.3.1.zip'
dest destFile
overwrite false
}
def fileTree = zipTree(destFile)
def HardwareBuffer = fileTree.getFiles().find {
it.name.contains("HardwareBuffer")
}
def SenseArSourceManager = fileTree.getFiles().find {
it.name.contains("SenseArSourceManager")
}
def STMobileJNI = fileTree.getFiles().find {
it.name.contains("STMobileJNI")
}
println "HardwareBuffer path= $HardwareBuffer.absolutePath"
println "SenseArSourceManager path= $SenseArSourceManager.absolutePath"
println "STMobileJNI path= $STMobileJNI.parentFile.absolutePath"
copy {
from HardwareBuffer
into 'libs'
}
copy {
from SenseArSourceManager
into 'libs'
}
copy {
from STMobileJNI
into 'libs'
}
destFile = new File(buildDir, 'vendor_bytedance_4.6.0.zip')
download {
src 'https://fullapp.oss-cn-beijing.aliyuncs.com/thirdparty-beuaty/android/vendor_bytedance_4.6.0.zip'
dest destFile
overwrite false
}
fileTree = zipTree(destFile)
def EffectAAR = fileTree.getFiles().find {
it.name.contains("effectAAR")
}
println "EffectAAR path= $EffectAAR.absolutePath"
copy {
from EffectAAR
into 'libs'
}
}