Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
78ae502
initial flutter create
bparrishMines Feb 5, 2024
6847016
add repo required stuff
bparrishMines Feb 5, 2024
b49ae74
fix pubspecs and add licenses
bparrishMines Feb 5, 2024
c1067a6
remove analysis options
bparrishMines Feb 5, 2024
3f7f6bb
fix analyze warnings
bparrishMines Feb 5, 2024
b29653d
add podfile for example
bparrishMines Feb 5, 2024
c0cff54
add base platform interface classes
bparrishMines Feb 5, 2024
0801f4c
fix analyze warning
bparrishMines Feb 5, 2024
c980a80
more impls
bparrishMines Feb 5, 2024
d2bde70
use verify token
bparrishMines Feb 5, 2024
e54e56a
add app facing interface
bparrishMines Feb 5, 2024
e4bdf45
implementation of addisplaycontainer
bparrishMines Feb 6, 2024
bab7c98
connect app facing to platform interface
bparrishMines Feb 6, 2024
645753a
stuff
bparrishMines Feb 6, 2024
3c60012
add documentation
bparrishMines Feb 7, 2024
972c0ed
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 7, 2024
45e3fba
cleanup some dart
bparrishMines Feb 7, 2024
16b0a7d
add first interface test
bparrishMines Feb 8, 2024
6c1b1ad
test platform ad display container
bparrishMines Feb 8, 2024
e9f92db
ads manager delegate tests
bparrishMines Feb 8, 2024
9c8ee61
add app facing tests
bparrishMines Feb 8, 2024
8ae248a
finish tests
bparrishMines Feb 8, 2024
b6e2014
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 8, 2024
89d10a9
fix lint errors
bparrishMines Feb 8, 2024
7a82249
formatting
bparrishMines Feb 8, 2024
764d97b
fix more lints
bparrishMines Feb 8, 2024
c38bf50
update readme about development
bparrishMines Feb 8, 2024
04eadac
update podspec
bparrishMines Feb 8, 2024
4fa492e
try fix podspec again
bparrishMines Feb 8, 2024
37c3fe3
formatting
bparrishMines Feb 8, 2024
aef9c3d
fix more lints
bparrishMines Feb 8, 2024
1aa0455
try getting integration tests running
bparrishMines Feb 8, 2024
ef693a8
try gradle 8
bparrishMines Feb 8, 2024
7574d7c
maybe fix
bparrishMines Feb 8, 2024
52083c0
try fixing integration test runner
bparrishMines Feb 8, 2024
45f57b0
remove espresso
bparrishMines Feb 8, 2024
321ba99
change package name
bparrishMines Feb 9, 2024
c4ceda3
change dartintegrationteset location
bparrishMines Feb 9, 2024
c80733d
bump gradle for legacy project
bparrishMines Feb 9, 2024
ca7eb6a
for kotlin
bparrishMines Feb 9, 2024
d2e6974
add the dot
bparrishMines Feb 9, 2024
bdf655f
fix gradle
bparrishMines Feb 9, 2024
0ebe298
try fix gradle
bparrishMines Feb 9, 2024
6d135cd
lower versions for compilation
bparrishMines Feb 9, 2024
8d31250
fix import
bparrishMines Feb 9, 2024
7384eff
fix package name
bparrishMines Feb 10, 2024
78b4067
add wake lock permission
bparrishMines Feb 12, 2024
8d44136
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 12, 2024
4691fb0
add file
bparrishMines Feb 12, 2024
0870a5a
try remaking plugin
bparrishMines Feb 12, 2024
8e0c675
replace old with new
bparrishMines Feb 12, 2024
e5575bd
fix package name
bparrishMines Feb 12, 2024
e782cc3
formatting
bparrishMines Feb 12, 2024
39dcf50
try to add integration test
bparrishMines Feb 12, 2024
7ea9beb
add licenses
bparrishMines Feb 12, 2024
c90e582
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 12, 2024
78fe3b6
add test implementation runner
bparrishMines Feb 13, 2024
e191fd5
change file location
bparrishMines Feb 13, 2024
c790f46
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 13, 2024
a8785ef
fix integration test
bparrishMines Feb 13, 2024
5e6c9e7
fix integration tests again
bparrishMines Feb 13, 2024
350c216
try close system dialog
bparrishMines Feb 13, 2024
68c854e
add to int test too i guess
bparrishMines Feb 13, 2024
ec017ba
try doing nothing in int test
bparrishMines Feb 13, 2024
1fbd152
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 13, 2024
1e8a3c3
add launch android test
bparrishMines Feb 13, 2024
4222ea2
use with text and not key
bparrishMines Feb 13, 2024
9d8a55a
add a print
bparrishMines Feb 13, 2024
93bc180
add print
bparrishMines Feb 14, 2024
886bf26
add pragmas
bparrishMines Feb 14, 2024
ac4714c
fwoaie
bparrishMines Feb 14, 2024
43e2023
undo
bparrishMines Feb 14, 2024
331b163
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 14, 2024
6fc8d04
add kotlin to androidtest maybe
bparrishMines Feb 14, 2024
9de555f
undo
bparrishMines Feb 14, 2024
7fc6b5a
remove int test
bparrishMines Feb 14, 2024
ff73a65
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Feb 18, 2024
f764bfb
update dart and flutter versions
bparrishMines Feb 18, 2024
50e2f20
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Mar 6, 2024
93e62fc
PR comments
bparrishMines Mar 17, 2024
378b539
change platform to base
bparrishMines Mar 20, 2024
3579326
update platform classes with base
bparrishMines Mar 20, 2024
8c45df5
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Mar 20, 2024
630ecba
remove todos
bparrishMines Mar 20, 2024
dfbb53d
make methods required
bparrishMines Mar 26, 2024
25fc282
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Mar 26, 2024
476a4bc
since methods are required no tests are needed
bparrishMines Mar 27, 2024
1fef696
Merge branch 'main' of github.com:flutter/packages into ima
bparrishMines Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,34 @@ updates:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "/packages/interactive_media_ads/android"
commit-message:
prefix: "[interactive_media_ads]"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
ignore:
- dependency-name: "com.android.tools.build:gradle"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "junit:junit"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "org.mockito:*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- dependency-name: "androidx.test:*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "/packages/interactive_media_ads/example/android/app"
commit-message:
prefix: "[interactive_media_ads]"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

- package-ecosystem: "gradle"
directory: "/packages/image_picker/image_picker/example/android/app"
commit-message:
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ packages/google_identity_services_web/** @ditman
packages/google_maps_flutter/** @stuartmorgan
packages/google_sign_in/** @stuartmorgan
packages/image_picker/** @tarrinneal
packages/interactive_media_ads/** @bparrishMines
packages/in_app_purchase/** @bparrishMines
packages/local_auth/** @stuartmorgan
packages/metrics_center/** @keyonghan
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ These are the packages hosted in this repository:
| [google\_maps\_flutter](./packages/google_maps_flutter/) | [![pub package](https://img.shields.io/pub/v/google_maps_flutter.svg)](https://pub.dev/packages/google_maps_flutter) | [![pub points](https://img.shields.io/pub/points/google_maps_flutter)](https://pub.dev/packages/google_maps_flutter/score) | [![popularity](https://img.shields.io/pub/popularity/google_maps_flutter)](https://pub.dev/packages/google_maps_flutter/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20maps?label=)](https://github.com/flutter/flutter/labels/p%3A%20maps) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_maps_flutter?label=)](https://github.com/flutter/packages/labels/p%3A%20google_maps_flutter) |
| [google\_sign\_in](./packages/google_sign_in/) | [![pub package](https://img.shields.io/pub/v/google_sign_in.svg)](https://pub.dev/packages/google_sign_in) | [![pub points](https://img.shields.io/pub/points/google_sign_in)](https://pub.dev/packages/google_sign_in/score) | [![popularity](https://img.shields.io/pub/popularity/google_sign_in)](https://pub.dev/packages/google_sign_in/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20google_sign_in?label=)](https://github.com/flutter/flutter/labels/p%3A%20google_sign_in) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20google_sign_in?label=)](https://github.com/flutter/packages/labels/p%3A%20google_sign_in) |
| [image\_picker](./packages/image_picker/) | [![pub package](https://img.shields.io/pub/v/image_picker.svg)](https://pub.dev/packages/image_picker) | [![pub points](https://img.shields.io/pub/points/image_picker)](https://pub.dev/packages/image_picker/score) | [![popularity](https://img.shields.io/pub/popularity/image_picker)](https://pub.dev/packages/image_picker/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20image_picker?label=)](https://github.com/flutter/flutter/labels/p%3A%20image_picker) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20image_picker?label=)](https://github.com/flutter/packages/labels/p%3A%20image_picker) |
| [interactive\_media\_ads](./packages/interactive_media_ads/) | [![pub package](https://img.shields.io/pub/v/interactive_media_ads.svg)](https://pub.dev/packages/interactive_media_ads) | [![pub points](https://img.shields.io/pub/points/interactive_media_ads)](https://pub.dev/packages/interactive_media_ads/score) | [![popularity](https://img.shields.io/pub/popularity/interactive_media_ads)](https://pub.dev/packages/interactive_media_ads/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20interactive_media_ads?label=)](https://github.com/flutter/flutter/labels/p%3A%20interactive_media_ads) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20interactive_media_ads?label=)](https://github.com/flutter/packages/labels/p%3A%20interactive_media_ads) |
| [in\_app\_purchase](./packages/in_app_purchase/) | [![pub package](https://img.shields.io/pub/v/in_app_purchase.svg)](https://pub.dev/packages/in_app_purchase) | [![pub points](https://img.shields.io/pub/points/in_app_purchase)](https://pub.dev/packages/in_app_purchase/score) | [![popularity](https://img.shields.io/pub/popularity/in_app_purchase)](https://pub.dev/packages/in_app_purchase/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20in_app_purchase?label=)](https://github.com/flutter/flutter/labels/p%3A%20in_app_purchase) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20in_app_purchase?label=)](https://github.com/flutter/packages/labels/p%3A%20in_app_purchase) |
| [ios\_platform\_images](./packages/ios_platform_images/) | [![pub package](https://img.shields.io/pub/v/ios_platform_images.svg)](https://pub.dev/packages/ios_platform_images) | [![pub points](https://img.shields.io/pub/points/ios_platform_images)](https://pub.dev/packages/ios_platform_images/score) | [![popularity](https://img.shields.io/pub/popularity/ios_platform_images)](https://pub.dev/packages/ios_platform_images/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20ios_platform_images?label=)](https://github.com/flutter/flutter/labels/p%3A%20ios_platform_images) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20ios_platform_images?label=)](https://github.com/flutter/packages/labels/p%3A%20ios_platform_images) |
| [local\_auth](./packages/local_auth/) | [![pub package](https://img.shields.io/pub/v/local_auth.svg)](https://pub.dev/packages/local_auth) | [![pub points](https://img.shields.io/pub/points/local_auth)](https://pub.dev/packages/local_auth/score) | [![popularity](https://img.shields.io/pub/popularity/local_auth)](https://pub.dev/packages/local_auth/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20local_auth?label=)](https://github.com/flutter/flutter/labels/p%3A%20local_auth) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20local_auth?label=)](https://github.com/flutter/packages/labels/p%3A%20local_auth) |
Expand Down
6 changes: 6 additions & 0 deletions packages/interactive_media_ads/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the Flutter project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
3 changes: 3 additions & 0 deletions packages/interactive_media_ads/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* Adds platform interface for Android and iOS.
25 changes: 25 additions & 0 deletions packages/interactive_media_ads/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright 2013 The Flutter Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15 changes: 15 additions & 0 deletions packages/interactive_media_ads/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# interactive\_media\_ads

Flutter plugin for the [Interactive Media Ads SDKs][1].

[![pub package](https://img.shields.io/pub/v/webview_flutter.svg)](https://pub.dev/packages/interactive_media_ads)

A Flutter plugin for using the Interactive Media Ads SDKs on Android and iOS.

| | Android | iOS |
|-------------|---------|-------|
| **Support** | SDK 19+ | 12.0+ |

**This package is still in development.**

[1]: https://developers.google.com/interactive-media-ads
78 changes: 78 additions & 0 deletions packages/interactive_media_ads/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
group 'dev.flutter.packages.interactive_media_ads'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
if (project.android.hasProperty("namespace")) {
namespace 'dev.flutter.packages.interactive_media_ads'
}

compileSdk 34

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}

defaultConfig {
minSdk 19
}

dependencies {
implementation 'androidx.annotation:annotation:1.5.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.mockito:mockito-inline:5.1.0'
testImplementation 'androidx.test:core:1.3.0'
}

lintOptions {
checkAllWarnings true
warningsAsErrors true
disable 'AndroidGradlePluginVersion', 'InvalidPackage', 'GradleDependency'
}

testOptions {
unitTests.includeAndroidResources = true
unitTests.returnDefaultValues = true
unitTests.all {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
}
1 change: 1 addition & 0 deletions packages/interactive_media_ads/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'interactive_media_ads'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.flutter.packages.interactive_media_ads">
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package dev.flutter.packages.interactive_media_ads

import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result

/** InteractiveMediaAdsPlugin */
class InteractiveMediaAdsPlugin : FlutterPlugin, MethodCallHandler {
/// The MethodChannel that will the communication between Flutter and native Android
///
/// This local reference serves to register the plugin with the Flutter Engine and unregister it
/// when the Flutter Engine is detached from the Activity
private lateinit var channel: MethodChannel

override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
channel = MethodChannel(flutterPluginBinding.binaryMessenger, "interactive_media_ads")
channel.setMethodCallHandler(this)
}

override fun onMethodCall(call: MethodCall, result: Result) {
if (call.method == "getPlatformVersion") {
result.success("Android ${android.os.Build.VERSION.RELEASE}")
} else {
result.notImplemented()
}
}

override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
channel.setMethodCallHandler(null)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package dev.flutter.packages.interactive_media_ads

import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import kotlin.test.Test
import org.mockito.Mockito

/*
* This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation.
*
* Once you have built the plugin's example app, you can run these tests from the command
* line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or
* you can run them directly from IDEs that support JUnit such as Android Studio.
*/

internal class InteractiveMediaAdsPluginTest {
@Test
fun onMethodCall_getPlatformVersion_returnsExpectedValue() {
val plugin = InteractiveMediaAdsPlugin()

val call = MethodCall("getPlatformVersion", null)
val mockResult: MethodChannel.Result = Mockito.mock(MethodChannel.Result::class.java)
plugin.onMethodCall(call, mockResult)

Mockito.verify(mockResult).success("Android " + android.os.Build.VERSION.RELEASE)
}
}
9 changes: 9 additions & 0 deletions packages/interactive_media_ads/example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Platform Implementation Test App

This is a test app for manual testing and automated integration testing
of this platform implementation. It is not intended to demonstrate actual use of
this package, since the intent is that plugin clients use the app-facing
package.

Unless you are making changes to this implementation package, this example is
very unlikely to be relevant.
68 changes: 68 additions & 0 deletions packages/interactive_media_ads/example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

android {
namespace "dev.flutter.packages.interactive_media_ads_example"
compileSdk flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
applicationId "dev.flutter.packages.interactive_media_ads_example"
minSdk flutter.minSdkVersion
targetSdk flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
api 'androidx.test:core:1.4.0'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package dev.flutter.packages.interactive_media_ads_example

import androidx.test.rule.ActivityTestRule
import dev.flutter.plugins.integration_test.FlutterTestRunner
import io.flutter.plugins.DartIntegrationTest
import org.junit.Rule
import org.junit.runner.RunWith

@DartIntegrationTest
@RunWith(FlutterTestRunner::class)
class MainActivityTest {
@JvmField @Rule var rule = ActivityTestRule(MainActivity::class.java)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<application android:usesCleartextTraffic="true">
<activity
android:name="dev.flutter.packages.interactive_media_ads_example.DriverExtensionActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="io.flutter.Entrypoint"
android:value="integrationTestMain" />
</activity>
</application>
</manifest>
Loading