File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,17 @@ public class SmartuiAppAndroid {
16
16
: System .getenv ("LT_ACCESS_KEY" );
17
17
public static String projectToken = System .getenv ("PROJECT_TOKEN" ) == null ? "YOUR_PROJECT_TOKEN" // Add project token here
18
18
: System .getenv ("PROJECT_TOKEN" );
19
+ public static String deviceName = System .getenv ("DEVICE_NAME" ) == null ? ".*" // This will pick a random device for you
20
+ : System .getenv ("DEVICE_NAME" );
21
+ public static String app = System .getenv ("APP" ) == null ? "lt://proverbial-android" // Sample app
22
+ : System .getenv ("APP" );
19
23
20
24
21
25
public static void main (String [] args ) throws Exception {
22
26
DesiredCapabilities caps = new DesiredCapabilities ();
23
27
Map <String , Object > ltOptions = new HashMap <>();
24
- ltOptions .put ("deviceName" , ".*" );
25
- ltOptions .put ("app" , "lt://proverbial-android" ); // Enter your app url
28
+ ltOptions .put ("deviceName" , deviceName );
29
+ ltOptions .put ("app" , app ); // Enter your app url
26
30
ltOptions .put ("isRealMobile" , true );
27
31
ltOptions .put ("platformName" , "Android" );
28
32
ltOptions .put ("build" , "Java - Android" );
Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ public class SmartuiAppIos {
14
14
: System .getenv ("LT_ACCESS_KEY" );
15
15
public static String projectToken = System .getenv ("PROJECT_TOKEN" ) == null ? "YOUR_PROJECT_TOKEN" // Add project token here
16
16
: System .getenv ("PROJECT_TOKEN" );
17
+ public static String deviceName = System .getenv ("DEVICE_NAME" ) == null ? ".*" // This will pick a random device for you
18
+ : System .getenv ("DEVICE_NAME" );
19
+ public static String app = System .getenv ("APP" ) == null ? "lt://proverbial-ios" // Sample app
20
+ : System .getenv ("APP" );
17
21
18
22
19
23
public static void main (String [] args ) throws Exception {
20
24
DesiredCapabilities caps = new DesiredCapabilities ();
21
25
Map <String , Object > ltOptions = new HashMap <>();
22
- ltOptions .put ("deviceName" , ".*" );
23
- ltOptions .put ("app" , "lt://proverbial-ios" ); // Enter your app url
26
+ ltOptions .put ("deviceName" , deviceName );
27
+ ltOptions .put ("app" , app ); // Enter your app url
24
28
ltOptions .put ("isRealMobile" , true );
25
29
ltOptions .put ("platformName" , "iOS" );
26
30
ltOptions .put ("build" , "Java - iOS" );
You can’t perform that action at this time.
0 commit comments