Migrate test to moved FlutterPlayStoreSplitApplication (#92593)
This commit is contained in:
parent
6ef91147fa
commit
42d4bcb9eb
@ -10,7 +10,7 @@ found in the LICENSE file. -->
|
||||
additional functionality it is fine to subclass or reimplement
|
||||
FlutterApplication and put your custom class here. -->
|
||||
<application
|
||||
android:name="io.flutter.app.FlutterPlayStoreSplitApplication"
|
||||
android:name="io.flutter.embedding.android.FlutterPlayStoreSplitApplication"
|
||||
android:label="deferred_components_test"
|
||||
android:extractNativeLibs="false">
|
||||
<activity
|
||||
|
@ -32,14 +32,15 @@ java -jar $bundletool_jar_path install-apks --apks=build/app/outputs/bundle/rele
|
||||
|
||||
$adb_path shell "
|
||||
am start -n io.flutter.integration.deferred_components_test/.MainActivity
|
||||
sleep 20
|
||||
sleep 30
|
||||
exit
|
||||
"
|
||||
$adb_path logcat -d -t "$script_start_time" -s "flutter" > build/app/outputs/bundle/release/run_logcat.log
|
||||
$adb_path logcat -d -t "$script_start_time" > build/app/outputs/bundle/release/run_logcat.log
|
||||
echo ""
|
||||
if cat build/app/outputs/bundle/release/run_logcat.log | grep -q "Running deferred code"; then
|
||||
echo "All tests passed."
|
||||
exit 0
|
||||
fi
|
||||
cat build/app/outputs/bundle/release/run_logcat.log
|
||||
echo "Failure: Deferred component did not load."
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user