@@ -31,7 +31,7 @@ const FakeCommand kInstallCommand = FakeCommand(
31
31
'-r' ,
32
32
'--user' ,
33
33
'10' ,
34
- 'app.apk' ,
34
+ 'app-debug .apk' ,
35
35
],
36
36
);
37
37
const FakeCommand kStoreShaCommand = FakeCommand (
@@ -71,7 +71,7 @@ void main() {
71
71
stdout: '[ro.build.version.sdk]: [11]' ,
72
72
),
73
73
]);
74
- final File apk = fileSystem.file ('app.apk' )..createSync ();
74
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
75
75
final AndroidApk androidApk = AndroidApk (
76
76
applicationPackage: apk,
77
77
id: 'app' ,
@@ -87,7 +87,7 @@ void main() {
87
87
});
88
88
89
89
testWithoutContext ('Cannot install app if APK file is missing' , () async {
90
- final File apk = fileSystem.file ('app.apk' );
90
+ final File apk = fileSystem.file ('app-debug .apk' );
91
91
final AndroidApk androidApk = AndroidApk (
92
92
applicationPackage: apk,
93
93
id: 'app' ,
@@ -115,7 +115,7 @@ void main() {
115
115
kInstallCommand,
116
116
kStoreShaCommand,
117
117
]);
118
- final File apk = fileSystem.file ('app.apk' )..createSync ();
118
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
119
119
final AndroidApk androidApk = AndroidApk (
120
120
applicationPackage: apk,
121
121
id: 'app' ,
@@ -144,7 +144,7 @@ void main() {
144
144
kInstallCommand,
145
145
kStoreShaCommand,
146
146
]);
147
- final File apk = fileSystem.file ('app.apk' )..createSync ();
147
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
148
148
final AndroidApk androidApk = AndroidApk (
149
149
applicationPackage: apk,
150
150
id: 'app' ,
@@ -182,13 +182,13 @@ void main() {
182
182
'-r' ,
183
183
'--user' ,
184
184
'jane' ,
185
- 'app.apk' ,
185
+ 'app-debug .apk' ,
186
186
],
187
187
exitCode: 1 ,
188
188
stderr: 'Exception occurred while executing: java.lang.IllegalArgumentException: Bad user number: jane' ,
189
189
),
190
190
]);
191
- final File apk = fileSystem.file ('app.apk' )..createSync ();
191
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
192
192
final AndroidApk androidApk = AndroidApk (
193
193
applicationPackage: apk,
194
194
id: 'app' ,
@@ -221,8 +221,8 @@ void main() {
221
221
stdout: 'example_sha' ,
222
222
),
223
223
]);
224
- final File apk = fileSystem.file ('app.apk' )..createSync ();
225
- fileSystem.file ('app.apk.sha1' ).writeAsStringSync ('example_sha' );
224
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
225
+ fileSystem.file ('app-debug .apk.sha1' ).writeAsStringSync ('example_sha' );
226
226
final AndroidApk androidApk = AndroidApk (
227
227
applicationPackage: apk,
228
228
id: 'app' ,
@@ -254,16 +254,16 @@ void main() {
254
254
stdout: 'different_example_sha' ,
255
255
),
256
256
const FakeCommand (
257
- command: < String > ['adb' , '-s' , '1234' , 'install' , '-t' , '-r' , '--user' , '10' , 'app.apk' ],
257
+ command: < String > ['adb' , '-s' , '1234' , 'install' , '-t' , '-r' , '--user' , '10' , 'app-debug .apk' ],
258
258
exitCode: 1 ,
259
259
stderr: '[INSTALL_FAILED_INSUFFICIENT_STORAGE]' ,
260
260
),
261
261
const FakeCommand (command: < String > ['adb' , '-s' , '1234' , 'uninstall' , '--user' , '10' , 'app' ]),
262
262
kInstallCommand,
263
263
const FakeCommand (command: < String > ['adb' , '-s' , '1234' , 'shell' , 'echo' , '-n' , 'example_sha' , '>' , '/data/local/tmp/sky.app.sha1' ]),
264
264
]);
265
- final File apk = fileSystem.file ('app.apk' )..createSync ();
266
- fileSystem.file ('app.apk.sha1' ).writeAsStringSync ('example_sha' );
265
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
266
+ fileSystem.file ('app-debug .apk.sha1' ).writeAsStringSync ('example_sha' );
267
267
final AndroidApk androidApk = AndroidApk (
268
268
applicationPackage: apk,
269
269
id: 'app' ,
@@ -291,12 +291,12 @@ void main() {
291
291
stdout: '\n '
292
292
),
293
293
const FakeCommand (
294
- command: < String > ['adb' , '-s' , '1234' , 'install' , '-t' , '-r' , '--user' , '10' , 'app.apk' ],
294
+ command: < String > ['adb' , '-s' , '1234' , 'install' , '-t' , '-r' , '--user' , '10' , 'app-debug .apk' ],
295
295
exitCode: 1 ,
296
296
stderr: '[INSTALL_FAILED_INSUFFICIENT_STORAGE]' ,
297
297
),
298
298
]);
299
- final File apk = fileSystem.file ('app.apk' )..createSync ();
299
+ final File apk = fileSystem.file ('app-debug .apk' )..createSync ();
300
300
final AndroidApk androidApk = AndroidApk (
301
301
applicationPackage: apk,
302
302
id: 'app' ,
0 commit comments