Skip to content

Commit f7dab65

Browse files
committed
Update webview_flutter
1 parent 9f13eb4 commit f7dab65

File tree

32 files changed

+615
-591
lines changed

32 files changed

+615
-591
lines changed

webview_flutter/codelab_rebuild.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,30 @@ steps:
5656
targetSdk = flutter.targetSdkVersion
5757
versionCode = flutter.versionCode
5858
versionName = flutter.versionName
59+
- name: Patch android/settings.gradle
60+
path: webview_in_flutter/android/settings.gradle
61+
patch-u: |
62+
--- b/boring_to_beautiful/step_01/android/settings.gradle
63+
+++ a/boring_to_beautiful/step_01/android/settings.gradle
64+
@@ -18,7 +18,7 @@ pluginManagement {
65+
66+
plugins {
67+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
68+
- id "com.android.application" version "8.1.0" apply false
69+
+ id "com.android.application" version "8.7.3" apply false
70+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
71+
}
72+
- name: Patch android/gradle/wrapper/gradle-wrapper.properties
73+
path: webview_in_flutter/android/gradle/wrapper/gradle-wrapper.properties
74+
patch-u: |
75+
--- b/boring_to_beautiful/step_01/android/gradle/wrapper/gradle-wrapper.properties
76+
+++ a/boring_to_beautiful/step_01/android/gradle/wrapper/gradle-wrapper.properties
77+
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
78+
distributionPath=wrapper/dists
79+
zipStoreBase=GRADLE_USER_HOME
80+
zipStorePath=wrapper/dists
81+
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
82+
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
5983
- name: Build iOS
6084
platforms: [ macos ]
6185
path: webview_in_flutter

webview_flutter/step_03/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

webview_flutter/step_03/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.0" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

webview_flutter/step_03/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

webview_flutter/step_03/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
2929
// This works for code too, not just values: Most code changes can be
3030
// tested with just a hot reload.
3131
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
32-
32+
useMaterial3: true,
3333
),
3434
home: const MyHomePage(title: 'Flutter Demo Home Page'),
3535
);

webview_flutter/step_04/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

webview_flutter/step_04/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.0" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

webview_flutter/step_04/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

webview_flutter/step_05/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

webview_flutter/step_05/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.0" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

0 commit comments

Comments
 (0)