File tree Expand file tree Collapse file tree
main/java/com/smartdevicelink/transport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: GitHub CI
33on : [push, pull_request, workflow_dispatch]
44
55jobs :
6- test :
6+ test_Android :
77 runs-on : macOS-latest
88 steps :
99
1515 - name : Setup JDK
1616 uses : actions/setup-java@v1
1717 with :
18- java-version : 1.8
18+ java-version : 11
1919
2020 - name : Sdl Android Tests
2121 # For more info, please check out: https://github.com/marketplace/actions/android-emulator-runner
2626
2727 - name : Hello Sdl Android Tests
2828 run : ./android/gradlew -p ./android/hello_sdl_android test
29+
30+ - name : Codecov
31+ uses : codecov/codecov-action@v1.0.13
32+ with :
33+ yml : ./codecov.yml
34+
35+ test_Java :
36+ runs-on : macOS-latest
37+ steps :
38+
39+ - name : Checkout
40+ uses : actions/checkout@v2
41+ with :
42+ submodules : true
43+
44+ - name : Setup JDK
45+ uses : actions/setup-java@v1
46+ with :
47+ java-version : 1.8
2948
3049 - name : Sdl JavaSE Tests
3150 run : ./javaSE/gradlew -p ./javaSE/javaSE test
3655 - name : Sdl JavaEE Tests
3756 run : ./javaEE/gradlew -p ./javaEE/javaEE test
3857
39- - name : Codecov
40- uses : codecov/codecov-action@v1.0.13
41- with :
42- yml : ./codecov.yml
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ buildscript {
77 mavenCentral()
88 }
99 dependencies {
10- classpath ' com.android.tools.build:gradle:4.1.1 '
10+ classpath ' com.android.tools.build:gradle:7.4.2 '
1111
1212
1313 // NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-6 .5-all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-7 .5-all.zip
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ dependencies {
5555 androidTestImplementation ' org.mockito:mockito-core:3.0.0'
5656 androidTestImplementation ' org.mockito:mockito-android:3.0.0'
5757 androidTestImplementation ' androidx.test.ext:junit:1.1.1'
58- androidTestImplementation ' androidx.test.espresso:espresso-core:3.1.0 '
59- androidTestImplementation ' androidx.test.espresso:espresso-intents:3.1.0 '
58+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1 '
59+ androidTestImplementation ' androidx.test.espresso:espresso-intents:3.5.1 '
6060}
6161
6262buildscript {
Original file line number Diff line number Diff line change 1- <manifest package =" com.smartdevicelink"
1+ <manifest package =" com.smartdevicelink.test "
22 xmlns : android =" http://schemas.android.com/apk/res/android" >
33
44 <uses-sdk android : minSdkVersion =" 16" />
1616
1717 <application android : debuggable =" true" >
1818 <uses-library android : name =" android.test.runner" />
19- <activity android : name =" .managers.lockscreen.SDLLockScreenActivity" />
19+ <activity android : name =" .managers.lockscreen.SDLLockScreenActivity" />
2020 </application >
2121
2222</manifest >
Original file line number Diff line number Diff line change @@ -2939,6 +2939,9 @@ protected PacketWriteTask getNextTask(TransportType transportType) {
29392939 long currentPriority = -Long .MAX_VALUE , peekWeight ;
29402940 synchronized (REGISTERED_APPS_LOCK ) {
29412941 PacketWriteTask peekTask ;
2942+ if (registeredApps == null ) {
2943+ return null ;
2944+ }
29422945 for (RegisteredApp app : registeredApps .values ()) {
29432946 peekTask = app .peekNextTask (transportType );
29442947 if (peekTask != null ) {
You can’t perform that action at this time.
0 commit comments