File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
src/test/java/com/test/onesignal Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
1
+ language : android
2
+ sudo : false
3
+ jdk : openjdk7
4
+ android :
5
+ components :
6
+ - platform-tools
7
+ - tools
8
+ - build-tools-23.0.2
9
+ - extra-android-support
10
+ - extra-android-m2repository
11
+ - extra-google-m2repository
12
+ - android-23
13
+ licenses :
14
+ - ' .+'
15
+ before_install : cd OneSignalSDK/app
16
+ script : gradle build
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ repositories {
37
37
38
38
dependencies {
39
39
compile fileTree(dir : ' libs' , include : [' *.jar' ])
40
- compile ' com.android.support:appcompat-v7:22.0.0 '
40
+ compile ' com.android.support:appcompat-v7:23.1.1 '
41
41
42
42
// Use for SDK Development
43
43
compile(project(' :onesignal' )) {
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ public class MainOneSignalClassRunner {
81
81
82
82
private static final String ONESIGNAL_APP_ID = "b2f7f966-d8cc-11e4-bed1-df8f05be55ba" ;
83
83
private static Field OneSignal_CurrentSubscription ;
84
+ private static int testSleepTime ;
84
85
private Activity blankActivity ;
85
86
private static String callBackUseId , getCallBackRegId ;
86
87
private static String notificationOpenedMessage ;
@@ -110,6 +111,8 @@ public void tagsAvailable(JSONObject tags) {
110
111
public static void setUpClass () throws Exception {
111
112
ShadowLog .stream = System .out ;
112
113
114
+ testSleepTime = System .getenv ("TRAVIS" ) == "true" ? 600 : 25 ;
115
+
113
116
OneSignal_CurrentSubscription = OneSignal .class .getDeclaredField ("subscribableStatus" );
114
117
OneSignal_CurrentSubscription .setAccessible (true );
115
118
@@ -906,7 +909,7 @@ private static void threadWait() {
906
909
}
907
910
908
911
private void threadAndTaskWait () {
909
- try {Thread .sleep (10 );} catch (Throwable t ) {}
912
+ try {Thread .sleep (testSleepTime );} catch (Throwable t ) {}
910
913
OneSignalPackagePrivateHelper .runAllNetworkRunnables ();
911
914
OneSignalPackagePrivateHelper .runFocusRunnables ();
912
915
You can’t perform that action at this time.
0 commit comments