Skip to content

Commit dcc2382

Browse files
Migrate packages to namespaces in build files
Change-Id: I21e021caa0ea72a7097dfd9af04a3c07a0cc9aa5
1 parent 57e78b5 commit dcc2382

40 files changed

+79
-43
lines changed

app-nia-catalog/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ android {
3232
excludes.add("/META-INF/{AL2.0,LGPL2.1}")
3333
}
3434
}
35+
namespace = "com.google.samples.apps.niacatalog"
3536
}
3637

3738
dependencies {

app-nia-catalog/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.niacatalog">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
<application
2120
android:allowBackup="true"

app/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import com.google.samples.apps.nowinandroid.Flavor
17-
import com.google.samples.apps.nowinandroid.FlavorDimension
1816

1917
plugins {
2018
id("nowinandroid.android.application")
@@ -75,6 +73,7 @@ android {
7573
isIncludeAndroidResources = true
7674
}
7775
}
76+
namespace = "com.google.samples.apps.nowinandroid"
7877
}
7978

8079
dependencies {

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
limitations under the License.
1616
-->
1717
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18-
xmlns:tools="http://schemas.android.com/tools"
19-
package="com.google.samples.apps.nowinandroid">
18+
xmlns:tools="http://schemas.android.com/tools">
2019

2120
<uses-permission android:name="android.permission.INTERNET" />
2221

core/common/build.gradle.kts

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

22+
android {
23+
namespace = "com.google.samples.apps.nowinandroid.core.common"
24+
}
25+
2226
dependencies {
2327
implementation(libs.kotlinx.coroutines.android)
2428
testImplementation(project(":core:testing"))

core/common/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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.core.common">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
</manifest>

core/data-test/build.gradle.kts

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

21+
android {
22+
namespace = "com.google.samples.apps.nowinandroid.core.data.test"
23+
}
24+
2125
dependencies {
2226
api(project(":core:data"))
2327
implementation(project(":core:testing"))

core/data-test/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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.core.data.test">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918

2019
</manifest>

core/data/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ plugins {
2020
id("kotlinx-serialization")
2121
}
2222

23+
android {
24+
namespace = "com.google.samples.apps.nowinandroid.core.data"
25+
}
26+
2327
dependencies {
2428
implementation(project(":core:common"))
2529
implementation(project(":core:model"))
@@ -35,4 +39,4 @@ dependencies {
3539
implementation(libs.kotlinx.datetime)
3640
implementation(libs.kotlinx.coroutines.android)
3741
implementation(libs.kotlinx.serialization.json)
38-
}
42+
}

core/data/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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.core.data">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1918
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2019
</manifest>

0 commit comments

Comments
 (0)