Fix warning in flutter created project ("package attribute is deprecated" in AndroidManifest) (#123426)

Fix warning in `flutter create`d project ("package attribute is deprecated" in AndroidManifest)
This commit is contained in:
Bartek Pacia
2023-03-29 06:21:03 +02:00
committed by GitHub
parent 659ba386f6
commit b915f68d7a
54 changed files with 56 additions and 65 deletions

View File

@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "com.yourcompany.complexLayout"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yourcompany.complexLayout">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -29,6 +29,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "com.example.macrobenchmarks"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.macrobenchmarks">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application

View File

@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "com.yourcompany.microbenchmarks"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yourcompany.microbenchmarks">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -13,6 +13,7 @@ android {
}
}
namespace "dev.flutter.multipleflutters"
compileSdkVersion 31
compileOptions {
@@ -54,4 +55,4 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(':flutter')
}
}

View File

@@ -2,9 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.flutter.multipleflutters">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:name=".App"
android:allowBackup="true"
@@ -24,4 +22,4 @@ found in the LICENSE file. -->
</intent-filter>
</activity>
</application>
</manifest>
</manifest>

View File

@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "dev.benchmarks.platform_views_layout"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.benchmarks.platform_views_layout">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -19,6 +19,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "dev.benchmarks.platform_views_layout_hybrid_composition"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.benchmarks.platform_views_layout_hybrid_composition">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>

View File

@@ -29,6 +29,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
namespace "io.flutter.examples.stocks"
compileSdkVersion flutter.compileSdkVersion
compileOptions {

View File

@@ -2,8 +2,7 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.examples.stocks">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application