Lint android scenario app (flutter/engine#27409)
@@ -116,7 +116,8 @@ group("flutter") {
|
||||
]
|
||||
}
|
||||
|
||||
if (is_ios || is_android) {
|
||||
if ((flutter_runtime_mode == "debug" || flutter_runtime_mode == "profile") &&
|
||||
(is_ios || is_android)) {
|
||||
public_deps += [ "//flutter/testing/scenario_app" ]
|
||||
}
|
||||
|
||||
|
||||
@@ -4,51 +4,74 @@
|
||||
|
||||
import("//flutter/testing/scenario_app/runtime_mode.gni")
|
||||
|
||||
action("build_apk") {
|
||||
script = "run_gradle.py"
|
||||
template("gradle_task") {
|
||||
action(target_name) {
|
||||
assert(defined(invoker.task), "task is a required parmaeter")
|
||||
assert(defined(invoker.outputs), "outputs is a required parameter")
|
||||
|
||||
inputs = [ "$root_out_dir/flutter.jar" ]
|
||||
sources = [
|
||||
"app/build.gradle",
|
||||
"app/src/androidTest/java/dev/flutter/TestRunner.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenarios/EngineLaunchE2ETest.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenarios/ExampleInstrumentedTest.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/MemoryLeakTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/PlatformTextureUiTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/PlatformViewUiTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/ScreenshotUtil.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/SpawnEngineTests.java",
|
||||
"app/src/main/AndroidManifest.xml",
|
||||
"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/TestActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TestableFlutterActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformView.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformViewActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java",
|
||||
"app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java",
|
||||
"build.gradle",
|
||||
]
|
||||
outputs = [ "$root_out_dir/scenario_app/app/outputs/apk/debug/app-debug.apk" ]
|
||||
script = "run_gradle.py"
|
||||
|
||||
args = [
|
||||
"assembleDebug",
|
||||
"--no-daemon",
|
||||
"-Pflutter_jar=" + rebase_path("$root_out_dir/flutter.jar"),
|
||||
"-Pout_dir=" + rebase_path("$root_out_dir/scenario_app"),
|
||||
]
|
||||
inputs = [ "$root_out_dir/flutter.jar" ]
|
||||
sources = [
|
||||
"app/build.gradle",
|
||||
"app/src/androidTest/java/dev/flutter/TestRunner.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenarios/EngineLaunchE2ETest.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenarios/ExampleInstrumentedTest.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/MemoryLeakTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/PlatformTextureUiTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/PlatformViewUiTests.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/ScreenshotUtil.java",
|
||||
"app/src/androidTest/java/dev/flutter/scenariosui/SpawnEngineTests.java",
|
||||
"app/src/main/AndroidManifest.xml",
|
||||
"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/TestActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TestableFlutterActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformView.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformViewActivity.java",
|
||||
"app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java",
|
||||
"build.gradle",
|
||||
]
|
||||
|
||||
if (is_aot) {
|
||||
args += [ "-Plibapp=" + rebase_path("$target_gen_dir/libs") ]
|
||||
inputs += [ "$target_gen_dir/libs/$android_app_abi/libapp.so" ]
|
||||
outputs = invoker.outputs
|
||||
|
||||
args = [
|
||||
invoker.task,
|
||||
"--no-daemon",
|
||||
"-Pflutter_jar=" + rebase_path("$root_out_dir/flutter.jar"),
|
||||
"-Pout_dir=" + rebase_path("$root_out_dir/scenario_app"),
|
||||
]
|
||||
|
||||
if (is_aot) {
|
||||
args += [ "-Plibapp=" + rebase_path("$target_gen_dir/libs") ]
|
||||
inputs += [ "$target_gen_dir/libs/$android_app_abi/libapp.so" ]
|
||||
}
|
||||
|
||||
deps = [
|
||||
"//flutter/shell/platform/android:android_jar",
|
||||
"//flutter/testing/scenario_app:scenario_app_snapshot",
|
||||
]
|
||||
|
||||
if (defined(invoker.deps)) {
|
||||
deps += invoker.deps
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
deps = [
|
||||
"//flutter/shell/platform/android:android_jar",
|
||||
"//flutter/testing/scenario_app:scenario_app_snapshot",
|
||||
gradle_task("android_lint") {
|
||||
task = "lint"
|
||||
outputs = [
|
||||
"$root_out_dir/scenario_app/build/reports/lint-results.html",
|
||||
"$root_out_dir/scenario_app/build/reports/lint-results.xml",
|
||||
]
|
||||
}
|
||||
|
||||
gradle_task("build_apk") {
|
||||
task = "assembleDebug"
|
||||
outputs = [ "$root_out_dir/scenario_app/app/outputs/apk/debug/app-debug.apk" ]
|
||||
deps = [ ":android_lint" ]
|
||||
}
|
||||
|
||||
copy("android") {
|
||||
sources = get_target_outputs(":build_apk")
|
||||
outputs = [ "$root_out_dir/firebase_apks/scenario_app.apk" ]
|
||||
|
||||
@@ -9,6 +9,18 @@ screenshots {
|
||||
}
|
||||
|
||||
android {
|
||||
lintOptions {
|
||||
abortOnError true
|
||||
checkAllWarnings true
|
||||
showAll true
|
||||
warningsAsErrors true
|
||||
checkTestSources true
|
||||
// UnpackedNativeCode can break stack unwinding - see b/193408481
|
||||
// NewerVersionAvailable and GradleDependency need to be taken care of
|
||||
// by a roller rather than as part of CI.
|
||||
// The others are irrelevant for a test application.
|
||||
disable 'UnpackedNativeCode','MissingApplicationIcon','GoogleAppIndexingApiWarning','GoogleAppIndexingWarning','GradleDependency','NewerVersionAvailable'
|
||||
}
|
||||
compileSdkVersion 30
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
@@ -41,7 +53,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation files(project.property('flutter_jar'))
|
||||
compile 'com.facebook.testing.screenshot:layout-hierarchy-common:0.12.0'
|
||||
implementation 'com.facebook.testing.screenshot:layout-hierarchy-common:0.12.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
implementation 'com.google.android.material:material:1.0.0'
|
||||
|
||||
@@ -5,18 +5,19 @@
|
||||
package dev.flutter;
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.test.runner.AndroidJUnitRunner;
|
||||
import dev.flutter.scenariosui.ScreenshotUtil;
|
||||
|
||||
public class TestRunner extends AndroidJUnitRunner {
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
public void onCreate(@Nullable Bundle arguments) {
|
||||
ScreenshotUtil.onCreate(this, arguments);
|
||||
super.onCreate(arguments);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish(int resultCode, Bundle results) {
|
||||
public void finish(int resultCode, @Nullable Bundle results) {
|
||||
ScreenshotUtil.onDestroy();
|
||||
super.finish(resultCode, results);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class EngineLaunchE2ETest {
|
||||
// as @UiThreadTest because having the message handler and the CompletableFuture both being
|
||||
// on the same thread will create deadlocks.
|
||||
UiThreadStatement.runOnUiThread(() -> engine.set(new FlutterEngine(applicationContext)));
|
||||
SettableFuture<Boolean> statusReceived = new SettableFuture<>();
|
||||
SettableFuture<Boolean> statusReceived = SettableFuture.create();
|
||||
|
||||
// Resolve locale to `en_US`.
|
||||
// This is required, so `window.locale` in populated in dart.
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package dev.flutter.scenariosui;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
@@ -17,7 +18,7 @@ import org.junit.runner.RunWith;
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@LargeTest
|
||||
public class MemoryLeakTests {
|
||||
@Rule
|
||||
@Rule @NonNull
|
||||
public ActivityTestRule<TextPlatformViewActivity> activityRule =
|
||||
new ActivityTestRule<>(
|
||||
TextPlatformViewActivity.class, /*initialTouchMode=*/ false, /*launchActivity=*/ false);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package dev.flutter.scenariosui;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
@@ -19,7 +20,7 @@ import org.junit.runner.RunWith;
|
||||
public class PlatformTextureUiTests {
|
||||
Intent intent;
|
||||
|
||||
@Rule
|
||||
@Rule @NonNull
|
||||
public ActivityTestRule<TextPlatformViewActivity> activityRule =
|
||||
new ActivityTestRule<>(
|
||||
TextPlatformViewActivity.class, /*initialTouchMode=*/ false, /*launchActivity=*/ false);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package dev.flutter.scenariosui;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
@@ -19,7 +20,7 @@ import org.junit.runner.RunWith;
|
||||
public class PlatformViewUiTests {
|
||||
Intent intent;
|
||||
|
||||
@Rule
|
||||
@Rule @NonNull
|
||||
public ActivityTestRule<TextPlatformViewActivity> activityRule =
|
||||
new ActivityTestRule<>(
|
||||
TextPlatformViewActivity.class, /*initialTouchMode=*/ false, /*launchActivity=*/ false);
|
||||
|
||||
@@ -9,6 +9,8 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.util.Xml;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.test.InstrumentationRegistry;
|
||||
import androidx.test.runner.AndroidJUnitRunner;
|
||||
import com.facebook.testing.screenshot.ScreenshotRunner;
|
||||
@@ -41,7 +43,8 @@ public class ScreenshotUtil {
|
||||
private static ScreenshotUtil instance;
|
||||
private static int BUFFER_SIZE = 1 << 16; // 64K
|
||||
|
||||
private static ScreenshotUtil getInstance() {
|
||||
@NonNull
|
||||
protected static ScreenshotUtil getInstance() {
|
||||
synchronized (ScreenshotUtil.class) {
|
||||
if (instance == null) {
|
||||
instance = new ScreenshotUtil();
|
||||
@@ -132,7 +135,7 @@ public class ScreenshotUtil {
|
||||
*
|
||||
* <p>The activity must be already launched.
|
||||
*/
|
||||
public static void capture(TestableFlutterActivity activity)
|
||||
public static void capture(@NonNull TestableFlutterActivity activity)
|
||||
throws InterruptedException, ExecutionException, IOException {
|
||||
// Yield and wait for the engine to render the first Flutter frame.
|
||||
activity.waitUntilFlutterRendered();
|
||||
@@ -177,7 +180,7 @@ public class ScreenshotUtil {
|
||||
*
|
||||
* <p>Call this method from {@code AndroidJUnitRunner#onCreate}.
|
||||
*/
|
||||
public static void onCreate(AndroidJUnitRunner runner, Bundle arguments) {
|
||||
public static void onCreate(@NonNull AndroidJUnitRunner runner, @Nullable Bundle arguments) {
|
||||
ScreenshotRunner.onCreate(runner, arguments);
|
||||
ScreenshotUtil.getInstance().init();
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package dev.flutter.scenariosui;
|
||||
|
||||
import android.content.Intent;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.rule.ActivityTestRule;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
@@ -19,7 +20,7 @@ import org.junit.runner.RunWith;
|
||||
public class SpawnEngineTests {
|
||||
Intent intent;
|
||||
|
||||
@Rule
|
||||
@Rule @NonNull
|
||||
public ActivityTestRule<SpawnedEngineActivity> activityRule =
|
||||
new ActivityTestRule<>(
|
||||
SpawnedEngineActivity.class, /*initialTouchMode=*/ false, /*launchActivity=*/ false);
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="dev.flutter.scenarios">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<application
|
||||
android:name="io.flutter.app.FlutterApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:allowBackup="false"
|
||||
android:label="Scenarios App"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
@@ -49,5 +48,4 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
||||
|
||||
@@ -13,6 +13,7 @@ public class SpawnedEngineActivity extends TestActivity {
|
||||
static final String TAG = "Scenarios";
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public FlutterEngine provideFlutterEngine(@NonNull Context context) {
|
||||
FlutterEngineGroup engineGroup = new FlutterEngineGroup(context);
|
||||
engineGroup.createAndRunDefaultEngine(context);
|
||||
|
||||
@@ -6,13 +6,14 @@ 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(Bundle savedInstanceState) {
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
StrictMode.setThreadPolicy(
|
||||
new StrictMode.ThreadPolicy.Builder()
|
||||
.detectDiskReads()
|
||||
|
||||
@@ -13,6 +13,7 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import io.flutter.Log;
|
||||
import io.flutter.embedding.engine.FlutterShellArgs;
|
||||
import io.flutter.embedding.engine.loader.FlutterLoader;
|
||||
@@ -28,11 +29,11 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public class TestActivity extends TestableFlutterActivity {
|
||||
public abstract class TestActivity extends TestableFlutterActivity {
|
||||
static final String TAG = "Scenarios";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
final Intent launchIntent = getIntent();
|
||||
if ("com.google.intent.action.TEST_LOOP".equals(launchIntent.getAction())) {
|
||||
@@ -80,7 +81,7 @@ public class TestActivity extends TestableFlutterActivity {
|
||||
channel.invokeMethod("set_scenario", test);
|
||||
}
|
||||
|
||||
private void writeTimelineData(Uri logFile) {
|
||||
protected void writeTimelineData(@Nullable Uri logFile) {
|
||||
if (logFile == null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
@@ -112,7 +113,7 @@ public class TestActivity extends TestableFlutterActivity {
|
||||
* io.flutter.embedding.engine.loader.FlutterLoader#ensureInitializationCompleteAsync(Context,
|
||||
* String[], Handler, Runnable)} invokes its callback when called after initialization.
|
||||
*/
|
||||
private void testFlutterLoaderCallbackWhenInitializedTwice() {
|
||||
protected void testFlutterLoaderCallbackWhenInitializedTwice() {
|
||||
FlutterLoader flutterLoader = new FlutterLoader();
|
||||
|
||||
// Flutter is probably already loaded in this app based on
|
||||
|
||||
@@ -4,16 +4,17 @@
|
||||
|
||||
package dev.flutter.scenarios;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import io.flutter.embedding.android.FlutterActivity;
|
||||
import io.flutter.embedding.engine.FlutterEngine;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
public class TestableFlutterActivity extends FlutterActivity {
|
||||
public abstract class TestableFlutterActivity extends FlutterActivity {
|
||||
private Object flutterUiRenderedLock = new Object();
|
||||
private AtomicBoolean isScenarioReady = new AtomicBoolean(false);
|
||||
|
||||
@Override
|
||||
public void configureFlutterEngine(FlutterEngine flutterEngine) {
|
||||
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine);
|
||||
flutterEngine
|
||||
.getDartExecutor()
|
||||
|
||||
@@ -8,13 +8,15 @@ import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import io.flutter.plugin.platform.PlatformView;
|
||||
|
||||
public class TextPlatformView implements PlatformView {
|
||||
private final TextView textView;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
TextPlatformView(final Context context, int id, String params) {
|
||||
TextPlatformView(@NonNull final Context context, int id, @Nullable String params) {
|
||||
textView = new TextView(context);
|
||||
textView.setTextSize(72);
|
||||
textView.setBackgroundColor(Color.rgb(255, 255, 255));
|
||||
@@ -22,6 +24,7 @@ public class TextPlatformView implements PlatformView {
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public View getView() {
|
||||
return textView;
|
||||
}
|
||||
|
||||
@@ -4,13 +4,14 @@
|
||||
|
||||
package dev.flutter.scenarios;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import io.flutter.embedding.engine.FlutterEngine;
|
||||
|
||||
public class TextPlatformViewActivity extends TestActivity {
|
||||
static final String TAG = "Scenarios";
|
||||
|
||||
@Override
|
||||
public void configureFlutterEngine(FlutterEngine flutterEngine) {
|
||||
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine);
|
||||
flutterEngine
|
||||
.getPlatformViewsController()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package dev.flutter.scenarios;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import io.flutter.plugin.common.MessageCodec;
|
||||
import io.flutter.plugin.common.StringCodec;
|
||||
@@ -35,7 +36,8 @@ public final class TextPlatformViewFactory extends PlatformViewFactory {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public PlatformView create(Context context, int id, Object args) {
|
||||
@NonNull
|
||||
public PlatformView create(@NonNull Context context, int id, @Nullable Object args) {
|
||||
String params = (String) args;
|
||||
return new TextPlatformView(context, id, params);
|
||||
}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
package io.flutter.plugins;
|
||||
|
||||
import io.flutter.plugin.common.PluginRegistry;
|
||||
|
||||
/**
|
||||
* Generated file. Do not edit.
|
||||
*/
|
||||
public final class GeneratedPluginRegistrant {
|
||||
public static void registerWith(PluginRegistry registry) {
|
||||
if (alreadyRegisteredWith(registry)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
|
||||
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
|
||||
if (registry.hasPlugin(key)) {
|
||||
return true;
|
||||
}
|
||||
registry.registrarFor(key);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
@@ -1,170 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#008577"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 15 KiB |
@@ -1,3 +0,0 @@
|
||||
<resources>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
</resources>
|
||||
@@ -1,5 +0,0 @@
|
||||
<resources>
|
||||
<string name="app_name">Scenarios</string>
|
||||
<string name="title_activity_main">MainActivity</string>
|
||||
<string name="leak_canary_test_class_name">assertk.Assert</string>
|
||||
</resources>
|
||||
@@ -15,8 +15,4 @@
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
android.enableR8=true
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
|
||||