Skip to content

Commit 8951714

Browse files
Merge branch 'master' into wasm
2 parents 54dc69a + 89d1555 commit 8951714

File tree

66 files changed

+765
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+765
-491
lines changed

.all-contributorsrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@
493493
"avatar_url": "https://avatars.githubusercontent.com/u/1270149?v=4",
494494
"profile": "https://uekoetter.dev/",
495495
"contributions": [
496-
"doc"
496+
"doc",
497+
"code"
497498
]
498499
},
499500
{
@@ -747,6 +748,15 @@
747748
"contributions": [
748749
"code"
749750
]
751+
},
752+
{
753+
"login": "gmackall",
754+
"name": "Gray Mackall",
755+
"avatar_url": "https://avatars.githubusercontent.com/u/34871572?v=4",
756+
"profile": "https://github.com/gmackall",
757+
"contributions": [
758+
"code"
759+
]
750760
}
751761
],
752762
"contributorsPerLine": 7,

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![InAppWebView-logo](https://user-images.githubusercontent.com/5956938/195422744-bdcfed16-73f0-4bc9-94ab-ecf10771a1c4.png)
66

77
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
8-
[![All Contributors](https://img.shields.io/badge/all_contributors-82-orange.svg?style=flat-square)](#contributors-)
8+
[![All Contributors](https://img.shields.io/badge/all_contributors-83-orange.svg?style=flat-square)](#contributors-)
99
<!-- ALL-CONTRIBUTORS-BADGE:END -->
1010

1111
[![Pub](https://img.shields.io/pub/v/flutter_inappwebview?include_prereleases)](https://pub.dartlang.org/packages/flutter_inappwebview)
@@ -23,10 +23,6 @@ A Flutter plugin that allows you to add an inline webview, to use an headless we
2323

2424
</div>
2525

26-
## New Version 6.x.x is OUT NOW!
27-
28-
Migrating from version `5.x.x` is easy! Follow the online [Migration guide](https://inappwebview.dev/docs/migration-guide).
29-
3026
## Articles/Resources
3127

3228
- [Official documentation: inappwebview.dev/docs](https://inappwebview.dev/docs/intro)
@@ -47,11 +43,11 @@ Send a submission request to the [Submit App](https://inappwebview.dev/submit-ap
4743

4844
## Requirements
4945

50-
- Dart sdk: ">=2.17.0 <4.0.0"
51-
- Flutter: ">=3.0.0"
46+
- Dart sdk: "^3.5.0"
47+
- Flutter: ">=3.24.0"
5248
- Android: `minSdkVersion >= 19`, `compileSdk >= 34`, [AGP](https://developer.android.com/build/releases/gradle-plugin) version `>= 7.3.0` (use [Android Studio - Android Gradle plugin Upgrade Assistant](https://developer.android.com/build/agp-upgrade-assistant) for help), support for `androidx` (see [AndroidX Migration](https://flutter.dev/docs/development/androidx-migration) to migrate an existing app)
53-
- iOS 9.0+: `--ios-language swift`, Xcode version `>= 14.3`
54-
- MacOS 10.11+: Xcode version `>= 14.3`
49+
- iOS 12.0+: `--ios-language swift`, Xcode version `>= 16.0`
50+
- MacOS 10.14+: Xcode version `>= 16.0`
5551

5652
## Installation
5753

@@ -150,7 +146,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
150146
<td align="center" valign="top" width="14.28%"><a href="https://xraph.com/"><img src="https://avatars.githubusercontent.com/u/11243590?v=4?s=100" width="100px;" alt="Rex Raphael"/><br /><sub><b>Rex Raphael</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=juicycleff" title="Code">💻</a></td>
151147
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Sense545"><img src="https://avatars.githubusercontent.com/u/769406?v=4?s=100" width="100px;" alt="Jan Henrik Høiland"/><br /><sub><b>Jan Henrik Høiland</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=Sense545" title="Code">💻</a></td>
152148
<td align="center" valign="top" width="14.28%"><a href="https://github.com/igtm"><img src="https://avatars.githubusercontent.com/u/6331737?v=4?s=100" width="100px;" alt="Iguchi Tomokatsu"/><br /><sub><b>Iguchi Tomokatsu</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=igtm" title="Code">💻</a></td>
153-
<td align="center" valign="top" width="14.28%"><a href="https://uekoetter.dev/"><img src="https://avatars.githubusercontent.com/u/1270149?v=4?s=100" width="100px;" alt="Jonas Uekötter"/><br /><sub><b>Jonas Uekötter</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=ueman" title="Documentation">📖</a></td>
149+
<td align="center" valign="top" width="14.28%"><a href="https://uekoetter.dev/"><img src="https://avatars.githubusercontent.com/u/1270149?v=4?s=100" width="100px;" alt="Jonas Uekötter"/><br /><sub><b>Jonas Uekötter</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=ueman" title="Documentation">📖</a> <a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=ueman" title="Code">💻</a></td>
154150
<td align="center" valign="top" width="14.28%"><a href="https://github.com/emakar"><img src="https://avatars.githubusercontent.com/u/7767193?v=4?s=100" width="100px;" alt="emakar"/><br /><sub><b>emakar</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=emakar" title="Code">💻</a></td>
155151
<td align="center" valign="top" width="14.28%"><a href="https://weibo.com/magicrolan"><img src="https://avatars.githubusercontent.com/u/671431?v=4?s=100" width="100px;" alt="liasica"/><br /><sub><b>liasica</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=liasica" title="Code">💻</a></td>
156152
</tr>
@@ -187,6 +183,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
187183
<td align="center" valign="top" width="14.28%"><a href="https://github.com/lrorpilla"><img src="https://avatars.githubusercontent.com/u/11363922?v=4?s=100" width="100px;" alt="lrorpilla"/><br /><sub><b>lrorpilla</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=lrorpilla" title="Code">💻</a></td>
188184
<td align="center" valign="top" width="14.28%"><a href="https://github.com/michalsrutek"><img src="https://avatars.githubusercontent.com/u/35694712?v=4?s=100" width="100px;" alt="Michal Šrůtek"/><br /><sub><b>Michal Šrůtek</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=michalsrutek" title="Code">💻</a></td>
189185
<td align="center" valign="top" width="14.28%"><a href="https://github.com/daisukeueta"><img src="https://avatars.githubusercontent.com/u/122339799?v=4?s=100" width="100px;" alt="daisukeueta"/><br /><sub><b>daisukeueta</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=daisukeueta" title="Code">💻</a></td>
186+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/gmackall"><img src="https://avatars.githubusercontent.com/u/34871572?v=4?s=100" width="100px;" alt="Gray Mackall"/><br /><sub><b>Gray Mackall</b></sub></a><br /><a href="https://github.com/pichillilorenzo/flutter_inappwebview/commits?author=gmackall" title="Code">💻</a></td>
190187
</tr>
191188
</tbody>
192189
</table>

dev_packages/generators/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ version: 1.0.0
44
publish_to: none
55

66
environment:
7-
sdk: ">=2.17.0 <4.0.0"
8-
flutter: ">=3.0.0"
7+
sdk: ^3.5.0
8+
flutter: ">=3.24.0"
99

1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
build: ^2.4.0
14-
source_gen: ^1.3.1
13+
build: ^2.4.1
14+
source_gen: ^1.5.0
1515
flutter_inappwebview_internal_annotations: ^1.1.1
1616

1717
dev_dependencies:
18-
build_runner: ^2.4.0
19-
build_test: ^2.1.7
20-
test: ^1.24.2
18+
build_runner: ^2.4.12
19+
build_test: ^2.2.2
20+
test: ^1.25.8

flutter_inappwebview/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 6.1.0
2+
3+
- Added initial Windows support
4+
- Added `InAppWebView` widget MacOS support
5+
- Added privacy manifest for MacOS
6+
- Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
7+
- Updated androidx.webkit:webkit:1.8.0 to androidx.webkit:webkit:1.12.0
8+
- Updated androidx.browser:browser:1.6.0 to androidx.browser:browser:1.8.0
9+
- Fixed "[MACOS] launching InAppBrowser with 'hidden: true' calls onExit immediately" [#1939](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1939)
10+
- Fixed XCode 16 build
11+
- Removed unsupported WebViewFeature.SUPPRESS_ERROR_PAGE
12+
- Merged "Add privacy manifest for iOS" [#2029](https://github.com/pichillilorenzo/flutter_inappwebview/pull/2029) (thanks to [ueman](https://github.com/ueman))
13+
- Merged "Remove references to deprecated v1 Android embedding" [#2176](https://github.com/pichillilorenzo/flutter_inappwebview/pull/2176) (thanks to [gmackall](https://github.com/gmackall))
14+
115
## 6.0.0
216

317
- Updated minimum platform interface and implementation versions

flutter_inappwebview/example/android/app/build.gradle

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,9 +22,6 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26-
2725
android {
2826
namespace 'com.pichillilorenzo.flutterwebviewexample'
2927

@@ -32,13 +30,12 @@ android {
3230
targetCompatibility 1.8
3331
}
3432

35-
compileSdkVersion 34
36-
33+
compileSdk 34
3734

3835
defaultConfig {
3936
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4037
applicationId "com.pichillilorenzo.flutter_inappwebviewexample"
41-
minSdkVersion 19
38+
minSdkVersion flutter.minSdkVersion
4239
targetSdkVersion 34
4340
versionCode flutterVersionCode.toInteger()
4441
versionName flutterVersionName
@@ -64,9 +61,9 @@ flutter {
6461
}
6562

6663
dependencies {
67-
testImplementation 'junit:junit:4.13'
68-
androidTestImplementation 'androidx.test:runner:1.2.0'
69-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
70-
implementation 'com.google.android.material:material:1.6.1'
64+
testImplementation 'junit:junit:4.13.2'
65+
androidTestImplementation 'androidx.test:runner:1.6.2'
66+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
67+
implementation 'com.google.android.material:material:1.12.0'
7168
implementation 'com.android.support:multidex:1.0.3'
7269
}

flutter_inappwebview/example/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
<uses-permission android:name="android.permission.VIDEO_CAPTURE" />
2121
<uses-permission android:name="android.permission.AUDIO_CAPTURE" />
2222

23-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
24-
calls FlutterMain.startInitialization(this); in its onCreate method.
25-
In most cases you can leave this as-is, but you if you want to provide
26-
additional functionality it is fine to subclass or reimplement
27-
FlutterApplication and put your custom class here. -->
2823
<application
2924
android:label="flutter_inappwebview_example"
3025
android:usesCleartextTraffic="true"
@@ -38,22 +33,6 @@
3833
<meta-data
3934
android:name="flutterEmbedding"
4035
android:value="2" />
41-
<!-- <activity-->
42-
<!-- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"-->
43-
<!-- android:exported="true"-->
44-
<!-- android:hardwareAccelerated="true"-->
45-
<!-- android:launchMode="singleTop"-->
46-
<!-- android:name=".EmbedderV1Activity"-->
47-
<!-- android:theme="@style/LaunchTheme"-->
48-
<!-- android:windowSoftInputMode="adjustResize">-->
49-
<!-- &lt;!&ndash; This keeps the window background of the activity showing-->
50-
<!-- until Flutter renders its first frame. It can be removed if-->
51-
<!-- there is no splash screen (such as the default splash screen-->
52-
<!-- defined in @style/LaunchTheme). &ndash;&gt;-->
53-
<!-- <meta-data-->
54-
<!-- android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"-->
55-
<!-- android:value="true"/>-->
56-
<!-- </activity>-->
5736
<activity
5837
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
5938
android:hardwareAccelerated="true"

flutter_inappwebview/example/android/app/src/main/java/com/pichillilorenzo/flutterwebviewexample/EmbedderV1Activity.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

flutter_inappwebview/example/android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.6.21'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.4.2'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
141
allprojects {
152
repositories {
163
google()

flutter_inappwebview/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
411

5-
def plugins = new Properties()
6-
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7-
if (pluginsFile.exists()) {
8-
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
917
}
1018

11-
plugins.each { name, path ->
12-
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13-
include ":$name"
14-
project(":$name").projectDir = pluginDirectory
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version '8.6.1' apply false
22+
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
1523
}
24+
25+
include ":app"

0 commit comments

Comments
 (0)