Remove tests related to StrictMode that were never running on CI. (flutter/engine#51827)
Closes https://github.com/flutter/flutter/issues/60635 as not planned.
This commit is contained in:
@@ -29,7 +29,6 @@ _android_sources = [
|
||||
"app/src/main/java/dev/flutter/scenarios/PlatformViewsActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/SpawnMultiEngineActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/SpawnedEngineActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/StrictModeFlutterActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/SurfacePlatformViewFactory.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TestActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TestableFlutterActivity.java",
|
||||
|
||||
@@ -59,17 +59,6 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".StrictModeFlutterActivity"
|
||||
android:launchMode="singleTop"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<!-- TODO: https://github.com/flutter/flutter/issues/60635 -->
|
||||
<action android:name="dev.flutter.scenarios.STRICT_MODE" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".GetBitmapActivity"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
package dev.flutter.scenarios;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.StrictMode;
|
||||
import androidx.annotation.Nullable;
|
||||
import io.flutter.embedding.android.FlutterActivity;
|
||||
|
||||
// TODO: Trigger this activity.
|
||||
// https://github.com/flutter/flutter/issues/60635
|
||||
public class StrictModeFlutterActivity extends FlutterActivity {
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
StrictMode.setThreadPolicy(
|
||||
new StrictMode.ThreadPolicy.Builder()
|
||||
.detectDiskReads()
|
||||
.detectDiskWrites()
|
||||
.penaltyDeath()
|
||||
.build());
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user