Unverified Commit 42d4bcb9 authored by Gary Qian's avatar Gary Qian Committed by GitHub

Migrate test to moved FlutterPlayStoreSplitApplication (#92593)

parent 6ef91147
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment