diff --git a/packages/camera/camera/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/camera/camera/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/camera/camera/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/camera/camera/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/camera/camera/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/camera/camera/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/camera/camera_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/camera/camera_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/camera/camera_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/camera/camera_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/camera/camera_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/camera/camera_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/camera/camera_android_camerax/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/camera/camera_android_camerax/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/camera/camera_android_camerax/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/camera/camera_android_camerax/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/camera/camera_android_camerax/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/camera/camera_android_camerax/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/camera/camera_android_camerax/example/android/app/src/main/java/io/flutter/plugins/cameraxexample/MainActivity.java b/packages/camera/camera_android_camerax/example/android/app/src/main/java/io/flutter/plugins/cameraxexample/MainActivity.java deleted file mode 100644 index e96363d01979..000000000000 --- a/packages/camera/camera_android_camerax/example/android/app/src/main/java/io/flutter/plugins/cameraxexample/MainActivity.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.cameraxexample; - -import io.flutter.embedding.android.FlutterActivity; - -public class MainActivity extends FlutterActivity {} diff --git a/packages/camera/camera_android_camerax/example/android/app/src/main/kotlin/io/flutter/plugins/cameraxexample/MainActivity.kt b/packages/camera/camera_android_camerax/example/android/app/src/main/kotlin/io/flutter/plugins/cameraxexample/MainActivity.kt new file mode 100644 index 000000000000..546e2fa37654 --- /dev/null +++ b/packages/camera/camera_android_camerax/example/android/app/src/main/kotlin/io/flutter/plugins/cameraxexample/MainActivity.kt @@ -0,0 +1,9 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.cameraxexample + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/packages/espresso/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/espresso/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/espresso/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/espresso/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/espresso/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/espresso/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java b/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java deleted file mode 100644 index 92e6f47d634d..000000000000 --- a/packages/espresso/example/android/app/src/main/java/com/example/espresso_example/MainActivity.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package com.example.espresso_example; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -public class MainActivity extends FlutterActivity { - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - } -} diff --git a/packages/espresso/example/android/app/src/main/kotlin/com/example/espresso_example/MainActivity.kt b/packages/espresso/example/android/app/src/main/kotlin/com/example/espresso_example/MainActivity.kt new file mode 100644 index 000000000000..8006df4299a0 --- /dev/null +++ b/packages/espresso/example/android/app/src/main/kotlin/com/example/espresso_example/MainActivity.kt @@ -0,0 +1,9 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.example.espresso_example + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/packages/file_selector/file_selector/example/android/app/src/main/kotlin/dev/flutter/plugins/file_selector_example/MainActivity.kt b/packages/file_selector/file_selector/example/android/app/src/main/kotlin/dev/flutter/plugins/file_selector_example/MainActivity.kt index 83755ddc1eac..beab21cf55b9 100644 --- a/packages/file_selector/file_selector/example/android/app/src/main/kotlin/dev/flutter/plugins/file_selector_example/MainActivity.kt +++ b/packages/file_selector/file_selector/example/android/app/src/main/kotlin/dev/flutter/plugins/file_selector_example/MainActivity.kt @@ -6,4 +6,4 @@ package dev.flutter.plugins.file_selector_example import io.flutter.embedding.android.FlutterActivity -class MainActivity : FlutterActivity() {} +class MainActivity : FlutterActivity() diff --git a/packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/MainActivity.java b/packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/MainActivity.java deleted file mode 100644 index 9814a4e31681..000000000000 --- a/packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/MainActivity.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package dev.flutter.packages.file_selector_android_example; - -import io.flutter.embedding.android.FlutterActivity; - -public class MainActivity extends FlutterActivity {} diff --git a/packages/file_selector/file_selector_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java b/packages/file_selector/file_selector_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/file_selector/file_selector_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/video_player/video_player_android/example/android/app/src/main/java/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.java b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.kt similarity index 58% rename from packages/video_player/video_player_android/example/android/app/src/main/java/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.java rename to packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.kt index a379692d530a..1acf337d908d 100644 --- a/packages/video_player/video_player_android/example/android/app/src/main/java/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.java +++ b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.kt @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -package io.flutter.plugins.videoplayerexample; +package dev.flutter.packages.file_selector_android_example -import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.android.FlutterActivity /** Test Activity that sets the name of the Dart method entrypoint in the manifest. */ -public class DriverExtensionActivity extends FlutterActivity {} +class DriverExtensionActivity : FlutterActivity() diff --git a/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/MainActivity.kt b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/MainActivity.kt new file mode 100644 index 000000000000..5351a5519f1f --- /dev/null +++ b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/dev/flutter/packages/file_selector_android_example/MainActivity.kt @@ -0,0 +1,9 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package dev.flutter.packages.file_selector_android_example + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/file_selector/file_selector_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/flutter_plugin_android_lifecycle/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java deleted file mode 100644 index 863918b51caf..000000000000 --- a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.googlemapsexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class GoogleMapsTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt new file mode 100644 index 000000000000..7a4c7e392c13 --- /dev/null +++ b/packages/google_maps_flutter/google_maps_flutter/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.googlemapsexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class GoogleMapsTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java deleted file mode 100644 index 863918b51caf..000000000000 --- a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/java/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.googlemapsexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class GoogleMapsTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt new file mode 100644 index 000000000000..7a4c7e392c13 --- /dev/null +++ b/packages/google_maps_flutter/google_maps_flutter_android/example/android/app/src/debug/kotlin/io/flutter/plugins/googlemapsexample/GoogleMapsTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.googlemapsexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class GoogleMapsTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/google_sign_in/google_sign_in/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/google_sign_in/google_sign_in/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java b/packages/google_sign_in/google_sign_in/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java deleted file mode 100644 index 9599e403e4fc..000000000000 --- a/packages/google_sign_in/google_sign_in/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.googlesigninexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class GoogleSignInTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/google_sign_in/google_sign_in/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt b/packages/google_sign_in/google_sign_in/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt new file mode 100644 index 000000000000..da85db04dfb5 --- /dev/null +++ b/packages/google_sign_in/google_sign_in/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.googlesigninexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class GoogleSignInTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/google_sign_in/google_sign_in_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java b/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java deleted file mode 100644 index 9599e403e4fc..000000000000 --- a/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/java/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.googlesigninexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class GoogleSignInTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt b/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt new file mode 100644 index 000000000000..da85db04dfb5 --- /dev/null +++ b/packages/google_sign_in/google_sign_in_android/example/android/app/src/main/kotlin/io/flutter/plugins/googlesigninexample/GoogleSignInTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.googlesigninexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class GoogleSignInTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/image_picker/image_picker/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/image_picker/image_picker/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/image_picker/image_picker/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/image_picker/image_picker/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/image_picker/image_picker/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/image_picker/image_picker/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java b/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java deleted file mode 100644 index 5cda97345da5..000000000000 --- a/packages/image_picker/image_picker/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.imagepickerexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class ImagePickerTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/image_picker/image_picker/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt b/packages/image_picker/image_picker/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt new file mode 100644 index 000000000000..ffba8a58af71 --- /dev/null +++ b/packages/image_picker/image_picker/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.imagepickerexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class ImagePickerTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/image_picker/image_picker_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/image_picker/image_picker_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/image_picker/image_picker_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/image_picker/image_picker_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/image_picker/image_picker_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/image_picker/image_picker_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.java b/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.java deleted file mode 100644 index a8477f8b2285..000000000000 --- a/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.imagepickerexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; - -public class DriverExtensionActivity extends FlutterActivity { - @NonNull - @Override - public String getDartEntrypointFunctionName() { - return "appMain"; - } -} diff --git a/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java b/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java deleted file mode 100644 index 5cda97345da5..000000000000 --- a/packages/image_picker/image_picker_android/example/android/app/src/main/java/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.imagepickerexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class ImagePickerTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.kt b/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.kt new file mode 100644 index 000000000000..26e0e485f656 --- /dev/null +++ b/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/DriverExtensionActivity.kt @@ -0,0 +1,11 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.imagepickerexample + +import io.flutter.embedding.android.FlutterActivity + +class DriverExtensionActivity : FlutterActivity() { + override fun getDartEntrypointFunctionName(): String = "appMain" +} diff --git a/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt b/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt new file mode 100644 index 000000000000..ffba8a58af71 --- /dev/null +++ b/packages/image_picker/image_picker_android/example/android/app/src/main/kotlin/io/flutter/plugins/imagepickerexample/ImagePickerTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.imagepickerexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class ImagePickerTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/in_app_purchase/in_app_purchase/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/in_app_purchase/in_app_purchase_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/local_auth/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/local_auth/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/local_auth/local_auth/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/local_auth/local_auth/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/local_auth/local_auth/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/local_auth/local_auth/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/local_auth/local_auth_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/local_auth/local_auth_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/local_auth/local_auth_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/local_auth/local_auth_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/local_auth/local_auth_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/local_auth/local_auth_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/path_provider/path_provider/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/path_provider/path_provider/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/path_provider/path_provider/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/path_provider/path_provider/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/path_provider/path_provider/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/path_provider/path_provider_android/example/android/app/build.gradle.kts b/packages/path_provider/path_provider_android/example/android/app/build.gradle.kts index 38233e1b2442..07a643d04e59 100644 --- a/packages/path_provider/path_provider_android/example/android/app/build.gradle.kts +++ b/packages/path_provider/path_provider_android/example/android/app/build.gradle.kts @@ -7,6 +7,11 @@ android { namespace = "io.flutter.plugins.pathproviderexample" compileSdk = flutter.compileSdkVersion + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + defaultConfig { applicationId = "io.flutter.plugins.pathproviderexample" minSdk = flutter.minSdkVersion diff --git a/packages/path_provider/path_provider_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/path_provider/path_provider_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/path_provider/path_provider_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/path_provider/path_provider_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/path_provider/path_provider_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/path_provider/path_provider_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/java/com/example/alternate_language_test_plugin_example/MainActivity.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/java/com/example/alternate_language_test_plugin_example/MainActivity.java deleted file mode 100644 index 33024190db63..000000000000 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/java/com/example/alternate_language_test_plugin_example/MainActivity.java +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package com.example.alternate_language_test_plugin_example; - -import io.flutter.embedding.android.FlutterActivity; - -public class MainActivity extends FlutterActivity {} diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/kotlin/com/example/alternate_language_test_plugin_example/MainActivity.kt b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/kotlin/com/example/alternate_language_test_plugin_example/MainActivity.kt new file mode 100644 index 000000000000..eb3467876e6c --- /dev/null +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/android/app/src/main/kotlin/com/example/alternate_language_test_plugin_example/MainActivity.kt @@ -0,0 +1,9 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package com.example.alternate_language_test_plugin_example + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/packages/pigeon/platform_tests/test_plugin/example/android/app/src/main/kotlin/com/example/test_plugin_example/MainActivity.kt b/packages/pigeon/platform_tests/test_plugin/example/android/app/src/main/kotlin/com/example/test_plugin_example/MainActivity.kt index 97a28981c1b6..6d59e01bc5e1 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/android/app/src/main/kotlin/com/example/test_plugin_example/MainActivity.kt +++ b/packages/pigeon/platform_tests/test_plugin/example/android/app/src/main/kotlin/com/example/test_plugin_example/MainActivity.kt @@ -6,4 +6,4 @@ package com.example.test_plugin_example import io.flutter.embedding.android.FlutterActivity -class MainActivity : FlutterActivity() {} +class MainActivity : FlutterActivity() diff --git a/packages/quick_actions/quick_actions/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/quick_actions/quick_actions/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/quick_actions/quick_actions/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/quick_actions/quick_actions/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/quick_actions/quick_actions/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/quick_actions/quick_actions/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/quick_actions/quick_actions/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java b/packages/quick_actions/quick_actions/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java deleted file mode 100644 index e7bec2fd5b90..000000000000 --- a/packages/quick_actions/quick_actions/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.quickactionsexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class QuickActionsTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/quick_actions/quick_actions/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt b/packages/quick_actions/quick_actions/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt new file mode 100644 index 000000000000..9f7056f50974 --- /dev/null +++ b/packages/quick_actions/quick_actions/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.quickactionsexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class QuickActionsTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/quick_actions/quick_actions_android/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java b/packages/quick_actions/quick_actions_android/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java deleted file mode 100644 index e7bec2fd5b90..000000000000 --- a/packages/quick_actions/quick_actions_android/example/android/app/src/main/java/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.quickactionsexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Makes the FlutterEngine accessible for testing. -public class QuickActionsTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/quick_actions/quick_actions_android/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt b/packages/quick_actions/quick_actions_android/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt new file mode 100644 index 000000000000..9f7056f50974 --- /dev/null +++ b/packages/quick_actions/quick_actions_android/example/android/app/src/main/kotlin/io/flutter/plugins/quickactionsexample/QuickActionsTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.quickactionsexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Makes the FlutterEngine accessible for testing. +class QuickActionsTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/shared_preferences/shared_preferences/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java b/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/shared_preferences/shared_preferences_android/example/android/app/src/main/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/url_launcher/url_launcher/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/url_launcher/url_launcher/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/url_launcher/url_launcher/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/url_launcher/url_launcher/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/url_launcher/url_launcher/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/url_launcher/url_launcher/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index 237dc9047016..000000000000 --- a/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/url_launcher/url_launcher_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/video_player/video_player/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/video_player/video_player/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/video_player/video_player/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/video_player/video_player/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/video_player/video_player/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/video_player/video_player/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/video_player/video_player_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/video_player/video_player_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/video_player/video_player_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/video_player/video_player_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/video_player/video_player_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/video_player/video_player_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.java b/packages/video_player/video_player_android/example/android/app/src/main/kotlin/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.kt similarity index 56% rename from packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.java rename to packages/video_player/video_player_android/example/android/app/src/main/kotlin/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.kt index fdf9c0db2660..3dd6db861208 100644 --- a/packages/file_selector/file_selector_android/example/android/app/src/main/java/dev/flutter/packages/file_selector_android_example/DriverExtensionActivity.java +++ b/packages/video_player/video_player_android/example/android/app/src/main/kotlin/io/flutter/plugins/videoplayerexample/DriverExtensionActivity.kt @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -package dev.flutter.packages.file_selector_android_example; +package io.flutter.plugins.videoplayerexample -import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.android.FlutterActivity /** Test Activity that sets the name of the Dart method entrypoint in the manifest. */ -public class DriverExtensionActivity extends FlutterActivity {} +class DriverExtensionActivity : FlutterActivity() diff --git a/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/webview_flutter/webview_flutter/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/webview_flutter/webview_flutter/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java b/packages/webview_flutter/webview_flutter/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java deleted file mode 100644 index 065d7da169f0..000000000000 --- a/packages/webview_flutter/webview_flutter/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.webviewflutterexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Extends FlutterActivity to make the FlutterEngine accessible for testing. -public class WebViewTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/webview_flutter/webview_flutter/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt b/packages/webview_flutter/webview_flutter/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt new file mode 100644 index 000000000000..28ef871de927 --- /dev/null +++ b/packages/webview_flutter/webview_flutter/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.webviewflutterexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Extends FlutterActivity to make the FlutterEngine accessible for testing. +class WebViewTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +} diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java b/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java deleted file mode 100644 index bc81811a048e..000000000000 --- a/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/* - * Annotation to aid repository tooling in determining if a test is - * a native java unit test or a java class with a dart integration. - * - * See: https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests - * for more information. - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface DartIntegrationTest {} diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt b/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt new file mode 100644 index 000000000000..6b025ff36fba --- /dev/null +++ b/packages/webview_flutter/webview_flutter_android/example/android/app/src/androidTest/kotlin/io/flutter/plugins/DartIntegrationTest.kt @@ -0,0 +1,17 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins + +/** + * Annotation to aid repository tooling in determining if a test is a native java unit test or a + * java class with a dart integration. + * + * See: + * https://github.com/flutter/flutter/blob/master/docs/ecosystem/testing/Plugin-Tests.md#enabling-android-ui-tests + * for more information. + */ +@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.CLASS) +annotation class DartIntegrationTest diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.java b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.java deleted file mode 100644 index 03bd4b52a4b3..000000000000 --- a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.webviewflutterexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; - -public class DriverExtensionActivity extends FlutterActivity { - @Override - @NonNull - public String getDartEntrypointFunctionName() { - return "appMain"; - } -} diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java deleted file mode 100644 index 065d7da169f0..000000000000 --- a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/java/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -package io.flutter.plugins.webviewflutterexample; - -import androidx.annotation.NonNull; -import io.flutter.embedding.android.FlutterActivity; -import io.flutter.embedding.engine.FlutterEngine; - -// Extends FlutterActivity to make the FlutterEngine accessible for testing. -public class WebViewTestActivity extends FlutterActivity { - public FlutterEngine engine; - - @Override - public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { - super.configureFlutterEngine(flutterEngine); - engine = flutterEngine; - } -} diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.kt b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.kt new file mode 100644 index 000000000000..0b83cefdfade --- /dev/null +++ b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/DriverExtensionActivity.kt @@ -0,0 +1,11 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.webviewflutterexample + +import io.flutter.embedding.android.FlutterActivity + +class DriverExtensionActivity : FlutterActivity() { + override fun getDartEntrypointFunctionName(): String = "appMain" +} diff --git a/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt new file mode 100644 index 000000000000..28ef871de927 --- /dev/null +++ b/packages/webview_flutter/webview_flutter_android/example/android/app/src/main/kotlin/io/flutter/plugins/webviewflutterexample/WebViewTestActivity.kt @@ -0,0 +1,18 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.plugins.webviewflutterexample + +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine + +// Extends FlutterActivity to make the FlutterEngine accessible for testing. +class WebViewTestActivity : FlutterActivity() { + @JvmField var engine: FlutterEngine? = null + + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + engine = flutterEngine + } +}