Skip to content

Commit

Permalink
Move the package namespace declarations from manifest to gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Mar 11, 2023
1 parent 2ee0173 commit e954703
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 2 additions & 0 deletions WooCommerce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ repositories {
}

android {
namespace "com.woocommerce.android"

compileSdkVersion gradle.ext.compileSdkVersion

defaultConfig {
Expand Down
3 changes: 1 addition & 2 deletions WooCommerce/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.woocommerce.android">
xmlns:tools="http://schemas.android.com/tools">

<!-- Allows unlocking your device and activating its screen so UI tests can succeed -->
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
Expand Down
3 changes: 1 addition & 2 deletions WooCommerce/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.woocommerce.android">
xmlns:tools="http://schemas.android.com/tools">

<!-- Mark the camera as optional, as the back camera is missing from some ChromeOS devices -->
<uses-feature
Expand Down
2 changes: 2 additions & 0 deletions libs/cardreader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {
}

android {
namespace "com.woocommerce.android.cardreader"

compileSdkVersion gradle.ext.compileSdkVersion

defaultConfig {
Expand Down
4 changes: 2 additions & 2 deletions libs/cardreader/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.woocommerce.android.cardreader">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<uses-permission
android:name="android.permission.BLUETOOTH"
Expand Down
2 changes: 2 additions & 0 deletions libs/iap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
}

android {
namespace "com.woocommerce.android.iap"

compileSdkVersion gradle.ext.compileSdkVersion

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion libs/iap/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.woocommerce.android.iap"/>
<manifest />
2 changes: 2 additions & 0 deletions quicklogin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ repositories {
}

android {
namespace "com.woocommerce.android.quicklogin"

compileSdkVersion gradle.ext.compileSdkVersion

defaultConfig {
Expand Down
3 changes: 1 addition & 2 deletions quicklogin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.woocommerce.android.quicklogin">
</manifest>
<manifest />

0 comments on commit e954703

Please sign in to comment.