Skip to content

Commit b915f68

Browse files
authored
Fix warning in flutter created project ("package attribute is deprecated" in AndroidManifest) (flutter#123426)
Fix warning in `flutter create`d project ("package attribute is deprecated" in AndroidManifest)
1 parent 659ba38 commit b915f68

File tree

54 files changed

+56
-65
lines changed

Some content is hidden

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

54 files changed

+56
-65
lines changed

dev/benchmarks/complex_layout/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
1919
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2020

2121
android {
22+
namespace "com.yourcompany.complexLayout"
2223
compileSdkVersion flutter.compileSdkVersion
2324

2425
compileOptions {

dev/benchmarks/complex_layout/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Use of this source code is governed by a BSD-style license that can be
33
found in the LICENSE file. -->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="com.yourcompany.complexLayout">
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
76

87
<uses-permission android:name="android.permission.INTERNET"/>
98

dev/benchmarks/macrobenchmarks/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ apply plugin: 'com.android.application'
2929
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
3030

3131
android {
32+
namespace "com.example.macrobenchmarks"
3233
compileSdkVersion flutter.compileSdkVersion
3334

3435
compileOptions {

dev/benchmarks/macrobenchmarks/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Use of this source code is governed by a BSD-style license that can be
33
found in the LICENSE file. -->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="com.example.macrobenchmarks">
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
76

87
<!-- The INTERNET permission is required for development. Specifically,
98
flutter needs it to communicate with the running application

dev/benchmarks/microbenchmarks/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
1919
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2020

2121
android {
22+
namespace "com.yourcompany.microbenchmarks"
2223
compileSdkVersion flutter.compileSdkVersion
2324

2425
compileOptions {

dev/benchmarks/microbenchmarks/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Use of this source code is governed by a BSD-style license that can be
33
found in the LICENSE file. -->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="com.yourcompany.microbenchmarks">
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
76

87
<uses-permission android:name="android.permission.INTERNET"/>
98

dev/benchmarks/multiple_flutters/android/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
}
1414
}
1515

16+
namespace "dev.flutter.multipleflutters"
1617
compileSdkVersion 31
1718

1819
compileOptions {
@@ -54,4 +55,4 @@ dependencies {
5455
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
5556
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
5657
implementation project(':flutter')
57-
}
58+
}

dev/benchmarks/multiple_flutters/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
Use of this source code is governed by a BSD-style license that can be
33
found in the LICENSE file. -->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="dev.flutter.multipleflutters">
7-
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
86
<application
97
android:name=".App"
108
android:allowBackup="true"
@@ -24,4 +22,4 @@ found in the LICENSE file. -->
2422
</intent-filter>
2523
</activity>
2624
</application>
27-
</manifest>
25+
</manifest>

dev/benchmarks/platform_views_layout/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
1919
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2020

2121
android {
22+
namespace "dev.benchmarks.platform_views_layout"
2223
compileSdkVersion flutter.compileSdkVersion
2324

2425
compileOptions {

dev/benchmarks/platform_views_layout/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Use of this source code is governed by a BSD-style license that can be
33
found in the LICENSE file. -->
44

5-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6-
package="dev.benchmarks.platform_views_layout">
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
76

87
<uses-permission android:name="android.permission.INTERNET"/>
98

0 commit comments

Comments
 (0)