This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +20
-56
lines changed
androidTestDebug/java/io/flutter/plugins/webviewflutterexample
java/io/flutter/plugins/webviewflutterexample Expand file tree Collapse file tree 7 files changed +20
-56
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.19+1
2
+
3
+ * Raise min Flutter SDK requirement to the latest stable. v2 embedding apps no
4
+ longer need to special case their Flutter SDK requirement like they have
5
+ since v0.3.15+3.
6
+
1
7
## 0.3.19
2
8
3
9
* Add setting for iOS to allow gesture based navigation.
Original file line number Diff line number Diff line change @@ -37,28 +37,3 @@ android {
37
37
implementation ' androidx.webkit:webkit:1.0.0'
38
38
}
39
39
}
40
-
41
- // TODO(mklim): Remove this hack once androidx.lifecycle is included on stable. https://github.com/flutter/flutter/issues/42348
42
- afterEvaluate {
43
- def containsEmbeddingDependencies = false
44
- for (def configuration : configurations. all) {
45
- for (def dependency : configuration. dependencies) {
46
- if (dependency. group == ' io.flutter' &&
47
- dependency. name. startsWith(' flutter_embedding' ) &&
48
- dependency. isTransitive())
49
- {
50
- containsEmbeddingDependencies = true
51
- break
52
- }
53
- }
54
- }
55
- if (! containsEmbeddingDependencies) {
56
- android {
57
- dependencies {
58
- def lifecycle_version = " 1.1.1"
59
- compileOnly " android.arch.lifecycle:common-java8:$lifecycle_version "
60
- compileOnly " android.arch.lifecycle:runtime:$lifecycle_version "
61
- }
62
- }
63
- }
64
- }
Original file line number Diff line number Diff line change 2
2
3
3
import androidx .test .rule .ActivityTestRule ;
4
4
import dev .flutter .plugins .e2e .FlutterRunner ;
5
+ import io .flutter .embedding .android .FlutterActivity ;
5
6
import org .junit .Rule ;
6
7
import org .junit .runner .RunWith ;
7
8
8
9
@ RunWith (FlutterRunner .class )
9
10
public class MainActivityTest {
10
- @ Rule public ActivityTestRule <MainActivity > rule = new ActivityTestRule <>(MainActivity .class );
11
+ @ Rule
12
+ public ActivityTestRule <FlutterActivity > rule = new ActivityTestRule <>(FlutterActivity .class );
11
13
}
Original file line number Diff line number Diff line change 10
10
android : icon =" @mipmap/ic_launcher"
11
11
android : label =" webview_flutter_example"
12
12
android : name =" io.flutter.app.FlutterApplication" >
13
+ <meta-data
14
+ android : name =" flutterEmbedding"
15
+ android : value =" 2" />
13
16
<activity
14
17
android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
15
18
android : exported =" true"
30
33
android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
31
34
android : hardwareAccelerated =" true"
32
35
android : launchMode =" singleTop"
33
- android : name =" .MainActivity "
36
+ android : name =" io.flutter.embedding.android.FlutterActivity "
34
37
android : theme =" @style/LaunchTheme"
35
38
android : windowSoftInputMode =" adjustResize" >
36
39
<intent-filter >
Original file line number Diff line number Diff line change 5
5
package io .flutter .plugins .webviewflutterexample ;
6
6
7
7
import android .os .Bundle ;
8
+ import dev .flutter .plugins .e2e .E2EPlugin ;
8
9
import io .flutter .app .FlutterActivity ;
9
- import io .flutter .plugins .GeneratedPluginRegistrant ;
10
+ import io .flutter .plugins .webviewflutter . WebViewFlutterPlugin ;
10
11
11
12
public class EmbeddingV1Activity extends FlutterActivity {
12
13
@ Override
13
14
protected void onCreate (Bundle savedInstanceState ) {
14
15
super .onCreate (savedInstanceState );
15
- GeneratedPluginRegistrant .registerWith (this );
16
+ E2EPlugin .registerWith (registrarFor ("dev.flutter.plugins.e2e.E2EPlugin" ));
17
+ WebViewFlutterPlugin .registerWith (
18
+ registrarFor ("io.flutter.plugins.webviewflutter.WebViewFlutterPlugin" ));
16
19
}
17
20
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : webview_flutter
2
2
description : A Flutter plugin that provides a WebView widget on Android and iOS.
3
- version : 0.3.19
3
+ version : 0.3.19+1
4
4
homepage : https://github.com/flutter/plugins/tree/master/packages/webview_flutter
5
5
6
6
environment :
7
7
sdk : " >=2.0.0-dev.68.0 <3.0.0"
8
- flutter : " >=1.10.0 <2.0.0"
8
+ flutter : " >=1.12.13+hotfix.5 <2.0.0"
9
9
10
10
dependencies :
11
11
flutter :
You can’t perform that action at this time.
0 commit comments