Skip to content

Commit 544fbe0

Browse files
committed
Replace deprecated package with namespace
``` package="com.google.samples.apps.nowinandroid.uitesthiltmanifest" found in source AndroidManifest.xml. Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated. Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information. ``` For reference, this work was started in all these PRs: - #32 - #333 - #368 - #460 This should be the last time we have to do this :)
1 parent 8a25efa commit 544fbe0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui-test-hilt-manifest/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ plugins {
1919
id("dagger.hilt.android.plugin")
2020
}
2121

22+
android {
23+
namespace = "com.google.samples.apps.nowinandroid.uitesthiltmanifest"
24+
}
25+
2226
dependencies {
2327
implementation(libs.hilt.android)
2428
kapt(libs.hilt.compiler)

ui-test-hilt-manifest/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
-->
17-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18-
package="com.google.samples.apps.nowinandroid.uitesthiltmanifest">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<application>
2120
<activity android:name=".HiltComponentActivity" />

0 commit comments

Comments
 (0)