File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ apply from: 'download.gradle'
16
16
17
17
def googleWebrtcFile = file(" ${ project.ext.LIB_DIR} /google-webrtc-1.0.32006.aar" )
18
18
def wroupFile = file(" ${ project.ext.LIB_DIR} /Wroup-master-release.aar" )
19
+ def usbserialFile = file(" ${ project.ext.LIB_DIR} /usbserial-6.1.0-release.aar" )
19
20
20
21
// Task to check for AAR files
21
22
task checkAars {
22
23
dependsOn downloadAars // Ensure this matches the actual download task name
23
24
24
25
doLast {
25
- if (! googleWebrtcFile. exists() || ! wroupFile. exists()) {
26
+ if (! googleWebrtcFile. exists() || ! wroupFile. exists() || ! usbserialFile . exists() ) {
26
27
throw new GradleException (" Required AAR files are missing. Please run the download task." )
27
28
}
28
29
}
@@ -36,6 +37,10 @@ dependencies {
36
37
if (wroupFile. exists()) {
37
38
api files(wroupFile)
38
39
}
40
+
41
+ if (usbserialFile. exists()) {
42
+ api files(usbserialFile)
43
+ }
39
44
}
40
45
41
46
// Ensure that checkAars runs before any Java compile tasks
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ task downloadAars(type: Download) {
2
2
src([
3
3
' https://storage.googleapis.com/openbot_aar/Wroup-master-release.aar' ,
4
4
' https://storage.googleapis.com/openbot_aar/google-webrtc-1.0.32006.aar' ,
5
+ ' https://storage.googleapis.com/openbot_aar/usbserial-6.1.0-release.aar' ,
5
6
])
6
7
dest project. ext. LIB_DIR
7
8
onlyIfModified true
8
9
overwrite false
9
- }
10
+ }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' io.github.reactivecircus.app-versioning' version " 1.1.2"
3
3
id ' com.google.gms.google-services'
4
+ id ' com.android.application'
4
5
}
5
6
6
7
appVersioning {
@@ -84,7 +85,6 @@ dependencies {
84
85
85
86
implementation " com.google.android.gms:play-services-location:$location_version "
86
87
implementation " com.google.android.gms:play-services-nearby:$nearby_version "
87
- implementation ' com.github.felHR85:UsbSerial:6.1.0'
88
88
implementation ' androidx.coordinatorlayout:coordinatorlayout:1.1.0'
89
89
implementation ' org.zeroturnaround:zt-zip:1.14'
90
90
implementation ' com.loopj.android:android-async-http:1.4.9'
You can’t perform that action at this time.
0 commit comments